/* ================================================================
   REWORKED — style.css  (V2, dark-first)
   All design tokens in :root. Edit :root to retune the system.
   ================================================================ */

/* ----------------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------------- */
:root {
  /* Palette — dark-first */
  --color-bg:            #0D0D0D;   /* near-black — page background */
  --color-surface:       #161616;   /* dark charcoal — alternating sections */
  --color-card:          #1C1C1C;   /* card / surface fill */
  --color-ink:           #E8E4DD;   /* off-white — primary type on dark */
  --color-ink-60:        rgba(232, 228, 221, 0.85);
  --color-ink-40:        rgba(232, 228, 221, 0.55);
  --gradient-teal-fade:  linear-gradient(178deg, #1F3A3D 0%, #16282A 55%, #0D0D0D 100%);
  --color-tan:           #C4A57B;   /* warm tan — labels, highlights */
  --color-sage:          #8A9E7E;   /* sparing use */
  --color-teal:          #1F3A3D;   /* sparing use */
  --color-cream:         #F0EDE2;   /* CTA accent */
  --color-dark-ink:      #1A1A1A;   /* dark type on cream fills */
  --color-border:        rgba(255, 255, 255, 0.06);
  --color-border-strong: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-display: 'EB Garamond', Georgia, serif;
  --font-body:    'Inter Tight', system-ui, sans-serif;
  --font-label:   'Helvetica Neue', Helvetica, Arial, sans-serif;  /* eyebrows, labels, small UI text */
  --font-caption: 'PT Serif Caption', Georgia, serif;              /* image captions */

  /* Type scale */
  --text-hero:      clamp(3rem, 8vw, 6rem);
  --text-statement: clamp(2.4rem, 5.5vw, 4.75rem);  /* massive section statements */
  --text-h2:        clamp(2rem, 3.5vw, 3.25rem);
  --text-h3:        clamp(1.2rem, 1.8vw, 1.6rem);
  --text-body:      1.1rem;
  --text-subtitle:  1.45rem;
  --text-small:     0.9rem;
  --text-label:     0.8rem;      /* uppercase tracked labels */
  --text-mono:      0.8125rem;   /* 13px floor — never smaller on desktop */

  /* Spacing */
  --space-xs:   0.5rem;
  --space-s:    1rem;
  --space-m:    2rem;
  --space-l:    3.5rem;
  --space-xl:   6rem;
  --space-2xl:  10rem;
  --space-page: clamp(1.5rem, 5vw, 4rem);

  /* Layout */
  --max-width:  1160px;
  --nav-height: 128px;
  --radius:     12px;      /* cards */
  --radius-s:   3px;       /* buttons, inputs */

  /* Motion */
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --duration:      0.22s;
  --duration-slow: 0.3s;
}


/* ----------------------------------------------------------------
   2. RESET + BASE
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  background: var(--color-bg);
  color: var(--color-ink);
  min-height: 100svh;
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }

input, button, textarea, select { font: inherit; }

a { color: inherit; text-decoration: none; }

ol, ul { list-style: none; }

::selection { background: var(--color-tan); color: var(--color-dark-ink); }


/* ----------------------------------------------------------------
   3. TYPOGRAPHY
   ---------------------------------------------------------------- */
h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: var(--text-hero);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--color-ink);
}

h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-h2);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--color-ink);
}

h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: var(--text-h3);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

p { max-width: 68ch; text-wrap: pretty; }

cite {
  font-style: normal;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-tan);
  display: block;
  margin-top: 0.75rem;
}


/* ----------------------------------------------------------------
   4. LOGO — assets/reworked-logo.png, black on transparent.
   The whole site is dark, so the logo is always inverted to cream.
   ---------------------------------------------------------------- */
.nav-logo {
  display: block;
  height: 72px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo {
  display: block;
  width: clamp(120px, 16vw, 200px);
  height: auto;
  filter: brightness(0) invert(1);
}


/* ----------------------------------------------------------------
   4b. SKIP LINK
   ---------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: var(--space-s);
  left: var(--space-s);
  z-index: 300;
  padding: 0.7rem 1.2rem;
  background: var(--color-cream);
  color: var(--color-dark-ink);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-s);
  transform: translateY(calc(-100% - var(--space-m)));
  transition: transform var(--duration) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--color-tan);
  outline-offset: 2px;
}


/* ----------------------------------------------------------------
   5. SITE NAVIGATION — transparent over hero, dark bar on scroll
   ---------------------------------------------------------------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-m);
  border-bottom: 1px solid transparent;
  transition: background var(--duration-slow) var(--ease),
              border-color var(--duration-slow) var(--ease);
}

.site-nav.nav-scrolled {
  background: rgba(13, 13, 13, 0.88);
  border-bottom-color: var(--color-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-wordmark { display: inline-flex; align-items: center; }

.nav-wordmark:focus-visible {
  outline: 2px solid var(--color-tan);
  outline-offset: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-l);
}

.nav-links a {
  font-family: var(--font-label);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-ink);
  transition: opacity var(--duration);
}

/* Hairline underline draws in from the left on hover */
.nav-links li:not(:last-child) a {
  position: relative;
  padding-bottom: 3px;
}

.nav-links li:not(:last-child) a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.nav-links li:not(:last-child) a:hover::after { transform: scaleX(1); }

.nav-links a:focus-visible {
  outline: 2px solid var(--color-tan);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-links a[aria-current="page"] { position: relative; }

.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  transform: scaleX(1) !important;
}

/* CTA pill */
.nav-cta {
  border: 1px solid rgba(232, 228, 221, 0.5);
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-s);
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.nav-cta:hover {
  background: var(--color-cream);
  border-color: var(--color-cream);
  color: var(--color-dark-ink);
}

/* Hamburger — min 44×44 tap target */
.nav-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  min-width: 44px;
  min-height: 44px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-ink);
  transition: transform var(--duration), opacity var(--duration);
}

