/* =================================================================
   Christopher Construction — styles
   -----------------------------------------------------------------
   1. Tokens (swap the brand here)
   2. Base & utilities
   3. Shared components (eyebrow, pill, counters, buttons)
   4. Nav + mobile menu
   5. A Hero
   6. B Services
   7. C Founder
   8. D Why us + marquee
   9. E Contact + form
   10. F Footer
   11. Reveal motion + reduced motion
   ================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Colour */
  --bg: #0E0D0B;                         /* warm near-black page ground */
  --panel: #171512;                      /* cards and the form */
  --bg-2: #211D18;                       /* services ground (also behind the opening hero) */
  --hairline: rgba(255, 255, 255, 0.08); /* 1px borders on dark */
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --glow: rgba(255, 255, 255, 0.035);    /* faint neutral glow behind sections */
  --cream: #EEE8DF;                      /* contact + footer ground */
  --ink: #141210;                        /* text on cream */
  --ink-muted: rgba(20, 18, 16, 0.64);
  --ink-hairline: rgba(20, 18, 16, 0.14);
  --accent: #ECE9E4;                     /* accent: dots, icon circles, active states (neutral; the brand has no gold) */
  --bone: #F2EFEA;                       /* headlines on dark */
  --bone-muted: rgba(242, 239, 234, 0.58); /* body + meta on dark (≈6:1 on --bg) */
  --bone-faint: rgba(242, 239, 234, 0.075); /* giant decorative numbers */

  /* Type */
  --font-display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --track-label: 0.2em;
  --track-tight: -0.03em;

  /* Space + shape */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --section-y: clamp(96px, 11vw, 168px);
  --nav-h: 76px;
  --radius: 12px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-slow: 900ms;
  --dur: 600ms;
  --dur-fast: 200ms;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; } /* jumps land directly */
body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font: 400 14px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
svg { width: 1em; height: 1em; }
.flip { transform: scaleX(-1); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--bone); color: var(--ink);
  transform: translateY(-160%); transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }

/* Very subtle brown radial glow behind dark sections */
.glow { isolation: isolate; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 78% 18%, var(--glow), transparent 70%),
    radial-gradient(40% 40% at 8% 90%, rgba(255, 255, 255, 0.02), transparent 70%);
}

/* ---------- 3. Shared components ---------- */
.eyebrow {
  font: 500 11px/1.4 var(--font-display);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--bone-muted);
}
.eyebrow--dot::before {
  content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); margin-right: 12px; vertical-align: 2px;
}
.meta { font: 500 10px/1.4 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--bone-muted); }

.h2 {
  font: 300 clamp(40px, 5.2vw, 80px)/1.02 var(--font-display);
  letter-spacing: var(--track-tight);
  color: var(--bone);
  max-width: 14ch;
  margin-top: 22px;
}
.body { color: var(--bone-muted); max-width: 42ch; }

/* Pill button: dark pill + label + accent circle with icon */
.pill {
  display: inline-flex; align-items: center; gap: 16px;
  height: 52px; padding: 0 6px 0 24px; border-radius: 999px;
  background: var(--ink); color: var(--bone);
  font: 500 11px/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background var(--dur-fast);
}
.pill__dot {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--ink); font-size: 14px;
}
.pill__dot svg { transition: transform 260ms var(--ease-out); }
.pill:hover .pill__dot svg { transform: translateX(3px); }
.pill:active { transform: scale(0.97); }
.pill--light { background: var(--bone); color: var(--ink); }
.pill--outline {
  height: 40px; padding: 0 20px; background: transparent;
  border: 1px solid var(--hairline-strong); color: var(--bone);
}
.pill--outline:hover { border-color: var(--accent); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11px/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase;
  padding-block: 14px; /* comfortable tap height */
}
.link-arrow svg { color: var(--accent); transition: transform 260ms var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

.counter {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 12px/1 var(--font-display); letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums; color: var(--bone);
}
.counter__sep { color: var(--bone-muted); }
.counter--label { font-size: 11px; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--bone-muted); }
.counter--label [data-why-current] { color: var(--bone); margin-left: 6px; }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--hairline-strong); font-size: 14px; color: var(--bone);
  transition: border-color var(--dur-fast), transform 160ms var(--ease-out);
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn:active { transform: scale(0.94); }

.meta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.meta-row__line { flex: 1; height: 1px; background: var(--hairline-strong); min-width: 24px; }

/* Brand logo (inline SVG symbols built from imagenes/logo.svg) */
.brand { display: inline-flex; align-items: center; color: var(--bone); padding-block: 6px; }
.brand__logo { height: 46px; width: auto; aspect-ratio: 624.53 / 120; display: block; }
.brand__stack { height: 92px; width: auto; aspect-ratio: 462.67 / 296.88; display: block; }
.brand--dark { color: var(--ink); }

/* ---------- 4. Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background var(--dur) var(--ease-out), border-color var(--dur), transform var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(14, 13, 11, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.nav__inner {
  height: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__links { display: flex; gap: 34px; margin-left: auto; margin-right: 40px; }
.nav__links a, .nav__phone {
  font: 500 11px/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--bone-muted); padding-block: 14px; position: relative;
  transition: color var(--dur-fast);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__phone { color: var(--bone); font-variant-numeric: tabular-nums; letter-spacing: 0.1em; }
.nav__right { display: flex; align-items: center; gap: 24px; }

.nav__toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav__toggle i {
  position: absolute; left: 11px; right: 11px; height: 1px; background: var(--bone);
  transition: transform 300ms var(--ease-out), top 300ms var(--ease-out);
}
.nav__toggle i:nth-of-type(1) { top: 18px; }
.nav__toggle i:nth-of-type(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] i:nth-of-type(1) { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:nth-of-type(2) { top: 21.5px; transform: rotate(-45deg); }

/* Full-screen dark menu (mobile) */
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity 400ms var(--ease-out);
}
.menu.is-open { opacity: 1; }
.menu[hidden] { display: none; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font: 300 clamp(40px, 11vw, 64px)/1.15 var(--font-display); letter-spacing: var(--track-tight);
  border-bottom: 1px solid var(--hairline); padding-block: 10px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.menu__links a span { font: 500 11px/1 var(--font-display); letter-spacing: var(--track-label); color: var(--accent); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 50ms; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 100ms; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 150ms; }
.menu__foot { display: grid; gap: 18px; justify-items: start; }
.menu .pill { background: var(--panel); border: 1px solid var(--hairline); }

/* ---------- 5. Hero ---------- */
/* Full-bleed video hero: copy on the left over a shade, the house clear on the right */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h); padding-bottom: clamp(24px, 4vh, 48px);
  overflow: hidden;
  background: var(--bg); /* shows while the video loads */
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
}
.hero__copy { position: relative; z-index: 2; display: grid; justify-items: start; }

/* Background video + shade */
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 50%; /* keeps the house toward the right */
  filter: saturate(0.92) contrast(1.03);
}
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    /* left: dark enough for the headline, fading out before the house */
    linear-gradient(90deg,
      rgba(14, 13, 11, 0.94) 0%, rgba(14, 13, 11, 0.86) 26%,
      rgba(14, 13, 11, 0.55) 46%, rgba(14, 13, 11, 0.15) 64%, rgba(14, 13, 11, 0) 78%),
    /* top: keeps the nav legible */
    linear-gradient(180deg, rgba(14, 13, 11, 0.55) 0%, rgba(14, 13, 11, 0) 20%),
    /* bottom: a soft floor */
    linear-gradient(0deg, rgba(14, 13, 11, 0.45) 0%, rgba(14, 13, 11, 0) 22%);
}
/* With the quote form open, the right side dims so the card reads cleanly */
.hero__shade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(14, 13, 11, 0.7) 0%, rgba(14, 13, 11, 0.35) 45%, rgba(14, 13, 11, 0) 70%);
  opacity: 0; transition: opacity 600ms var(--ease-out);
}
.hero.is-quote .hero__shade::after { opacity: 1; }

/* Pause / play for the looping video (anything moving over 5 s needs one) */
.hero__play {
  position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(16px, 3vh, 28px);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--hairline-strong); color: var(--bone);
  background: rgba(14, 13, 11, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color var(--dur-fast), transform 160ms var(--ease-out);
}
.hero__play:hover { border-color: var(--accent); }
.hero__play:active { transform: scale(0.94); }
.hero__play-icon { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
.hero__play[aria-pressed="true"] .hero__play-icon {
  width: 0; height: 0; border: 0; margin-left: 3px;
  border-left: 9px solid currentColor; border-block: 6px solid transparent;
}

/* Entrance: the video fades up and settles from a slight zoom */
.js .hero__media { opacity: 0; transition: opacity 1400ms var(--ease-out); }
.js .hero__video { transform: scale(1.06); transition: transform 2400ms var(--ease-enter); }
.js .is-loaded .hero__media { opacity: 1; }
.js .is-loaded .hero__video { transform: none; }
.hero__title {
  margin-top: 24px;
  font: 300 clamp(44px, min(6.2vw, 11.2vh), 108px)/1 var(--font-display); /* scales with width and height so short screens fit */
  letter-spacing: -0.035em;
  color: var(--bone);
  max-width: 15ch;
  text-wrap: balance;
}
.hero__cta { margin-top: clamp(28px, 4.5vh, 52px); }

/* Right column: holds the quote form when it is open (the video shows through otherwise) */
.hero__right { position: relative; display: grid; align-items: center; }
.quote { grid-area: 1 / 1; }

/* ---------- Hero quote form ---------- */
.quote {
  position: relative; z-index: 1; justify-self: end;
  width: 100%; max-width: 620px;
  background: var(--panel); color: var(--bone);
  border: 1px solid var(--hairline); border-radius: 16px;
  padding: clamp(20px, 2.4vw, 32px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  opacity: 0; transform: translateY(24px) scale(0.98);
  transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-enter);
}
.quote[hidden] { display: none; }
.quote.is-in { opacity: 1; transform: none; }
/* Each block of the form follows the card in, one after another */
.quote > * { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-enter); }
.quote.is-in > * { opacity: 1; transform: none; }
.quote.is-in > *:nth-child(2) { transition-delay: 60ms; }
.quote.is-in > *:nth-child(3) { transition-delay: 120ms; }
.quote.is-in > *:nth-child(4) { transition-delay: 180ms; }
.quote.is-in > *:nth-child(5) { transition-delay: 240ms; }
.quote.is-in > *:nth-child(6) { transition-delay: 300ms; }

