/* stamp: theme=custom "Lamplight workshop" (warm ink + brand yellow from the iFuture logo), genre=atmospheric, shape=narrative workflow; signature=scroll-built 3D kitchen with live finishes.
   self-critique: hero leans on video quality; if the clip is weak, the poster and dust layer must carry it. */

/* ---------- Tokens ---------- */
:root {
  --ink: #0f0e0c;
  --ink-2: #171512;
  --ink-3: #221f1b;
  --paper: #ede6da;
  --paper-2: #e3dbcd;
  --muted: #b4ab9d;
  --muted-dark: #5d564c;
  --line: rgba(237, 230, 218, 0.12);
  --line-strong: rgba(237, 230, 218, 0.24);
  --brand: #f2c716;
  --brand-deep: #c99d00;
  --lamp: #ffb46a;
  --walnut: #5e3f2b;
  --glass: rgba(23, 21, 18, 0.62);
  --mark-ink: var(--paper);

  --bg: var(--ink);
  --fg: var(--paper);
  --fg-soft: var(--muted);

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mark: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-zh: "Noto Serif SC", "Songti SC", serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.3vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.8vw, 4.2rem);
  --step-hero: clamp(3rem, 1.4rem + 7.2vw, 8.6rem);

  --radius: 22px;
  --radius-s: 12px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --press: 150ms;
}

@property --a {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding: 96px 0 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 600ms var(--ease-in-out), color 600ms var(--ease-in-out);
}
body.is-light { --bg: var(--paper); --fg: var(--ink); --fg-soft: var(--muted-dark); --line: rgba(15, 14, 12, 0.14); --mark-ink: var(--ink); }
body.is-locked { overflow: hidden; }

img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--brand); color: var(--ink); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
body.is-light :focus-visible { outline-color: var(--ink); }
[tabindex="-1"]:focus { outline: none; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--brand); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus-visible { top: 16px; }

.label { font-size: var(--step--1); color: var(--fg-soft); margin-bottom: 1.2rem; }
.fine { font-size: var(--step--1); color: var(--fg-soft); margin-top: 1.2rem; }
.h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); line-height: 1.02; letter-spacing: -0.02em; font-optical-sizing: auto; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
.h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.01em; }
.wordmark { font-family: var(--font-mark); font-weight: 500; letter-spacing: 0.32em; }

/* hero waits for GSAP, but never longer than 3 s */
.js-motion .hero__content, .js-motion .chips { opacity: 0; animation: reveal-failsafe 0s 3s forwards; }
@keyframes reveal-failsafe { to { opacity: 1; } }

/* split-line masks: room for descenders */
.hero__title > div, [data-split-lines] > div { padding-bottom: 0.14em; margin-bottom: -0.14em; }
.line-mask { overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  transition: transform var(--press) var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  will-change: transform;
  isolation: isolate;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--small { --h: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn--brand { background: var(--brand); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 10px 30px -12px rgba(242, 199, 22, 0.55); }
.btn--ghost { color: var(--fg); box-shadow: 0 0 0 1px var(--line-strong) inset; background: rgba(15, 14, 12, 0.45); }
@media (hover: hover) and (pointer: fine) {
  .btn--brand:hover { background: #ffd83a; }
  .btn--ghost:hover { background: rgba(237, 230, 218, 0.1); }
}
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* glowing border (rotating conic light) */
.btn--glow::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--a), transparent 0deg, var(--lamp) 40deg, #fff6d0 70deg, transparent 120deg, transparent 360deg);
  opacity: 0.75;
  animation: spin 4.5s linear infinite;
}
.btn--glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: inherit; }
.btn--glow { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 0 28px -4px rgba(255, 180, 106, 0.55); }
@keyframes spin { to { --a: 360deg; } }

.link-arrow { display: inline-flex; min-height: 44px; gap: 0.5em; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 2px; font-weight: 500; }
.link-arrow::after { content: ""; width: 0.7em; height: 0.7em; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, 2px); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover::after { transform: rotate(45deg) translate(1px, -1px); } }