.nav-hamburger:focus-visible {
  outline: 2px solid var(--color-tan);
  outline-offset: 2px;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer — full-screen dark overlay */
.nav-drawer {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  z-index: 190;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-l) var(--space-m);
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0.35s;
  border-top: 1px solid var(--color-border);
}

.nav-drawer.open {
  transform: translateY(0);
  visibility: visible;
}

.nav-drawer ul { display: flex; flex-direction: column; gap: var(--space-m); }

.nav-drawer a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  color: var(--color-ink);
  transition: opacity var(--duration);
}

.nav-drawer a:hover { opacity: 0.5; }

.nav-drawer a:focus-visible {
  outline: 2px solid var(--color-tan);
  outline-offset: 4px;
}


/* ----------------------------------------------------------------
   6. BUTTONS
   ---------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--color-cream);
  background: var(--color-cream);
  color: var(--color-dark-ink);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: var(--radius-s);
  white-space: nowrap;
  min-height: 44px;
  transition: background   var(--duration-slow) var(--ease),
              color        var(--duration-slow) var(--ease),
              border-color var(--duration-slow) var(--ease),
              transform    var(--duration-slow) var(--ease);
}

.button:hover, .button:focus-visible {
  background: transparent;
  color: var(--color-cream);
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid var(--color-tan);
  outline-offset: 3px;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Outline variant — cream keyline, fills on hover */
.button-outline {
  background: transparent;
  border-color: rgba(232, 228, 221, 0.55);
  color: var(--color-ink);
}

.button-outline:hover, .button-outline:focus-visible {
  background: var(--color-cream);
  border-color: var(--color-cream);
  color: var(--color-dark-ink);
}

/* Large italic booking CTA */
.button-book {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  padding: 1.15rem 3.5rem;
  letter-spacing: 0;
  min-height: unset;
}


/* ----------------------------------------------------------------
   6b. AOS + MOTION OVERRIDES
   ---------------------------------------------------------------- */
[data-aos][data-aos][data-aos='fade-up'] {
  transform: translate3d(0, 20px, 0);
}

/* No-JS / pre-init fallback — content visible before AOS processes it */
[data-aos]:not(.aos-init) {
  opacity: 1 !important;
  transform: none !important;
}


/* ----------------------------------------------------------------
   7. PAGE SHELL + SECTION BASE
   Note: NO overflow:hidden on .section — it would break
   position:sticky on .calc-results-panel.
   ---------------------------------------------------------------- */
.page-shell { position: relative; }

.section {
  position: relative;
  padding: var(--space-xl) var(--space-page);
}

/* Alternating tone — charcoal sections between near-black ones */
.section--charcoal { background: var(--color-surface); }

/* Brand-colour moments — muted tonal gradients, never bright.
   Tonal rhythm down the page: video hero → sage glow → near-black →
   teal → near-black → sage glow → near-black → tan glow → teal. */
.section--sage-glow {
  background:
    radial-gradient(110% 85% at 12% 0%, rgba(138, 158, 126, 0.14), transparent 58%),
    var(--color-surface);
}

.section--sage-glow-right {
  background:
    radial-gradient(110% 85% at 88% 0%, rgba(138, 158, 126, 0.12), transparent 58%),
    var(--color-surface);
}

.section--teal {
  background: var(--gradient-teal-fade);
}

.section--tan-glow {
  background:
    radial-gradient(70% 90% at 50% 12%, rgba(196, 165, 123, 0.16), transparent 68%),
    var(--color-surface);
}

/* Cards sit on cream-tinted glass over teal */
.section--teal .card,
.section--teal .milestone-card {
  background: rgba(240, 237, 226, 0.05);
  border-color: rgba(240, 237, 226, 0.1);
}

.section-inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

.section-header {
  margin-bottom: var(--space-l);
  max-width: 820px;
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-header--center .section-intro { margin-inline: auto; }

.section-label {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-tan);
  margin-bottom: var(--space-s);
  max-width: none;
}

.section-intro {
  margin-top: var(--space-s);
  color: var(--color-ink-60);
  font-size: var(--text-subtitle);
  line-height: 1.6;
  max-width: 65ch;
}

/* Massive italic statement — the anchor of a statement section */
.statement {
  font-size: var(--text-statement);
  max-width: 20ch;
}

