/* ============================================================
   CONSTRUCT — concept design studio
   Design system: tokens, type, layout, components
   Plain CSS, no build step.
   Brand per official CONSTRUCT branding booklet:
   fonts Kravitz (display) + Outfit (body); palette
   #0c0c0c / #302e2e / #edeae8 / #585655 / #b3a9a0.
   ============================================================ */

/* ---------- Brand fonts (self-hosted) ---------- */
@font-face {
  font-family: "Kravitz";
  src: url("../fonts/Kravitz.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  /* Kravitz Thermal — the family's designed bold cut, from the brand kit */
  font-family: "Kravitz";
  src: url("../fonts/Kravitz-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { min-height: 100%; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Tokens ---------- */
:root {
  /* palette — official CONSTRUCT brand colors */
  --bg:      #edeae8;   /* brand off-white */
  --bg-2:    #e3dfdc;   /* slightly deeper panel */
  --ink:     #0c0c0c;   /* brand black */
  --ink-2:   #302e2e;   /* brand dark warm grey */
  --muted:   #585655;   /* brand mid grey */
  --line:    #d5d0cc;   /* hairlines, derived from palette */
  --accent:  #b3a9a0;   /* brand greige */
  --accent-d:#8f8379;   /* deepened greige for hovers/legibility */
  --paper:   #f5f3f1;   /* near-white card */

  /* type — brand fonts */
  --display: "Kravitz", "Avenir Next", Futura, sans-serif;
  --body:    "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* fluid type scale (Kravitz runs wide — slightly tighter mega) */
  --fs-mega: clamp(2.5rem, 8.5vw, 7.25rem);
  --fs-h1:   clamp(2rem, 5vw, 4.1rem);
  --fs-h2:   clamp(1.6rem, 3.4vw, 2.7rem);
  --fs-h3:   clamp(1.15rem, 2vw, 1.55rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-sm:   0.875rem;
  --fs-xs:   0.75rem;

  /* spacing / layout */
  --maxw: 1320px;
  --gut: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --radius: 2px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* ---------- Base ---------- */
body {
  font-family: var(--body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.14; letter-spacing: 0.025em; color: var(--ink); }
/* Kravitz has no italic — emphasis renders in brand greige instead */
h1 em, h2 em, .statement em, .hero__title em, .footer-brand em { font-style: normal; color: var(--accent); }

p { max-width: 62ch; }
strong { font-weight: 700; }

/* eyebrow / kicker */
.kicker {
  font-family: var(--body);
  font-size: var(--fs-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.7em;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }
.kicker.center::before { display: none; }

/* small screens: Kravitz runs wide — keep the mega headline inside the viewport */
@media (max-width: 480px) {
  :root { --fs-mega: clamp(1.9rem, 9.6vw, 3rem); --fs-h1: clamp(1.7rem, 8vw, 2.4rem); }
}
/* two-column split that stacks on mobile (statement sections etc.) */
.split-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
@media (max-width: 820px) { .split-2 { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2.2vw, 1.6rem) var(--gut);
  mix-blend-mode: difference;            /* legible over any image */
  color: #fff;
  transition: padding 0.4s var(--ease);
}
.site-header a { color: #fff; }
/* brand lockup — official secondary wordmark (white PNG; header blend inverts it on light bgs) */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav a { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.04em; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: currentColor; transition: width 0.35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .site-header { mix-blend-mode: normal; color: var(--ink); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .site-header a { color: var(--ink); }
  .brand img { filter: invert(0.94); height: 30px; }
  /* explicit viewport size: the blurred header is this fixed panel's containing
     block, so inset:0 would collapse it to the header box and leak menu items */
  .nav { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; flex-direction: column; justify-content: center; gap: 1.8rem; background: var(--bg); transform: translateY(-110%); transition: transform 0.5s var(--ease); }
  .nav a { font-size: 1.5rem; font-family: var(--display); font-weight: 700; }
  body.nav-open .nav { transform: translateY(0); }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; z-index: 101; position: relative; }
  .nav-toggle span { width: 26px; height: 2px; background: currentColor; transition: transform 0.4s var(--ease), opacity 0.3s; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: var(--fs-sm); letter-spacing: 0.06em; font-weight: 600;
  padding: 0.95em 1.7em; border-radius: 999px;
  transition: transform 0.4s var(--ease), background 0.4s, color 0.4s, border-color 0.4s;
}
.btn .arr { transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--accent-d); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.04em; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow .arr { transition: transform 0.4s var(--ease); }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ============================================================
   HERO — signature kinetic type
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); touch-action: pan-y; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.6s var(--ease), transform 8s linear; }
.hero__media img.is-active { opacity: 0.92; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,9,7,0.28) 0%, rgba(10,9,7,0.05) 38%, rgba(10,9,7,0.55) 78%, rgba(10,9,7,0.85) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; padding: 0 var(--gut) clamp(3rem, 7vw, 6rem); color: #fff; }
.hero__title { font-size: var(--fs-mega); line-height: 1.06; letter-spacing: 0.02em; color: #fff; }
.hero__title .ln { display: block; overflow: hidden; }
.hero__title .ln > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease); }
.hero.ready .hero__title .ln > span { transform: translateY(0); }
.hero__title .ln:nth-child(2) > span { transition-delay: 0.08s; }
.hero__title .ln:nth-child(3) > span { transition-delay: 0.16s; }
.hero__title em { font-style: italic; color: var(--accent); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; align-items: end; justify-content: space-between; margin-top: clamp(1.5rem, 4vw, 2.6rem); opacity: 0; transition: opacity 1s var(--ease) 0.5s; }
.hero.ready .hero__meta { opacity: 1; }
.hero__tag { max-width: 30ch; font-size: var(--fs-lead); color: rgba(255,255,255,0.86); }
.hero__scroll { font-size: var(--fs-xs); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.7); display: inline-flex; align-items: center; gap: 0.7em; }
.hero__scroll .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100%{opacity:.3; transform:translateY(0)} 50%{opacity:1; transform:translateY(4px)} }

/* hero 3D canvas layer */
.hero__3d { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity 0.3s linear; }
.hero__3d canvas { width: 100% !important; height: 100% !important; display: block; }

/* typographic hero (no imagery — used until client originals arrive) */
.hero--type::before { content: ""; position: absolute; inset: -20%; z-index: 0;
  background:
    radial-gradient(38% 45% at 68% 28%, rgba(156,124,92,0.34), transparent 70%),
    radial-gradient(30% 40% at 22% 72%, rgba(94,76,58,0.30), transparent 70%);
  filter: blur(46px); animation: aurora 14s ease-in-out infinite alternate; }
@keyframes aurora { from { transform: translate3d(-3%,-2%,0) scale(1); } to { transform: translate3d(3%,4%,0) scale(1.1); } }
.hero--type::after { background: linear-gradient(180deg, transparent 55%, rgba(10,9,7,0.4) 100%); }
@media (prefers-reduced-motion: reduce) { .hero--type::before { animation: none; } }

/* placeholder tile — awaiting client originals */
.ph { display: grid; place-items: center; align-content: center; gap: 0.7rem;
  width: 100%; height: 100%; min-height: 220px; background: var(--bg-2);
  border: 1px dashed var(--line); color: var(--muted); text-align: center; padding: 1.5rem; }
.ph__mark { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.3em; text-indent: 0.3em; color: var(--accent); }
.ph__txt { font-size: var(--fs-xs); letter-spacing: 0.22em; text-transform: uppercase; }

/* AR product viewer */
.ar-section model-viewer { width: 100%; height: clamp(380px, 62vh, 580px); background: var(--bg-2); display: none; }
.ar-section.model-ready model-viewer { display: block; }
.ar-section.model-ready .ar-fallback { display: none; }
.ar-fallback { border: 1px dashed var(--line); background: var(--bg-2); padding: clamp(2.5rem,6vw,4.5rem) 2rem; display: grid; place-items: center; gap: 0.8rem; text-align: center; color: var(--muted); }
.ar-fallback .ph__mark { font-size: 2rem; }
.ar-btn-hint { display: inline-flex; align-items: center; gap: 0.6em; font-size: var(--fs-sm); color: var(--muted); margin-top: 1rem; }

/* page hero (interior pages) */
.page-hero { padding-top: clamp(8rem, 16vh, 12rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.page-hero h1 { font-size: var(--fs-h1); max-width: 16ch; }
.page-hero .lead { margin-top: 1.4rem; color: var(--ink-2); font-size: var(--fs-lead); }

/* ============================================================
   SECTIONS / COMPONENTS
   ============================================================ */
.section-head { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: end; justify-content: space-between; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: var(--fs-h2); max-width: 18ch; }
.section-head p { color: var(--muted); }

/* intro / statement */
.statement { font-family: var(--display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.28; letter-spacing: 0.02em; max-width: 24ch; }
.statement em { font-style: italic; color: var(--accent); }
.lead { font-size: var(--fs-lead); color: var(--ink-2); }

/* ---------- Recent-work filmstrip carousel (center-focused) ---------- */
.carousel { overflow: hidden; width: 100%; padding-block: 0.5rem; }
/* bottom-aligned: every caption sits on one baseline; the active card grows upward */
.car-track { display: flex; align-items: flex-end; gap: clamp(14px, 1.8vw, 30px); will-change: transform; transition: transform 1s var(--ease); }
.car-item { flex: none; display: block; cursor: pointer; opacity: 0.55; transition: opacity 0.7s var(--ease), width 1s var(--ease); }
.car-item.active { opacity: 1; }
.car-media { width: 100%; overflow: hidden; background: var(--bg-2); transition: height 1s var(--ease); }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.car-item.active:hover .car-media img { transform: scale(1.04); }
.car-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; padding-top: 0.7rem; white-space: nowrap; overflow: hidden; }
.car-year { font-size: var(--fs-xs); letter-spacing: 0.14em; color: var(--muted); }
.car-title { font-family: var(--display); font-weight: 700; font-size: clamp(0.8rem, 1.3vw, 1.15rem); letter-spacing: 0.03em; color: var(--muted); transition: color 0.5s; }
.car-item.active .car-title { color: var(--ink); }
.car-head-right { display: flex; align-items: center; gap: 1.6rem; }
.car-nav { display: flex; gap: 0.5rem; }
.car-btn { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 1rem; color: var(--ink); transition: background 0.3s, border-color 0.3s, color 0.3s; }
.car-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.car-notes { display: flex; justify-content: space-between; gap: 2rem; margin-top: clamp(1.8rem, 4vw, 3rem); }
.car-notes .note { max-width: 34ch; }
@media (max-width: 700px) { .car-notes { flex-direction: column; } .car-notes .note[style] { text-align: left !important; } }

/* Featured / work grid */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3vw, 2.6rem); }
.work-card { position: relative; display: block; overflow: hidden; background: var(--bg-2); transition: transform 0.45s var(--ease); will-change: transform; }
.work-card__media { overflow: hidden; aspect-ratio: 4/5; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 0.6s; }
.work-card:hover .work-card__media img { transform: scale(1.05); }
.work-card__body { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem 0.2rem 0.2rem; }
.work-card__title { font-family: var(--display); font-weight: 700; font-size: var(--fs-h3); }
.work-card__type { font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.work-card__idx { position: absolute; top: 1rem; left: 1rem; z-index: 2; font-size: var(--fs-xs); letter-spacing: 0.1em; color: #fff; mix-blend-mode: difference; }
/* spans */
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; } .col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; } .col-5 { grid-column: span 5; } .col-4 { grid-column: span 4; }
.tall .work-card__media { aspect-ratio: 4/5; } .wide .work-card__media { aspect-ratio: 16/11; } .portrait .work-card__media { aspect-ratio: 3/4; }
@media (max-width: 860px) { .work-grid { gap: 1.5rem; } [class*="col-"] { grid-column: span 12; } .col-6.m-half, .col-4.m-half { grid-column: span 6; } }

/* filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filter { font-size: var(--fs-sm); letter-spacing: 0.04em; padding: 0.5em 1.1em; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: all 0.3s var(--ease); }
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* two-column feature */
.feature { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature--rev { grid-template-columns: 0.9fr 1.1fr; }
.feature--rev .feature__text { order: 2; }
.feature__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.feature__text h2 { font-size: var(--fs-h2); margin-bottom: 1.2rem; }
@media (max-width: 820px) { .feature, .feature--rev { grid-template-columns: 1fr; } .feature--rev .feature__text { order: 0; } }

/* services list */
.svc-list { border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2rem; align-items: baseline; padding: clamp(1.6rem, 3vw, 2.4rem) 0; border-bottom: 1px solid var(--line); transition: padding-left 0.5s var(--ease); }
.svc:hover { padding-left: 1rem; }
.svc__num { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.svc__title { font-family: var(--display); font-weight: 700; font-size: var(--fs-h3); }
.svc__desc { color: var(--muted); max-width: 46ch; grid-column: 2; }
@media (max-width: 700px){ .svc { grid-template-columns: auto 1fr; } .svc__desc { grid-column: 1 / -1; } }

/* process steps */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.process__step { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.process__step h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.process__step p { color: var(--muted); font-size: var(--fs-sm); }
.process__step .step-no { font-size: var(--fs-xs); letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase; }
@media (max-width: 820px){ .process { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px){ .process { grid-template-columns: 1fr; } }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(1.2rem,2.5vw,2rem); }
.marquee__track { display: inline-flex; gap: 3rem; white-space: nowrap; will-change: transform; animation: scroll-x 28s linear infinite; }
.marquee__track span { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 3rem); color: var(--ink-2); }
.marquee__track .dot { color: var(--accent); }
@keyframes scroll-x { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee__track { animation: none; } }

/* ---------- Project page ---------- */
.project-hero { height: 86svh; min-height: 460px; position: relative; overflow: hidden; }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 35%, rgba(0,0,0,.55)); }
.project-hero__cap { position: absolute; z-index: 2; left: 0; bottom: 0; width: 100%; color: #fff; }
.project-hero__cap .wrap { padding-bottom: clamp(2rem,5vw,4rem); }
.project-hero h1 { color: #fff; font-size: var(--fs-h1); }
.project-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: clamp(2rem,4vw,3rem); border-bottom: 1px solid var(--line); }
.project-meta dt { font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.project-meta dd { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
@media (max-width: 700px){ .project-meta { grid-template-columns: repeat(2,1fr); } }

.chapter { display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(1.5rem,3vw,2.6rem); align-items: start; padding-block: clamp(2.5rem,5vw,4.5rem); }
.chapter__no { grid-column: 1 / 3; font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); padding-top: 0.4rem; }
.chapter__head { grid-column: 3 / 8; }
.chapter__head h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.chapter__head p { color: var(--ink-2); }
.chapter__media { grid-column: 8 / 13; }
.chapter__media img { width: 100%; object-fit: cover; }
@media (max-width: 820px){ .chapter { grid-template-columns: 1fr; gap: 1.2rem; } .chapter__no,.chapter__head,.chapter__media { grid-column: 1; } }

.gallery { columns: 2; column-gap: clamp(1rem,2.5vw,2rem); }
.gallery img { width: 100%; margin-bottom: clamp(1rem,2.5vw,2rem); break-inside: avoid; }
@media (max-width: 640px){ .gallery { columns: 1; } }

.next-project { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: clamp(2.5rem,5vw,4rem); border-top: 1px solid var(--line); }
.next-project .np-label { font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.next-project a { font-family: var(--display); font-weight: 700; font-size: var(--fs-h2); transition: color 0.3s; }
.next-project a:hover { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta { background: var(--ink); color: var(--bg); text-align: center; }
.cta h2 { color: var(--bg); font-size: var(--fs-h1); max-width: 20ch; margin-inline: auto; }
.cta p { color: rgba(243,240,234,0.7); margin: 1.2rem auto 2.2rem; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 0.7rem 0; font-size: 1.05rem; transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field.invalid input, .field.invalid textarea { border-color: #b4452f; }
.field .err { display: none; color: #b4452f; font-size: var(--fs-xs); margin-top: 0.4rem; letter-spacing: 0.02em; }
.field.invalid .err { display: block; }
.form-status { margin-top: 1rem; font-size: var(--fs-sm); }
.form-status.ok { color: var(--accent-d); }
.form-status.bad { color: #b4452f; }
.contact-detail { margin-bottom: 1.8rem; }
.contact-detail dt { font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.contact-detail dd { font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.contact-detail dd a:hover { color: var(--accent); }

/* ---------- Consultation questionnaire ---------- */
.form-section { border-top: 1px solid var(--line); padding-top: clamp(2rem, 4vw, 3rem); margin-top: clamp(2rem, 4vw, 3rem); }
.form-section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.form-section .kicker { margin-bottom: 1.6rem; }
.q { margin-bottom: clamp(1.6rem, 3vw, 2.2rem); }
.q-label { display: flex; gap: 0.7em; align-items: baseline; margin-bottom: 0.7rem; }
.q-no { font-family: var(--display); font-weight: 700; color: var(--accent-d); font-size: 0.95rem; flex: none; min-width: 1.8em; }
.q-text { font-weight: 600; font-size: var(--fs-body); color: var(--ink); max-width: 56ch; }
.q-hint { font-size: var(--fs-xs); color: var(--muted); margin-top: -0.4rem; margin-bottom: 0.7rem; padding-left: 2.5em; }
.q .field { margin-bottom: 0; padding-left: 2.5em; }
.q .chips, .q .who-table, .q textarea, .q > input { margin-left: 2.5em; }
@media (max-width: 600px) { .q .field, .q .chips, .q .who-table { padding-left: 0; margin-left: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 0.5em 1.1em; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); color: var(--ink-2); background: transparent; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip-other { display: inline-flex; align-items: center; gap: 0.5em; }
.chip-other input[type=text] { border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 0.3em 0; width: 130px; font-size: var(--fs-sm); }
.chip-other input[type=text]:focus { outline: none; border-color: var(--ink); }
.q textarea, .q input[type=text], .q input[type=tel], .q input[type=email] {
  width: calc(100% - 2.5em); background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 0.6rem 0; font-size: 1rem; transition: border-color 0.3s;
}
@media (max-width: 600px) { .q textarea, .q input[type=text], .q input[type=tel], .q input[type=email] { width: 100%; margin-left: 0 !important; } }
.q textarea { resize: vertical; min-height: 84px; }
.q textarea:focus, .q input:focus { outline: none; border-color: var(--ink); }
.q.invalid .q-text { color: #b4452f; }
.q.invalid input, .q.invalid textarea { border-color: #b4452f; }
.who-table { display: grid; grid-template-columns: 1.2fr 0.5fr 1.3fr; gap: 0.5rem 1rem; width: calc(100% - 2.5em); }
.who-table .th { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.who-table input { width: 100% !important; margin-left: 0 !important; }
.decl { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2rem); display: flex; gap: 1rem; align-items: flex-start; }
.decl input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.form-actions { margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }

/* ---------- Questionnaire → PDF document (rendered off-screen on submit) ---------- */
.pdf-doc { width: 794px; background: #edeae8; color: #0c0c0c; padding: 44px 56px 32px; font-family: var(--body); font-size: 13px; line-height: 1.5; }
.pdf-doc .pdf-head { text-align: center; margin-bottom: 28px; }
.pdf-doc .pdf-head img { height: 74px; width: auto; margin: 0 auto 14px; display: inline-block; }
.pdf-doc .pdf-head h1 { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3; }
.pdf-doc .pdf-head p { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #585655; margin-top: 8px; }
.pdf-doc .form-section { border-top: 1px solid #d5d0cc; padding-top: 18px; margin-top: 18px; }
.pdf-doc .form-section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.pdf-doc .kicker { margin-bottom: 12px; font-size: 10px; }
.pdf-doc .q { margin-bottom: 14px; break-inside: avoid; page-break-inside: avoid; }
.pdf-doc .q-label { margin-bottom: 6px; }
.pdf-doc .q-no { font-size: 11px; min-width: 2em; }
.pdf-doc .q-text { font-size: 13px; }
.pdf-doc .q-hint { font-size: 10px; margin: 0 0 4px 2.9em; padding: 0; }
.pdf-doc .ans { display: block; margin-left: 2.9em; border-bottom: 1px dotted #b3a9a0; padding: 1px 0 3px; min-height: 1.3em; white-space: pre-wrap; font-size: 12.5px; }
.pdf-doc .ans--inline { display: inline-block; margin-left: 0.5em; min-width: 90px; vertical-align: baseline; }
.pdf-doc .chips { gap: 6px; margin-left: 2.9em; }
.pdf-doc .chip span { font-size: 10.5px; padding: 4px 12px; color: #8a8683; border-color: #d5d0cc; }
.pdf-doc .chip span.on { background: #0c0c0c; color: #edeae8; border-color: #0c0c0c; font-weight: 600; }
.pdf-doc .who-table { margin-left: 2.9em; width: calc(100% - 2.9em); gap: 4px 12px; }
.pdf-doc .who-table .th { font-size: 9px; }
.pdf-doc .decl { padding: 14px 18px; background: #f5f3f1; }
.pdf-doc .decl .note { font-size: 11px; line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); padding-block: clamp(3rem,6vw,5rem) 2rem; }
.site-footer a { color: rgba(243,240,234,0.8); }
.site-footer a:hover { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; padding-bottom: clamp(2rem,5vw,4rem); border-bottom: 1px solid rgba(243,240,234,0.15); }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5.5vw, 4.2rem); line-height: 1.15; letter-spacing: 0.02em; }
.footer-brand em { font-style: italic; color: var(--accent); }
.footer-cols { display: flex; gap: clamp(2rem,5vw,4rem); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--body); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(243,240,234,0.5); margin-bottom: 1rem; }
.footer-col li { margin-bottom: 0.6rem; font-size: var(--fs-sm); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 1.8rem; font-size: var(--fs-xs); color: rgba(243,240,234,0.5); letter-spacing: 0.04em; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; } .reveal[data-d="2"]{ transition-delay: .16s; } .reveal[data-d="3"]{ transition-delay: .24s; }
@media (prefers-reduced-motion: reduce){
  .reveal { opacity: 1 !important; transform: none !important; }
  .car-track, .car-item, .car-media, .car-media img { transition: none !important; }
  .hero__title .ln > span { transform: none !important; }
  .hero__media img.is-active { transform: none !important; }
}

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(15,13,10,0.92); display: none; align-items: center; justify-content: center; padding: 4vw; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 90vh; object-fit: contain; }
.lb__close { position: absolute; top: 1.5rem; right: 2rem; color: #fff; font-size: 2rem; }

/* ---------- utils ---------- */
.center { text-align: center; }
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 2rem; } .mt-l { margin-top: 3rem; }
.muted { color: var(--muted); }
.note { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.02em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.cta-row.center { justify-content: center; }

/* ============================================================
   IMMERSIVE LAYER — curtain, cursor, grain, progress, parallax
   ============================================================ */

/* Page-transition curtain (also the loader) */
.curtain {
  position: fixed; inset: 0; z-index: 9999; background: var(--ink);
  display: grid; place-items: center;
  transition: transform 0.9s var(--ease), opacity 0.7s var(--ease);
}
.curtain.lift { transform: translateY(-101%); opacity: 0; pointer-events: none; }
.curtain__logo { display: block; width: min(300px, 55vw); }
.curtain__logo img { width: 100%; height: auto; animation: cload 1.1s var(--ease) infinite alternate; }
@keyframes cload { from { opacity: 0.35; transform: translateY(0); } to { opacity: 1; transform: translateY(-3px); } }
body.no-js .curtain { display: none; }
@media (prefers-reduced-motion: reduce) { .curtain { transition: opacity 0.3s; } .curtain__logo img { animation: none; } }

/* Custom cursor (fine-pointer only) */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 9000; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; will-change: transform; }
.cursor { width: 38px; height: 38px; border: 1px solid #fff; transform: translate(-50%, -50%); transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, opacity 0.3s; }
.cursor-dot { width: 5px; height: 5px; background: #fff; transform: translate(-50%, -50%); }
.cursor.is-hover { width: 64px; height: 64px; background: rgba(255,255,255,0.12); }
.cursor.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
@media (hover: hover) and (pointer: fine) { body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: none; } }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* Film grain overlay */
.grain { position: fixed; inset: -50%; z-index: 8000; pointer-events: none; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainmove 0.6s steps(2) infinite; }
@keyframes grainmove { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-2%)} 75%{transform:translate(-2%,-3%)} 100%{transform:translate(3%,2%)} }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 9500; transition: width 0.1s linear; }

/* Parallax */
[data-parallax] { will-change: transform; }
@media (prefers-reduced-motion: reduce) { [data-parallax] { transform: none !important; } }

/* Magnetic / hoverable hint */
.btn, .link-arrow, .work-card, .nav a, .filter { will-change: transform; }

/* Clip-reveal for images (immersive mask wipe) */
.clip-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.clip-reveal.in { clip-path: inset(0 0 0% 0); }
@media (prefers-reduced-motion: reduce) { .clip-reveal { clip-path: none !important; } }

/* Split-line word reveal (generic) */
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; transform: translateY(110%); transition: transform 0.9s var(--ease); }
.line-mask.in > span, .reveal.in .line-mask > span { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .line-mask > span { transform: none !important; } }

/* Real-logo feature block (uses their actual wordmark image) */
.logo-feature { display: grid; place-items: center; text-align: center; padding-block: clamp(3rem,7vw,6rem); }
.logo-feature img { width: min(440px, 78vw); height: auto; mix-blend-mode: multiply; }

/* Big animated stat / index numerals */
.count-row { display: flex; flex-wrap: wrap; gap: clamp(1.5rem,5vw,4rem); }
.count { flex: 1 1 160px; }
.count b { font-family: var(--display); font-size: clamp(2.4rem,6vw,4rem); font-weight: 700; display: block; line-height: 1; }
.count span { font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