.quote__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.quote__title { font: 300 clamp(24px, 2.2vw, 32px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.quote__close {
  position: relative; width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid var(--hairline-strong);
  transition: border-color var(--dur-fast), transform 160ms var(--ease-out);
}
.quote__close:hover { border-color: var(--accent); }
.quote__close:active { transform: scale(0.94); }
.quote__close span::before, .quote__close span::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: 21.5px; height: 1px; background: var(--bone);
}
.quote__close span::before { transform: rotate(45deg); }
.quote__close span::after { transform: rotate(-45deg); }

.quote__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; margin-top: 18px; }
.quote .field input { padding: 8px 0 10px; }
.q--tight { padding-top: 16px; }
.q--tight legend { font-size: 14px; }
.q--tight .chips { padding-top: 10px; gap: 6px; }
.quote .chip span { height: 36px; padding: 0 14px; }
.quote .q .field__err { margin-top: 6px; }

/* Remodeling options open below "Service" only when Remodeling is chosen */
.quote__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 500ms var(--ease-enter); }
.quote__more > fieldset { min-height: 0; overflow: hidden; opacity: 0; transition: opacity 400ms var(--ease-out); }
.quote__more.is-open { grid-template-rows: 1fr; }
.quote__more.is-open > fieldset { opacity: 1; transition-delay: 120ms; }

.quote__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Hero → Services: the window opens ----------
   Desktop only (.has-stage, set by JS). The stage is taller than the screen and
   its pin holds both panels. As you scroll (--p 0→1):
   · the hero swings outward on a top hinge, like an awning window opening, and
   · Services stands up from a tilt behind it and settles flat.
   The pin's ground is the Services colour, so there is never a black gap. */
.stage { position: relative; }
.has-stage .stage { height: calc(100vh + 120vh); height: calc(100svh + 120vh); --p: 0; }
.has-stage .stage__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--bg-2);
  perspective: 1500px; perspective-origin: 50% 0%;
}
.has-stage .hero {
  --o: clamp(0, calc(var(--p) * 1.3), 1);                 /* opening, done at p ≈ 0.77 */
  position: absolute; inset: 0; z-index: 2; height: 100%; min-height: 0;
  background: var(--bg);
  transform-origin: 50% 0%;
  transform: rotateX(calc(var(--o) * -82deg));
  opacity: calc(1 - clamp(0, calc((var(--o) - 0.75) * 4), 1));
  backface-visibility: hidden;
  will-change: transform;
}
/* The panel darkens as it turns away from the light */
.has-stage .hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.85));
  opacity: calc(var(--o) * 0.9);
}
.has-stage .services {
  --s: clamp(0, calc(var(--p) * 1.25 - 0.1), 1);          /* rising, done at p ≈ 0.88 */
  position: absolute; inset: 0; z-index: 1; height: 100%;
  transform-origin: 50% 100%;
  transform: translateY(calc((1 - var(--s)) * 12%)) rotateX(calc((1 - var(--s)) * 24deg)) scale(calc(0.9 + var(--s) * 0.1));
  opacity: calc(0.25 + var(--s) * 0.75);
}

/* License line under the headline */
.hero__license {
  display: flex; align-items: center; gap: 14px; margin-top: 28px;
  font: 400 13px/1 var(--font-display); letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums; color: var(--bone);
}
.hero__license::before {
  content: ""; width: 32px; height: 1px; background: var(--accent); flex: none;
  transform-origin: left;
}
.hero__license-label {
  font-size: 10px; font-weight: 500; letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--bone-muted);
}

/* ---------- Hero entrance (plays once on load) ----------
   Timeline: eyebrow 0ms · headline words 120ms + 70ms each · license 650ms
   · button 820ms · image 300ms. One curve for everything: --ease-enter. */
:root { --ease-enter: cubic-bezier(0.16, 1, 0.3, 1); }

/* Eyebrow: fades in while its tracking settles from wide to normal */
.js .hero__eyebrow {
  opacity: 0; letter-spacing: 0.42em;
  transition: opacity 1000ms var(--ease-enter), letter-spacing 1400ms var(--ease-enter);
}
.js .is-loaded .hero__eyebrow { opacity: 1; letter-spacing: var(--track-label); }

/* Headline: each word rises out of its own mask (words wrapped by JS) */
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__title .w__i { display: inline-block; }
.js .hero__title .w__i {
  transform: translateY(125%);
  transition: transform 1100ms var(--ease-enter);
  transition-delay: calc(120ms + var(--i, 0) * 70ms);
}
.js .is-loaded .hero__title .w__i { transform: none; }

/* License: accent rule draws, then the text fades up */
.js .hero__license { opacity: 0; transform: translateY(10px); transition: opacity 800ms var(--ease-enter) 650ms, transform 800ms var(--ease-enter) 650ms; }
.js .hero__license::before { transform: scaleX(0); transition: transform 900ms var(--ease-enter) 600ms; }
.js .is-loaded .hero__license { opacity: 1; transform: none; }
.js .is-loaded .hero__license::before { transform: scaleX(1); }

/* Button: the pill wipes open left to right, then the accent dot and arrow land */
.js .hero__cta { clip-path: inset(0 100% 0 0 round 999px); transition: clip-path 1000ms var(--ease-enter) 820ms, transform 160ms var(--ease-out); }
.js .hero__cta .pill__dot { transform: scale(0.4); opacity: 0; transition: transform 700ms var(--ease-enter) 1180ms, opacity 400ms var(--ease-out) 1180ms; }
.js .hero__cta .pill__dot svg { transform: translateX(-6px); transition: transform 700ms var(--ease-enter) 1250ms; }
.js .is-loaded .hero__cta { clip-path: inset(0 0 0 0 round 999px); }
.js .is-loaded .hero__cta .pill__dot { transform: none; opacity: 1; }
.js .is-loaded .hero__cta .pill__dot svg { transform: none; }
.js .is-loaded .hero__cta:hover .pill__dot svg { transform: translateX(3px); transition-delay: 0ms; transition-duration: 260ms; }

/* ---------- 6. Services ---------- */
/* Left: the chosen service and one button to the form. Right: a 3D card carousel. */
.services { position: relative; background: var(--bg-2); overflow: hidden; padding-block: var(--section-y); }
.has-stage .services { padding: calc(var(--nav-h) + 2vh) 0 2vh; display: flex; align-items: center; }
.services__inner {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center; gap: clamp(24px, 3vw, 56px);
}

/* Left column */
.svc-copy { display: grid; justify-items: start; }
.svc-copy__eyebrow { display: flex; align-items: center; gap: 14px; color: var(--accent); }
.svc-copy__rule { width: 48px; height: 1px; background: var(--accent); opacity: 0.7; }
.svc-copy__count { color: var(--bone-muted); font-variant-numeric: tabular-nums; letter-spacing: 0.14em; }
.svc-copy__items { display: grid; margin-top: clamp(14px, 2.4vh, 24px); }
.svc-copy__item { grid-area: 1 / 1; }
.svc-copy__title {
  font: 300 clamp(40px, min(5vw, 9.4vh), 84px)/1.02 var(--font-display);
  letter-spacing: -0.035em; color: var(--bone);
  max-width: 11ch; text-wrap: balance;
}
.svc-copy__title span { color: var(--accent); }
.svc-copy__text { margin-top: clamp(12px, 2.2vh, 20px); color: var(--bone-muted); font-size: 15px; max-width: 38ch; }
.svc-copy__tags {
  margin-top: 12px;
  font: 500 10px/1.5 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--bone-muted);
}
.svc-copy__cta { margin-top: clamp(22px, 4vh, 40px); }

/* Text swap: the old item fades quickly, the new one's lines rise in turn */
.js .svc-copy__item { visibility: hidden; transition: visibility 0s linear 300ms; }
.js .svc-copy__item.is-active { visibility: visible; transition-delay: 0s; }
.js .svc-copy__item > * { opacity: 0; transform: translateY(12px); transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
.js .svc-copy__item.is-active > * { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-enter); }
.js .svc-copy__item.is-active > :nth-child(1) { transition-delay: 150ms; }
.js .svc-copy__item.is-active > :nth-child(2) { transition-delay: 230ms; }
.js .svc-copy__item.is-active > :nth-child(3) { transition-delay: 300ms; }

