/* =====================================================================
   SONNY INTERIOR DESIGN — dark luxe / editorial design system
   Shared across index / works / about / contact
   ===================================================================== */

/* ---- Fonts: Fraunces (display serif) + Hanken Grotesk (body) + JetBrains Mono (labels) ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Hanken+Grotesk:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ----------------------------- tokens ----------------------------- */
:root {
  --bg:        #0e0d0b;   /* near-black, warm */
  --bg-2:      #14120e;   /* slightly raised */
  --surface:   #1a1813;   /* cards */
  --line:      #2a2720;   /* hairlines */
  --text:      #efe9dd;   /* cream */
  --text-dim:  #c2bbac;
  --muted:     #9a9384;   /* labels, captions — AA on dark bg */
  --accent:    #c9a45c;   /* brass / gold */
  --accent-2:  #e3c489;   /* lighter brass for hovers */

  --maxw: 1320px;
  --gutter: clamp(1.25rem, 5vw, 5rem);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------- reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--accent); color: #14120e; }

/* When JS is active we hide-then-reveal; without JS everything stays visible. */
html:not(.js) [data-reveal],
html:not(.js) [data-reveal-line] > * { opacity: 1 !important; transform: none !important; }

/* film grain + vignette atmosphere */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9000;
  background:
    radial-gradient(120% 120% at 50% 0%, transparent 60%, rgba(0,0,0,0.55) 100%);
  mix-blend-mode: multiply;
}
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 9001; opacity: 0.04;
  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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----------------------------- layout ----------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(5rem, 12vh, 11rem); position: relative; }
.bleed { padding-inline: var(--gutter); }

/* ------------------------- typography ----------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}
.h-xl { font-size: clamp(3rem, 1.5rem + 9vw, 10rem); }
.h-lg { font-size: clamp(2.4rem, 1.4rem + 5vw, 6rem); }
.h-md { font-size: clamp(1.9rem, 1.3rem + 3vw, 3.6rem); }
.serif-italic { font-style: italic; font-family: var(--font-display); }
em.accent { font-style: italic; color: var(--accent); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.9em;
}
.eyebrow::before {
  content: ""; width: 2.2rem; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.eyebrow.center::before { display: none; }

.lede { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem); line-height: 1.5; color: var(--text-dim); font-weight: 300; }
.muted { color: var(--muted); }
.dim { color: var(--text-dim); }

/* ----------------------- reveal primitives ------------------------ */
/* base hidden states applied only when .js present (set inline in <head>) */
.js [data-reveal] { opacity: 0; }

/* line-by-line masked reveal: wrap children in spans.
   padding-bottom gives descenders (g, y, p, q, j) room so overflow:hidden
   doesn't clip them; negative margin cancels it for layout. */
[data-reveal-line] { overflow: hidden; display: block; padding-bottom: 0.22em; margin-bottom: -0.22em; }
.js [data-reveal-line] > * { display: inline-block; transform: translateY(135%); }

/* hero load states (driven by the load timeline in main.js) */
[data-hero-line] { overflow: hidden; display: block; padding-bottom: 0.22em; margin-bottom: -0.22em; }
.js [data-hero-line] > * { display: inline-block; transform: translateY(135%); }
.js [data-hero-fade] { opacity: 0; }

/* ----------------------------- nav -------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1.1rem, 2vw, 1.6rem) var(--gutter);
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14,13,11,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding-block: 0.9rem;
}
.brand { display: flex; align-items: baseline; gap: 0.55rem; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1; }
.brand b { font-weight: 500; }
.brand .dot { color: var(--accent); }
.brand small { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); align-self: center; }

.nav-links { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.8rem); }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim); position: relative; padding-block: 0.35rem;
  transition: color .35s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .4s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 100px; padding: 0.6rem 1.1rem; color: var(--text);
  transition: border-color .35s var(--ease), color .35s var(--ease), background .35s var(--ease);
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent); }

.burger { display: none; flex-direction: column; gap: 5px; width: 26px; }
.burger span { height: 1.5px; background: var(--text); transition: transform .4s var(--ease), opacity .3s; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; gap: 0.4rem;
  padding: var(--gutter); transform: translateY(-100%); transition: transform .6s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--font-display); font-size: clamp(2rem, 11vw, 3.5rem); font-weight: 300; color: var(--text); line-height: 1.25; }
.mobile-menu a span { color: var(--accent); font-family: var(--font-mono); font-size: 0.8rem; vertical-align: super; margin-right: 0.6rem; }

/* ----------------------------- buttons ---------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1.05rem 1.8rem; border-radius: 100px; position: relative; overflow: hidden;
  border: 1px solid var(--accent); color: #14120e; background: var(--accent);
  transition: color .4s var(--ease);
}
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--accent-2);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: -1;
}
.btn:hover::before { transform: scaleX(1); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost::before { background: var(--surface); }
.btn.ghost:hover { color: var(--accent); border-color: var(--accent); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text);
}
.link-arrow span { width: 0; height: 1px; background: var(--accent); transition: width .4s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover span { width: 2rem; }

/* ============================ HERO ================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 120%; object-fit: cover; filter: brightness(0.5) saturate(0.9); will-change: transform; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,13,11,0.55) 0%, rgba(14,13,11,0.15) 35%, rgba(14,13,11,0.92) 100%);
}
.hero-inner { width: 100%; padding-bottom: clamp(3rem, 9vh, 7rem); }
.hero h1 { margin: 1.5rem 0 2rem; max-width: 16ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 2.5rem 4rem; align-items: flex-end; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 1.8rem; }
.hero-meta .lede { max-width: 38ch; }
.hero-scroll { display: flex; align-items: center; gap: 0.8rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.hero-scroll .bar { width: 1px; height: 42px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll .bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(-100%); animation: scrolldrop 2.2s var(--ease) infinite; }
@keyframes scrolldrop { 0% { transform: translateY(-100%);} 55%,100% { transform: translateY(100%);} }

/* ---------------------- page header (subpages) -------------------- */
.page-head { padding-top: clamp(8rem, 18vh, 13rem); padding-bottom: clamp(2.5rem, 6vh, 5rem); }
.page-head h1 { margin-top: 1.4rem; }
.page-head .lede { margin-top: 1.6rem; max-width: 48ch; }