/* ---------- Loader / logo reveal ---------- */
.loader { display: none; }
.js-intro .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink);
  clip-path: inset(0 0 0 0);
  animation: loader-failsafe 0s 6s forwards; /* if scripts never arrive, never trap the page */
}
@keyframes loader-failsafe { to { visibility: hidden; } }
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.mark { width: 100%; height: auto; overflow: visible; }
.mark--loader { width: clamp(96px, 14vw, 150px); }
.loader__word { display: grid; justify-items: center; gap: 6px; }
.loader__word .wordmark { font-size: clamp(1.7rem, 3.4vw, 2.6rem); padding-left: 0.32em; }
.loader__sub { font-family: var(--font-mark); font-size: 0.72rem; letter-spacing: 0.62em; padding-left: 0.62em; color: var(--muted); }
.loader__bar { width: 140px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: var(--brand); transform-origin: left; transform: scaleX(0); }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; inset: 0 auto auto 0; z-index: 120; pointer-events: none; opacity: 0; transition: opacity 200ms var(--ease-out); }
  .has-cursor .cursor.is-on { opacity: 1; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; }
  .cursor__dot { width: 6px; height: 6px; background: var(--brand); }
  .cursor__ring { width: 34px; height: 34px; box-shadow: 0 0 0 1px rgba(242, 199, 22, 0.55) inset; display: grid; place-items: center; transition: width 260ms var(--ease-out), height 260ms var(--ease-out), background-color 260ms var(--ease-out); }
  .cursor__label { font-style: normal; font-size: 0.78rem; font-weight: 600; color: var(--ink); opacity: 0; transition: opacity 160ms var(--ease-out); }
  .cursor.is-link .cursor__ring { width: 52px; height: 52px; }
  .cursor.is-label .cursor__ring { width: 86px; height: 86px; background: var(--brand); }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-label .cursor__dot { opacity: 0; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; gap: 24px;
  padding: 16px var(--gutter);
  transition: transform 400ms var(--ease-out), background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.nav:focus-within { transform: none; }
.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-height: 44px; }
.mark--nav { width: 38px; }
.wordmark--nav { font-size: 1.05rem; letter-spacing: 0.28em; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 10px 14px; border-radius: 999px; color: var(--fg-soft); font-weight: 500; transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--fg); background: rgba(237, 230, 218, 0.07); } }
.nav__links a.is-current { color: var(--fg); }
.nav__menu { display: none; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line-strong) inset; font-weight: 600; }

.menu { position: fixed; inset: 0; z-index: 85; background: var(--ink); display: grid; align-content: safe center; overflow-y: auto; overscroll-behavior: contain; padding: 96px var(--gutter) 40px; }
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 6px; }
.menu nav a { font-family: var(--font-display); font-size: clamp(2.2rem, 10vw, 3.4rem); line-height: 1.15; }
.menu__foot { margin-top: 40px; color: var(--muted); }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; align-items: center; }
  .nav__cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding-bottom: clamp(56px, 9vh, 110px); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--ink-2) url("hero-poster.jpg") center / cover no-repeat; transform-origin: 50% 30%; }
.hero__video, .hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__dust { pointer-events: none; mix-blend-mode: screen; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(15, 14, 12, 0.55) 0%, rgba(15, 14, 12, 0) 26%),
  linear-gradient(0deg, rgba(15, 14, 12, 0.92) 0%, rgba(15, 14, 12, 0.35) 46%, rgba(15, 14, 12, 0) 70%),
  radial-gradient(120% 80% at 0% 100%, rgba(15, 14, 12, 0.7), transparent 60%); }
.hero__content { position: relative; }
.hero__title { font-family: var(--font-display); font-weight: 500; font-size: var(--step-hero); line-height: 0.94; letter-spacing: -0.035em; max-width: 11ch; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
.hero__lede { margin-top: 1.4rem; max-width: 34ch; font-size: var(--step-1); line-height: 1.4; color: rgba(237, 230, 218, 0.86); }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(24px, 4vh, 40px); display: flex; align-items: center; gap: 12px; font-size: var(--step--1); color: var(--muted); }
.hero__scroll span { width: 1px; height: 44px; background: linear-gradient(var(--brand), transparent); transform-origin: top; animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.chips { position: absolute; right: var(--gutter); top: clamp(110px, 18vh, 200px); display: grid; gap: 14px; justify-items: end; width: min(320px, 40vw); }
.chip { display: block; padding: 14px 16px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 0 0 1px var(--line) inset, 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
.chip--update { width: 100%; }
.chip__label { font-size: 0.78rem; color: var(--brand); font-weight: 600; margin-bottom: 4px; }
.chip__text { font-size: 0.92rem; line-height: 1.4; color: var(--paper); }
.chip__progress { margin-top: 12px; height: 4px; border-radius: 4px; background: rgba(237, 230, 218, 0.12); overflow: hidden; }
.chip__progress span { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--brand-deep), var(--brand)); border-radius: inherit; }
.chip--rating { display: flex; align-items: center; gap: 12px; transition: transform var(--press) var(--ease-out); }
.chip--rating:active { transform: scale(0.98); }
.chip__score { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: lining-nums; }
.stars { display: block; color: var(--brand); letter-spacing: 2px; font-size: 0.8rem; }

