/* ==========================================================================
   Apex Design Tech — Millwork & Custom Furniture CAD Drafting
   Stylesheet (no build step). Sections are ordered to match index.html.
   ========================================================================== */

/* ---------- Design tokens ----------
   ALL colours live here. To re-theme the site (e.g. walnut instead of navy), change only this block,
   or uncomment the alternative palette just below it. Components use the semantic names
   (--dark, --heading, --ink, --stroke, …), never raw hex values.
   Contrast ratios in comments are WCAG 2.x values for text on the named background.
   ---------------------------------------------------------------------------------------------- */
:root {
  /* ---- Dark surfaces: deep blueprint navy family ---- */
  --dark:            #1B3A5C;   /* navy section bands, logo tile, dark hover fills */
  --dark-raised:     #234A72;   /* cards / panels inside navy sections (audience cards, form card) */
  --dark-field:      #2B5580;   /* form inputs inside navy sections */
  --dark-deep:       #122B47;   /* footer (deeper so it separates from the contact band) */
  --dark-line:       #3E6590;   /* borders / dividers on navy */
  --dark-field-line: #5A82AD;   /* input borders on navy */
  --dark-grid-rgb:   150, 195, 235;   /* blueprint grid lines on navy (used with alpha) */

  /* ---- Text on dark ---- */
  --on-dark:         #ffffff;   /* headings on navy (11.6:1) */
  --on-dark-text:    #F3EEE6;   /* strong body text on navy (10:1) */
  --on-dark-muted:   #C9D6E3;   /* secondary text: 7.9:1 on --dark, 6.2:1 on --dark-raised, 9.7:1 on --dark-deep */
  --on-dark-faint:   #C0D0E0;   /* input placeholders on --dark-field (≈4.8:1) */
  --accent-on-dark:  #8ECDF0;   /* links on navy (6.7:1) */
  --danger-on-dark:  #F4A98F;   /* required marks / errors on navy (4.8:1 on --dark-raised) */

  /* ---- Light surfaces ---- */
  --paper:           #f7f3ec;   /* warm off-white page */
  --paper-2:         #efe8dc;   /* slightly deeper paper for alternating sections */
  --white:           #ffffff;
  --placeholder-bg:  #ece5d9;   /* portfolio image placeholders */

  /* ---- Text on light: dark slate, never pure black ---- */
  --heading:         #22313F;   /* headings, logo text, outline buttons (12:1 on paper) */
  --ink:             #2A3B4C;   /* body text (10.4:1 on paper) */
  --muted:           #52606D;   /* secondary text (5.8:1 on paper, 5.3:1 on paper-2) */

  /* ---- Lines & drawings ---- */
  --line:            #d9d0c2;   /* warm light borders */
  --stroke:          #243B55;   /* SVG line-drawing strokes (dark navy-slate) */
  --slate-rgb:       34, 49, 63;   /* slate for translucent lines & shadows (used with alpha) */

  /* ---- Warm wood accents ---- */
  --wood:            #b9814c;   /* decorative wood tone */
  --wood-light:      #d9a066;   /* wood on navy (5.1:1) and primary buttons on navy */
  --wood-lighter:    #e6b37e;   /* wood button hover */
  --wood-dark:       #8a5a2c;   /* text-safe wood on light backgrounds (4.8:1 on paper-2) */
  --wood-fill:       #e9cfa9;   /* countertop / edge-band fill in drawings */
  --interior-fill:   #efe6d8;   /* cabinet interior in the hero drawing */

  /* ---- Blueprint blue accent ---- */
  --accent:          #1968A0;   /* buttons & links on light (white text 6:1; as text 5.4:1 on paper) */
  --accent-hover:    #13507D;   /* (white text 8.5:1) */
  --accent-rgb:      25, 104, 160;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(var(--slate-rgb), .06), 0 8px 24px rgba(var(--slate-rgb), .09);
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- ALTERNATIVE PALETTE: walnut brown ----------
   Uncomment this block to swap the navy family for walnut (it overrides the tokens above).
   Also change <meta name="theme-color"> and the favicon tile colour in index.html to match --dark.
:root {
  --dark:            #3B2A20;
  --dark-raised:     #4A3528;
  --dark-field:      #56402F;
  --dark-deep:       #2C1F17;
  --dark-line:       #6A5040;
  --dark-field-line: #8A6C58;
  --dark-grid-rgb:   235, 205, 170;
  --on-dark-muted:   #D8C8B8;
  --on-dark-faint:   #D2C0AE;
  --accent-on-dark:  #9ED0E6;
  --heading:         #2F2A26;
  --ink:             #3A332D;
  --muted:           #5F5750;
  --stroke:          #3A2E26;
  --slate-rgb:       47, 42, 38;
  --wood-light:      #e0a86c;
  --wood-lighter:    #ebbd89;
}
*/

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--heading); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--dark); color: var(--on-dark); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--font-body);
  padding: 15px 24px; border-radius: var(--radius-sm);
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-accent:hover { box-shadow: 0 8px 20px -6px rgba(var(--accent-rgb), .55); }
.btn-accent { background: var(--accent); color: var(--white); transition: background-color .2s, box-shadow .25s, transform .2s; }
.btn-accent:hover { background: var(--accent-hover); color: var(--white); }
.btn-outline {
  border-color: var(--heading); color: var(--heading); background-color: transparent;
  background-image: linear-gradient(var(--dark), var(--dark)); background-repeat: no-repeat;
  background-size: 0% 100%; transition: background-size .35s cubic-bezier(.2,.7,.2,1), color .25s, transform .2s;
}
.btn-outline:hover { background-size: 100% 100%; color: var(--on-dark); border-color: var(--dark); }
.btn-outline-light { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn-outline-light:hover { background: var(--paper); color: var(--heading); }
.btn-small { padding: 10px 16px; font-size: .9375rem; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 236, .92);  /* = --paper at 92% */
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(var(--slate-rgb), .07); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); }
.brand:hover { color: var(--heading); }
.brand-mark { width: 34px; height: 34px; color: var(--dark); flex: none; }  /* logo tile: navy */
.brand-mark .brand-line { stroke: var(--wood-light); }
.brand-mark .brand-dot { fill: var(--wood-light); }
.brand-mark .brand-line-inner { opacity: .7; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .01em; white-space: nowrap; line-height: 1; }
.brand-name .bn-a { font-weight: 700; letter-spacing: .02em; }
.brand-name .bn-b { font: 500 .8em/1 var(--font-mono); letter-spacing: .08em; color: var(--accent); margin-left: .1em; }
.site-footer .brand-name .bn-b { color: var(--wood-light); }