/* ---------------------- intro / split blocks ---------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split.text-first { grid-template-columns: 1.1fr 0.9fr; }
.stack-gap > * + * { margin-top: 1.4rem; }
.figure { position: relative; overflow: hidden; border-radius: 2px; }
.figure img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.figure.tall { aspect-ratio: 3/4; }
.figure.wide { aspect-ratio: 4/3; }
.figure .tag { position: absolute; left: 1rem; bottom: 1rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; background: rgba(14,13,11,0.65); backdrop-filter: blur(6px); padding: 0.5rem 0.85rem; border: 1px solid var(--line); }

/* ----------------------- section heading -------------------------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.sec-head h2 { max-width: 16ch; }

/* ---------------------------- services ---------------------------- */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 5rem 1fr auto; gap: clamp(1rem,3vw,3rem);
  align-items: baseline; padding: clamp(1.8rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--line);
  position: relative; transition: padding-left .5s var(--ease);
}
.service::before { content: ""; position: absolute; left: -2rem; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--accent), transparent); opacity: 0.12; transition: width .5s var(--ease); }
.service:hover { padding-left: 1.2rem; }
.service:hover::before { width: 40%; }
.service .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; }
.service h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 1rem + 2.4vw, 2.8rem); line-height: 1.05; transition: color .4s; }
.service:hover h3 { color: var(--accent-2); }
.service p { color: var(--muted); max-width: 40ch; }
.service .plus { font-family: var(--font-display); font-size: 1.8rem; color: var(--muted); transition: transform .5s var(--ease), color .4s; }
.service:hover .plus { transform: rotate(90deg); color: var(--accent); }

/* ----------------------- featured works (home) -------------------- */
.works-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.work-card { position: relative; overflow: hidden; border-radius: 2px; }
.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 1.1s var(--ease); filter: saturate(0.92) brightness(0.82); will-change: transform; }
.work-card:hover .media img { transform: scale(1.06); filter: saturate(1) brightness(0.95); }
.work-card .info { display: flex; align-items: flex-start; justify-content: space-between; padding-top: 1.1rem; gap: 1rem; }
.work-card h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); line-height: 1.1; }
.work-card .cat { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); white-space: nowrap; padding-top: 0.4rem; }
.work-card .yr { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); letter-spacing: 0.1em; }
.work-card.feature { grid-column: span 7; }
.work-card.side { grid-column: span 5; }
.work-card.feature .media { aspect-ratio: 16/11; }

/* ------------------------ works gallery page ---------------------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem); }
.gallery .work-card:nth-child(odd) { margin-top: 0; }
.gallery .work-card:nth-child(even) { margin-top: clamp(2rem, 7vw, 6rem); }
.gallery .work-card .media { aspect-ratio: 4/5; }

/* filter pills (works page) */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(2.5rem,6vw,4rem); }
.filters button { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 0.55rem 1.1rem; transition: all .35s var(--ease); }
.filters button.active, .filters button:hover { color: #14120e; background: var(--accent); border-color: var(--accent); }
.work-card.hide { display: none; }

/* ----------------------------- stats ------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg); padding: clamp(1.8rem, 4vw, 3rem); }
.stat .n { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 1.5rem + 4vw, 5rem); line-height: 1; color: var(--text); }
.stat .n .suffix { color: var(--accent); }
.stat .label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.9rem; }

/* ----------------------------- marquee ---------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(1.6rem, 4vw, 2.6rem); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.6rem, 1rem + 3vw, 3.4rem); color: var(--text-dim); display: inline-flex; align-items: center; gap: 3rem; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--accent); font-style: normal; font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------- process ------------------------------ */
.process { counter-reset: step; }
.step { display: grid; grid-template-columns: 0.4fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .idx { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; }
.step .idx::before { counter-increment: step; content: "0" counter(step); }
.step h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 1rem + 2.6vw, 3rem); line-height: 1.02; margin-bottom: 0.9rem; }
.step p { color: var(--muted); max-width: 52ch; }