@media (max-width: 760px) {
  .chips { position: static; width: auto; margin: 28px var(--gutter) 0; justify-items: start; grid-template-columns: 1fr; order: 2; }
  .chips { gap: 10px; margin-top: 22px; }
  .chip { padding: 12px 14px; }
  .hero { align-items: end; grid-template-rows: 1fr auto; }
  .hero__content { align-self: end; }
  .hero__scroll { display: none; }
}

/* ---------- Story ---------- */
.story { padding: clamp(110px, 18vh, 200px) 0 clamp(90px, 14vh, 160px); }
.story__inner { max-width: 1060px; }
.story__text { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 1.1rem + 3.2vw, 4rem); line-height: 1.12; letter-spacing: -0.02em; text-wrap: pretty; }
.story__text .w { opacity: 0.16; }
/* Didone numerals at display size turn the 4 into a hairline "l"; the small optical size keeps them legible */
.num, .stat dd { font-variation-settings: "opsz" 8; }
.nw { white-space: nowrap; }
.contact__zh { margin-top: 0.8rem; font-family: var(--font-zh); color: var(--paper); opacity: 0.86; }
.story__zh { margin-top: 1.6rem; font-family: var(--font-zh); font-size: var(--step-1); color: var(--brand); }

.ray { margin-top: clamp(80px, 12vh, 140px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ray__photo { position: relative; }
.ray__photo img { position: relative; width: 100%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.5)); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 98%); mask-image: linear-gradient(180deg, #000 70%, transparent 98%); }
.ray__glow { position: absolute; inset: 8% 6% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 180, 106, 0.42), rgba(242, 199, 22, 0.08) 60%, transparent); filter: blur(10px); }
.ray__copy > p { margin-top: 1.2rem; max-width: 46ch; color: var(--fg-soft); }
.stats { margin-top: 2.4rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 22px 20px; display: flex; flex-direction: column-reverse; gap: 6px; }
.stat dt { font-size: var(--step--1); color: var(--fg-soft); }
.stat dd { font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 860px) { .ray { grid-template-columns: 1fr; } .ray__photo { max-width: 420px; } }