/* What We Do heading — centred above the bento grid, not pinned left
   with dead space beside it */
#what-we-do .statement {
  margin-inline: auto;
  text-align: center;
}


/* ----------------------------------------------------------------
   8. CARDS — shared dark surface
   ---------------------------------------------------------------- */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--duration-slow) var(--ease),
              transform var(--duration-slow) var(--ease);
}

.card:hover {
  border-color: var(--color-border-strong);
  transform: scale(1.01);
}


/* ----------------------------------------------------------------
   10. S/01 — HERO  (cinematic, centred, factory video background)
   ---------------------------------------------------------------- */
.section-hero {
  min-height: 100svh;
  padding-top: calc(var(--nav-height) + var(--space-l));
  padding-bottom: calc(var(--space-xl) + 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: var(--color-ink);
}

/* Full-bleed video layer; poster doubles as CSS background */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('assets/factory-hero-poster.jpg') center / cover no-repeat;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 60% dark overlay, heavier at the edges for legibility */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.78) 0%,
    rgba(13, 13, 13, 0.58) 45%,
    rgba(13, 13, 13, 0.62) 70%,
    rgba(13, 13, 13, 0.85) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-m);
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
}

.hero-inner h1 { max-width: 16ch; }

.hero-tagline {
  font-size: var(--text-subtitle);
  line-height: 1.55;
  color: var(--color-ink-60);
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  gap: var(--space-s);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-s);
}

.hero-trust {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: var(--text-mono);
  letter-spacing: 0.04em;
  color: var(--color-ink-60);
  max-width: none;
}

/* Scroll cue — thin animated line + label */
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-m);
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
}

.scroll-cue-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-40);
}

.scroll-cue-line {
  width: 1px;
  height: 38px;
  background: rgba(232, 228, 221, 0.5);
  transform-origin: top;
  animation: scroll-cue 2.4s var(--ease) infinite;
}

@keyframes scroll-cue {
  0%   { transform: scaleY(0); opacity: 1; }
  55%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}


/* ----------------------------------------------------------------
   11. S/02 — WHAT WE DO  (charcoal, bento cards)
   ---------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-s);
  margin-top: var(--space-l);
}

.bento-card {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
}

/* Media card — decorative image behind a dark gradient */
.bento-card--media .bento-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bento-card--media .bento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.bento-card--media:hover .bento-media img { transform: scale(1.02); }

/* Portrait source photos — bias the crop toward the subject, not the ceiling/edges.
   texture-yarnrun's sharp cone sits low and left of frame, with a blurred
   row of cones receding behind it — pull the crop toward that sharp corner. */
.bento-media img[src*="texture-yarnrun"] { object-position: left bottom; }
.bento-media img[src*="texture-cones"]   { object-position: center 45%; }

.bento-card--media:hover .bento-media img[src*="texture-yarnrun"] { transform: scale(1.04); }

.bento-card--media .bento-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 13, 13, 0.9) 12%,
    rgba(13, 13, 13, 0.45) 55%,
    rgba(13, 13, 13, 0.25) 100%
  );
}

.bento-card > * { position: relative; z-index: 1; }

.bento-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-tan);
}

.bento-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  color: var(--color-ink);
  margin-bottom: 0;
}

.bento-body {
  color: var(--color-ink-60);
  font-size: var(--text-body);
  line-height: 1.65;
  max-width: 42ch;
}


/* ----------------------------------------------------------------
   12. S/03 — SERVICES  (near-black, 2×2 cards)
   ---------------------------------------------------------------- */
#services .section-header {
  margin-inline: auto;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-s);
  margin-top: var(--space-l);
}

.service-card {
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.service-card h3 {
  font-weight: 400;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--color-ink);
  line-height: 1.3;
  margin-bottom: 0;
  margin-top: 0.15rem;
}

.service-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-tan);
}

.service-card p {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.65;
  color: var(--color-ink-60);
  max-width: 38ch;
}


/* ----------------------------------------------------------------
   13. S/04 — PROOF  (charcoal, editorial image grid)
   Only Reworked's own China footage lives here.
   ---------------------------------------------------------------- */
.proof-grid {
  display: grid;
  grid-template-columns: 68fr 32fr;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

.proof-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-card);
}

.proof-item img,
.proof-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.proof-item:hover img,
.proof-item:hover video { transform: scale(1.02); }

.proof-item--wide  { aspect-ratio: 16 / 10; }
.proof-item--half  { aspect-ratio: 16 / 10; }

/* Tall tile spans both rows and stretches to the full column height */
.proof-item--tall  { grid-row: span 2; min-height: 100%; }

/* Row 2 — two equal images under the wide tile */
.proof-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-s);
}

.proof-caption {
  position: absolute;
  left: var(--space-s);
  bottom: var(--space-s);
  z-index: 1;
  font-family: var(--font-caption);
  font-weight: 400;
  font-size: var(--text-mono);
  letter-spacing: 0.02em;
  color: rgba(240, 237, 226, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  max-width: none;
}


/* ----------------------------------------------------------------
   14. S/05 — WHY REWORKED  (near-black statement + comparison cards)
   ---------------------------------------------------------------- */
.why-statement {
  font-size: var(--text-statement);
  max-width: 24ch;
  min-height: 30vh;
  display: flex;
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.compare-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-s);
  align-items: stretch;
  margin-top: var(--space-m);
}

