/* ==========================================================================
   Villa Ideas — Kitchen & Wardrobe Remodelling, UAE
   Design direction: "Measured" — the language of a technical drawing.
   Hairline dimension rules, mono annotations, drawn line-art, warm plaster
   surfaces, and the brand orange used as a single accent.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour — derived from the logo (#FF671F sampled from the mark) */
  --ink:       #12100F;   /* warm near-black: dark surfaces, headings */
  --graphite:  #221E1B;   /* secondary dark surface */
  --slate:     #3A3430;   /* dark surface borders */
  --bone:      #F2F1EE;   /* plaster white: page base */
  --plaster:   #E6E4DE;   /* tinted panel */
  --line:      #D2CEC6;   /* hairline rules on light */
  --line-dk:   #3B3531;   /* hairline rules on dark */
  --muted:     #6C6660;   /* body text, secondary */
  --muted-dk:  #A9A29A;   /* body text on dark */
  --orange:    #FF671F;   /* brand */
  --ember:     #C9450C;   /* orange for small text on light (AA contrast) */
  --orange-05: rgba(255, 103, 31, 0.05);
  --orange-12: rgba(255, 103, 31, 0.12);
  --orange-28: rgba(255, 103, 31, 0.28);

  /* Type */
  /* --f-display, --wdth-*, --track-* are injected per page by the generator
     (see DISPLAY in build/content.py). These are the fallbacks. */
  --f-display: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --wdth-body: 100;
  --wdth-hero: 92;
  --track: -0.028em;
  --track-hero: -0.034em;
  --f-body:    "Instrument Sans", system-ui, -apple-system, sans-serif;
  --f-mono:    "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Sized down from 5.1rem — the hero copy now sits on a photograph and has
     to stay legible inside one viewport height alongside the stat rail. */
  --t-hero:  clamp(2.1rem, 4.5vw, 3.7rem);
  --t-h1:    clamp(2.3rem, 5vw, 3.9rem);
  --t-h2:    clamp(1.85rem, 3.6vw, 2.9rem);
  --t-h3:    clamp(1.25rem, 2vw, 1.55rem);
  --t-h4:    clamp(1.05rem, 1.4vw, 1.18rem);
  --t-body:  clamp(1rem, 1.05vw, 1.075rem);
  --t-sm:    0.9rem;
  --t-xs:    0.775rem;

  /* Space + layout */
  --wrap: 1280px;
  --gut: clamp(1.15rem, 4vw, 2.75rem);
  --sec-y: clamp(4.5rem, 9vw, 8.5rem);
  --r: 4px;                 /* technical, near-square */
  --r-pill: 999px;          /* echoes the circular badge in the logo */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --hdr-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 20px);
}

body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.62;
  color: var(--muted);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: var(--track);
  color: var(--ink);
  font-variation-settings: "wdth" var(--wdth-body);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.02em; }
h4 { font-size: var(--t-h4); letter-spacing: -0.012em; line-height: 1.25; }
p  { text-wrap: pretty; }

::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: 50%; top: -100px; z-index: 200;
  transform: translateX(-50%);
  background: var(--ink); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--r) var(--r);
  font: 500 var(--t-sm)/1 var(--f-mono);
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 0; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: 880px; }

.sec { padding-block: var(--sec-y); position: relative; }
.sec--tight { padding-block: clamp(3rem, 5.5vw, 5rem); }
.sec--flush-t { padding-top: 0; }
.sec--flush-b { padding-bottom: 0; }

.sec--plaster { background: var(--plaster); }
.sec--ink { background: var(--ink); }
.sec--ink h1, .sec--ink h2, .sec--ink h3, .sec--ink h4 { color: #fff; }
.sec--ink p, .sec--ink li { color: var(--muted-dk); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.stack   { display: flex; flex-direction: column; }
.stack-s { gap: 0.6rem; }
.stack-m { gap: 1.15rem; }
.stack-l { gap: 2rem; }

.lede { font-size: clamp(1.06rem, 1.5vw, 1.25rem); line-height: 1.6; }
.dim-text { color: var(--muted); }
.sec--ink .dim-text { color: var(--muted-dk); }

/* --------------------------------------------------------------------------
   4. Signature: eyebrow + dimension rule
   The dimension rule is the motif that runs through the whole site — a
   hairline with arrow terminals and a mono label, exactly as a measurement
   would be annotated on a shop drawing.
   -------------------------------------------------------------------------- */
.eyebrow {
  font: 500 var(--t-xs)/1 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--orange);
  flex: none;
}
.sec--ink .eyebrow { color: var(--orange); }

.dim {
  --dim-w: 100%;
  position: relative;
  width: var(--dim-w);
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dim::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 1px;
  background: var(--line);
  transform: scaleX(var(--dim-scale, 1));
  transform-origin: left center;
  transition: transform 0.9s var(--ease);
}
.dim__cap {
  position: absolute;
  top: 50%;
  width: 1px; height: 11px;
  background: var(--line);
  transform: translateY(-50%);
}
.dim__cap--s { left: 0; }
.dim__cap--e { right: 0; }
.dim__label {
  position: relative;
  background: var(--bone);
  padding-inline: 0.7rem;
  font: 400 var(--t-xs)/1 var(--f-mono);
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.sec--plaster .dim__label { background: var(--plaster); }
.sec--ink .dim__label { background: var(--ink); color: var(--muted-dk); }
.sec--ink .dim::before, .sec--ink .dim__cap { background: var(--line-dk); }

/* Section heading block */
.shead { display: grid; gap: 1.1rem; max-width: 62ch; }
.shead--split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  max-width: none;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.shead--split .shead__t { display: grid; gap: 1.1rem; }
.shead--center { justify-items: center; text-align: center; margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  line-height: 1;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg.i-arrow { transform: translateX(3px); }

.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--ember); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--graphite); }