/* ---------- Services (horizontal) ---------- */
.services { position: relative; }
.services__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 36px; padding: 100px 0 60px; overflow: clip; }
.services__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.services__progress { flex: 0 1 240px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.services__progress span { display: block; height: 100%; background: var(--brand); transform-origin: left; transform: scaleX(0.25); }
.services__track { display: flex; gap: clamp(18px, 2.4vw, 32px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.svc { width: min(78vw, 1040px); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: end; padding: clamp(14px, 1.6vw, 20px); border-radius: calc(var(--radius) + 6px); background: var(--ink-2); box-shadow: 0 0 0 1px var(--line) inset; }
.svc__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); }
.svc__media img, .svc__media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.svc__copy { padding: 8px 8px 18px 0; }
.svc__copy > p:not(.svc__num):not(.svc__price) { margin-top: 0.9rem; color: var(--fg-soft); max-width: 36ch; }
.svc__num { font-family: var(--font-display); font-size: clamp(3.4rem, 2rem + 4vw, 6rem); line-height: 0.9; color: transparent; -webkit-text-stroke: 1px rgba(242, 199, 22, 0.7); margin-bottom: 1.2rem; }
.svc__price { margin-top: 1.6rem; display: inline-block; padding: 8px 14px; border-radius: 999px; background: rgba(242, 199, 22, 0.12); color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .services__pin { min-height: 0; padding: 90px 0 40px; }
  .services__track { flex-direction: column; width: auto; }
  .svc { width: 100%; grid-template-columns: 1fr; }
  .svc__copy { padding: 4px 6px 12px; }
  .svc__num { font-size: 3rem; margin-bottom: 0.6rem; }
  .services__progress { display: none; }
}

/* ---------- 3D Studio ---------- */
.studio { position: relative; }
.studio__pin { position: relative; height: 100svh; overflow: hidden; background: radial-gradient(90% 70% at 70% 60%, #2a2219 0%, var(--ink) 70%); }
.studio__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio__pin::before { content: ""; position: absolute; inset: 0 55% 0 0; z-index: 1; background: linear-gradient(90deg, rgba(15, 14, 12, 0.85), transparent); pointer-events: none; }
.studio__ui { z-index: 2; }
.studio__ui { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-block: 120px 40px; pointer-events: none; }
.studio__copy { max-width: 380px; pointer-events: auto; }
.studio__lede { margin-top: 1rem; color: var(--fg-soft); }
.steps { margin-top: 2rem; display: grid; gap: 4px; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 8px 0; color: rgba(237, 230, 218, 0.62); transition: color 300ms var(--ease-out); }
.steps li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; box-shadow: 0 0 0 1px currentColor inset; transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out); }
.steps li.is-active { color: var(--paper); }
.steps li.is-active span { background: var(--brand); color: var(--ink); box-shadow: none; }

.finish { pointer-events: auto; align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 16px; border-radius: 999px; background: rgba(23, 21, 18, 0.88); box-shadow: 0 0 0 1px var(--line) inset; }
.finish__label { font-size: var(--step--1); color: var(--muted); margin-right: 4px; }
.finish button { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset; transition: transform var(--press) var(--ease-out); }
.finish button::before { content: ""; position: absolute; inset: -6px; }
.finish button:active { transform: scale(0.92); }
.finish button[data-finish="charcoal"] { box-shadow: 0 0 0 1px rgba(237, 230, 218, 0.45) inset; }
.finish button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--ink-2), 0 0 0 4px var(--brand); }
.finish__name { min-width: 7.5em; font-size: 0.92rem; font-weight: 500; }
@media (max-width: 760px) {
  .studio__pin::after { content: ""; position: absolute; inset: 0 0 45% 0; background: linear-gradient(var(--ink) 35%, transparent); pointer-events: none; }
  .studio__ui { z-index: 1; padding-block: 96px 24px; }
  .steps { display: none; }
  .finish { flex-wrap: wrap; border-radius: 20px; }
}
@media (max-width: 420px) {
  .finish { flex-wrap: nowrap; border-radius: 999px; }
  .finish__label { display: none; }
}

/* ---------- Work ---------- */
.work { padding: clamp(110px, 16vh, 180px) 0; }
.work__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(36px, 6vh, 64px); }
.work__note { max-width: 36ch; color: var(--fg-soft); font-size: var(--step--1); }
.work__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.proj { grid-column: span 5; }
.proj--wide { grid-column: span 7; }
.proj:nth-child(4n + 3), .proj:nth-child(4n + 4) { margin-top: 0; }
.proj:nth-child(2) { margin-top: clamp(40px, 10vh, 120px); }
.proj:nth-child(5) { margin-top: clamp(-80px, -6vh, -40px); }
.proj__btn { display: grid; gap: 16px; width: 100%; text-align: left; border-radius: var(--radius); }
.proj__frame { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); }
.proj--wide .proj__frame { aspect-ratio: 16 / 10; }
.proj__frame img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; transition: scale 700ms var(--ease-out), filter 700ms var(--ease-out); }
.proj__frame--crop img { object-position: 50% 10%; }
.proj__frame img, .svc__media img { filter: sepia(0.14) saturate(0.92) contrast(1.03) brightness(0.96); }
@media (hover: hover) and (pointer: fine) { .proj__btn:hover .proj__frame img { scale: 1.04; } }
.proj__meta { display: grid; gap: 4px; }
.proj__tag { justify-self: start; font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line-strong) inset; color: var(--fg-soft); margin-bottom: 6px; }
.proj__tag--done { background: rgba(242, 199, 22, 0.14); color: var(--brand); box-shadow: none; }
.proj__title { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.2; }
.proj__sub { font-size: var(--step--1); color: var(--fg-soft); }
@media (max-width: 860px) {
  .proj, .proj--wide { grid-column: 1 / -1; margin-top: 0 !important; }
}

/* viewer */
.viewer { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 72px var(--gutter) 40px; background: rgba(10, 9, 8, 0.92); backdrop-filter: blur(6px); }
.viewer[hidden] { display: none; }
.viewer__fig { width: min(100%, 1200px); display: grid; gap: 14px; }
.viewer__fig img { width: 100%; max-height: 78svh; object-fit: contain; border-radius: var(--radius); }
.viewer__fig figcaption { color: var(--muted); font-size: var(--step--1); }
.viewer__close { position: absolute; top: 18px; right: var(--gutter); min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line-strong) inset; font-weight: 600; }