.primary-nav > ul { display: flex; align-items: center; gap: 4px; }
.primary-nav a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem;
}
.primary-nav a:not(.btn):hover, .primary-nav a.is-active { color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.primary-nav > ul > li:last-child { margin-left: 8px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-toggle-bar { display: block; height: 2px; background: var(--heading); margin: 5px 0; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(var(--slate-rgb), .14);
    padding: 8px 24px 24px;
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.0625rem; }
  .primary-nav > ul > li:last-child { margin: 16px 0 0; }
  .primary-nav .btn { width: 100%; padding: 15px 24px; }
}

/* ---------- Shared section styles ---------- */
.section { padding: 104px 0; position: relative; }
.section-paper { background: var(--paper-2); }
.section-dark { background: var(--dark); color: var(--on-dark-text); }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark .section-intro, .section-dark p { color: var(--on-dark-muted); }
.section-dark a { color: var(--accent-on-dark); }

/* Subtle blueprint grid on navy sections: fine 32px grid + slightly stronger 128px major lines */
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--dark-grid-rgb), .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--dark-grid-rgb), .055) 1px, transparent 1px),
    linear-gradient(rgba(var(--dark-grid-rgb), .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--dark-grid-rgb), .09) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 128px 128px, 128px 128px;
}
.section-dark > .container { position: relative; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-num {
  font: 500 .8125rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--wood-dark); margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.section-num::before, .eyebrow-line { /* blueprint "dimension" tick: a line with end ticks */
  content: ""; width: 32px; height: 9px; flex: none; transform-origin: left center;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) right center / 1px 100% no-repeat;
}
.section-dark .section-num { color: var(--wood-light); }
.section h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.875rem); }
.section-intro { font-size: 1.125rem; color: var(--muted); margin: 0; }

/* ---------- 1. Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), .07) 1px, transparent 1px),
    linear-gradient(rgba(var(--accent-rgb), .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), .035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 .8125rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--wood-dark); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 600; }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 36em; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .9375rem; color: var(--ink); font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 8px; height: 8px; border: 2px solid var(--wood); transform: rotate(45deg); flex: none;
}

/* Hero drawing */
.hero-art { position: relative; margin: 0; }
.sheet {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; position: relative;
}
.sheet::after { /* drawing border like a CAD sheet */
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(var(--slate-rgb), .14); border-radius: 4px; pointer-events: none;
}
.drawing { color: var(--stroke); width: 100%; height: auto; }
.drawing .thick  { fill: none; stroke: var(--stroke); stroke-width: 2; }
.drawing .med    { fill: none; stroke: var(--stroke); stroke-width: 1.2; }
.drawing .thin   { fill: none; stroke: var(--stroke); stroke-width: .7; opacity: .7; }
.drawing .swing  { fill: none; stroke: var(--accent); stroke-width: .8; stroke-dasharray: 5 4; }
.drawing .pull   { stroke: var(--stroke); stroke-width: 2.4; stroke-linecap: round; }
.drawing .fill-wood { fill: var(--wood-fill); }
.drawing .dim    { stroke: var(--accent); stroke-width: .9; color: var(--accent); }
.drawing .dim-bg { fill: var(--white); }
.drawing .callout { fill: var(--white); stroke: var(--wood); stroke-width: 1.4; }
.drawing .callout-dashed { fill: none; stroke: var(--wood); stroke-width: 1.2; stroke-dasharray: 3 3; }
.drawing text { font-family: var(--font-mono); }
.drawing .t-label { font-size: 10px; fill: var(--muted); letter-spacing: .06em; }
.drawing .t-dim { font-size: 11px; fill: var(--accent); font-weight: 500; }
.drawing .t-callout { font-size: 11px; fill: var(--wood-dark); font-weight: 500; }

.hero-art { padding-bottom: 72px; }
.inset {
  position: absolute; width: 32%; min-width: 150px; right: -22px; bottom: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px;
}