.compare-card {
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.compare-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 0;
  color: var(--color-ink);
}

.compare-card ul {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-s);
}

.compare-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding: 0.7rem 0;
  border-top: 1px solid var(--color-border);
  font-size: var(--text-small);
  color: var(--color-ink-60);
}

/* Focus card — Reworked, gold background to stand out */
.compare-card--focus {
  background: var(--color-tan);
  border-color: #b8975e;
}

.compare-card--focus:hover { border-color: #a6864e; }

.compare-card--focus h3 { color: var(--color-dark-ink); }

.compare-card--focus li {
  color: var(--color-dark-ink);
  border-top-color: rgba(26, 26, 26, 0.15);
}

.compare-card--focus .mark-yes {
  background: var(--color-dark-ink);
  border-color: var(--color-dark-ink);
}

.compare-card--focus .mark {
  border-color: rgba(26, 26, 26, 0.3);
}

.compare-card--focus .compare-note {
  color: var(--color-dark-ink);
  border-top-color: rgba(26, 26, 26, 0.15);
}

.compare-note {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-tan);
  margin-top: auto;
  padding-top: var(--space-s);
  border-top: 1px solid var(--color-border);
  max-width: none;
}

.mark {
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(232, 228, 221, 0.3);
}

.mark-yes {
  background: var(--color-tan);
  border-color: var(--color-tan);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ----------------------------------------------------------------
   15. S/06 — DELIVERY GUARANTEE  (charcoal)
   Milestone track (M/01–M/05) + six-stage horizontal strip
   ---------------------------------------------------------------- */
.milestone-track {
  display: flex;
  align-items: stretch;
  gap: var(--space-s);
  position: relative;
  margin-top: var(--space-l);
  padding-bottom: 26px;
}

.milestone-track::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(232, 228, 221, 0.3);
}

html.js .milestone-track::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease) 0.2s;
}

html.js .milestone-track.in-view::before { transform: scaleX(1); }

.milestone-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.milestone-card {
  flex: 1;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  border-radius: var(--radius);
  padding: var(--space-s);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  margin-bottom: var(--space-s);
  transition: border-color var(--duration-slow) var(--ease),
              transform var(--duration-slow) var(--ease);
}

.milestone-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}

.milestone-dot {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  background: var(--color-tan);
  border-radius: 50%;
}

html.js .milestone-item .milestone-dot {
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

html.js .milestone-track.in-view .milestone-item .milestone-dot { opacity: 1; }

html.js .milestone-track.in-view .milestone-item:nth-child(1) .milestone-dot { transition-delay: 0.25s; }
html.js .milestone-track.in-view .milestone-item:nth-child(2) .milestone-dot { transition-delay: 0.5s; }
html.js .milestone-track.in-view .milestone-item:nth-child(3) .milestone-dot { transition-delay: 0.75s; }
html.js .milestone-track.in-view .milestone-item:nth-child(4) .milestone-dot { transition-delay: 1s; }
html.js .milestone-track.in-view .milestone-item:nth-child(5) .milestone-dot { transition-delay: 1.25s; }

.milestone-title {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--color-ink);
  max-width: none;
}

.milestone-duration {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-mono);
  letter-spacing: 0.08em;
  color: var(--color-tan);
  margin-top: auto;
  max-width: none;
}

/* Simple centred close — one stat, one CTA, no side-scroll */
.delivery-cta {
  margin-top: var(--space-xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-m);
  text-align: center;
}

.delivery-cta-note {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: var(--text-small);
  letter-spacing: 0.01em;
  line-height: 1.6;
  color: var(--color-ink-60);
  max-width: 48ch;
}


/* ----------------------------------------------------------------
   16. S/07 — STUDIO  (near-black split)
   ---------------------------------------------------------------- */
.studio-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.studio-split h2 { font-size: var(--text-statement); }

.studio-quote {
  padding-left: var(--space-m);
  border-left: 2px solid var(--color-tan);
}

.studio-quote > p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  color: var(--color-ink);
  max-width: 40ch;
}

.studio-quote cite { margin-top: var(--space-s); }


/* ----------------------------------------------------------------
   17. S/08 — CTA  (charcoal, tan accent)
   ---------------------------------------------------------------- */
.section-cta {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-m);
  padding: var(--space-l) 0;
}

.cta-inner h2 { font-size: var(--text-statement); max-width: 18ch; }

.cta-sub {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-60);
  max-width: none;
}


/* ----------------------------------------------------------------
   18. S/09 — INQUIRY  (deep teal gradient — V1 heritage)
   ---------------------------------------------------------------- */
.section-inquiry {
  background: linear-gradient(178deg, #1F3A3D 0%, #16282A 55%, #0A0A0A 100%);
}

.inquiry-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: start;
}