/* ---------- Process ---------- */
.process { padding: clamp(80px, 12vh, 140px) 0 clamp(110px, 16vh, 180px); }
.process__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 100px); }
.process__head { position: sticky; top: 120px; align-self: start; }
.process__head > p { margin-top: 1.2rem; color: var(--fg-soft); max-width: 30ch; }
.timeline { position: relative; display: grid; gap: clamp(36px, 7vh, 72px); padding-left: 64px; }
.timeline__line { position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__line span { position: absolute; inset: 0; background: linear-gradient(var(--brand), var(--lamp)); transform-origin: top; transform: scaleY(0); }
.timeline__key { max-width: none; position: absolute; left: 50%; top: 0; width: 34px; height: 34px; translate: -50% -50%; padding: 6px; border-radius: 50%; background: var(--brand); color: var(--ink); box-shadow: 0 0 0 6px var(--bg), 0 0 30px rgba(242, 199, 22, 0.5); }
.tstep { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: baseline; }
.tstep__n { position: absolute; left: -64px; width: 40px; text-align: center; font-size: 0.8rem; font-weight: 600; color: var(--muted); background: var(--bg); padding: 4px 0; }
.tstep h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.1; }
.tstep p { margin-top: 0.5rem; color: var(--fg-soft); max-width: 44ch; }
.tstep > div { grid-column: 1 / -1; }
@media (max-width: 860px) { .process__inner { grid-template-columns: 1fr; } .process__head { position: static; } }

/* ---------- Reviews ---------- */
.reviews { padding: clamp(110px, 16vh, 180px) 0 clamp(80px, 12vh, 140px); }
.reviews__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(36px, 6vh, 60px); }
.reviews__head .h2 { max-width: 14ch; }
.marquee { --fade: 6%; overflow: hidden; cursor: grab; touch-action: pan-y; padding-block: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }
@media (max-width: 760px) { .marquee { --fade: 0%; } }
.marquee.is-dragging { cursor: grabbing; }
.marquee:focus-visible { -webkit-mask-image: none; mask-image: none; outline-offset: -3px; }
.reviews__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.is-marquee-paused .areas__track { animation-play-state: paused; }
.areas:hover .areas__track { animation-play-state: paused; }
.marquee__track { display: flex; gap: 20px; width: max-content; padding-inline: var(--gutter); }
.quote { width: clamp(280px, 30vw, 420px); align-self: flex-start; display: flex; flex-direction: column; gap: 28px; padding: 28px; border-radius: var(--radius); background: var(--paper-2); color: var(--ink); user-select: none; }
.quote blockquote { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.3; }
.quote__by { display: flex; justify-content: space-between; gap: 12px; font-size: var(--step--1); font-weight: 600; color: var(--ink); padding-top: 16px; border-top: 1px solid rgba(15, 14, 12, 0.12); }
.quote__by span { font-weight: 500; color: var(--muted-dark); }
.reviews .fine { margin-top: 28px; }

/* ---------- Contact ---------- */
.contact { position: relative; padding: clamp(110px, 16vh, 180px) 0 0; isolation: isolate; overflow: clip; }
.contact__media { position: absolute; inset: 0 0 auto 0; height: 100%; z-index: -1; }
.contact__media video { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.contact__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 25%, rgba(15, 14, 12, 0.6) 60%, rgba(15, 14, 12, 0.85)), linear-gradient(0deg, var(--ink) 0%, transparent 30%, transparent 80%, var(--ink)); }
.contact__inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); }
.contact__copy > p { margin-top: 1rem; color: var(--fg-soft); max-width: 40ch; }

.quote-form { margin-top: 2.2rem; display: grid; gap: 22px; max-width: 560px; }
.quote-form fieldset { border: 0; padding: 0; margin: 0; }
.quote-form legend, .field > span { display: block; font-size: var(--step--1); color: var(--fg-soft); margin-bottom: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line-strong) inset; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform var(--press) var(--ease-out); }
.seg input:checked + span { background: var(--paper); color: var(--ink); box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 3px; }
.seg label:active span { transform: scale(0.97); }
.field input { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 0; background: rgba(237, 230, 218, 0.06); box-shadow: 0 0 0 1px var(--line-strong) inset; color: var(--paper); font: inherit; }
.field input::placeholder { color: rgba(237, 230, 218, 0.4); }
.field input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.quote-form .btn { justify-self: start; }
.quote-form .fine { margin-top: -6px; }