/* ---------- Cards (Services) ---------- */
.card-grid { display: grid; gap: 20px; }
.services-grid { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
}
.card:hover { border-color: var(--wood); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { font-size: 1.1875rem; margin: 18px 0 10px; }
.card p { font-size: .96875rem; color: var(--muted); margin: 0; }
.icon { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 3. Audience ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: var(--radius); overflow: hidden; }
.audience { background: var(--dark-raised); padding: 32px 28px; position: relative; }
.audience::before { /* corner registration mark */
  content: ""; position: absolute; top: 14px; right: 14px; width: 12px; height: 12px;
  border-top: 1px solid var(--wood-light); border-right: 1px solid var(--wood-light); opacity: .7;
}
.audience h3 { font-size: 1.25rem; margin-bottom: 8px; }
.audience p { margin: 0; font-size: .96875rem; }
.sector-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; }
.sector-tags span {
  font: 500 .8125rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--on-dark-text); border: 1px solid var(--dark-line); background: rgba(var(--dark-grid-rgb), .06); padding: 10px 14px; border-radius: 999px;
}

/* ---------- 4. Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; position: relative; }
.process::before { /* dashed "dimension line" connecting steps */
  content: ""; position: absolute; top: 27px; left: 28px; right: calc((100% - 80px) / 5 - 28px); height: 0;
  border-top: 1.5px dashed var(--wood);
}
.step { position: relative; }
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper-2); border: 1.5px solid var(--heading);
  font: 500 .9375rem/1 var(--font-mono); color: var(--heading); position: relative; z-index: 1; margin-bottom: 20px;
}
.step:last-child .step-num { background: var(--dark); border-color: var(--dark); color: var(--wood-light); }
.step h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.step p { font-size: .96875rem; color: var(--muted); margin: 0; }

/* ---------- 5. Software & deliverables ---------- */
.deliverables-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.spec-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  background-image: linear-gradient(var(--wood), var(--wood)); background-size: 100% 3px; background-repeat: no-repeat;
}
.spec-panel h3 { font-size: 1.25rem; margin-bottom: 18px; }
.spec-list { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-list li {
  font: 500 .875rem/1 var(--font-mono); padding: 9px 12px; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--line); color: var(--heading);
}
.spec-list-plain { display: block; }
.spec-list-plain li {
  font: 400 .96875rem/1.5 var(--font-body); background: none; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 10px 0 10px 22px; position: relative;
}
.spec-list-plain li:last-child { border-bottom: 0; }
.spec-list-plain li::before {
  content: ""; position: absolute; left: 2px; top: 18px; width: 10px; height: 1.5px; background: var(--accent);
}

/* ---------- 6. Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.ph {
  aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative;
  background-color: var(--placeholder-bg);
  background-image:
    repeating-linear-gradient(45deg, rgba(var(--slate-rgb), .06) 0 1px, transparent 1px 14px),
    linear-gradient(rgba(var(--accent-rgb), .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), .08) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  border-bottom: 1px solid var(--line);
}
.ph::before { /* frame corners, like crop marks */
  content: ""; position: absolute; inset: 16px; border: 1.5px dashed rgba(var(--slate-rgb), .3); border-radius: 4px;
}
.ph-label {
  position: relative; font: 500 .8125rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--heading); background: var(--white); border: 1px solid var(--line); padding: 8px 12px; border-radius: 4px;
  text-align: center;
}
.portfolio-caption { padding: 18px 22px 20px; }
.portfolio-caption h3 { font-size: 1.125rem; margin-bottom: 4px; }
.portfolio-caption p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* ---------- 7. Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.why-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 40px; }
.why-list li { padding-top: 20px; border-top: 1px solid var(--dark-line); position: relative; }
.why-list li::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--wood-light); }
.why-list h3 { font-size: 1.25rem; margin-bottom: 8px; }
.why-list p { margin: 0; font-size: .96875rem; }

/* ---------- 8. FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--font-head); font-size: 1.1875rem; font-weight: 600; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { /* plus / minus icon */
  content: ""; position: absolute; right: 6px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat;
  transition: transform .25s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq-body { padding: 0 48px 22px 0; color: var(--muted); }
.faq-body p { margin: 0; }

/* ---------- 9. Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.875rem); }
.contact-details { margin: 36px 0 0; display: grid; gap: 0; border-top: 1px solid var(--dark-line); }
.contact-details > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--dark-line); }
.contact-details dt { font: 500 .8125rem/1.8 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--wood-light); }
.contact-details dd { margin: 0; color: var(--on-dark-text); overflow-wrap: anywhere; }

/* Form card on the navy band: raised-navy panel, lighter-navy inputs and a warm wood primary button
   (a blue button would not stand out enough against navy). */