.inquiry-header h2 { margin-top: var(--space-s); }

.inquiry-form { display: flex; flex-direction: column; }

.inquiry-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-s);
  margin-bottom: var(--space-m);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: var(--space-s);
}

.form-group-full { grid-column: 1 / -1; }

label {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-60);
}

/* Inputs — cream fields with dark text on the dark page */
input,
select,
textarea {
  width: 100%;
  border: 1px solid transparent;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: var(--text-small);
  background: var(--color-cream);
  color: var(--color-dark-ink);
  transition: border-color var(--duration), box-shadow var(--duration);
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
}

input::placeholder,
textarea::placeholder { color: rgba(26, 26, 26, 0.45); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-tan);
  box-shadow: 0 0 0 3px rgba(196, 165, 123, 0.3);
}

input.field-invalid,
select.field-invalid,
textarea.field-invalid { border-color: #b94040; }

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='rgba(26%2C26%2C26%2C0.5)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

option { background: var(--color-cream); color: var(--color-dark-ink); }

.form-message {
  padding: 0.8rem 1rem;
  font-family: var(--font-label);
  font-weight: 400;
  font-size: var(--text-mono);
  letter-spacing: 0.05em;
  color: var(--color-ink);
  border-left: 3px solid var(--color-sage);
  background: rgba(138, 158, 126, 0.15);
  margin-bottom: var(--space-s);
}

.form-message a { text-decoration: underline; text-underline-offset: 2px; }

.form-message[hidden] { display: none; }

.form-consent {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: var(--text-mono);
  letter-spacing: 0.02em;
  color: var(--color-ink-40);
  margin-top: calc(var(--space-s) * -0.25);
  margin-bottom: var(--space-s);
  max-width: none;
}

.form-consent a {
  color: var(--color-ink-60);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration) var(--ease);
}

.form-consent a:hover { color: var(--color-ink); }

.inquiry-form .button { align-self: flex-start; }

/* Honeypot — hidden from humans (see handleSubmit in main.js) */
.hp-field { display: none; }


/* ----------------------------------------------------------------
   19. SITE FOOTER  (darkest tone)
   ---------------------------------------------------------------- */
.site-footer {
  background: #0A0A0A;
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) var(--space-page);
}

.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
  flex-wrap: wrap;
}

.footer-logo-link { display: inline-block; }

.footer-logo-link:focus-visible {
  outline: 2px solid var(--color-tan);
  outline-offset: 4px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-nav a {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-small);
  color: var(--color-ink-60);
  letter-spacing: 0.02em;
  transition: color var(--duration) var(--ease);
}

.footer-nav a:hover { color: var(--color-ink); }

.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  padding-top: var(--space-s);
  padding-bottom: var(--space-s);
  border-top: 1px solid var(--color-border);
}

.footer-legal a {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: var(--text-mono);
  letter-spacing: 0.04em;
  color: var(--color-ink-60);
  transition: color var(--duration) var(--ease);
}

.footer-legal a:hover { color: var(--color-ink); }

.footer-legal-sep {
  color: var(--color-ink-40);
  font-family: var(--font-label);
  font-size: var(--text-mono);
  user-select: none;
}

.footer-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.footer-tagline {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-60);
  max-width: none;
}

.footer-copy {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: var(--text-mono);
  letter-spacing: 0.06em;
  color: var(--color-ink-40);
  max-width: none;
}


/* ----------------------------------------------------------------
   20. STICKY CTA — bottom-right pill, hero → inquiry
   ---------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  right: var(--space-m);
  bottom: var(--space-m);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  background: var(--color-cream);
  color: var(--color-dark-ink);
  border: 1px solid var(--color-cream);
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease),
              transform 0.3s var(--ease),
              visibility 0.3s;
}

.sticky-cta.sticky-cta-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sticky-cta:hover {
  background: var(--color-bg);
  color: var(--color-ink);
  border-color: rgba(232, 228, 221, 0.4);
}

.sticky-cta:hover .sticky-cta-sub { color: var(--color-ink-60); }

.sticky-cta:focus-visible {
  outline: 2px solid var(--color-tan);
  outline-offset: 3px;
}

.sticky-cta-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-small);
  letter-spacing: 0.02em;
}

.sticky-cta-sub {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.55);
  transition: color var(--duration);
}


/* ----------------------------------------------------------------
   21. CALCULATOR  (estimate.html — dark restyle)
   CALC_CONFIG lives in main.js — no economics here.
   ---------------------------------------------------------------- */
.section-calculator { border-top: 1px solid var(--color-border); }

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
  margin-top: var(--space-m);
}

.slider-group { margin-bottom: var(--space-l); }

.calc-inputs-panel .slider-group { margin-bottom: calc(var(--space-l) + var(--space-s)); }

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-xs);
  gap: var(--space-s);
}

.slider-header label {
  display: inline;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-tan);
  margin-bottom: 0;
}

.slider-value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-ink);
  white-space: nowrap;
  line-height: 1;
}