/* Right column: carousel */
.svc-carousel {
  --ch: clamp(240px, 56vh, 520px);   /* card height */
  --cw: calc(var(--ch) * 0.96);      /* card width (near square, like the reference) */
  display: grid; justify-items: center; gap: clamp(10px, 2.4vh, 24px);
  min-width: 0;
}
.deck { position: relative; width: 100%; height: calc(var(--ch) + 24px); perspective: 1600px; }
.deck__card {
  position: absolute; left: 50%; top: 12px;
  width: var(--cw); height: var(--ch); margin-left: calc(var(--cw) / -2);
  padding: 0; border: 0; border-radius: 28px; overflow: hidden; cursor: pointer;
  background: var(--panel);
  transform: translateX(var(--x, 0%)) translateZ(var(--z, 0px)) rotateY(var(--r, 0deg));
  opacity: var(--op, 1);
  z-index: var(--zi, 1);
  filter: brightness(var(--br, 1));
  transition: transform 900ms var(--ease-enter), opacity 600ms var(--ease-out), filter 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.deck__card.no-anim { transition: none; }
.deck__card img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.9) contrast(1.04); transition: transform 900ms var(--ease-enter); }
.deck__card:not(.is-front):hover img { transform: scale(1.03); }
/* Front card: bright frame and a soft halo, like the reference */
.deck__card.is-front {
  cursor: default;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 44px -6px rgba(255, 255, 255, 0.35), 0 50px 90px -30px rgba(0, 0, 0, 0.9);
}
.deck__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

/* Arrows + dots */
.deck__nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); position: relative; z-index: 12; }
.deck__dots { display: flex; gap: 2px; }
.deck__dot { width: 24px; height: 44px; display: grid; place-items: center; }
.deck__dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(242, 239, 234, 0.28);
  transition: background 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.deck__dot:hover::before { background: rgba(242, 239, 234, 0.6); }
.deck__dot[aria-current="true"]::before { background: var(--accent); transform: scale(1.25); }

/* Phones and tablets: carousel first, then the text and button */
@media (max-width: 960px) {
  .services__inner { grid-template-columns: 1fr; gap: 28px; }
  .svc-carousel { order: -1; --ch: clamp(260px, 62vw, 420px); }
}
@media (max-width: 600px) {
  .svc-carousel { --ch: min(76vw, 320px); }
  .svc-copy__cta { width: 100%; justify-content: space-between; }
}

/* ---------- 9. Contact ---------- */
.light { background: var(--cream); color: var(--ink); }
.light .eyebrow { color: var(--ink-muted); }
.contact { padding-block: var(--section-y); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.contact__info { position: sticky; top: calc(var(--nav-h) + 40px); }
.contact__title { color: var(--ink); font-size: clamp(48px, 6.4vw, 104px); max-width: 9ch; }
.contact__call { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: clamp(36px, 4vw, 56px); }
.contact__phone { font: 300 clamp(22px, 2vw, 28px)/1 var(--font-display); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; padding-block: 10px; }
.contact__row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--ink-hairline);
  font-size: 15px;
}
.contact__row .eyebrow { width: 110px; flex: none; }
.contact__row a { border-bottom: 1px solid transparent; transition: border-color var(--dur-fast); padding-block: 10px; }
.contact__row a:hover { border-color: var(--ink); }
.contact__row--area { margin-top: 0; align-items: baseline; }
.contact__row--area p { flex: 1; min-width: 220px; color: var(--ink-muted); max-width: 40ch; }
.copy-btn {
  height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ink-hairline);
  font: 500 10px/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase;
  transition: border-color var(--dur-fast), background var(--dur-fast), transform 160ms var(--ease-out);
  position: relative;
}
.copy-btn::before { content: ""; position: absolute; inset: -6px; } /* 44px tap area */
.copy-btn:hover { border-color: var(--ink); }
.copy-btn:active { transform: scale(0.95); }
.copy-btn.is-done { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.contact__note { margin-top: 20px; font-size: 13px; color: var(--ink-muted); }

/* ---------- 10. Footer ---------- */
.footer { border-top: 1px solid var(--ink-hairline); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 32px 56px; align-items: center; }
.footer__desc { color: var(--ink-muted); max-width: 46ch; font-size: 13px; }
.footer__nav { display: flex; gap: 28px; }
.footer__nav a, .footer__base a {
  font: 500 11px/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase;
  padding-block: 14px; transition: color var(--dur-fast);
}
.footer__nav a:hover { color: var(--ink-muted); }
.footer__base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center;
  margin-top: 40px; padding-top: 18px; position: relative;
  font-size: 12px; color: var(--ink-muted);
}
.footer__base a { color: var(--ink); letter-spacing: 0.1em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 22px; margin-right: 16px; }
}
@media (max-width: 960px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: block; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__info { position: static; }
  .why__head { grid-template-columns: 1fr; align-items: start; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .nav .pill--outline { display: none; }
  .brand__logo { height: 36px; }
  .brand__stack { height: 80px; }
  .why__ctrls { position: static; transform: none; justify-content: center; gap: 12px; margin-top: 20px; } /* under the card; swipe also works */
  .why__stage { --card-w: min(74vw, 320px); padding-top: 104px; }
  /* On phones the number rises above the card instead of beside it */
  .why__num { top: 0; left: 50%; transform: translate(-50%, 0); font-size: 40vw; }
  .why__num.is-swapping { transform: translate(-50%, 16px); }
  .fields { grid-template-columns: 1fr; }
  .project { border-radius: 14px; }
  .contact__formwrap { margin-inline: calc(var(--gutter) * -0.5); } /* card goes near full width */
  .contact__note { padding-inline: calc(var(--gutter) * 0.5); }
  .chip span { height: 44px; }
  .pill { height: 52px; }
  .footer__nav { flex-wrap: wrap; gap: 4px 24px; }
}

/* ---------- 11. Reveal motion ---------- */
/* Only headings and short intros reveal; content stays visible without JS. */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.js [data-reveal]:nth-child(3) { transition-delay: 160ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__eyebrow, .js .hero__license, .js .hero__media, .js .hero__video { opacity: 1; transform: none; filter: none; letter-spacing: var(--track-label); }
  .js .hero__title .w__i, .js .hero__license::before, .js .hero__cta .pill__dot, .js .hero__cta .pill__dot svg { transform: none; opacity: 1; }
  .js .hero__cta { clip-path: none; }
  .marquee__track { animation: none; }
  .founder { height: auto; }
  .founder__sticky { position: relative; min-height: 100vh; }
  .founder__text { opacity: 1; transform: none; }
  .founder__dim { opacity: 0.72; }
}

/* Footer base rule aligned to the content edges, not the full padded box */
.footer__base::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--ink-hairline);
}

/* Mobile hero + services */
@media (max-width: 960px) {
  /* Video fills the screen; copy sits low over a shade that darkens toward the bottom */
  .hero { align-items: flex-end; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 88px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__title { max-width: 14ch; }
  .hero__video { object-position: 58% 50%; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(14, 13, 11, 0.6) 0%, rgba(14, 13, 11, 0.12) 22%,
        rgba(14, 13, 11, 0.72) 48%, rgba(14, 13, 11, 0.94) 72%, rgba(14, 13, 11, 0.96) 100%);
  }
  .hero.is-quote .hero__shade::after { background: rgba(14, 13, 11, 0.6); }
  .quote { justify-self: stretch; max-width: none; }

}
@media (max-width: 600px) {
  .hero__cta { width: 100%; justify-content: space-between; }
  .quote__fields { grid-template-columns: 1fr; }
  .quote .chip span { height: 44px; }
}