.quote-form, .form-thanks {
  background: var(--dark-raised); color: var(--on-dark-text); border-radius: var(--radius); padding: 36px;
  border: 1px solid var(--dark-line);
  box-shadow: 0 24px 50px -12px rgba(var(--slate-rgb), .55);
}
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; color: var(--on-dark); }
.req { color: var(--danger-on-dark); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--on-dark);
  background: var(--dark-field); border: 1.5px solid var(--dark-field-line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field ::placeholder { color: var(--on-dark-faint); opacity: 1; }
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  /* Arrow colour = --on-dark-muted (#C9D6E3). Data URIs can't read CSS variables, so update it here if re-theming. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9D6E3' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.field select option { color: var(--ink); background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-on-dark); box-shadow: 0 0 0 3px rgba(var(--dark-grid-rgb), .35);
}
.field .is-invalid { border-color: var(--danger-on-dark) !important; }
.file-drop {
  border: 1.5px dashed var(--dark-field-line); border-radius: var(--radius-sm); background: var(--dark-field); padding: 14px;
}
.file-drop input[type="file"] { width: 100%; font: inherit; font-size: .9375rem; color: var(--on-dark-text); }
.file-drop input[type="file"]::file-selector-button {
  font: 600 .875rem var(--font-body); margin-right: 12px; padding: 9px 14px; cursor: pointer;
  border: 1.5px solid var(--on-dark-muted); background: transparent; color: var(--on-dark); border-radius: var(--radius-sm);
}
.quote-form .file-list { margin: 10px 0 0; font: .8125rem/1.5 var(--font-mono); color: var(--on-dark-text); overflow-wrap: anywhere; }
.file-list:empty { display: none; }
.quote-form .help { font-size: .875rem; color: var(--on-dark-muted); margin: 8px 0 0; }
.quote-form .form-note { font-size: .875rem; color: var(--on-dark-muted); margin: 4px 0 18px; }
.quote-form .form-error { margin: 14px 0 0; color: var(--danger-on-dark); font-weight: 600; font-size: .9375rem; }

/* Primary button on navy: warm wood with deep-navy text (6.3:1) */
.btn-warm { background: var(--wood-light); color: var(--dark-deep); transition: background-color .2s, box-shadow .25s, transform .2s; }
.section-dark a.btn-warm { color: var(--dark-deep); }
.section-dark a.btn-outline-light { color: var(--paper); }
.section-dark a.btn-outline-light:hover { color: var(--heading); }
.btn-warm:hover, .section-dark a.btn-warm:hover { background: var(--wood-lighter); color: var(--dark-deep); box-shadow: 0 8px 20px -6px rgba(var(--slate-rgb), .6); }
/* Focus rings on navy use wood so they remain visible */
.section-dark :focus-visible, .site-footer :focus-visible, .quote-form :focus-visible, .form-thanks :focus-visible { outline-color: var(--wood-light); }

.form-thanks { text-align: center; padding: 56px 36px; }
.form-thanks:focus { outline: none; }
.form-thanks svg { width: 64px; height: 64px; margin: 0 auto 16px; fill: none; stroke: var(--wood-light); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form-thanks h3 { font-size: 1.75rem; color: var(--on-dark); }
.form-thanks p { color: var(--on-dark-muted); }
[hidden] { display: none !important; }

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--dark-deep); color: var(--on-dark-muted); padding: 64px 0 28px; font-size: .9375rem; }
.site-footer a { color: var(--on-dark-text); text-decoration: none; }
.site-footer a:hover { color: var(--wood-light); text-decoration: underline; }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand-mark { color: var(--dark-raised); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { margin: 16px 0 0; max-width: 32em; }
.footer-h { font: 500 .8125rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--wood-light); margin-bottom: 16px; }
.footer-nav li, .footer-contact li { margin-bottom: 8px; overflow-wrap: anywhere; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px;
  /* divider drawn inside the padding so it lines up with the content edges */
  background: linear-gradient(var(--dark-line), var(--dark-line)) top center / calc(100% - 48px) 1px no-repeat;
}
.footer-bottom p { margin: 0; }

/* ---------- Reveal-on-scroll (progressive enhancement; only active when JS adds .js) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process::before { display: none; }
}
@media (max-width: 960px) {
  .hero { padding: 48px 0 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { max-width: 620px; }
  .inset { right: -8px; }
  .audience-grid, .deliverables-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .faq-wrap, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-grid .section-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding-inline: 20px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .brand-name { font-size: 1.05rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero { padding-bottom: 64px; }
  .hero-art { padding-bottom: 0; }
  .inset { position: relative; width: 55%; right: auto; bottom: auto; margin: -6px 10px 0 auto; }
  .footer-bottom { background-size: calc(100% - 40px) 1px; }
  .services-grid, .audience-grid, .deliverables-grid, .portfolio-grid, .why-list { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; row-gap: 0; }
  .process::before { display: none; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; border-left: 1.5px dashed var(--wood); }
  .step:last-child { padding-bottom: 0; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding-bottom: 28px; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { margin-top: 14px; }
  .form-row.two { grid-template-columns: 1fr; gap: 0; }
  .quote-form { padding: 24px 20px; }
  .contact-details > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   v2 ANIMATIONS & INTERACTIONS
   Rules:
   - Anything that starts hidden is scoped to a class added by JavaScript (html.anim from the inline <head>
     script; .icon-plot / .process-anim / .reveal from js/main.js), so with JS off the page renders complete.
   - All motion lives inside (prefers-reduced-motion: no-preference); the reduced-motion block near the top
     of this file additionally switches off transitions/animations.
   ========================================================================== */

/* ---------- Hero drawing: static parts needed for the hover interaction ---------- */
.drawing .door-panel, .drawing .drawer-front { fill: var(--white); }
.drawing .interior-back { fill: var(--interior-fill); }
.drawing .interior-shelf { stroke: var(--stroke); stroke-width: .8; opacity: .45; }
.hero-art .door, .hero-art .drawer { transform-box: fill-box; }
.hero-art .hinge-l { transform-origin: left center; }
.hero-art .hinge-r { transform-origin: right center; }
.hero-art .drawer { transform-origin: center; }