/* Range input — tan fill on a faint track */
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--color-tan) 0%,
    var(--color-tan) var(--slider-fill, 0%),
    rgba(232, 228, 221, 0.15) var(--slider-fill, 0%),
    rgba(232, 228, 221, 0.15) 100%
  );
  border: none;
  padding: 0;
  margin: 0.75rem 0;
  outline: none;
  cursor: pointer;
  border-radius: 0;
  min-height: 0;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-cream);
  cursor: pointer;
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 1.5px var(--color-cream);
  transition: transform 0.12s;
}

.calc-slider:hover::-webkit-slider-thumb,
.calc-slider:focus::-webkit-slider-thumb  { transform: scale(1.2); }

.calc-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(196, 165, 123, 0.4);
}

.calc-slider::-moz-range-track {
  height: 3px;
  background: rgba(232, 228, 221, 0.15);
  border-radius: 0;
}

.calc-slider::-moz-range-progress {
  height: 3px;
  background: var(--color-tan);
}

.calc-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-cream);
  cursor: pointer;
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 1.5px var(--color-cream);
  transition: transform 0.12s;
}

.calc-slider:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(196, 165, 123, 0.4);
}

/* Results panel — dark spec-sheet card, sticky >1160px */
.calc-results-panel {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-m));
}

.results-inner {
  border: 1px solid var(--color-border);
  background: var(--color-card);
  border-radius: var(--radius);
  padding: var(--space-m) var(--space-m) var(--space-s);
}

.results-group {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.results-group:last-of-type { border-bottom: none; }

.results-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-m);
  padding: 0.3rem 0;
}

.results-row span {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-mono);
  color: var(--color-ink-60);
}

.results-row strong {
  font-family: var(--font-label);
  font-size: var(--text-mono);
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
}

.results-landmark { padding: var(--space-s) 0; }

.results-row-primary { padding: 0.4rem 0; }

.results-row-primary span {
  font-family: var(--font-label);
  font-size: var(--text-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.results-row-primary strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-ink);
}

/* Total row — tonally emphasised */
.results-highlight {
  margin: 0 calc(-1 * var(--space-m));
  padding: var(--space-m) var(--space-m);
  background: rgba(232, 228, 221, 0.06);
  border-top: 2px solid rgba(232, 228, 221, 0.2);
  border-bottom: none !important;
}

.results-highlight .results-row-primary strong {
  color: var(--color-tan);
  font-size: 2rem;
  white-space: nowrap;
}

@keyframes calc-pulse {
  0%   { background: rgba(196, 165, 123, 0.28); }
  100% { background: transparent; }
}

.calc-pulse { animation: calc-pulse 0.6s var(--ease); }

.results-note {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: var(--text-mono);
  color: var(--color-ink-40);
  margin-top: var(--space-s);
  padding-top: var(--space-s);
  border-top: 1px solid var(--color-border);
  max-width: none;
  line-height: 1.55;
}

/* Product type toggle */
.calc-type-toggle {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-s);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-s);
  overflow: hidden;
}

.calc-type-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--color-ink-60);
  cursor: pointer;
  transition: background var(--duration-slow) var(--ease), color var(--duration-slow) var(--ease);
}

.calc-type-btn.active {
  background: var(--color-cream);
  color: var(--color-dark-ink);
}

.calc-type-btn:not(.active):hover {
  background: rgba(232, 228, 221, 0.06);
  color: var(--color-ink);
}

.calc-type-desc { margin-bottom: var(--space-l); }

.calc-type-desc p {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: var(--text-mono);
  color: var(--color-ink-60);
  letter-spacing: 0.04em;
  max-width: none;
}

/* Category select — dark field with cream text (overrides input base) */
.calc-select {
  width: 100%;
  padding: 0.65rem 2.25rem 0.65rem 0.75rem;
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-ink);
  background-color: var(--color-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='rgba(232%2C228%2C221%2C0.5)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 8px 5px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-s);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: border-color var(--duration-slow) var(--ease);
}

.calc-select:hover { border-color: rgba(232, 228, 221, 0.35); }

.calc-select:focus {
  outline: none;
  border-color: var(--color-tan);
  box-shadow: none;
}

.calc-select option { background: var(--color-card); color: var(--color-ink); }

.calc-moq-note {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: var(--text-mono);
  color: var(--color-ink-40);
  letter-spacing: 0.06em;
  margin-top: 0.4rem;
  max-width: none;
}

.slider-label {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-tan);
  margin-bottom: var(--space-s);
}

.calc-finishes {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.calc-finish-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-ink);
  min-height: 44px;
  padding: 0 0.6rem;
  margin: 0 -0.6rem;
  border-radius: var(--radius-s);
  transition: background var(--duration-slow) var(--ease);
}

.calc-finish-item:hover { background: rgba(232, 228, 221, 0.05); }

/* Custom checkbox — tan fill, dark check when selected */
.calc-finish-cb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(232, 228, 221, 0.4);
  border-radius: 2px;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.calc-finish-cb::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid var(--color-dark-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity var(--duration);
}

.calc-finish-cb:checked {
  background: var(--color-tan);
  border-color: var(--color-tan);
}

.calc-finish-cb:checked::after { opacity: 1; }