/* Quote form: compact spacing so it fits short laptop screens; scrolls inside as a last resort */
.quote {
  max-width: 640px; padding: clamp(18px, 2vw, 26px) clamp(20px, 2.2vw, 30px);
  max-height: calc(100svh - var(--nav-h) - 24px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin;
}
.quote__head { padding-bottom: 12px; }
.quote__close { width: 40px; height: 40px; }
.quote__close span::before, .quote__close span::after { left: 12px; right: 12px; top: 19.5px; }
.quote__fields { margin-top: 12px; }
.quote .q--tight { padding-top: 12px; }
.quote .q--tight .chips { padding-top: 8px; }
.quote .chip span { height: 34px; padding: 0 12px; font-size: 12.5px; }
.quote__foot { margin-top: 16px; }
.quote .pill { height: 48px; }
.quote .pill__dot { width: 36px; height: 36px; }
@media (max-width: 600px) { .quote { max-height: none; overflow: visible; } .quote .chip span { height: 44px; } }

.quote { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ---------- Contact details: phone, email, address, service area ---------- */
.contact__list { margin-top: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--ink-hairline); }
.contact__list .contact__row { margin-top: 0; padding: 16px 0; align-items: center; }
.contact__list .contact__row--area { align-items: baseline; }
.contact__value {
  flex: 1 1 auto; min-width: 0;
  font: 300 clamp(18px, 1.6vw, 22px)/1.3 var(--font-display); letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
a.copy-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.contact__row a.copy-btn { padding-block: 0; border: 1px solid var(--ink-hairline); }
.contact__row a.copy-btn:hover { border-color: var(--ink); }
@media (max-width: 600px) {
  .contact__list .contact__row { flex-wrap: wrap; gap: 6px 14px; }
  .contact__row .eyebrow { width: 100%; }
}

/* ---------- Brand accent: neutral, no gold ----------
   The brand uses black and white only. On cream sections and light buttons the
   accent flips to ink so dots, rules and focus rings stay visible. */
.light :focus-visible { outline-color: var(--ink); }
.light .eyebrow--dot::before { background: var(--ink); }
.pill--light .pill__dot { background: var(--ink); color: var(--bone); }
.svc-copy__eyebrow { color: var(--bone-muted); }

/* ---------- Services: key points on the left ---------- */
.svc-copy__points { margin-top: clamp(14px, 2.6vh, 24px); display: grid; gap: 10px; }
.svc-copy__points li {
  display: flex; align-items: center; gap: 14px;
  font-size: 15px; color: var(--bone-muted);
}
.svc-copy__points li::before { content: ""; width: 16px; height: 1px; background: var(--hairline-strong); flex: none; }
.js .svc-copy__item.is-active > :nth-child(2) { transition-delay: 230ms; }

/* ---------- Services: summary on the front card ---------- */
.deck__card.is-front { cursor: pointer; }
.deck__summary {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 64px 22px 20px; display: grid; gap: 8px; text-align: left;
  color: var(--bone);
  background: linear-gradient(to top, rgba(10, 9, 8, 0.9) 0%, rgba(10, 9, 8, 0.65) 55%, rgba(10, 9, 8, 0) 100%);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out);
}
.deck__card.is-front .deck__summary {
  opacity: 1; transform: none;
  transition: opacity 500ms var(--ease-out) 300ms, transform 700ms var(--ease-enter) 300ms;
}
.deck__label { font: 400 clamp(20px, 1.8vw, 26px)/1.15 var(--font-display); letter-spacing: -0.01em; }
.deck__text {
  font-size: 13.5px; line-height: 1.5; color: rgba(242, 239, 234, 0.8);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.deck__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font: 500 10px/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase;
}
.deck__more svg { transition: transform 260ms var(--ease-out); }
.deck__card.is-front:hover .deck__more svg { transform: translateX(4px); }
.deck__card.is-front:hover img { transform: scale(1.03); }

/* ---------- Services: full description panel (dialog) ---------- */
.svc-detail {
  --dh: min(720px, calc(100svh - 48px));
  padding: 0; border: 1px solid var(--hairline); border-radius: 24px;
  background: var(--panel); color: var(--bone);
  width: min(1040px, calc(100vw - 32px)); max-width: none; max-height: var(--dh);
  overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.97);
  transition: opacity 280ms var(--ease-out), transform 420ms var(--ease-enter);
}
.svc-detail.is-open { opacity: 1; transform: none; }
.svc-detail::backdrop {
  background: rgba(8, 7, 6, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.svc-detail__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); height: var(--dh); }
.svc-detail__item[hidden] { display: none; }
.svc-detail__img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.04); }
.svc-detail__body {
  padding: clamp(28px, 4vw, 56px); overflow-y: auto; overscroll-behavior: contain;
  display: grid; align-content: start; gap: 16px;
}
.svc-detail__title { font: 300 clamp(36px, 4vw, 56px)/1.05 var(--font-display); letter-spacing: -0.03em; }
.svc-detail__body p:not(.eyebrow) { color: var(--bone-muted); font-size: 15px; line-height: 1.7; max-width: 54ch; }
.svc-detail__cta { justify-self: start; margin-top: 8px; }
.svc-detail__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--hairline-strong); background: rgba(14, 13, 11, 0.6);
  transition: border-color var(--dur-fast), transform 160ms var(--ease-out);
}
.svc-detail__close:hover { border-color: var(--bone); }
.svc-detail__close:active { transform: scale(0.94); }
.svc-detail__close span::before, .svc-detail__close span::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: 21.5px; height: 1px; background: var(--bone);
}
.svc-detail__close span::before { transform: rotate(45deg); }
.svc-detail__close span::after { transform: rotate(-45deg); }

@media (max-width: 760px) {
  .svc-detail { --dh: calc(100svh - 24px); border-radius: 18px; }
  .svc-detail__item { grid-template-columns: 1fr; height: auto; max-height: var(--dh); overflow-y: auto; }
  .svc-detail__img { height: 34svh; }
  .svc-detail__body { overflow: visible; }
  .svc-detail__cta { width: 100%; justify-content: space-between; }
}

/* Detail panel scrollbar in the site's dark style */
.svc-detail__body, .svc-detail__item { scrollbar-width: thin; scrollbar-color: rgba(242, 239, 234, 0.22) transparent; }


/* Eyebrow dot sits next to its label (no flex gap) */
.svc-copy__eyebrow { gap: 0; }


/* Cards carry a summary at the bottom, so a mirror reflection would show it upside down.
   A soft light pool under the front card gives the 'on a surface' feel instead. */
.deck::after {
  content: ''; position: absolute; left: 50%; bottom: -6px; z-index: 0; pointer-events: none;
  width: calc(var(--cw) * 1.5); height: 46px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(242, 239, 234, 0.14), rgba(242, 239, 234, 0) 70%);
  filter: blur(6px);
}


/* ---------- Services: larger copy, closer to the cards ---------- */
.services__inner { max-width: 1240px; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(16px, 2vw, 32px); }
.svc-copy { justify-self: end; width: 100%; max-width: 480px; }
.svc-copy__title { font-size: clamp(52px, min(6.4vw, 12vh), 108px); }
.svc-copy__points { gap: 14px; }
.svc-copy__points li { font-size: clamp(16px, 1.35vw, 19px); color: rgba(242, 239, 234, 0.72); }
.svc-copy__points li::before { width: 22px; background: rgba(242, 239, 234, 0.4); }
.svc-copy__eyebrow { font-size: 12px; }
@media (max-width: 960px) { .svc-copy { justify-self: stretch; max-width: none; } }

/* ---------- C · Our work: before / after ---------- */
.work { background: var(--bg); }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.work__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.work__tab {
  height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--hairline-strong); color: var(--bone-muted);
  font: 500 11px/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast), transform 160ms var(--ease-out);
}
.work__tab:hover { color: var(--bone); border-color: rgba(242, 239, 234, 0.4); }
.work__tab:active { transform: scale(0.97); }
.work__tab[aria-selected="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.ba {
  --pos: 50%;
  position: relative; margin-top: clamp(28px, 4vw, 48px);
  aspect-ratio: 16 / 8.5; max-height: 74vh; width: 100%;
  border-radius: 20px; overflow: hidden; background: var(--panel);
  border: 1px solid var(--hairline);
  user-select: none;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 250ms var(--ease-out); }
.ba.is-swapping .ba__img { opacity: 0; }
.ba__before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__before { filter: saturate(0.85); }
.ba__tag {
  position: absolute; top: 18px; padding: 8px 14px; border-radius: 999px;
  background: rgba(14, 13, 11, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 500 10px/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--bone);
  pointer-events: none;
}
.ba__tag--before { left: 18px; }
.ba__tag--after { right: 18px; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--bone); pointer-events: none; }
.ba__knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 2px;
  background: var(--bone); color: var(--ink); font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.ba__range:focus-visible + * , .ba:focus-within .ba__knob { outline: 2px solid var(--bone); outline-offset: 4px; }

/* ---------- D · About us ---------- */
.about { background: var(--bg-2); }
.about__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.about__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px;
  filter: grayscale(1) contrast(1.05); border: 1px solid var(--hairline);
}
.about__copy .h2 { max-width: 15ch; }
.about__text { margin-top: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.about__text p { color: var(--bone-muted); font-size: 15px; line-height: 1.75; max-width: 60ch; }
.about__facts { margin: clamp(24px, 3vw, 36px) 0 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--hairline); }
.about__facts div { padding: 18px 28px 0 0; margin-right: 28px; }
.about__facts dt { font: 500 10px/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--bone-muted); }
.about__facts dd { margin: 8px 0 0; font: 300 22px/1.2 var(--font-display); color: var(--bone); font-variant-numeric: tabular-nums; }

/* ---------- E · Reviews ---------- */
.reviews { background: var(--bg); }
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.reviews__head .link-arrow { color: var(--bone); }
.reviews__grid { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review { margin: 0; padding: 28px; border-radius: 18px; background: var(--panel); border: 1px solid var(--hairline); display: grid; gap: 16px; align-content: start; }
.review__stars { color: var(--bone); letter-spacing: 0.15em; font-size: 14px; }
.review__stars span { color: rgba(242, 239, 234, 0.25); }
.review__text { margin: 0; color: rgba(242, 239, 234, 0.82); font-size: 15px; line-height: 1.7; }
.review__name { font: 500 11px/1.4 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone); }
.review__name span { color: var(--bone-muted); }