/* Open state: hover (mouse) or .is-open (tap toggle on touch, set by js/main.js) */
.hero-art.is-open .door.hinge-l               { transform: scaleX(.66) skewY(-5deg); }
.hero-art.is-open .door.hinge-r               { transform: scaleX(.66) skewY(5deg); }
.hero-art.is-open .base-door.hinge-l          { transform: scaleX(.8) skewY(-3deg); }
.hero-art.is-open .base-door.hinge-r          { transform: scaleX(.8) skewY(3deg); }
.hero-art.is-open .drawer                     { transform: translateY(calc(var(--i) * 1.5px)) scale(1.06); filter: drop-shadow(0 3px 2px rgba(var(--slate-rgb), .24)); }
.hero-art.is-open .swing                      { stroke-dashoffset: -18; }
@media (hover: hover) and (pointer: fine) {
  .hero-art:hover .door.hinge-l               { transform: scaleX(.66) skewY(-5deg); }
  .hero-art:hover .door.hinge-r               { transform: scaleX(.66) skewY(5deg); }
  .hero-art:hover .base-door.hinge-l          { transform: scaleX(.8) skewY(-3deg); }
  .hero-art:hover .base-door.hinge-r          { transform: scaleX(.8) skewY(3deg); }
  .hero-art:hover .drawer                     { transform: translateY(calc(var(--i) * 1.5px)) scale(1.06); filter: drop-shadow(0 3px 2px rgba(var(--slate-rgb), .24)); }
  .hero-art:hover .swing                      { stroke-dashoffset: -18; }
}

/* ---------- Portfolio placeholder overlay (hidden until hover) ---------- */
.ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background-image:
    linear-gradient(to bottom, transparent 0, rgba(var(--accent-rgb), .10) 44%, rgba(var(--accent-rgb), .55) 50%, rgba(var(--accent-rgb), .10) 56%, transparent 100%),
    linear-gradient(rgba(var(--accent-rgb), .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), .14) 1px, transparent 1px);
  background-size: 100% 26%, 12px 12px, 12px 12px;
  background-repeat: no-repeat, repeat, repeat;
  background-position: 0 -45%, 0 0, 0 0;
}
.ph-label { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
@media (hover: hover) {
  .portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -12px rgba(var(--slate-rgb), .28); border-color: var(--wood); }
  .portfolio-card:hover .ph::after { opacity: 1; }
  .portfolio-card:hover .ph-label { transform: translateY(-3px); box-shadow: 0 6px 14px -6px rgba(var(--slate-rgb), .32); }
}

@media (prefers-reduced-motion: no-preference) {

  /* ---------- Hover transitions for the hero drawing ---------- */
  .hero-art .door    { transition: transform .7s cubic-bezier(.2,.75,.25,1); }
  .hero-art .drawer  { transition: transform .5s cubic-bezier(.2,.75,.25,1) calc(var(--i) * 70ms), filter .5s calc(var(--i) * 70ms); }
  .hero-art .swing   { transition: stroke-dashoffset .9s ease; }

  /* ---------- 1. Hero "pen plotter" sequence (≈3.5s), only when <html class="anim"> ---------- */
  html.anim .plot .draw {
    stroke-dasharray: 1; stroke-dashoffset: 1;       /* elements carry pathLength="1" */
    animation:
      plot var(--t, .6s) cubic-bezier(.45,.05,.55,.95) var(--d, 0s) forwards,
      undash .01s linear calc(var(--d, 0s) + var(--t, .6s)) forwards;  /* restore solid strokes afterwards */
  }
  html.anim .plot .fade { opacity: 0; animation: fadeIn var(--t, .45s) ease var(--d, 0s) forwards; }
  html.anim .plot .pop {
    opacity: 0; transform-box: fill-box; transform-origin: center;
    animation: popIn .45s cubic-bezier(.3,1.45,.5,1) var(--d, 0s) forwards;
  }
  html.anim .plot .extend-x, html.anim .plot .extend-y { transform-box: fill-box; transform-origin: center; }
  html.anim .plot .extend-x { transform: scaleX(0); animation: extendX .55s cubic-bezier(.2,.7,.2,1) var(--d, 0s) forwards; }
  html.anim .plot .extend-y { transform: scaleY(0); animation: extendY .6s cubic-bezier(.2,.7,.2,1) var(--d, 0s) forwards; }
  html.anim .hero .inset { opacity: 0; animation: insetUp .7s cubic-bezier(.2,.8,.2,1) 2.85s forwards; }

  /* Hero copy rises in alongside the drawing */
  html.anim .hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  html.anim .hero-copy > :nth-child(2) { animation-delay: .1s; }
  html.anim .hero-copy > :nth-child(3) { animation-delay: .2s; }
  html.anim .hero-copy > :nth-child(4) { animation-delay: .3s; }
  html.anim .hero-copy > :nth-child(5) { animation-delay: .4s; }
  html.anim .eyebrow-line { animation: tickIn .7s cubic-bezier(.2,.7,.2,1) .25s both; }

  /* ---------- 3. Service icons draw themselves (classes/pathLength added by JS) ---------- */
  .icon-plot .icon > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .icon-plot .is-drawn .icon > * {
    animation:
      plot .9s cubic-bezier(.45,.05,.55,.95) var(--d, 0s) forwards,
      undash .01s linear calc(var(--d, 0s) + .9s) forwards;
  }

  /* ---------- Section eyebrow tick "measures" itself in ---------- */
  .js .reveal .section-num::before { transform: scaleX(0); transition: transform .7s cubic-bezier(.2,.7,.2,1) .25s; }
  .js .reveal.is-visible .section-num::before { transform: scaleX(1); }

  /* ---------- 5. Portfolio scan line ---------- */
  .portfolio-card:hover .ph::after { animation: scan 2.4s linear infinite; }

  /* ---------- 6. Slowly drifting blueprint grid in dark sections ---------- */
  .section-dark::before { animation: gridDrift 200s linear infinite; }

  /* ---------- 4. Process: progress transitions ---------- */
  .process-anim::after, .process-anim .step::before { transition: transform .18s linear; }
  .process-anim .step-num { transition: background-color .45s, color .45s, border-color .45s, box-shadow .45s; }
  .process-anim .step h3, .process-anim .step p { transition: opacity .5s; }
  .process-anim .step.is-lit .step-num { animation: stepPop .5s cubic-bezier(.3,1.5,.5,1); }
}