.calc-finish-cb:focus-visible {
  outline: 2px solid var(--color-tan);
  outline-offset: 2px;
  box-shadow: none;
}

.finish-name { flex: 1; }

.finish-price {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-mono);
  letter-spacing: 0.06em;
  color: var(--color-ink-40);
  white-space: nowrap;
  transition: color var(--duration) var(--ease);
}

.calc-finish-item:has(.calc-finish-cb:checked) {
  background: rgba(232, 228, 221, 0.04);
}
.calc-finish-item:has(.calc-finish-cb:checked) .finish-price {
  color: var(--color-ink);
}

/* Calculator → conversation */
.calc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  flex-wrap: wrap;
  border: 1px solid var(--color-border);
  border-top: 2px solid rgba(232, 228, 221, 0.25);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: var(--space-m) var(--space-m);
}

.calc-cta-line {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-60);
  max-width: none;
}


/* ----------------------------------------------------------------
   22. INTERIOR PAGES — first-section nav clearance
   ---------------------------------------------------------------- */
.section-page-top {
  padding-top: calc(var(--nav-height) + var(--space-l));
}

.section-page-top h1 {
  font-size: var(--text-h2);
  line-height: 1.12;
  letter-spacing: -0.02em;
}


/* ----------------------------------------------------------------
   23. ESTIMATE PAGE — trust columns
   ---------------------------------------------------------------- */
.section-trust-cols {
  background: linear-gradient(178deg, #1F3A3D 0%, #16282A 55%, #0A0A0A 100%);
  border-top: 1px solid var(--color-border);
}

.trust-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
  margin-bottom: var(--space-l);
}

.trust-col-headline {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-tan);
  margin-bottom: var(--space-s);
  max-width: none;
}

.trust-col-body {
  color: var(--color-ink-60);
  font-size: var(--text-body);
  max-width: none;
}

.trust-cta-wrap {
  text-align: center;
  padding-top: var(--space-l);
  border-top: 1px solid var(--color-border);
}


/* ----------------------------------------------------------------
   24. ABOUT PAGE
   ---------------------------------------------------------------- */
.section-studio {
  background:
    radial-gradient(110% 85% at 12% 0%, rgba(138, 158, 126, 0.12), transparent 58%),
    var(--color-surface);
}

/* Hands off directly into .section-inquiry below it — stays in the teal
   family the whole way down, never dips to black between the two. */
.section-case {
  background: linear-gradient(178deg, #1F3A3D 0%, #16282A 55%, #1F3A3D 100%);
}

/* Lead image under the intro */
.about-lead { margin: var(--space-xl) 0 0; }

.about-lead-image { aspect-ratio: 21 / 9; }

.about-lead-image img { object-position: center 62%; }

.factory-image {
  background: var(--color-card);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
}

.factory-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.factory-image:hover img { transform: scale(1.02); }

.factory-caption {
  font-family: var(--font-caption);
  font-weight: 400;
  font-size: var(--text-mono);
  letter-spacing: 0.02em;
  color: var(--color-ink-60);
  margin-top: var(--space-xs);
  max-width: none;
}

/* Story section — text and portrait as equal columns */
.story-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-xl);
  align-items: start;
}

.story-figure { margin: 0; }

.story-figure img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.story-caption {
  font-family: var(--font-caption);
  font-weight: 400;
  font-size: var(--text-mono);
  letter-spacing: 0.02em;
  color: var(--color-ink-60);
  margin-top: var(--space-xs);
}

/* About body paragraphs at correct scale */
#who-we-are p:not(.section-label) {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-ink-60);
  margin-top: var(--space-s);
}

#who-we-are p:not(.section-label) + p:not(.section-label) {
  margin-top: 1.5rem;
}

/* About page — tighter vertical rhythm */
[data-section-code^="A/"] { padding-block: calc(var(--space-m) * 2); }

/* Problem comparison grid */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
  margin-top: var(--space-l);
}

.problem-col {
  border-top: 1px solid var(--color-border-strong);
  padding-top: var(--space-m);
}

.problem-col p { color: var(--color-ink-60); }

.problem-label {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-tan);
  margin-bottom: var(--space-s);
}

.problem-closing {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.4;
  color: var(--color-ink);
  max-width: 56ch;
  margin-top: var(--space-xl);
  text-wrap: pretty;
}


/* ----------------------------------------------------------------
   25. IMAGE BREAKS — full-bleed stills (about page)
   ---------------------------------------------------------------- */
.image-break {
  padding: 0;
  background: var(--color-bg);
}