/* ---------- F · Contact: details left, narrow form right ---------- */
.contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); justify-content: space-between; }
.contact__info { position: static; }
.cform {
  background: var(--panel); color: var(--bone);
  border: 1px solid var(--hairline); border-radius: 18px;
  padding: clamp(24px, 2.6vw, 34px);
  display: grid; gap: 18px;
  box-shadow: 0 40px 80px -30px rgba(20, 18, 16, 0.45);
}
.cform__title { font: 300 clamp(26px, 2.2vw, 32px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.cform .q--tight { padding-top: 0; }
.cform .q--tight legend { font: 500 10px/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--bone-muted); }
.cform .chip span { height: 40px; }
.field select {
  width: 100%; margin-top: 8px; padding: 10px 28px 12px 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F2EFEA' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center;
  border: 0; border-bottom: 1px solid var(--hairline-strong); border-radius: 0;
  color: var(--bone); font: 400 16px/1.4 var(--font-body);
  -webkit-appearance: none; appearance: none;
}
.field select option { color: #141210; }
.field select:focus { outline: none; border-bottom-color: var(--bone); }
.cform__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Consent checkbox (both forms) */
.consent-check { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--bone-muted); cursor: pointer; }
.consent-check input {
  flex: none; width: 20px; height: 20px; margin: 0; margin-top: 1px;
  -webkit-appearance: none; appearance: none; border-radius: 5px;
  border: 1px solid rgba(242, 239, 234, 0.4); background: transparent; cursor: pointer;
  display: grid; place-items: center; transition: background var(--dur-fast), border-color var(--dur-fast);
}
.consent-check input::after {
  content: ""; width: 5px; height: 10px; margin-top: -2px;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform 160ms var(--ease-out);
}
.consent-check input:checked { background: var(--bone); border-color: var(--bone); }
.consent-check input:checked::after { transform: rotate(45deg) scale(1); }
.consent-check input:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.consent-check input[aria-invalid="true"] { border-color: #E3A58E; }
.consent-check a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }
.quote .consent-check { margin-top: 14px; }

/* ---------- Footer (no logo) ---------- */
.footer__grid { grid-template-columns: 1fr auto; }
.footer__legal { display: flex; gap: 20px; align-items: center; }
.footer__cookie { font: 500 11px/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); padding-block: 14px; }
.footer__cookie:hover, .footer__legal a:hover { color: var(--ink-muted); }
.footer__credit { display: none; }

/* ---------- Cookie notice ---------- */
.cookie {
  position: fixed; z-index: 60; left: 16px; bottom: 16px; max-width: 420px;
  padding: 18px 20px; border-radius: 16px;
  background: rgba(23, 21, 18, 0.96); color: var(--bone);
  border: 1px solid var(--hairline-strong); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: grid; gap: 14px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-enter);
}
.cookie.is-in { opacity: 1; transform: none; }
.cookie[hidden] { display: none; }
.cookie p { font-size: 13px; line-height: 1.55; color: rgba(242, 239, 234, 0.8); }
.cookie a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie__btn {
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--hairline-strong);
  font: 500 11px/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase;
  transition: border-color var(--dur-fast), transform 160ms var(--ease-out);
}
.cookie__btn:hover { border-color: var(--bone); }
.cookie__btn:active { transform: scale(0.97); }
.cookie__btn--accept { background: var(--bone); color: var(--ink); border-color: var(--bone); }

@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media img { aspect-ratio: 4 / 3; }
  .reviews__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__formwrap { max-width: 520px; }
}
@media (max-width: 600px) {
  .ba { aspect-ratio: 4 / 5; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .cookie__actions .cookie__btn { flex: 1; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Shared form controls (hero quote + contact form) ---------- */
.q { border: 0; margin: 0; padding: 26px 0 0; min-width: 0; }
.q legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 14px; padding: 0; font-size: 15px; color: var(--bone); }
.q__n { font: 500 10px/1 var(--font-display); letter-spacing: 0.14em; color: var(--accent); font-variant-numeric: tabular-nums; }
.chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border: 1px solid var(--hairline-strong); border-radius: 999px;
  font-size: 13px; color: var(--bone-muted);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast), transform 160ms var(--ease-out);
}
.chip:hover span { border-color: rgba(242,239,234,0.32); color: var(--bone); }
.chip:active span { transform: scale(0.97); }
.chip input:checked + span { border-color: var(--bone); color: var(--ink); background: var(--bone); }
.chip input:focus-visible + span { outline: 1.5px solid var(--bone); outline-offset: 3px; }

.field label { display: block; font: 500 10px/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--bone-muted); }
.optional { text-transform: none; letter-spacing: 0.02em; opacity: 0.8; }
.field input, .field textarea {
  width: 100%; margin-top: 8px; padding: 10px 0 12px;
  background: transparent; border: 0; border-bottom: 1px solid var(--hairline-strong); border-radius: 0;
  color: var(--bone); font: 400 16px/1.4 var(--font-body);
  transition: border-color var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--bone); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { box-shadow: 0 1px 0 0 var(--bone); }
.field [aria-invalid="true"] { border-bottom-color: #D98A6E; }
.field__err { margin-top: 8px; font-size: 12px; color: #E3A58E; }
.form-status { font-size: 13px; color: var(--bone-muted); }
.form-status.is-ok { color: var(--bone); }

/* Dark form card inside the cream contact section: light focus rings */
.cform :focus-visible { outline-color: var(--bone); }


/* Rows marked hidden (pending data) stay hidden */
.contact__row[hidden], [hidden] { display: none !important; }


/* Reviews: two columns suit four long reviews */
.reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.review { padding: clamp(24px, 2.6vw, 36px); }
.review__text { font: 300 clamp(17px, 1.35vw, 20px)/1.6 var(--font-display); color: rgba(242, 239, 234, 0.86); }
@media (max-width: 960px) { .reviews__grid { grid-template-columns: 1fr; } }

/* Before/after: heading + photo fit one screen, even on short laptops */
.work { padding-block: clamp(72px, 10vh, 120px); }
.ba { aspect-ratio: auto; height: min(calc(100svh - var(--nav-h) - 210px), 62vw); max-height: none; min-height: 300px; }
.work .h2 { font-size: clamp(40px, min(5.2vw, 9vh), 80px); }

/* About: photo and text sized to the screen */
.about { padding-block: clamp(72px, 10vh, 120px); }
.about__grid { align-items: center; }
.about__media img { aspect-ratio: auto; height: min(calc(100svh - var(--nav-h) - 80px), 640px); min-height: 360px; }
.about .h2 { font-size: clamp(36px, min(4.4vw, 8vh), 68px); }
.about__text p { font-size: 14.5px; line-height: 1.65; }
@media (max-width: 600px) {
  .ba { height: 70vw; min-height: 260px; }
  .about__media img { height: 80vw; min-height: 0; }
}

/* ===== One section = one screen (desktop) =====
   Each section's content fits below the fixed nav without scrolling. */
@media (min-width: 961px) {
  .work, .about, .reviews, .contact {
    min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center;
    padding-block: clamp(28px, 6vh, 72px);
  }
  .work > .wrap, .about > .wrap, .reviews > .wrap, .contact > .wrap { width: 100%; }
  .ba { height: min(calc(100svh - var(--nav-h) - 200px), 62vw); margin-top: clamp(18px, 3vh, 36px); }

  /* About: narrower photo, wider text, compact type */
  .about__grid { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: clamp(28px, 3.4vw, 64px); }
  .about__media img { height: calc(100svh - var(--nav-h) - clamp(56px, 12vh, 144px)); min-height: 0; max-height: 680px; }
  .about .h2 { font-size: clamp(32px, min(3.4vw, 6.4vh), 60px); max-width: none; margin-top: 12px; }
  .about__text { margin-top: clamp(12px, 2.2vh, 24px); gap: clamp(8px, 1.4vh, 14px); }
  .about__text p { font-size: clamp(13.5px, 1.05vw, 15px); line-height: 1.6; max-width: none; }
  .about__facts { margin-top: clamp(14px, 2.4vh, 28px); }
  .about__facts div { padding-top: clamp(10px, 1.6vh, 18px); }
  .about__facts dd { font-size: clamp(17px, 1.4vw, 22px); margin-top: 6px; }

  /* Reviews: four columns, long reviews clamp with Read more */
  .reviews .h2 { font-size: clamp(36px, min(4.4vw, 8vh), 72px); }
  .reviews__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(20px, 3.4vh, 40px); }
  .review { padding: clamp(20px, 1.8vw, 28px); gap: 12px; }
  .review__text { font: 400 clamp(13.5px, 1vw, 15px)/1.6 var(--font-body); }

  /* Contact: smaller headline, two-column fields in the form */
  .contact__title { font-size: clamp(44px, min(5vw, 10vh), 96px); }
  .contact__list { margin-top: clamp(16px, 3vh, 40px); }
  .contact__list .contact__row { padding: clamp(10px, 1.8vh, 16px) 0; }
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; }
  .cform { grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.8vh, 18px) 22px; padding: clamp(20px, 2.2vw, 30px); }
  .cform > .cform__title, .cform > fieldset, .cform > .consent-check, .cform > #c-consent-err, .cform > .cform__foot, .cform > .field--msg { grid-column: 1 / -1; }
  .cform .field textarea { min-height: 52px; }
  .contact__note { margin-top: 12px; }
}

/* Review text clamp (all sizes) */
.review__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review__more {
  justify-self: start; padding: 6px 0;
  font: 500 10px/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--bone);
  border-bottom: 1px solid var(--hairline-strong);
}
.review__more:hover { border-bottom-color: var(--bone); }

/* Contact: smaller left column so the whole section reads at a glance */
@media (min-width: 961px) {
  .contact__title { font-size: clamp(38px, min(3.8vw, 7.4vh), 68px); max-width: none; margin-top: 12px; }
  .contact__value { font-size: clamp(16px, 1.25vw, 19px); }
  .contact__info { max-width: 520px; }
  .contact .copy-btn { height: 30px; }
  .cform__title { font-size: clamp(22px, 1.8vw, 28px); }
  .cform .field input, .cform .field select { padding-block: 6px 8px; margin-top: 4px; }
  .cform .chip span { height: 36px; }
  .cform .q--tight .chips { padding-top: 6px; }
}
@media (min-width: 961px) {
  .cform .field textarea { min-height: 44px; height: 44px; }
  .contact__note { display: none; } /* the 48-hour promise moves into the form title area on desktop */
  .cform__title { grid-column: 1 / -1; }
  .cform__foot { gap: 12px; }
}
.cform__sub { grid-column: 1 / -1; margin-top: -8px; font-size: 13px; color: var(--bone-muted); }