/* ---------- 4. Process progress (only once JS adds .process-anim; motion-safe only) ---------- */
.process-anim::after { /* solid line that fills along the dashed one */
  content: ""; position: absolute; top: 26px; left: 28px; right: calc((100% - 80px) / 5 - 28px); height: 0;
  border-top: 2px solid var(--accent); transform-origin: left center; transform: scaleX(var(--p, 0));
}
.process-anim .step:last-child:not(.is-lit) .step-num { background: var(--paper-2); border-color: var(--heading); color: var(--heading); }
.process-anim .step:not(.is-lit) h3, .process-anim .step:not(.is-lit) p { opacity: .7; }
.process-anim .step.is-lit .step-num { border-color: var(--accent); color: var(--accent); background: var(--white); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .12); }
.process-anim .step.is-lit:last-child .step-num { border-color: var(--dark); color: var(--wood-light); background: var(--dark); }
@media (max-width: 1100px) { .process-anim::after { display: none; } }
@media (max-width: 640px) {
  .process-anim .step:not(:last-child)::before { /* vertical segment fill between markers */
    content: ""; position: absolute; left: 26.5px; top: 56px; bottom: 0; width: 0;
    border-left: 2px solid var(--accent); transform-origin: top center; transform: scaleY(var(--f, 0));
  }
}

/* ---------- Keyframes ---------- */
@keyframes plot    { to { stroke-dashoffset: 0; } }
@keyframes undash  { from, to { stroke-dasharray: none; stroke-dashoffset: 0; } }
@keyframes fadeIn  { to { opacity: var(--to, 1); } }  /* --to lets semi-transparent items keep their design opacity */
@keyframes popIn   { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes extendX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes extendY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes insetUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes rise    { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tickIn  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes scan    { from { background-position: 0 -45%, 0 0, 0 0; } to { background-position: 0 145%, 12px 12px, 12px 12px; } }
@keyframes gridDrift { from { background-position: 0 0, 0 0, 0 0, 0 0; } to { background-position: 128px 128px, 128px 128px, 128px 128px, 128px 128px; } }  /* 128px = seamless for both grids */
@keyframes stepPop { 0% { transform: scale(1); } 45% { transform: scale(1.12); } 100% { transform: scale(1); } }


/* ==========================================================================
   v4 MULTI-PAGE ADDITIONS: services dropdown, service pages, "All services" grid
   ========================================================================== */

/* ---------- Services dropdown (desktop) ---------- */
.nav-item.has-dd { position: relative; }
.nav-dd-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); font: 500 .9375rem/1.65 var(--font-body); cursor: pointer;
}
.nav-dd-toggle:hover, .has-dd.is-current > .nav-dd-toggle, .nav-dd-toggle[aria-expanded="true"] { color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.nav-dd-toggle .chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .25s; }
.nav-dd-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-dd {
  position: absolute; top: calc(100% + 10px); left: -12px; z-index: 120; width: 360px; padding: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px -16px rgba(var(--slate-rgb), .35);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility 0s linear .2s;
}
.nav-dd::before { /* hover bridge so the menu doesn't close while the pointer crosses the gap */
  content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
}
/* :focus-within is the no-JS keyboard fallback; with JS the button/keyboard handlers control .is-open */
.has-dd.is-open > .nav-dd, html:not(.js) .has-dd:focus-within > .nav-dd {
  opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s, visibility 0s;
}
@media (hover: hover) and (pointer: fine) and (min-width: 1041px) {
  .has-dd:hover > .nav-dd { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s, visibility 0s; }
  .has-dd:hover > .nav-dd-toggle .chev { transform: rotate(180deg); }
}
.primary-nav .nav-dd a {
  display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none;
}
.nav-dd .dd-icon {
  grid-row: span 2; width: 36px; height: 36px; padding: 7px; border-radius: 8px;
  background: var(--paper); border: 1px solid var(--line);
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.nav-dd .dd-title { font-weight: 600; font-size: .9375rem; color: var(--heading); line-height: 1.3; }
.nav-dd .dd-desc { font-size: .8125rem; color: var(--muted); line-height: 1.35; }
.primary-nav .nav-dd a:hover, .primary-nav .nav-dd a:focus-visible { background: var(--paper); }
.primary-nav .nav-dd a:hover .dd-title { color: var(--accent); }
.primary-nav .nav-dd a[aria-current="page"] { background: rgba(var(--accent-rgb), .08); }
.primary-nav .nav-dd a[aria-current="page"] .dd-title { color: var(--accent); }

/* ---------- Services dropdown inside the mobile menu: expandable group ---------- */
@media (max-width: 1040px) {
  .primary-nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav-dd-toggle {
    width: 100%; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line);
    border-radius: 0; font-size: 1.0625rem; background: transparent !important;
  }
  .nav-dd {
    position: static; width: auto; padding: 4px 0 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    box-shadow: none; background: transparent; display: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav-dd::before { display: none; }
  .has-dd.is-open > .nav-dd { display: grid; }
  html:not(.js) .has-dd > .nav-dd { display: grid; }   /* no JS: show the group expanded */
  .primary-nav .nav-dd a { border-bottom: 0; padding: 10px 4px 10px 8px; font-size: 1rem; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font: 500 .8125rem/1.4 var(--font-mono); letter-spacing: .04em; color: var(--muted); margin-bottom: 18px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); color: var(--muted); opacity: .6; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--heading); }