.image-break figure {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.image-break img {
  width: 100%;
  height: clamp(340px, 72vh, 680px);
  object-fit: cover;
  display: block;
}

.image-break figcaption {
  position: absolute;
  left: var(--space-page);
  bottom: var(--space-s);
  font-family: var(--font-caption);
  font-weight: 400;
  font-size: var(--text-mono);
  letter-spacing: 0.02em;
  color: rgba(240, 237, 226, 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

/* Scroll reveal — figures wipe in as they enter the viewport */
html.js .reveal-figure {
  clip-path: inset(8% 0 8% 0);
  opacity: 0;
  transform: translateY(28px);
  transition:
    clip-path 0.9s var(--ease),
    opacity 0.6s ease,
    transform 0.9s var(--ease);
}

html.js .reveal-figure.in-view {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  transform: none;
}


/* ----------------------------------------------------------------
   26. LEGAL PAGES — privacy.html, terms.html
   ---------------------------------------------------------------- */
.legal-header-meta-light {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: var(--text-mono);
  letter-spacing: 0.04em;
  color: var(--color-ink-40);
  margin-top: var(--space-s);
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  max-width: 68ch;
}

.legal-body h3 { margin-bottom: 0.5rem; }

.legal-body p { color: var(--color-ink-60); }

.legal-body ul {
  list-style: none;
  padding: 0;
  margin: var(--space-xs) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-body li {
  padding-left: 1.2em;
  position: relative;
  max-width: 68ch;
  color: var(--color-ink-60);
}

.legal-body li::before {
  content: '\00B7';
  position: absolute;
  left: 0;
  color: var(--color-tan);
}

.legal-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.85;
  transition: opacity var(--duration) var(--ease);
}

.legal-body a:hover { opacity: 1; }


/* ----------------------------------------------------------------
   27. RESPONSIVE — 1160px
   ---------------------------------------------------------------- */
@media (max-width: 1160px) {
  .calc-layout { gap: var(--space-l); }
  .calc-results-panel { position: static; }
}


/* ----------------------------------------------------------------
   28. RESPONSIVE — 960px
   ---------------------------------------------------------------- */
@media (max-width: 960px) {
  .bento-grid { grid-template-columns: 1fr; }

  .proof-grid { grid-template-columns: 1fr; }
  .proof-item--tall { grid-row: auto; aspect-ratio: 4 / 5; }

  .compare-cards { grid-template-columns: 1fr; }

  .studio-split { grid-template-columns: 1fr; gap: var(--space-l); align-items: start; }

  .story-grid   { grid-template-columns: 1fr; gap: var(--space-l); }
  .story-figure { max-width: 480px; }

  .calc-layout  { grid-template-columns: 1fr; }

  .sticky-cta {
    right: auto;
    left: 50%;
    transform: translate(-50%, 8px);
  }

  .sticky-cta.sticky-cta-visible { transform: translate(-50%, 0); }

  .calc-slider { height: 3px; margin: 1rem 0; }

  .inquiry-inner { grid-template-columns: 1fr; gap: var(--space-l); }

  .nav-links     { display: none; }
  .nav-hamburger { display: flex; }
}


/* ----------------------------------------------------------------
   29. RESPONSIVE — 768px
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --space-xl:   4rem;
    --space-l:    2.75rem;
    --text-mono:  0.875rem; /* 14px floor on mobile */
    --nav-height: 87px;
  }

  .nav-logo { height: 52px; }

  .hero-scroll-cue { display: none; }

  .hero-trust { margin-bottom: 2rem; }

  .bento-card { min-height: 280px; }

  .services-grid { grid-template-columns: 1fr; }

  .proof-pair { grid-template-columns: 1fr; }
  .proof-item--half { aspect-ratio: 3 / 2; }

  .why-statement { min-height: 0; padding: var(--space-l) 0; }

  .milestone-track { flex-direction: column; gap: var(--space-s); padding-bottom: 0; }
  .milestone-track::before { display: none; }
  .milestone-dot   { display: none; }
  .milestone-card  { margin-bottom: 0; }

  .trust-cols     { grid-template-columns: 1fr; gap: var(--space-m); }
  .trust-cta-wrap { text-align: left; }

  .about-lead-image { aspect-ratio: 3 / 2; }

  .problem-grid { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; align-items: flex-start; gap: var(--space-m); }
  .footer-nav { justify-content: flex-start; }

  .slider-group                    { margin-bottom: var(--space-m); }
  .calc-inputs-panel .slider-group { margin-bottom: var(--space-m); }

  .inquiry-fields  { grid-template-columns: 1fr; }
  .form-group-full { grid-column: auto; }

  .results-highlight { margin: 0 calc(-1 * var(--space-s)); padding-inline: var(--space-s); }

  .calc-type-btn { min-height: 44px; }
}


/* ----------------------------------------------------------------
   30. RESPONSIVE — 640px
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --space-xl: 3rem;
    --space-l:  2.25rem;
  }

  .footer-nav { gap: var(--space-s); }

  .hero-actions         { flex-direction: column; gap: 0.75rem; width: 100%; }
  .hero-actions .button { width: 100%; justify-content: center; }

  .button-book { padding: 1rem 2rem; }

  .cta-inner { padding: var(--space-m) 0; }
}


/* ----------------------------------------------------------------
   31. REDUCED MOTION
   ---------------------------------------------------------------- */
[data-aos="fade-up"] {
  transform: translate3d(0, 24px, 0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html.js .reveal-figure {
    clip-path: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover, .bento-card--media:hover .bento-media img,
  .proof-item:hover img, .proof-item:hover video { transform: none; }
}