.cform textarea { scrollbar-width: none; resize: none; }
.cform textarea::-webkit-scrollbar { display: none; }


/* ===== Sections fill exactly one screen (desktop) =====
   Each section is one viewport tall; the top padding sits under the fixed nav,
   so landing on a section shows all of it and none of its neighbours. */
@media (min-width: 961px) {
  .work, .about, .reviews, .contact {
    min-height: 100vh; min-height: 100svh;
    padding: calc(var(--nav-h) + clamp(16px, 3vh, 40px)) 0 clamp(16px, 3vh, 40px);
  }
}

/* ===== Our work -> About: horizontal 3D cube turn (desktop, motion allowed) =====
   The pin holds a cube; Our work is its front face, About its right face.
   Scroll progress --p (0 -> 1) turns the cube 90deg; --push eases it back mid-turn. */
.has-cube .cube { height: calc(100vh + 130vh); height: calc(100svh + 130vh); --p: 0; --push: 0; }
.has-cube .cube__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: #070605; perspective: 2200px;
}
.has-cube .cube__box {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: translateZ(calc(-50vw - var(--push) * 22vw)) rotateY(calc(var(--p) * -90deg));
  will-change: transform;
}
.has-cube .cube__face {
  position: absolute; inset: 0; height: 100%; min-height: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.has-cube .cube__face--front { transform: translateZ(50vw); }
.has-cube .cube__face--side  { transform: rotateY(90deg) translateZ(50vw); }
/* Each face darkens as it turns away from you */
.has-cube .cube__face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; background: #000; z-index: 5;
}
.has-cube .cube__face--front::after { opacity: calc(var(--p) * 0.45); }
.has-cube .cube__face--side::after  { opacity: calc((1 - var(--p)) * 0.45); }
.has-cube .cube.is-side .cube__face--front, .has-cube .cube:not(.is-side) .cube__face--side { pointer-events: none; }

/* ===== Lit border: a soft light runs around the frame (review cards, contact form) ===== */
@property --lit { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes lit-run { to { --lit: 360deg; } }
.review, .cform { position: relative; isolation: isolate; }
.review::before, .cform::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--lit),
    rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0) 200deg,
    rgba(255, 255, 255, 0.85) 260deg, rgba(255, 255, 255, 0) 320deg, rgba(255, 255, 255, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: lit-run 6s linear infinite;
}
.cform { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 60px -20px rgba(255, 255, 255, 0.22), 0 40px 80px -30px rgba(20, 18, 16, 0.5); }
.cform::before { animation-duration: 8s; }

/* ===== Reviews: fill the screen, yellow stars, motion ===== */
.review {
  transition: transform 500ms var(--ease-enter), border-color 300ms var(--ease-out), box-shadow 500ms var(--ease-out);
  box-shadow: 0 0 40px -18px rgba(255, 255, 255, 0.14);
}
.review:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 50px -14px rgba(255, 255, 255, 0.26), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.review:nth-child(2)::before { animation-delay: -1.5s; }
.review:nth-child(3)::before { animation-delay: -3s; }
.review:nth-child(4)::before { animation-delay: -4.5s; }
.review__stars { color: #FBBC04; font-size: 16px; letter-spacing: 0.12em; text-shadow: 0 0 12px rgba(251, 188, 4, 0.45); }
.review__stars span { color: rgba(251, 188, 4, 0.25); text-shadow: none; }

/* Cards rise in one after another when the section comes into view */
.js .reviews .review { opacity: 0; transform: translateY(28px); }
.js .reviews.is-in .review {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-enter), border-color 300ms, box-shadow 500ms;
}
.js .reviews.is-in .review:nth-child(2) { transition-delay: 90ms, 90ms, 0s, 0s; }
.js .reviews.is-in .review:nth-child(3) { transition-delay: 180ms, 180ms, 0s, 0s; }
.js .reviews.is-in .review:nth-child(4) { transition-delay: 270ms, 270ms, 0s, 0s; }
.js .reviews.is-in .review:hover { transform: translateY(-6px); transition-delay: 0s; }

@media (min-width: 961px) {
  /* Use the full screen: taller cards show more of each review */
  .reviews { align-items: stretch; }
  .reviews > .wrap { display: flex; flex-direction: column; justify-content: center; }
  .reviews__grid { flex: 0 1 auto; }
  .review { padding: clamp(24px, 2.2vw, 34px); gap: 16px; }
  .review__text.is-clamped { -webkit-line-clamp: 9; }
  .review__text { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.65; }
}

/* ===== Contact details with icons ===== */
.contact__list .contact__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.contact__row .eyebrow { width: auto; }
.contact__text { display: grid; gap: 4px; min-width: 0; }
.contact__icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--ink-hairline); color: var(--ink); background: rgba(255, 255, 255, 0.5);
  transition: background 300ms var(--ease-out), color 300ms var(--ease-out), transform 300ms var(--ease-enter);
}
.contact__icon svg { width: 17px; height: 17px; }
.contact__icon--google svg { width: 19px; height: 19px; }
.contact__row:hover .contact__icon { background: var(--ink); color: var(--cream); transform: scale(1.06); }
.contact__row:hover .contact__icon--google { background: #fff; }
@media (max-width: 600px) {
  .contact__list .contact__row { grid-template-columns: 40px minmax(0, 1fr); }
  .contact__list .contact__row .copy-btn { grid-column: 2; justify-self: start; }
  .contact__icon { width: 40px; height: 40px; }
}

/* ===== Hero call to action: draws the eye once the entrance has finished =====
   A soft ring pulses out, a light sweeps across, and the arrow nudges forward. */
.js .is-loaded.is-settled .hero__cta { clip-path: none; transition: transform 160ms var(--ease-out); overflow: hidden; position: relative; animation: cta-pulse 3.2s var(--ease-out) 0.4s infinite; }
.is-settled .hero__cta::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg); animation: cta-shine 3.2s var(--ease-inout) 0.4s infinite;
}
.is-settled .hero__cta .pill__dot svg { animation: cta-nudge 3.2s var(--ease-inout) 0.4s infinite; }
.is-settled .hero__cta:hover { animation-play-state: paused; }
@keyframes cta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(242, 239, 234, 0.45); }
  60%, 100% { box-shadow: 0 0 0 16px rgba(242, 239, 234, 0); }
}
@keyframes cta-shine {
  0%   { left: -40%; }
  45%, 100% { left: 130%; }
}
@keyframes cta-nudge {
  0%, 50%, 100% { transform: none; }
  60% { transform: translateX(4px); }
  70% { transform: none; }
  80% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .is-settled .hero__cta, .is-settled .hero__cta::before, .is-settled .hero__cta .pill__dot svg,
  .review::before, .cform::before { animation: none !important; }
  .js .reviews .review { opacity: 1; transform: none; }
}

/* Phones: each detail is already a link, so the side buttons go */
@media (max-width: 600px) { .contact__list .contact__row .copy-btn { display: none; } .contact__value { font-size: 16px; } }



/* ===== Reviews: whole cards on one screen ===== */
@media (min-width: 961px) {
  .reviews { padding-top: calc(var(--nav-h) + clamp(10px, 2vh, 24px)); padding-bottom: clamp(16px, 3vh, 32px); }
  .reviews > .wrap { justify-content: flex-start; }
  .reviews .h2 { font-size: clamp(32px, min(3.6vw, 7vh), 60px); margin-top: 10px; }
  .reviews__head { align-items: center; }
  .reviews__grid { margin-top: clamp(16px, 2.6vh, 28px); }
  .review { padding: clamp(18px, 1.8vw, 26px); gap: 12px; }
  .review__text.is-clamped { -webkit-line-clamp: 7; }
  .review__text { font-size: clamp(13.5px, 1vw, 15px); line-height: 1.6; }
}
.review__name { display: flex; align-items: center; gap: 8px; }
.review__g { width: 14px; height: 14px; flex: none; }
@media (min-width: 961px) { .review__text.is-clamped { -webkit-line-clamp: 8; } }

/* ===== Reviews: plain equal cards (no inline expand) ===== */
.reviews__grid { align-items: stretch; }
.review { display: flex; flex-direction: column; }
.review .review__name { margin-top: auto; }
.review.is-source { opacity: 0.25 !important; transition: opacity 200ms; }

/* ===== One review, centred ===== */
.review-detail {
  width: min(640px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 48px);
  padding: clamp(28px, 4vw, 48px); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 22px;
  background: #1a1714; color: var(--bone); overflow: auto;
  box-shadow: 0 0 80px -20px rgba(255, 255, 255, 0.25), 0 50px 100px -30px rgba(0, 0, 0, 0.95);
}
.review-detail::backdrop { background: rgba(8, 7, 6, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.review-detail__body { display: grid; gap: 20px; }
.review-detail .review__stars { font-size: 20px; }
.review-detail__text { margin: 0; font: 300 clamp(18px, 1.6vw, 22px)/1.6 var(--font-display); color: rgba(242, 239, 234, 0.92); }
.review-detail__close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--hairline-strong); background: rgba(14, 13, 11, 0.6);
  transition: border-color var(--dur-fast), transform 160ms var(--ease-out);
}
.review-detail__close:hover { border-color: var(--bone); }
.review-detail__close:active { transform: scale(0.94); }
.review-detail__close span::before, .review-detail__close span::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: 21.5px; height: 1px; background: var(--bone);
}
.review-detail__close span::before { transform: rotate(45deg); }
.review-detail__close span::after { transform: rotate(-45deg); }


