/* Timber Concept — layout concept: a drawing set. Each page is a "sheet" with a Mono sheet label,
   generous margins, thin rules, and a title-block footer. Timber colour is the reward, used sparingly. */
:root {
  --paper: #F7F4EE;      /* page ground */
  --sheet: #FBF9F5;      /* raised panels */
  --charcoal: #1E2B2F;   /* text, dark bands */
  --ink: #2F3B40;        /* line work, rules */
  --graphite: #5B6468;   /* muted text */
  --pencil: #C9D2D6;     /* hairlines */
  --heartwood: #8F592C;  /* links, buttons, eyebrows */
  --timber: #B98049;     /* accent on dark, large type */
  --oak: #D8A86E;        /* highlight fills */
  --oak-wash: #F1E6D6;   /* photo placeholders */
  --font-display: "Montserrat", Arial, sans-serif;
  --font-body: "IBM Plex Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --wrap: 1160px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--charcoal);
  font-family: var(--font-body); font-size: 17.5px; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--heartwood); text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }
:focus-visible { outline: 2px solid var(--heartwood); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--charcoal); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.01em; }
h1 .light, h2 .light { font-weight: 300; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; font-weight: 700; }
h3 { font-size: 1.28rem; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
.prose { max-width: 66ch; display: grid; gap: 1rem; }
.lead { font-size: 1.2rem; color: var(--ink); max-width: 60ch; }
.muted { color: var(--graphite); }
.label {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--heartwood); font-weight: 500;
}

/* ---------- wrappers ---------- */
.wrap {
  max-width: calc(var(--wrap) + 2 * 32px); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section + .section { border-top: 1px solid var(--pencil); }
.stack { display: grid; gap: 1.5rem; }
.head { display: grid; gap: 0.9rem; margin-bottom: 2.5rem; max-width: 60ch; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--pencil); background: var(--paper); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--paper); z-index: 30; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--charcoal); }
.brand img { width: 46px; height: 46px; }
.wordmark { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.04em; white-space: nowrap; }
.wordmark b { font-weight: 800; } .wordmark span { font-weight: 300; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--charcoal); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--heartwood); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.menu { display: none; }
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em;
    text-transform: uppercase; border: 1px solid var(--ink); padding: 0.55rem 0.8rem; min-height: 44px; display: flex; align-items: center; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: grid; }
  .menu-panel { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: var(--sheet); border: 1px solid var(--ink);
    min-width: 230px; padding: 0.5rem 0; }
  .menu-panel a { padding: 0.7rem 1.1rem; color: var(--charcoal); text-decoration: none; }
  .menu-panel a:hover { background: var(--oak-wash); }
}

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.4rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; text-decoration: none; border-radius: 0;
  border: 1px solid var(--heartwood); background: var(--heartwood); color: var(--paper); cursor: pointer;
}
.btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--charcoal); border-color: var(--ink); }
.btn.ghost:hover { background: var(--charcoal); color: var(--paper); }
.dark .btn { background: var(--oak); border-color: var(--oak); color: var(--charcoal); }
.dark .btn:hover { background: var(--paper); border-color: var(--paper); }
.dark .btn.ghost { background: transparent; color: var(--paper); border-color: var(--pencil); }

/* ---------- home hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 0.9fr 1.1fr; } }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero-figure { margin: 0; min-width: 0; display: grid; gap: 0.6rem; }
.dimline { display: flex; align-items: center; gap: 0.6rem; color: var(--graphite); font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; }
.dimline::before, .dimline::after { content: ""; flex: 1; height: 1px; background: var(--ink);
  background-image: linear-gradient(var(--ink), var(--ink)); }
.dimline span { white-space: normal; text-align: center; min-width: 0; max-width: 80%; }
.tick { position: relative; padding-inline: 10px; }
.tick::before, .tick::after { content: ""; position: absolute; top: 50%; width: 9px; height: 1px; background: var(--ink); }
.tick::before { left: -4px; transform: rotate(-45deg); } .tick::after { right: -4px; transform: rotate(-45deg); }
.hero-note { font-size: 0.85rem; color: var(--graphite); }

/* ---------- cards and grids ---------- */
.grid-3 { display: grid; gap: 1.25rem; }
.grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel { background: var(--sheet); border: 1px solid var(--pencil); padding: 1.6rem; display: grid; gap: 0.7rem; align-content: start; min-width: 0; }
.panel h3 { font-size: 1.15rem; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.checklist li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--pencil); }
.checklist .code { font-family: var(--font-mono); font-size: 0.8rem; color: var(--heartwood); padding-top: 0.25rem; }
.checklist strong { font-family: var(--font-display); font-weight: 700; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: s; }
@media (min-width: 860px) { .steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: s; border-top: 2px solid var(--charcoal); padding-top: 1rem; display: grid; gap: 0.5rem; align-content: start; }
.steps li::before { content: "STEP " counter(s); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--heartwood); }
.steps h3 { font-size: 1.1rem; }
.steps.long li { grid-template-columns: 1fr; }

/* tier cards */
.tier { background: var(--sheet); border: 1px solid var(--pencil); border-top: 3px solid var(--oak); padding: 1.6rem; display: grid; gap: 0.8rem; align-content: start; }
.tier .lvl { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--heartwood); }
.tier .fee { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.tier .fee small { font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; color: var(--graphite); }

/* ---------- dark bands ---------- */
.dark { background: var(--charcoal); color: var(--paper); }
.dark h2, .dark h3 { color: var(--paper); }
.dark .label { color: var(--oak); }
.dark .muted { color: var(--pencil); }
.dark a { color: var(--oak); }
.statement { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.3; max-width: 34ch; text-wrap: balance; }
.statement b { font-weight: 800; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--pencil); }
thead th { background: var(--charcoal); color: var(--paper); font-weight: 600; }
tbody th { font-weight: 600; width: 22%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }

/* ---------- inner page header ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--pencil); }
.page-head .wrap { display: grid; gap: 1rem; }
.sheet-no { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--graphite); text-transform: uppercase; }
.sheet-no b { color: var(--heartwood); font-weight: 500; }

/* ---------- accordions (service cards, FAQ) ---------- */
.acc { border-top: 1px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--pencil); }
.acc summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: baseline;
  padding: 1.1rem 0; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; min-height: 44px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .code { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; color: var(--heartwood); }
.acc summary::after { content: "+"; font-family: var(--font-mono); font-weight: 400; color: var(--graphite); }
.acc details[open] summary::after { content: "–"; }
.acc .body { padding: 0 0 1.3rem 4rem; max-width: 70ch; color: var(--ink); }
.acc.faq summary { grid-template-columns: 1fr auto; }
.acc.faq .body { padding-left: 0; }
@media (max-width: 600px) { .acc .body { padding-left: 0; } .acc summary { grid-template-columns: 2.4rem 1fr auto; } }

/* ---------- placeholders for photos ---------- */
.ph { background: var(--oak-wash); border: 1px dashed var(--timber); aspect-ratio: 4 / 3; max-width: 100%; display: grid; place-items: center;
  padding: 1.2rem; text-align: center; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; color: var(--heartwood); text-transform: uppercase; }

/* ---------- lists ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.9rem; height: 1px; background: var(--heartwood); }
.ticks li::after { content: ""; position: absolute; left: 0.62rem; top: calc(0.72em - 4px); width: 1px; height: 9px; background: var(--heartwood); transform: rotate(45deg); }

/* ---------- forms ---------- */
.form { display: grid; gap: 2.2rem; }
fieldset { border: 0; border-top: 2px solid var(--charcoal); margin: 0; padding: 1.2rem 0 0; display: grid; gap: 1.1rem; min-width: 0; }
legend { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; padding: 0 0.6rem 0 0; }
legend .code { font-family: var(--font-mono); font-size: 0.78rem; color: var(--heartwood); font-weight: 500; margin-right: 0.6rem; }
.hint { font-size: 0.92rem; color: var(--graphite); margin-top: -0.4rem; }
.fields { display: grid; gap: 1.1rem; }
@media (min-width: 760px) { .fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label, .field .q { font-weight: 600; font-size: 0.95rem; }
.req { color: var(--heartwood); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=month], input[type=date], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--charcoal); background: var(--sheet); border: 1px solid var(--graphite);
  border-radius: 0; padding: 0.7rem 0.8rem; min-height: 46px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--heartwood); outline-offset: 1px; border-color: var(--heartwood); }
.opts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; }
.opts label { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 400; min-height: 32px; cursor: pointer; }
.opts input { accent-color: var(--heartwood); width: 18px; height: 18px; }
.upload-box { border: 1px dashed var(--timber); background: var(--oak-wash); padding: 1.4rem; display: grid; gap: 0.8rem; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400 !important; }
.consent input { margin-top: 0.3rem; width: 18px; height: 18px; accent-color: var(--heartwood); flex: none; }
.form-note { font-size: 0.9rem; color: var(--graphite); }
.preview-msg { border: 1px solid var(--heartwood); background: var(--oak-wash); padding: 1rem; }

/* ---------- footer: drawing title block ---------- */
.site-footer { background: var(--charcoal); color: var(--pencil); padding-block: 3rem 2rem; font-size: 0.92rem; }
.title-block { display: grid; border: 1px solid var(--graphite); }
@media (min-width: 860px) { .title-block { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.tb-cell { padding: 1rem 1.1rem; border-bottom: 1px solid var(--graphite); display: grid; gap: 0.45rem; align-content: start; min-width: 0; }
@media (min-width: 860px) { .tb-cell { border-bottom: 0; border-right: 1px solid var(--graphite); } .tb-cell:last-child { border-right: 0; } }
.tb-cell:last-child { border-bottom: 0; }
.tb-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--timber); }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--oak); }
.foot-brand { display: flex; align-items: center; gap: 0.7rem; }
.foot-brand img { width: 44px; height: 44px; }
.foot-brand .wordmark { color: var(--paper); }
.foot-links { display: grid; gap: 0.25rem; }
.powered { margin-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; font-size: 0.8rem; color: var(--pencil); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--charcoal); color: var(--paper); padding: 0.6rem 1rem; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }
.hero-grid > * { min-width: 0; }
/* ---------- articles ---------- */
.article { max-width: 70ch; display: grid; gap: 1.1rem; }
.article h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 1.4rem; }
.article ul, .article ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.55rem; }
.article table { min-width: 0; font-size: 0.93rem; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.article p:first-child { font-size: 1.12rem; }
.article .byline { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--graphite); margin-top: 1rem; }
.art-link { color: var(--charcoal); text-decoration: none; }
.art-link:hover strong { color: var(--heartwood); text-decoration: underline; }
@media (max-width: 600px) { .article table { display: block; overflow-x: auto; } }
.nav .btn, .nav .btn:hover { color: var(--paper); text-decoration: none; }
/* ---------- report screenshots ---------- */
.shot { margin: 0; display: grid; gap: 0.5rem; min-width: 0; }
.shot img { border: 1px solid var(--pencil); background: #fff; width: 100%; }
.shot figcaption { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--graphite); }
a.shot:hover img { border-color: var(--heartwood); }
.article ul ul { margin-top: 0.5rem; }