/* ---------- Service page hero ---------- */
.page-hero .hero-art { padding-bottom: 0; }
.page-hero h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.75rem); }

/* ---------- Split (text + media) ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.split .section-head { margin-bottom: 0; }
.prose p { color: var(--muted); font-size: 1.0625rem; }
.prose p:first-of-type { color: var(--ink); font-size: 1.1875rem; }
.checks { display: grid; gap: 10px; margin-top: 22px; }
.checks li { position: relative; padding-left: 28px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* Media placeholder (image slot to be filled; see README "Images") */
.media-slot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.media-slot .ph { aspect-ratio: 3 / 2; border-bottom: 0; }
.media-slot .ph-label { max-width: 80%; line-height: 1.5; }
.media-slot .ph-label small { display: block; text-transform: none; letter-spacing: 0; font-size: .75rem; color: var(--muted); margin-top: 4px; }
.media-slot figcaption { padding: 12px 16px; font-size: .875rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- What's included cards ---------- */
.incl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.incl-card { padding: 26px 24px 24px; }
.incl-card .incl-num { font: 500 .8125rem/1 var(--font-mono); color: var(--wood-dark); letter-spacing: .06em; }
.incl-card h3 { margin-top: 12px; }

/* ---------- Why us on a light background ---------- */
.why-list.on-light li { border-top-color: var(--line); }
.why-list.on-light li::before { background: var(--wood); }
.why-list.on-light p { color: var(--muted); }
.why-list.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- CTA band ---------- */
.cta-band { padding: 88px 0; }
.cta-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.cta-inner h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); margin-bottom: 12px; }
.cta-inner p { margin: 0; font-size: 1.125rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- Home: "All services" tiles ---------- */
.svc-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-tile {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px 22px 20px; position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
}
.svc-tile .icon { width: 40px; height: 40px; }
.svc-tile h3 { font-size: 1.125rem; margin: 6px 0 0; }
.svc-tile p { margin: 0; font-size: .9375rem; color: var(--muted); flex: 1; }
.svc-tile .tile-go { font-weight: 600; font-size: .9375rem; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.svc-tile .tile-go::after { content: "→"; transition: transform .25s; }
.svc-tile:hover { border-color: var(--wood); box-shadow: 0 16px 32px -14px rgba(var(--slate-rgb), .3); transform: translateY(-3px); color: var(--ink); }
.svc-tile:hover .tile-go::after { transform: translateX(4px); }
.svc-tile.is-lead { background: var(--dark); border-color: var(--dark); }
.svc-tile.is-lead h3 { color: var(--on-dark); }
.svc-tile.is-lead p { color: var(--on-dark-muted); }
.svc-tile.is-lead .tile-go { color: var(--wood-light); }
.svc-tile.is-lead .icon { stroke: var(--wood-light); }
.svc-tile .tag { position: absolute; top: 16px; right: 16px; font: 500 .6875rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--wood-light); }
.svc-tile.is-ask { background: transparent; border-style: dashed; border-color: #b3a790; }

/* "Learn more" link on home service cards */
.card-link { display: inline-flex; margin-top: 14px; font-weight: 600; font-size: .9375rem; text-decoration: none; }
.card-link::after { content: " →"; white-space: pre; }
.card-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */

@media (max-width: 1100px) {
  .svc-tiles { grid-template-columns: repeat(2, 1fr); }
  .incl-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .split, .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-actions { justify-content: flex-start; }
  .why-list.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .svc-tiles, .incl-grid, .why-list.three { grid-template-columns: 1fr; }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 64px 0; }
}

/* ---------- v4: extra drawing classes used by the service-page hero drawings ---------- */
.drawing .bend { fill: none; stroke: var(--accent); stroke-width: .9; stroke-dasharray: 8 3 2 3; }
.drawing .hid  { fill: none; stroke: var(--stroke); stroke-width: .8; stroke-dasharray: 4 3; opacity: .6; }
.drawing .pt   { fill: var(--accent); opacity: .75; }
.drawing .pt:nth-of-type(3n)  { opacity: .45; }
.drawing .pt:nth-of-type(5n)  { fill: var(--wood); opacity: .7; }
.drawing .fill-soft { fill: var(--paper); }
html.anim .plot .pt.fade { animation-name: fadeInPt; }
@keyframes fadeInPt { from { opacity: 0; } to { opacity: .75; } }

/* Four-panel deliverables (scan pages: software, input, output, deliverables) */
.deliverables-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .deliverables-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .deliverables-grid.four { grid-template-columns: 1fr; } }