/* ===== Reviews -> Contact: magnetic pull (desktop, motion allowed) =====
   The stage pins both sections. Phase A pulls the review pieces into a glowing
   core at the centre; phase B flies the contact pieces in from the edges. */
.has-magnet .magnet { height: calc(100vh + 160vh); height: calc(100svh + 160vh); }
.has-magnet .magnet__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.has-magnet .magnet__pin > .reviews,
.has-magnet .magnet__pin > .contact { position: absolute; inset: 0; height: 100%; min-height: 0; }
.has-magnet .magnet__pin > .contact { opacity: 0; z-index: 2; }
.has-magnet .mag-src, .has-magnet .mag-item { will-change: transform, opacity; }

/* The core: a bright centre with two rings collapsing inward */
.magnet-core { display: none; }
.has-magnet .magnet-core {
  display: block; position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  z-index: 30; visibility: hidden; pointer-events: none;
}
.magnet-core span {
  position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.55), inset 0 0 30px rgba(255, 255, 255, 0.35);
}
.magnet-core span:nth-child(1) { background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0.55) 35%, transparent 70%); border: 0; }
.magnet-core span:nth-child(2) { animation: mag-ring 1.1s linear infinite; }
.magnet-core span:nth-child(3) { animation: mag-ring 1.1s linear infinite 0.55s; }
@keyframes mag-ring { from { transform: scale(3); opacity: 0; } 50% { opacity: 0.8; } to { transform: scale(0.6); opacity: 0; } }
/* Inside the stage the scroll drives these pieces directly, so no transition lag */
.has-magnet .mag-src, .has-magnet .mag-item, .has-magnet .magnet__pin .review { transition: none !important; }
.has-magnet .magnet__pin .review { opacity: 1; }

/* ===== Footer: copyright left, logo centre, policies right ===== */
.footer { padding: 28px 0; }
.footer__base { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 0; padding-top: 0; }
.footer__base::before { display: none; }
.footer__copy { justify-self: start; }
.footer__logo { justify-self: center; color: var(--ink); display: inline-flex; padding: 6px; }
.footer__logo .brand__logo { height: 40px; }
.footer__legal { justify-self: end; }
@media (max-width: 760px) {
  .footer__base { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; }
  .footer__copy, .footer__legal { justify-self: center; }
  .footer__logo { order: -1; }
}

/* =====================================================================
   Phones and tablets: the same pinned effects as desktop
   (hero window → services, cube → about, magnet → contact).
   Each pinned section must fit one screen, so layouts are compacted here.
   ===================================================================== */