.info { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--fg-soft); font-size: var(--step--1); padding-top: 3px; }
.info dd a { transition: color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .info dd a:hover { color: var(--brand); } }
.socials { display: flex; flex-wrap: wrap; gap: 0 18px; }
.socials a, .duo a { display: inline-flex; align-items: center; min-height: 44px; }
.duo { display: flex; flex-wrap: wrap; gap: 0 18px; }
.duo a + a { color: var(--fg-soft); text-decoration: underline; text-underline-offset: 4px; }
.info > div { align-items: center; }
.info dt { padding-top: 0; }
.map { position: relative; margin-top: 24px; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); box-shadow: 0 0 0 1px var(--line) inset; display: grid; align-content: end; padding: 20px; color: var(--paper); }
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__label { position: relative; font-family: var(--font-display); font-size: var(--step-1); margin-bottom: 14px; }
.map__actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.map iframe { position: absolute; inset: 0; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9) sepia(0.2); }

@media (max-width: 900px) { .contact__inner { grid-template-columns: 1fr; } .info > div { grid-template-columns: 90px minmax(0, 1fr); } }

.areas { margin-top: clamp(80px, 12vh, 140px); padding: 26px 0; border-block: 1px solid var(--line); overflow: hidden; }
.areas__track { display: flex; align-items: center; gap: 32px; width: max-content; font-family: var(--font-display); font-size: clamp(1.6rem, 1rem + 2vw, 2.8rem); white-space: nowrap; animation: marquee 38s linear infinite; }
.areas__track i { width: 18px; height: 14px; background: var(--brand); clip-path: polygon(50% 0, 100% 100%, 76% 100%, 50% 42%, 24% 100%, 0 100%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.footer { padding: clamp(60px, 10vh, 120px) 0 32px; overflow: clip; }
.footer__word { --fill: 100%; position: relative; font-size: clamp(3.4rem, 17vw, 17rem); line-height: 0.9; letter-spacing: 0.08em; text-indent: 0.08em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(237, 230, 218, 0.45); user-select: none; }
.footer__word::after { content: attr(data-text); position: absolute; inset: 0; color: var(--brand); -webkit-text-stroke: 0; clip-path: inset(var(--fill) 0 0 0); }
.footer__row { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--fg-soft); font-size: var(--step--1); }

/* ---------- Pause controls ---------- */
.media-toggle { position: absolute; left: var(--gutter); bottom: 14px; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: var(--step--1); font-weight: 600; color: var(--paper); background: rgba(15, 14, 12, 0.5); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.hero .media-toggle { left: auto; right: calc(var(--gutter) + 96px); bottom: clamp(18px, 3.4vh, 32px); }
.media-toggle--inline { position: static; color: inherit; background: transparent; min-width: 88px; box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 35%, transparent) inset; }
@media (max-width: 760px) { .hero .media-toggle { right: var(--gutter); top: 84px; bottom: auto; } }

/* ---------- Short screens (landscape phones, small laptops) ---------- */
@media (max-height: 640px) and (min-width: 761px) {
  .studio__ui { padding-block: 84px 20px; }
  .steps { display: none; }
  .services__pin { gap: 18px; padding: 76px 0 24px; }
  .svc__media { aspect-ratio: 16 / 9; }
  .svc__num { font-size: 3rem; margin-bottom: 0.4rem; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .services__pin { gap: 24px; padding: 84px 0 32px; }
  .svc { align-items: center; }
  .svc__media { aspect-ratio: 16 / 10; }
}

/* ---------- Floating WhatsApp ---------- */
.fab { visibility: hidden; position: fixed; right: var(--gutter); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 80; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 16px 40px -10px rgba(0, 0, 0, 0.6); transform: translateY(160%); transition: transform 500ms var(--ease-out), background-color 200ms var(--ease-out), visibility 0s 500ms; }
.fab.is-shown { visibility: visible; transform: none; transition: transform 500ms var(--ease-out), background-color 200ms var(--ease-out), visibility 0s; }
@media (max-width: 760px) { .fab { left: var(--gutter); right: var(--gutter); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .story__text .w { opacity: 1; }
  .areas__track { animation: none; flex-wrap: wrap; width: auto; padding-inline: var(--gutter); }
  .btn--glow::before { animation: none; }
}

.map.has-map .map__art, .map.has-map .map__label { display: none; }
.map iframe { z-index: 0; }