/* ==========================================================================
   v5: Service-page hero photo + overlapping drawing card, and section images
   Desktop: the photo fills the right half of the hero and bleeds to the window edge; the white
   drawing card overlaps its left edge. Mobile: the photo becomes a full-width band behind the card.
   ========================================================================== */
.page-hero { padding: 72px 0 80px; }
.page-hero .hero-grid { align-items: stretch; }
.page-hero .hero-copy { align-self: center; }
.hero-visual { position: relative; display: flex; align-items: center; padding: 24px 0; min-height: 100%; }
.hero-photo {
  position: absolute; z-index: 0; top: -72px; bottom: -80px; left: 20%;
  /* extend to the viewport's right edge (the hero clips any overshoot) */
  right: calc(-1 * (max(0px, (100vw - var(--container)) / 2) + 24px));
  overflow: hidden; background: var(--dark);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo::after { /* subtle navy wash so every photo sits in the palette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--slate-rgb), .42) 0%, rgba(var(--slate-rgb), .08) 45%, rgba(var(--slate-rgb), .12) 100%),
    linear-gradient(0deg, rgba(var(--slate-rgb), .28), rgba(var(--slate-rgb), 0) 40%);
}
.hero-visual .hero-art { position: relative; z-index: 1; width: 86%; }
.hero-visual .sheet { box-shadow: 0 24px 48px -18px rgba(var(--slate-rgb), .55), 0 2px 6px rgba(var(--slate-rgb), .12); }
.page-hero .hero-grid-bg { right: 45%; }

@media (max-width: 960px) {
  /* Photo becomes a full-width 16:9 band; the drawing card overlaps its lower edge */
  .page-hero { padding: 48px 0 56px; }
  .page-hero .hero-grid { gap: 36px; }
  .hero-visual { display: block; padding: calc(min(56.25vw, 540px) - 96px) 0 0; }
  .hero-photo { top: 0; bottom: auto; height: min(56.25vw, 540px); left: -24px; right: -24px; }
  .hero-photo img { object-position: 50% 50% !important; }
  .hero-photo::after { background: linear-gradient(0deg, rgba(var(--slate-rgb), .35) 0%, rgba(var(--slate-rgb), .05) 55%); }
  .hero-visual .hero-art { width: auto; max-width: 560px; margin-inline: auto; padding-inline: 16px; }
  .page-hero .hero-grid-bg { right: 0; }
}
@media (max-width: 640px) {
  .hero-photo { left: -20px; right: -20px; height: 56.25vw; }
  .hero-visual { padding-top: calc(56.25vw - 64px); }
  .hero-visual .hero-art { padding-inline: 8px; }
}

/* Section image (overview) */
.media-slot.has-image { background: var(--dark); }
.media-pic, .media-pic img { display: block; width: 100%; height: auto; }
.media-pic img { aspect-ratio: 3 / 2; object-fit: cover; }
.media-pic.is-wide img { aspect-ratio: 16 / 9; }


/* ==========================================================================
   v6: Contact page
   ========================================================================== */
.contact-hero { padding: 64px 0 56px; }
.contact-hero .hero-copy { max-width: 760px; }
.contact-hero .lead { margin-bottom: 28px; }
.contact-hero .hero-grid-bg { right: 0; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-form-col .section-head { margin-bottom: 32px; }
.contact-aside { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }

/* Checkbox row inside the navy form card */
.check-field { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.check-field input[type="checkbox"] {
  width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--wood-light); cursor: pointer;
}
.check-field label { margin: 0; cursor: pointer; }
.check-field .help { display: block; font-weight: 400; margin-top: 4px; }

/* Contact details card (light) */
.contact-card { padding: 28px; }
.contact-card-h { font-size: 1.5rem; margin-bottom: 16px; }
.contact-list { margin: 0 0 24px; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font: 500 .75rem/1.9 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--wood-dark); }
.contact-list dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.contact-card-sub { font-size: 1.0625rem; margin-bottom: 12px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip-list li {
  font: 500 .75rem/1 var(--font-mono); letter-spacing: .03em; color: var(--heading);
  padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper);
}
.contact-note { font-size: .875rem; color: var(--muted); margin: 0; }
.map-slot .ph { aspect-ratio: 16 / 9; }

/* Four-step timeline */
.process.four { grid-template-columns: repeat(4, 1fr); }
.process.four::before, .process-anim.four::after { right: calc((100% - 60px) / 4 - 28px); }

/* Home: compact contact CTA band */
.home-contact .section-num { margin-bottom: 14px; }

@media (max-width: 1100px) {
  .process.four { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process.four::before, .process-anim.four::after { display: none; }
}
@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-aside { position: static; }
}
@media (max-width: 640px) {
  .contact-hero { padding: 40px 0 40px; }
  .contact-card { padding: 22px 20px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .process.four { grid-template-columns: 1fr; row-gap: 0; }
}
.primary-nav > ul > li > a[aria-current="page"]:not(.btn) { color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.contact-card .contact-card-h { font-size: 1.5rem; margin-bottom: 16px; }
.media-slot { margin: 0; }