.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn--ghost-lt { border-color: rgba(255,255,255,0.28); color: #fff; }
.btn--ghost-lt:hover { border-color: #fff; background: #fff; color: var(--ink); }

.btn--wa { background: #1FA855; color: #fff; }
.btn--wa:hover { background: #178544; }

.btn--sm { padding: 0.7rem 1.2rem; font-size: 0.875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Text link with animated rule */
.tlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-mono); font-size: var(--t-sm);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 0.35rem;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease), color 0.25s var(--ease);
}
.tlink:hover { background-size: 100% 1px; color: var(--ember); }
.tlink svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }
.sec--ink .tlink { color: #fff; }
.sec--ink .tlink:hover { color: var(--orange); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--hdr-h);
  display: flex; align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr__in { display: flex; align-items: center; gap: 1.5rem; width: 100%; }
.hdr__logo { flex: none; display: block; }
.hdr__logo img { height: 42px; width: auto; transition: opacity 0.3s var(--ease); }
.hdr__logo .lg-dark { display: none; }

/* Solid state (scrolled, or any page without a dark hero) */
.hdr.is-solid, body:not(.has-dark-hero) .hdr {
  background: rgba(242, 241, 238, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.hdr.is-solid .lg-light, body:not(.has-dark-hero) .hdr .lg-light { display: none; }
.hdr.is-solid .lg-dark,  body:not(.has-dark-hero) .hdr .lg-dark  { display: block; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.925rem; font-weight: 500; color: #fff;
  border-radius: var(--r);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.nav__link svg { width: 14px; height: 14px; opacity: 0.7; transition: transform 0.3s var(--ease); }
.hdr.is-solid .nav__link, body:not(.has-dark-hero) .nav__link { color: var(--ink); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--orange); }
.nav__item:hover > .nav__link svg { transform: rotate(180deg); }

/* Dropdown */
.nav__drop {
  position: absolute; top: calc(100% + 6px); left: -0.5rem;
  min-width: 268px; padding: 0.55rem;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 22px 48px -20px rgba(18,16,15,0.3);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.nav__item:hover .nav__drop,
.nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__drop a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.62rem 0.7rem; border-radius: var(--r);
  font-size: 0.92rem; font-weight: 500; color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__drop a svg { width: 17px; height: 17px; color: var(--orange); flex: none; }
.nav__drop a:hover { background: var(--orange-05); color: var(--ember); }
.nav__drop small {
  display: block; font-family: var(--f-mono); font-size: 0.7rem;
  color: var(--muted); letter-spacing: 0.03em; font-weight: 400;
}

.hdr__cta { flex: none; margin-left: 0.5rem; }

/* Burger */
.burger {
  display: none; width: 42px; height: 42px; margin-left: auto;
  align-items: center; justify-content: center; border-radius: var(--r);
}
.burger span {
  display: block; width: 21px; height: 1.5px; background: #fff;
  position: relative; transition: background 0.2s var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 21px; height: 1.5px;
  background: inherit; transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.burger span::before { top: -6.5px; }
.burger span::after  { top: 6.5px; }
.hdr.is-solid .burger span, body:not(.has-dark-hero) .burger span { background: var(--ink); }
body.nav-open .burger span { background: transparent !important; }
body.nav-open .burger span::before { top: 0; transform: rotate(45deg); background: var(--ink); }
body.nav-open .burger span::after  { top: 0; transform: rotate(-45deg); background: var(--ink); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 99;
  background: var(--bone);
  padding: 1.5rem var(--gut) 2rem;
  overflow-y: auto;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
body.nav-open .drawer { opacity: 1; visibility: visible; transform: translateY(0); }
body.nav-open { overflow: hidden; }
.drawer a.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: 1.35rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink);
}
/* Without an explicit size these inherit the global `svg { max-width: 100%;
   height: auto }` and stretch to fill the row — they were rendering at 267px. */
.drawer a.drawer__top svg {
  width: 17px; height: 17px; flex: none;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.drawer a.drawer__top:hover svg,
.drawer a.drawer__top:active svg { color: var(--orange); transform: translateX(3px); }
.drawer__sub { padding: 0.35rem 0 0.9rem; display: grid; gap: 0.1rem; }
.drawer__sub a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0; font-size: 0.95rem; color: var(--muted);
}
.drawer__sub a svg { width: 16px; height: 16px; color: var(--orange); }
.drawer__foot { margin-top: 1.75rem; display: grid; gap: 0.7rem; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
/* Full-viewport hero. The photograph is the surface; the drafting grid,
   the line-art and the dimension rail are the drawing laid over the top —
   same idea as the framed version, just at room scale. */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;          /* discounts mobile browser chrome */
  display: flex;
  flex-direction: column;
  background: var(--ink);
  padding-top: calc(var(--hdr-h) + clamp(1.5rem, 4vw, 3rem));
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
  overflow: hidden;
}

/* Layer 1 — the footage. The clip carries its own camera move, so there is
   no CSS drift here; a Ken Burns on top of a moving camera reads as seasick.
   The poster covers the gap before the first frame decodes, and is also what
   shows for reduced-motion visitors (see §18). */
.hero__bg { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.hero__bg img,
.hero__bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% center;   /* holds the island in frame as it narrows */
}

/* Layer 2 — the scrim. Heaviest under the copy, thinnest over the island,
   with a floor gradient so the stat rail keeps its contrast. */
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg,
      rgba(18,16,15,0.95) 0%,
      rgba(18,16,15,0.88) 24%,
      rgba(18,16,15,0.56) 44%,
      rgba(18,16,15,0.18) 66%,
      rgba(18,16,15,0.32) 100%),
    linear-gradient(to top,
      rgba(18,16,15,0.88) 0%,
      rgba(18,16,15,0.26) 26%,
      rgba(18,16,15,0) 50%);
}

/* Layer 3 — drafting paper */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(115% 95% at 24% 30%, #000 16%, transparent 72%);
  -webkit-mask-image: radial-gradient(115% 95% at 24% 30%, #000 16%, transparent 72%);
  pointer-events: none;
}

/* Layer 4 — the elevation line-art. Kept faint: on flat ink it could carry
   0.16 opacity, but over a photograph anything stronger competes with the
   room instead of annotating it. */
.hero__blueprint {
  position: absolute;
  right: -9%; top: 46%; transform: translateY(-50%);
  width: min(620px, 50vw); height: auto;
  opacity: 0.15; pointer-events: none; z-index: 1;
}
.hero__blueprint path, .hero__blueprint circle, .hero__blueprint line {
  stroke: var(--orange); fill: none;
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}

/* Layer 5 — the words */
.hero__in {
  position: relative; z-index: 2;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;   /* copy centres, rail sits on the floor */
  align-items: center;
}
.hero h1 {
  font-size: var(--t-hero);
  color: #fff;
  letter-spacing: var(--track-hero);
  font-variation-settings: "wdth" var(--wdth-hero);
  max-width: 17ch;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__copy {
  display: grid; gap: clamp(0.9rem, 1.7vw, 1.4rem);
  justify-items: start; max-width: 40ch;
  padding-block: clamp(0.75rem, 3vw, 2rem);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 14px 44px rgba(0,0,0,0.45);
}
.hero__copy .lede {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  color: rgba(255,255,255,0.85);
  max-width: 45ch;
}
.hero__copy .btn { text-shadow: none; }
.hero__note {
  font: 400 var(--t-xs)/1.5 var(--f-mono);
  color: rgba(255,255,255,0.74); letter-spacing: 0.06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.55rem;
}
.hero__note svg { width: 14px; height: 14px; flex: none; color: var(--orange); }

/* Stat rail — ruler ticks */
.rail {
  border-top: 1px solid rgba(255,255,255,0.18);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.rail__i {
  position: relative;
  padding: clamp(1.1rem, 2.2vw, 1.7rem) 1.4rem 0.2rem 0;
  display: grid; gap: 0.28rem;
}
.rail__i::before {
  content: ""; position: absolute; left: 0; top: -1px;
  width: 1px; height: 13px; background: var(--orange);
}
.rail__i + .rail__i { padding-left: 1.4rem; }
.rail__n {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: #fff;
  letter-spacing: -0.03em; line-height: 1;
}
.rail__l {
  font: 400 var(--t-xs)/1.45 var(--f-mono);
  color: var(--muted-dk); letter-spacing: 0.07em; text-transform: uppercase;
}

/* Page header (interior pages) — the same construction as the home hero:
   a photograph with the ink treatment laid over it, at banner height. */
.phero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(340px, 46vh, 520px);
  background: var(--ink);
  padding-top: calc(var(--hdr-h) + clamp(2.25rem, 5vw, 4rem));
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
  overflow: hidden;
}
.phero__bg { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.phero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% center;
}
.phero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg,
      rgba(18,16,15,0.95) 0%,
      rgba(18,16,15,0.90) 26%,
      rgba(18,16,15,0.64) 50%,
      rgba(18,16,15,0.26) 76%,
      rgba(18,16,15,0.42) 100%),
    linear-gradient(to top,
      rgba(18,16,15,0.82) 0%,
      rgba(18,16,15,0.24) 38%,
      rgba(18,16,15,0) 68%);
}
.phero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(100% 80% at 20% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(100% 80% at 20% 30%, #000, transparent 75%);
  pointer-events: none;
}
/* This element is also the .wrap, so it has to keep the wrap's width —
   capping it at 60ch here left margin-inline:auto to centre the whole block
   in the viewport, pushing the heading off the logo's line. Cap the lines
   instead of the container. */
.phero__in {
  position: relative; z-index: 2;
  display: grid; gap: 1.35rem;
  max-width: var(--wrap);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 14px 44px rgba(0,0,0,0.4);
}
.phero__in > * { max-width: 60ch; }
.phero h1 { color: #fff; }
.phero .lede { color: rgba(255,255,255,0.85); }
.crumb {
  font: 400 var(--t-xs)/1 var(--f-mono);
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7);
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.crumb a:hover { color: var(--orange); }
.crumb span { color: rgba(255,255,255,0.35); }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.sec--plaster .card { background: var(--bone); }
.card:hover {
  border-color: var(--orange-28);
  transform: translateY(-3px);
  box-shadow: 0 24px 46px -30px rgba(18,16,15,0.5);
}
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--plaster); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__body { padding: clamp(1.25rem, 2vw, 1.7rem); display: grid; gap: 0.7rem; flex: 1; }

/* Row variant — photograph down the left, copy on the right. Used where the
   grid is two-up and a stacked card would leave the image squat and the
   column too narrow to read. */
.card--row { flex-direction: row; align-items: stretch; }
.card--row .card__media {
  flex: none;
  width: clamp(190px, 38%, 260px);
  aspect-ratio: auto;          /* height comes from the copy beside it */
  align-self: stretch;
}
.card--row .card__body { min-width: 0; }
.card__media picture { display: block; width: 100%; height: 100%; }
.card__body > .tlink { margin-top: auto; padding-top: 0.4rem; justify-self: start; }
.card__ix {
  position: absolute; top: 0.85rem; left: 0.85rem;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--orange); color: #fff;
  display: grid; place-items: center;
}
.card__ix svg { width: 19px; height: 19px; }
.card p { font-size: 0.965rem; }

/* Feature list inside cards */
.flist { display: grid; gap: 0.5rem; padding: 0; margin: 0.15rem 0 0; list-style: none; }
.flist li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.93rem; line-height: 1.5;
}
.flist li svg { width: 15px; height: 15px; color: var(--orange); flex: none; margin-top: 0.28rem; }
.sec--ink .flist li { color: var(--muted-dk); }

/* Reason grid — hairline cells, no numbering (this is a set, not a sequence) */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.reason {
  padding: clamp(1.6rem, 2.8vw, 2.4rem) clamp(1.2rem, 2.2vw, 2rem);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid; gap: 0.75rem; align-content: start;
  transition: background 0.3s var(--ease);
}
.reason:nth-child(3n) { border-right: 0; }
.reason:hover { background: var(--orange-05); }
.reason__ic {
  width: 38px; height: 38px; border-radius: var(--r-pill);
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--ember); transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.reason:hover .reason__ic { background: var(--orange); border-color: var(--orange); color: #fff; }
.reason__ic svg { width: 18px; height: 18px; }
.reason p { font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   9. Process + the build-schedule signature
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-dk); }
.step {
  padding: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1.1rem, 2vw, 1.8rem) clamp(1.5rem, 2.6vw, 2.25rem) 0;
  position: relative; display: grid; gap: 0.8rem; align-content: start;
}
.step + .step { padding-left: clamp(1.1rem, 2vw, 1.8rem); border-left: 1px solid var(--line-dk); }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 0; height: 2px; background: var(--orange);
  transition: width 1s var(--ease);
}
.step.is-in::before { width: 100%; }
.step__n {
  font: 500 var(--t-xs)/1 var(--f-mono);
  letter-spacing: 0.14em; color: var(--orange);
}
.step h3 { color: #fff; }
.step p { font-size: 0.95rem; }

/* Build schedule — bar length encodes the real quoted duration */
.sched {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line-dk);
  border-radius: var(--r);
  padding: clamp(1.3rem, 2.6vw, 2rem);
  background: var(--graphite);
}
.sched__hd {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: baseline; justify-content: space-between;
  margin-bottom: 1.4rem;
}
.sched__hd h3 { font-size: 1.15rem; }
.sched__hd p { font: 400 var(--t-xs)/1.4 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; }
.sched__axis {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-dk); margin-bottom: 0.9rem;
}
.sched__tick {
  position: relative; padding-top: 0.55rem;
  font: 400 0.7rem/1 var(--f-mono); color: var(--muted-dk); letter-spacing: 0.05em;
}
.sched__tick::before {
  content: ""; position: absolute; top: 0; left: 0; width: 1px; height: 7px; background: var(--line-dk);
}
.sched__row { display: grid; gap: 0.4rem; padding-block: 0.75rem; }
.sched__row + .sched__row { border-top: 1px solid rgba(255,255,255,0.06); }
.sched__lbl {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  font: 500 0.85rem/1.3 var(--f-body); color: #fff;
}
.sched__lbl span { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--orange); letter-spacing: 0.05em; }
.sched__track { position: relative; height: 12px; background: rgba(255,255,255,0.05); border-radius: var(--r-pill); }
.sched__bar {
  position: absolute; inset-block: 0; left: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--ember), var(--orange));
  width: 0; transition: width 1.1s var(--ease) 0.15s;
}
.sched.is-in .sched__bar { width: var(--w); }
.sched__foot {
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line-dk);
  font: 400 var(--t-xs)/1.55 var(--f-mono); color: var(--muted-dk);
  letter-spacing: 0.04em;
}