@media (max-width: 960px) {
  /* --- Hero: when the quote form is open it replaces the copy on screen --- */
  .has-stage .hero { align-items: flex-end; padding: calc(var(--nav-h) + 16px) 0 72px; }
  .hero.is-quote .hero__copy { display: none; }
  .hero.is-quote { align-items: center; padding-bottom: 16px; }
  .quote { max-height: calc(100svh - var(--nav-h) - 32px) !important; overflow-y: auto !important; }

  /* --- Services inside the stage --- */
  .has-stage .services { padding: calc(var(--nav-h) + 12px) 0 16px; align-items: stretch; }
  .has-stage .services__inner { gap: 14px; align-content: center; }
  .has-stage .svc-carousel { --ch: min(40svh, 74vw); gap: 6px; }
  .has-stage .svc-copy__title { font-size: clamp(30px, 8.4vw, 44px); }
  .has-stage .svc-copy__items { margin-top: 8px; }
  .has-stage .svc-copy__points { margin-top: 10px; gap: 6px; }
  .has-stage .svc-copy__points li { font-size: 14px; }
  .has-stage .svc-copy__cta { margin-top: 14px; }
  .deck__summary { padding: 48px 16px 14px; }

  /* --- Cube faces: Our work and About --- */
  .has-cube .cube__face { padding: calc(var(--nav-h) + 14px) 0 16px; display: flex; align-items: center; }
  .has-cube .cube__face > .wrap { width: 100%; }
  .has-cube .work__head { gap: 12px; }
  .has-cube .work .h2 { font-size: clamp(32px, 9vw, 52px); margin-top: 8px; }
  .has-cube .work__tab { height: 40px; padding: 0 14px; font-size: 10px; }
  .has-cube .ba { height: min(52svh, 110vw); aspect-ratio: auto; margin-top: 16px; }
  .has-cube .about__media { display: none; }
  .has-cube .about__grid { display: block; }
  .has-cube .about__copy { max-height: calc(100svh - var(--nav-h) - 30px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .has-cube .about .h2 { font-size: clamp(28px, 7.6vw, 44px); margin-top: 8px; }
  .has-cube .about__text { margin-top: 12px; gap: 8px; }
  .has-cube .about__text p { font-size: 13px; line-height: 1.55; }
  .has-cube .about__facts { margin-top: 14px; }
  .has-cube .about__facts div { padding: 10px 16px 0 0; margin-right: 12px; }
  .has-cube .about__facts dd { font-size: 16px; }

  /* --- Reviews: a one-finger horizontal carousel --- */
  .reviews__grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .reviews__grid::-webkit-scrollbar { display: none; }
  .reviews__grid .review { flex: 0 0 84%; scroll-snap-align: center; }
  .review__text.is-clamped { -webkit-line-clamp: 9; }
  .has-magnet .reviews { padding: calc(var(--nav-h) + 16px) 0 16px; display: flex; align-items: center; }
  .has-magnet .reviews > .wrap { width: 100%; }
  .has-magnet .reviews .h2 { font-size: clamp(30px, 8.4vw, 48px); margin-top: 8px; }
  .reviews__head { gap: 8px 16px; }
  .reviews__grid { margin-top: 18px; }
  .reviews__dots { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
  .reviews__dots span { width: 22px; height: 22px; display: grid; place-items: center; }
  .reviews__dots span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(242, 239, 234, 0.3); transition: background 300ms, transform 300ms; }
  .reviews__dots span.is-on::before { background: var(--bone); transform: scale(1.3); }

  /* --- Contact inside the magnet stage: icons in a row, compact form --- */
  .has-magnet .contact { padding: calc(var(--nav-h) + 14px) 0 14px; display: flex; align-items: center; }
  .has-magnet .contact > .wrap { width: 100%; }
  .has-magnet .contact__grid { gap: 14px; max-height: calc(100svh - var(--nav-h) - 28px); overflow-y: auto; scrollbar-width: none; }
  .has-magnet .contact__title { font-size: clamp(30px, 8.4vw, 48px); margin-top: 6px; }
  .has-magnet .contact__list {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; border: 0;
  }
  .has-magnet .contact__list .contact__row { position: relative; display: block; padding: 0; border: 0; }
  .has-magnet .contact__list .contact__row a.contact__value {
    position: absolute; inset: 0; font-size: 0; color: transparent; overflow: hidden; border-radius: 50%;
  }
  .has-magnet .contact__list .contact__row:last-child { flex-basis: 100%; display: flex; align-items: center; gap: 10px; }
  .has-magnet .contact__list .contact__row:last-child .contact__icon { width: 30px; height: 30px; }
  .has-magnet .contact__list .contact__row:last-child .contact__value { font-size: 12.5px; color: var(--ink-muted); }
  .has-magnet .contact__formwrap { max-width: none; margin-inline: 0; }
  .has-magnet .cform { grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 18px; }
  .has-magnet .cform > .cform__title, .has-magnet .cform > .cform__sub, .has-magnet .cform > fieldset,
  .has-magnet .cform > .consent-check, .has-magnet .cform > #c-consent-err, .has-magnet .cform > .cform__foot,
  .has-magnet .cform > .field--msg { grid-column: 1 / -1; }
  .has-magnet .cform__title { font-size: 22px; }
  .has-magnet .cform .field input, .has-magnet .cform .field select { padding-block: 6px 8px; margin-top: 4px; font-size: 16px; }
  .has-magnet .cform .field textarea { min-height: 40px; height: 40px; }
  .has-magnet .cform .chip span { height: 38px; }
  .has-magnet .cform .q--tight .chips { padding-top: 6px; }
  .has-magnet .cform .pill { height: 48px; width: 100%; justify-content: space-between; }
  .has-magnet .contact__note { display: none; }
}

.reviews__dots { display: none; }
@media (max-width: 960px) { .reviews__dots { display: flex; } }

/* Services on phones/tablets: one column (a later desktop rule had set two) */
@media (max-width: 960px) {
  .services__inner { grid-template-columns: 1fr; max-width: none; gap: 14px; }
  .svc-copy { justify-self: stretch; max-width: none; }
  .svc-carousel { order: -1; }
}

/* ===== Footer: black, original vertical logo in white ===== */
.footer--dark { background: #000; color: var(--bone); border-top: 1px solid var(--hairline); padding: clamp(28px, 4vh, 44px) 0; }
.footer--dark .footer__copy { color: var(--bone); }
.footer--dark .footer__logo { color: #fff; }
.footer--dark .footer__logo .brand__stack { height: clamp(64px, 9vh, 84px); width: auto; }
.footer--dark .footer__legal a, .footer--dark .footer__cookie { color: var(--bone); }
.footer--dark .footer__legal a:hover, .footer--dark .footer__cookie:hover { color: rgba(242, 239, 234, 0.7); }
.footer--dark :focus-visible { outline-color: var(--bone); }
.footer--dark .footer__logo .brand__stack { height: clamp(84px, 13vh, 110px); }

/* Header: original vertical logo, sized to the nav bar */
.brand__stack--nav { height: calc(var(--nav-h) - 16px); width: auto; display: block; }

/* Anti-spam trap field: kept off screen, never shown to people */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Header menu: bright white text, full opacity on hover */
.nav__links a { color: rgba(255, 255, 255, 0.92); font-weight: 500; }
.nav__links a:hover { color: #fff; }
.nav .pill--outline { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* ===== Contact rows: the whole row (icon + text) is the link ===== */
.contact__list .contact__row { display: block; padding: clamp(10px, 1.8vh, 16px) 0; }
.contact__link {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center;
  color: var(--ink); -webkit-tap-highlight-color: transparent;
}
a.contact__link .contact__value { border-bottom: 1px solid transparent; justify-self: start; transition: border-color var(--dur-fast); }
a.contact__link:hover .contact__value { border-bottom-color: var(--ink); }
.contact__row:hover .contact__icon, a.contact__link:focus-visible .contact__icon { background: var(--ink); color: var(--cream); }
.contact__row:hover .contact__icon--google { background: #fff; }
.q legend .optional { font-size: 12px; color: var(--bone-muted); margin-left: 4px; }

/* Phones/tablets inside the magnet stage: icon-only links in one row, licence on its own line */
@media (max-width: 960px) {
  .has-magnet .contact__list .contact__row { padding: 0; }
  .has-magnet .contact__list a.contact__link { grid-template-columns: 44px; gap: 0; }
  .has-magnet .contact__list a.contact__link .contact__icon { width: 44px; height: 44px; }
  .has-magnet .contact__list a.contact__link .contact__value {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .has-magnet .contact__list .contact__row--license { flex-basis: 100%; }
  .has-magnet .contact__row--license .contact__link { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .has-magnet .contact__row--license .contact__icon { width: 30px; height: 30px; }
  .has-magnet .contact__row--license .contact__value { font-size: 12.5px; color: var(--ink-muted); }
}

/* ===== Phones/tablets: one swipe moves exactly one section =====
   Each pinned effect has a stop at its start and its end; the browser settles on the
   next stop after every swipe, playing the transition on the way. */
.snap { display: none; }
@media (max-width: 960px) {
  html:has(.has-stage), html.has-stage { scroll-snap-type: y mandatory; }
  .stage, .cube, .magnet { position: relative; }
  .has-stage .snap {
    display: block; position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none;
    scroll-snap-stop: always;
  }
  .has-stage .snap--start { top: 0; scroll-snap-align: start; }
  .has-stage .snap--end { bottom: 0; scroll-snap-align: end; }
  .has-stage .footer { scroll-snap-align: end; scroll-snap-stop: always; }
}

/* ===== Desktop sizes: stay in proportion from small laptops to large monitors ===== */
@media (min-width: 961px) {
  /* Cards are sized by the column width as well as the screen height,
     so the fan never reaches the text column on wide or very large screens */
  .services__inner { container-type: inline-size; max-width: min(1600px, 92vw); }
  .svc-carousel { --ch: min(56vh, 31cqi); }
}
/* Large monitors: content may spread a little wider before it stops growing */
@media (min-width: 1700px) {
  :root { --max: 1600px; }
}

/* ===== Our work: before/after shown at the photos' own 3:2 ratio (no cropping) =====
   Desktop: title and project buttons on the left, the comparison as large as the
   screen allows on the right. Phones: full-width frame at 3:2. */
.work .ba { aspect-ratio: 3 / 2; }
.ba__img { object-position: 50% 50%; }
@media (min-width: 961px) {
  .work > .wrap {
    display: grid; grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center; gap: clamp(28px, 4vw, 72px);
  }
  .work .work__head { flex-direction: column; align-items: flex-start; justify-content: center; gap: clamp(20px, 4vh, 36px); }
  .work .work__tabs { flex-direction: column; align-items: stretch; gap: 8px; }
  .work .work__tab { text-align: left; }
  .work .ba {
    margin-top: 0; aspect-ratio: 3 / 2;
    height: min(calc(100svh - var(--nav-h) - 64px), 46vw);
    width: auto; max-width: 100%; min-height: 0;
  }
}
@media (max-width: 960px) {
  .has-cube .ba, .work .ba { height: auto; width: 100%; aspect-ratio: 3 / 2; min-height: 0; }
}
@media (max-width: 960px) { .work .work__tabs { margin-top: 10px; } }

/* ===== Decorative photo backgrounds: Services and Our work =====
   The photos are pre-blurred and desaturated (img/*/background.webp) and sit faint
   behind the content, so the dark sections feel warmer without competing.
   A soft shade on the left keeps the text side calm and readable. */
.services, .work { isolation: isolate; overflow: hidden; }
.services::before, .work::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,13,11,0.6) 0%, rgba(14,13,11,0.1) 60%, rgba(14,13,11,0.35) 100%),
    var(--bg-photo-src) center / cover no-repeat;
  opacity: var(--bg-photo, 0.22);
}
.services { --bg-photo-src: url('../img/services/background.webp'); }
.work     { --bg-photo-src: url('../img/work/background.webp'); }
@media (max-width: 960px) {
  .services, .work { --bg-photo: 0.18; }
}

/* ===== Footer: one thin line, no logo (© left, policies right) ===== */
.footer--dark { padding: 0; }
.footer--dark .footer__base {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 4px 24px; min-height: 52px; padding-block: 4px;
}
.footer--dark .footer__copy { font-size: 12px; }
.footer--dark .footer__legal { gap: 20px; }
.footer--dark .footer__legal a { padding-block: 14px; }
@media (max-width: 560px) {
  .footer--dark .footer__base { justify-content: center; text-align: center; padding-block: 10px 6px; }
}

/* ===== Browser autofill: keep the form's own look (no white/blue block) =====
   Chrome paints autofilled fields with its own background; the very long
   background transition keeps the field transparent and the text in brand colour. */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill,
.field select:-webkit-autofill {
  -webkit-text-fill-color: var(--bone);
  caret-color: var(--bone);
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 600000s 0s, color 600000s 0s, border-color var(--dur-fast);
}
.field input:autofill { background: transparent; color: var(--bone); }

/* Mobile menu: names only, no numbers */
.menu__links a span { display: none; }

/* ===== Phones: the before/after fills more of the screen =====
   Taller frame (about 4:3.6) so the section has no empty band below,
   while still showing most of each photo. */
@media (max-width: 760px) {
  .has-cube .work .ba, .work .ba {
    aspect-ratio: auto; width: 100%; min-height: 0;
    height: clamp(260px, calc(100svh - var(--nav-h) - 270px), 112vw);
  }
  .has-cube .work__tabs { flex-wrap: nowrap; gap: 5px; }
  .has-cube .work__tab { padding: 0 11px; font-size: 9.5px; white-space: nowrap; }
}

/* ===== Panel for in-app browsers (WhatsApp, Instagram, Facebook) =====
   Email and map links open this when the in-app browser cannot hand them to an app. */
.inapp {
  width: min(92vw, 420px); margin: auto auto 16px; padding: 28px 22px 22px;
  border: 1px solid var(--hairline-strong); border-radius: 20px;
  background: #16130F; color: var(--bone); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.inapp[open] { animation: inapp-in 260ms var(--ease-out); }
@keyframes inapp-in { from { opacity: 0; transform: translateY(16px); } }
.inapp::backdrop { background: rgba(0, 0, 0, 0.55); }
.inapp__close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px;
  font-size: 26px; line-height: 1; color: var(--bone); border-radius: 50%;
}
.inapp__title { font: 300 24px/1.2 var(--font-display); letter-spacing: var(--track-tight); padding-right: 40px; }
.inapp__value { margin-top: 10px; font-size: 16px; color: rgba(242, 239, 234, 0.8); word-break: break-word; user-select: all; -webkit-user-select: all; }
.inapp__actions { display: grid; gap: 10px; margin-top: 20px; }
.inapp__btn {
  display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 18px;
  border: 1px solid var(--hairline-strong); border-radius: 999px;
  font: 500 12px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone);
}
.inapp__btn--main { background: var(--bone); color: #0E0D0B; border-color: var(--bone); }
.inapp__hint { margin-top: 16px; font-size: 13px; line-height: 1.5; color: rgba(242, 239, 234, 0.6); }
.inapp__hint b { color: var(--bone); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .inapp[open] { animation: none; } }

/* ===== Our work: "More work" opens the gallery (work.html) =====
   Desktop: a pill under the project buttons. Phones: a small link beside the title. */
.work__more {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 44px; padding: 0 16px 0 18px; border-radius: 999px;
  border: 1px dashed rgba(242, 239, 234, 0.45); color: var(--bone);
  font: 500 11px/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform 160ms var(--ease-out);
}
.work__more svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
.work__more:active { transform: scale(0.97); }
.work__more:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .work__more:hover { border-style: solid; border-color: var(--bone); background: rgba(242, 239, 234, 0.06); }
  .work__more:hover svg { transform: translateX(3px); }
}
@media (min-width: 961px) {
  .work .work__nav { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .work .work__nav .work__tabs { align-items: stretch; }
}
@media (max-width: 960px) {
  .work .work__nav { display: contents; }
}
@media (max-width: 960px) {
  .work .work__head { position: relative; }
  .work .work__head .work__more {
    position: absolute; right: 0; top: 0; height: 34px; padding: 0 12px 0 14px; font-size: 10px; gap: 8px;
  }
}