/* ---------------------------- values ------------------------------ */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.value { border: 1px solid var(--line); padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--bg-2); transition: border-color .4s, transform .5s var(--ease); }
.value:hover { border-color: var(--accent); transform: translateY(-4px); }
.value .k { font-family: var(--font-display); font-weight: 300; font-size: 2.6rem; color: var(--accent); line-height: 1; }
.value h3 { font-size: 1.15rem; font-weight: 600; margin: 1rem 0 0.6rem; letter-spacing: 0.01em; }
.value p { color: var(--muted); font-size: 0.96rem; }

/* ----------------------------- CTA -------------------------------- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta .glow { position: absolute; left: 50%; top: 60%; transform: translate(-50%,-50%); width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; background: radial-gradient(circle, rgba(201,164,92,0.16), transparent 65%); pointer-events: none; }
.cta h2 { margin: 1.5rem auto 2.5rem; max-width: 18ch; }

/* ---------------------------- contact ----------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.info-row { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.info-row:last-child { border-bottom: 1px solid var(--line); }
.info-row .k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.info-row .v { font-size: 1.05rem; color: var(--text); line-height: 1.5; }
.info-row .v a:hover { color: var(--accent); }

.form { display: grid; gap: 1.5rem; }
.field { position: relative; }
.field label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.6rem; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  color: var(--text); font-family: var(--font-body); font-size: 1.05rem; padding: 0.7rem 0; transition: border-color .4s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; }
.field select option { background: var(--bg-2); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: #4f4b41; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em; color: var(--accent); min-height: 1.2em; }

.map-embed { border: 1px solid var(--line); filter: grayscale(1) invert(0.92) contrast(0.9) hue-rotate(180deg) brightness(0.9); width: 100%; aspect-ratio: 16/7; }

/* ----------------------------- footer ----------------------------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: 2.5rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(3rem,7vw,5rem); }
.footer .big-brand { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 1.5rem + 5vw, 5.5rem); line-height: 0.95; letter-spacing: -0.02em; }
.footer .big-brand .dot { color: var(--accent); }
.footer .col h4 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.3rem; }
.footer .col a, .footer .col p { display: block; color: var(--text-dim); margin-bottom: 0.7rem; transition: color .35s; }
.footer .col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.footer-bottom .disclaimer { text-transform: none; letter-spacing: 0; font-family: var(--font-body); max-width: 60ch; color: #8f8979; }

/* --------------------------- cursor ------------------------------- */
.cursor { position: fixed; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s, opacity .3s; mix-blend-mode: difference; }
.cursor.grow { width: 54px; height: 54px; background: rgba(201,164,92,0.25); }
@media (hover: none) { .cursor { display: none; } }

/* --------------------------- lightbox ----------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9500; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.4rem; padding: clamp(1.5rem, 5vw, 4rem);
  background: rgba(8,7,6,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 92vw); max-height: 76vh; width: auto; height: auto; object-fit: contain;
  border: 1px solid var(--line); transform: scale(0.96); transition: transform .5s var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox .lb-cap {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(1.3rem, 1rem + 1.5vw, 2.2rem);
  color: var(--text); text-align: center;
}
.lightbox .lb-cap span { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-top: 0.5rem; }
.lightbox .lb-close {
  position: absolute; top: clamp(1.2rem,3vw,2rem); right: clamp(1.2rem,3vw,2rem);
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--text); font-size: 1.3rem; display: grid; place-items: center;
  transition: border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.lightbox .lb-close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }
.gallery .work-card { cursor: pointer; }

/* --------------------------- responsive --------------------------- */
@media (max-width: 980px) {
  .split, .split.text-first, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .work-card.feature, .work-card.side { grid-column: span 12; }
  .values { grid-template-columns: 1fr; }
  .split .figure.tall { aspect-ratio: 4/3; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .work-card:nth-child(even) { margin-top: 0; }
  .service { grid-template-columns: 3rem 1fr; }
  .service .plus { display: none; }
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero-meta { flex-direction: column; align-items: flex-start; }
}

/* ----------------------- reduced motion --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal-line] > * { opacity: 1 !important; transform: none !important; }
  .marquee-track, .hero-scroll .bar::after { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