/* Vertical process (process page) */
.vsteps { display: grid; gap: 0; }
.vstep {
  display: grid; grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1.8rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--line);
  position: relative;
}
.vstep:last-child { border-bottom: 1px solid var(--line); }
.vstep__n {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 0.85;
  color: var(--line); letter-spacing: -0.04em;
  transition: color 0.4s var(--ease);
}
.vstep:hover .vstep__n { color: var(--orange); }
.vstep__b { display: grid; gap: 0.85rem; }
.vstep__meta {
  font: 400 var(--t-xs)/1 var(--f-mono); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ember);
}

/* Terms footnote on a process step — same annotation voice as .sched__foot,
   deliberately quieter than .vstep__meta so it reads as small print. */
.vstep__terms {
  margin-top: 0.4rem; padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font: 400 var(--t-xs)/1.6 var(--f-mono);
  letter-spacing: 0.03em; color: var(--muted);
}
.sec--ink .vstep__terms { border-top-color: var(--line-dk); color: var(--muted-dk); }

/* --------------------------------------------------------------------------
   10. Split feature block
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--rev .split__media { order: 2; }
.split__media { display: grid; gap: 0.55rem; }
.split__frame {
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 5 / 4; background: var(--plaster);
}
.split__frame img { width: 100%; height: 100%; object-fit: cover; }
.split__body { display: grid; gap: 1.25rem; align-content: center; }
.split__stack { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.split__stack .split__frame:first-child { aspect-ratio: 3 / 4; }
.split__stack .split__frame:last-child { aspect-ratio: 3 / 4; margin-top: 2.2rem; }

/* Spec table — materials, presented as a shop spec sheet */
.spec { border-top: 1px solid var(--line); }
.spec__r {
  display: grid; grid-template-columns: 190px minmax(0, 1fr) 150px;
  gap: 1.5rem; align-items: baseline;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.spec__r:hover { background: var(--orange-05); }
.spec__k { font: 500 0.86rem/1.3 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); }
.spec__v { font-size: 0.965rem; }
.spec__t {
  justify-self: start; font: 400 var(--t-xs)/1 var(--f-mono);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ember);
  border: 1px solid var(--orange-28); border-radius: var(--r-pill); padding: 0.36rem 0.72rem;
}

/* --------------------------------------------------------------------------
   11. Projects
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip {
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 0.55rem 1.1rem; font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
  transition: all 0.25s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.proj {
  position: relative; border-radius: var(--r); overflow: hidden;
  aspect-ratio: 4 / 3.4; background: var(--plaster); display: block;
  border: 1px solid var(--line);
}
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.proj:hover img { transform: scale(1.06); }
.proj__ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,16,15,0.86) 0%, rgba(18,16,15,0.18) 45%, transparent 70%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.2rem;
  opacity: 0.92; transition: opacity 0.4s var(--ease);
}
.proj:hover .proj__ov { opacity: 1; }
.proj__ov h4 { color: #fff; }
.proj__m {
  font: 400 var(--t-xs)/1 var(--f-mono); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 0.45rem;
}
.proj__d {
  font: 400 var(--t-xs)/1.5 var(--f-mono); color: var(--muted-dk);
  margin-top: 0.4rem; max-height: 0; overflow: hidden;
  transition: max-height 0.45s var(--ease), margin-top 0.45s var(--ease);
}
.proj:hover .proj__d { max-height: 60px; }
.proj.is-hidden { display: none; }

/* --------------------------------------------------------------------------
   12. Testimonials
   -------------------------------------------------------------------------- */
.quotes { position: relative; }
.quote {
  display: none; gap: 1.5rem;
  animation: qin 0.5s var(--ease);
}
.quote.is-on { display: grid; }
@keyframes qin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.quote blockquote {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.35rem, 2.7vw, 2.05rem); line-height: 1.28;
  letter-spacing: -0.024em; color: var(--ink);
  text-wrap: balance;
}
.sec--ink .quote blockquote { color: #fff; }
.quote figcaption { display: grid; gap: 0.2rem; }
.quote__nm { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.sec--ink .quote__nm { color: #fff; }
.quote__mt { font: 400 var(--t-xs)/1.4 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sec--ink .quote__mt { color: var(--muted-dk); }
.qnav { display: flex; gap: 0.5rem; margin-top: 2rem; align-items: center; }
.qdot {
  width: 34px; height: 3px; border-radius: var(--r-pill);
  background: var(--line); transition: background 0.3s var(--ease);
}
.sec--ink .qdot { background: var(--line-dk); }
.qdot.is-on { background: var(--orange); }
.qcount { margin-left: auto; font: 400 var(--t-xs)/1 var(--f-mono); color: var(--muted); letter-spacing: 0.08em; }
.sec--ink .qcount { color: var(--muted-dk); }

/* --------------------------------------------------------------------------
   13. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc__i { border-bottom: 1px solid var(--line); }
.acc__b {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; padding: 1.35rem 0; text-align: left;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  letter-spacing: -0.015em; color: var(--ink); line-height: 1.35;
  transition: color 0.25s var(--ease);
}
.acc__b:hover { color: var(--ember); }
.acc__ic {
  flex: none; width: 26px; height: 26px; border-radius: var(--r-pill);
  border: 1px solid var(--line); display: grid; place-items: center;
  position: relative; margin-top: 2px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.35s var(--ease);
}
.acc__ic::before, .acc__ic::after {
  content: ""; position: absolute; background: var(--ink);
  transition: opacity 0.25s var(--ease), background 0.25s var(--ease);
}
.acc__ic::before { width: 11px; height: 1.5px; }
.acc__ic::after  { width: 1.5px; height: 11px; }
.acc__i.is-open .acc__ic { background: var(--orange); border-color: var(--orange); transform: rotate(90deg); }
.acc__i.is-open .acc__ic::before { background: #fff; }
.acc__i.is-open .acc__ic::after { opacity: 0; }
.acc__p { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc__i.is-open .acc__p { grid-template-rows: 1fr; }
.acc__c { overflow: hidden; }
.acc__c > div { padding-bottom: 1.4rem; max-width: 70ch; font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   14. CTA band + contact
   -------------------------------------------------------------------------- */
.cta {
  background: var(--orange);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(90% 100% at 85% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(90% 100% at 85% 50%, #000, transparent 70%);
}
.cta__in {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.88); max-width: 52ch; }
.cta .eyebrow { color: rgba(255,255,255,0.85); }
.cta .eyebrow::before { background: rgba(255,255,255,0.7); }
.cta .btn--ink:hover { background: #000; }

/* Contact */
.cgrid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.cblock { display: grid; gap: 1.5rem; }
.cline {
  display: flex; gap: 0.95rem; align-items: flex-start;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
}
.cline:first-of-type { border-top: 1px solid var(--line); }
.cline__ic {
  width: 36px; height: 36px; flex: none; border-radius: var(--r-pill);
  background: var(--orange-12); color: var(--ember);
  display: grid; place-items: center;
}
.cline__ic svg { width: 17px; height: 17px; }
.cline__t { display: grid; gap: 0.15rem; }
.cline__k { font: 400 var(--t-xs)/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cline__v { font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.cline__v:hover { color: var(--ember); }

.form {
  background: var(--bone); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(1.35rem, 3vw, 2.35rem);
  display: grid; gap: 1.1rem;
}
.sec--plaster .form { background: var(--bone); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.42rem; }
.field label {
  font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink);
}
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.82rem 0.95rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  font-size: 0.97rem; color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236C6660' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.95rem center; padding-right: 2.4rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-12);
}
.field .err { font: 400 0.76rem/1.3 var(--f-mono); color: var(--ember); display: none; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--ember); }
.field.is-bad .err { display: block; }
.hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; }
.form__note { font: 400 var(--t-xs)/1.55 var(--f-mono); color: var(--muted); letter-spacing: 0.02em; }
.form__msg {
  display: none; padding: 0.9rem 1.1rem; border-radius: var(--r);
  font-size: 0.92rem; border: 1px solid;
}
.form__msg.ok  { display: block; background: rgba(31,168,85,0.08); border-color: rgba(31,168,85,0.4); color: #14713a; }
.form__msg.bad { display: block; background: var(--orange-05); border-color: var(--orange-28); color: var(--ember); }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.ftr { background: var(--ink); padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.ftr__top {
  display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.ftr__logo img { height: 40px; width: auto; }
.ftr__brand { display: grid; gap: 1.2rem; align-content: start; max-width: 34ch; }
.ftr__brand p { color: var(--muted-dk); font-size: 0.95rem; }
.ftr h5 {
  font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 1.1rem;
}
.ftr ul { list-style: none; padding: 0; display: grid; gap: 0.62rem; }
.ftr a { color: var(--muted-dk); font-size: 0.945rem; transition: color 0.25s var(--ease); }
.ftr a:hover { color: #fff; }
.socials { display: flex; gap: 0.55rem; }
.socials a {
  width: 38px; height: 38px; border-radius: var(--r-pill);
  border: 1px solid var(--line-dk); display: grid; place-items: center;
  color: var(--muted-dk);
  transition: all 0.25s var(--ease);
}
.socials a svg { width: 17px; height: 17px; }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.ftr__bot {
  border-top: 1px solid var(--line-dk);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: center; justify-content: space-between;
  font: 400 var(--t-xs)/1.5 var(--f-mono); color: var(--muted-dk); letter-spacing: 0.04em;
}
.ftr__bot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Floating WhatsApp */
.wafab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 54px; height: 54px; border-radius: var(--r-pill);
  background: #1FA855; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(31,168,85,0.55);
  transition: transform 0.3s var(--ease);
}
.wafab:hover { transform: scale(1.07); }
.wafab svg { width: 26px; height: 26px; }

/* --------------------------------------------------------------------------
   16. Reveal animation
   -------------------------------------------------------------------------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.07s; }
.rv-d2 { transition-delay: 0.14s; }
.rv-d3 { transition-delay: 0.21s; }
.rv-d4 { transition-delay: 0.28s; }
.rv-d5 { transition-delay: 0.35s; }

.draw path, .draw line, .draw circle { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.draw.is-in path, .draw.is-in line, .draw.is-in circle {
  animation: draw 2s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  /* Row cards need width for the photo and the copy side by side, so they
     go one-up earlier than a plain two-column grid would. */
  .g-cards { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .reason:nth-child(3n) { border-right: 1px solid var(--line); }
  .reason:nth-child(2n) { border-right: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3), .step:nth-child(4) { border-top: 1px solid var(--line-dk); }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .ftr__top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav, .hdr__cta { display: none; }
  .burger { display: flex; }
  .hdr__logo img { height: 34px; }   /* desktop carries the larger mark */
  .hero__blueprint { display: none; }
  .hero__copy { max-width: 46ch; }
  /* Copy spans the full width here, so the scrim has to run top-to-bottom
     rather than left-to-right. */
  .hero__bg img, .hero__bg video { object-position: 58% center; }
  .hero__bg::after {
    background: linear-gradient(to bottom,
      rgba(18,16,15,0.90) 0%,
      rgba(18,16,15,0.74) 38%,
      rgba(18,16,15,0.50) 60%,
      rgba(18,16,15,0.86) 100%);
  }
  .phero__bg img { object-position: 56% center; }
  .phero__bg::after {
    background: linear-gradient(to bottom,
      rgba(18,16,15,0.90) 0%,
      rgba(18,16,15,0.76) 45%,
      rgba(18,16,15,0.66) 100%);
  }
  .split, .split--rev .split__media { grid-template-columns: 1fr; order: 0; }
  .split__media { order: 0; }
  .cgrid { grid-template-columns: 1fr; }
  .cta__in { grid-template-columns: 1fr; }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .spec__r { grid-template-columns: 160px minmax(0, 1fr); }
  .spec__t { grid-column: 2; }
}

@media (max-width: 720px) {
  :root { --hdr-h: 66px; }
  /* The hero now ends exactly at the fold, so the floating WhatsApp button
     would land on the last stat. Give the rail room to clear it. */
  .hero { padding-bottom: 4.75rem; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  /* Too narrow to keep the photo alongside — stack it, and the <picture>
     swaps in the 4:3 crop so the band is not a cropped portrait. */
  .card--row { flex-direction: column; }
  .card--row .card__media { width: 100%; aspect-ratio: 4 / 3; }
  .rail { grid-template-columns: repeat(2, 1fr); }
  .rail__i { padding-right: 1rem; }
  .rail__i:nth-child(odd) { padding-left: 0; }
  .rail__i:nth-child(n+3) { border-top: 1px solid var(--line-dk); margin-top: 0.4rem; }
  .reasons { grid-template-columns: 1fr; }
  .reason { border-right: 0 !important; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--line-dk); }
  .step:first-child { border-top: 0; }
  .pgrid { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .shead--split { grid-template-columns: 1fr; align-items: start; }
  .ftr__top { grid-template-columns: 1fr; }
  .split__stack .split__frame:last-child { margin-top: 0; }
  .vstep { grid-template-columns: 1fr; gap: 0.75rem; }
  .vstep__n { font-size: 2rem; }
  .spec__r { grid-template-columns: 1fr; gap: 0.4rem; }
  .spec__t { grid-column: 1; }
  .wafab { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}

/* --------------------------------------------------------------------------
   18. Accessibility + print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .draw path, .draw line, .draw circle { stroke-dashoffset: 0; }
  .sched__bar { width: var(--w); }
  .step::before { width: 100%; }
  /* main.js pauses the clip and strips its sources; this keeps the poster
     showing in its place. */
  .hero__bg img, .hero__bg video { animation: none; transform: none; }
}

@media print {
  .hdr, .drawer, .wafab, .cta, .qnav, .hero__bg { display: none !important; }
  .hero { min-height: 0 !important; }
  body { background: #fff; color: #000; }
  .sec--ink, .hero, .phero { background: #fff !important; }
  .sec--ink h1, .sec--ink h2, .sec--ink h3, .hero h1, .phero h1 { color: #000 !important; }
}

/* --------------------------------------------------------------------------
   19. Dark-section variants + small utilities
   Added after first review pass: several components appeared inside .sec--ink
   and were inheriting light-surface borders and text colours.
   -------------------------------------------------------------------------- */
.sec--ink .spec { border-top-color: var(--line-dk); }
.sec--ink .spec__r { border-bottom-color: var(--line-dk); }
.sec--ink .spec__r:hover { background: rgba(255, 255, 255, 0.035); }
.sec--ink .spec__k { color: #fff; }
.sec--ink .spec__v { color: var(--muted-dk); }
.sec--ink .spec__t { color: var(--orange); border-color: var(--orange-28); }

.sec--ink .reasons { border-top-color: var(--line-dk); }
.sec--ink .reason { border-bottom-color: var(--line-dk); border-right-color: var(--line-dk); }
.sec--ink .reason:hover { background: rgba(255, 255, 255, 0.035); }
.sec--ink .reason__ic { border-color: var(--line-dk); color: var(--orange); }
.sec--ink .reason:hover .reason__ic { background: var(--orange); border-color: var(--orange); color: #fff; }

.sec--ink .acc, .sec--ink .acc__i { border-color: var(--line-dk); }
.sec--ink .acc__b { color: #fff; }
.sec--ink .acc__ic { border-color: var(--line-dk); }
.sec--ink .acc__ic::before, .sec--ink .acc__ic::after { background: #fff; }

/* Two-column reason grid (About → values) */
.reasons--2 { grid-template-columns: repeat(2, 1fr); }
.reasons--2 .reason:nth-child(3n) { border-right: 1px solid var(--line); }
.reasons--2 .reason:nth-child(2n) { border-right: 0; }
.sec--ink .reasons--2 .reason:nth-child(3n) { border-right-color: var(--line-dk); }
.sec--ink .reasons--2 .reason:nth-child(2n) { border-right: 0; }
@media (max-width: 720px) { .reasons--2 { grid-template-columns: 1fr; } }

/* Flex stacks should hug their content, not stretch buttons full width */
.stack { align-items: flex-start; }

.h-sm { font-size: var(--t-h3); }
.crumb strong { color: var(--orange); font-weight: 400; }

/* Dimension rule draws outward on reveal — the motif should behave like a
   measurement being taken, not just fade in. */
.dim::before { transform: scaleX(0); }
.dim.is-in::before { transform: scaleX(1); }

/* Stagger the hero line-art so the mark builds like a drawing */
.draw path:nth-child(2) { animation-delay: 0.25s !important; }
.draw path:nth-child(3) { animation-delay: 0.5s !important; }
.draw path:nth-child(4) { animation-delay: 0.7s !important; }

/* Touch devices get no hover, so project captions must always be readable */
@media (hover: none) {
  .proj__d { max-height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .dim::before { transform: scaleX(1); }
}


/* --------------------------------------------------------------------------
   20. Facts band
   Sits on the service pages in place of the four-step block, which was
   repeating on eight pages. Same reassurance, but the numbers change per
   service so it reads as page-specific rather than boilerplate.
   -------------------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact {
  display: flex; align-items: center; gap: 0.95rem;
  padding: 1.5rem clamp(1rem, 2vw, 1.75rem) 1.5rem 0;
}
.fact + .fact { padding-left: clamp(1rem, 2vw, 1.75rem); border-left: 1px solid var(--line); }
.fact__ic {
  width: 40px; height: 40px; flex: none; border-radius: var(--r-pill);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--ember);
}
.fact__ic svg { width: 18px; height: 18px; }
.fact__n {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.1;
  letter-spacing: var(--track); color: var(--ink);
}
.fact__l {
  font: 400 var(--t-xs)/1.4 var(--f-mono);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  margin-top: 0.2rem;
}

/* Step meta line — was an inline style, now a proper class */
.step__meta {
  font: 400 var(--t-xs)/1.4 var(--f-mono);
  letter-spacing: 0.06em; color: var(--muted-dk);
}

/* The schedule is no longer always inside a steps block */
.sec--ink > .wrap > .sched:first-child,
.sec--ink .shead + .sched { margin-top: 0; }

@media (max-width: 960px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .fact { padding-left: 0 !important; border-left: 0 !important; }
  .fact + .fact { border-top: 1px solid var(--line); }
}
