/* Shared structure. Each version sets the tokens and its own look. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
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(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; overflow-x: clip; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--bg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.is-loading { overflow: hidden; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max, 1320px)); margin-inline: auto; }
:root { --gutter: clamp(16px, 4vw, 48px); --sec: clamp(96px, 14vw, 200px); --ease: cubic-bezier(.16, 1, .3, 1); }
.sec { padding-block: var(--sec); position: relative; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  background: var(--btn-bg, var(--accent)); color: var(--btn-ink, var(--bg)); transition: transform .5s var(--ease), background-color .3s, box-shadow .3s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .6s var(--ease), background-color .4s, backdrop-filter .4s; }
.nav__in { display: flex; align-items: center; gap: 28px; height: 76px; }
.nav__logo { font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; margin-right: auto; }
.nav__links { display: flex; gap: 28px; font-size: 15px; }
.nav__links a { opacity: .72; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav__toggle i, .nav__toggle i::after { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.nav__toggle i { top: 18px; } .nav__toggle i::after { content: ''; left: 0; right: 0; top: 7px; }
.menu-open .nav__toggle i { transform: translateY(3.5px) rotate(45deg); } .menu-open .nav__toggle i::after { transform: translateY(-7px) rotate(-90deg); }
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; padding: 8px var(--gutter) 28px; background: var(--bg); font-size: 22px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .4s var(--ease); border-bottom: 1px solid var(--line); }
  .nav__links a { padding: 12px 0; opacity: 1; }
  .menu-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav .btn { display: none; }
}

/* reveal (used sparingly: section headings only) */
[data-reveal] { transform: translateY(18px); transition: transform 1.1s var(--ease); }
[data-reveal].is-in { transform: none; }
.quote__sample { font-style: normal; font-size: 11px; padding: 2px 7px; border-radius: 99px; margin-left: 6px; box-shadow: inset 0 0 0 1px var(--line-strong); opacity: .7; }

/* marquee */
.mq { overflow: hidden; mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq__track { display: flex; width: max-content; animation: mq 46s linear infinite; }
.mq__track span { padding-inline: clamp(20px, 3vw, 44px); white-space: nowrap; }
@keyframes mq { to { transform: translateX(-50%); } }

/* carousel */
.cc { position: relative; height: clamp(300px, calc(100vw / 1440 * 420), 640px); overflow: hidden; cursor: grab; user-select: none; touch-action: pan-y; }
.cc.is-grabbing { cursor: grabbing; }
.cc__track { position: absolute; inset: 0; }
.cc__card { position: absolute; left: 0; top: 0; will-change: transform, clip-path; padding: 0; }
.cc__card canvas { width: 100%; height: 100%; }
.cc__play { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cc__play::after { content: ''; position: absolute; left: 12px; top: 10px; border: 5px solid transparent; border-left: 8px solid #fff; border-right: 0; }
@media (max-width: 819px) { .cc { height: calc(100vw / 640 * 420); } }

/* stills grid */
.stills { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(160px, 17vw, 260px); gap: clamp(8px, 1.2vw, 16px); }
.still { position: relative; overflow: hidden; border-radius: var(--r-media, 10px); grid-column: span 2; text-align: left; }
.still--wide { grid-column: span 4; } .still--tall { grid-row: span 2; }
.still__img { position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.still:hover .still__img { transform: scale(1.04); }
.still__cap { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.5); opacity: 0; transform: translateY(6px); transition: .5s var(--ease); }
.still__cap i { font-style: normal; opacity: .75; }
.still:hover .still__cap, .still:focus-visible .still__cap { opacity: 1; transform: none; }
@media (max-width: 760px) { .stills { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; } .still, .still--wide { grid-column: span 1; } .still--wide:first-child { grid-column: span 2; } .still__cap { opacity: 1; transform: none; } }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.step__n { position: absolute; top: -13px; left: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.step__t { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.step__time { display: block; font-size: 14px; color: var(--accent-text, var(--accent)); margin: 4px 0 12px; }
.step__b { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* quotes */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.quote:first-child { grid-row: span 2; }
.quote blockquote { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.2; font-size: clamp(20px, 2vw, 28px); }
.quote:first-child blockquote { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.12; }
.quote figcaption { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.quote figcaption b { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 19px; cursor: pointer; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; width: 14px; height: 14px; flex: none; }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 6.5px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa__a { color: var(--ink-2); padding: 0 40px 24px 0; max-width: 62ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* lightbox */
.lb { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: #fff; }
.lb::backdrop { background: rgba(6, 5, 4, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lb[open] { animation: lbIn .5s var(--ease); } .lb.is-closing { animation: lbOut .26s ease forwards; }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } } @keyframes lbOut { to { opacity: 0; transform: scale(.98); } }
.lb__inner { height: 100%; display: grid; place-items: center; align-content: center; gap: 16px; padding: 24px; }
.lb__stage video { max-height: 78vh; max-width: 90vw; border-radius: 12px; }
.lb__tile { position: relative; overflow: hidden; height: min(78vh, 160vw); aspect-ratio: 384 / 540; border-radius: 12px; background-color: #111; }
.lb__tile video { position: absolute; max-width: none; max-height: none; border-radius: 0; }
.lb__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; font-size: 14px; } .lb__meta span { opacity: .6; }
.lb__case { color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); }
.lb__close { position: absolute; top: 20px; right: 24px; font-size: 14px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.1); }

/* loader */
.ld { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity .8s var(--ease) .25s, visibility 0s 1.1s; }
.ld__ring { position: relative; width: min(64vmin, 460px); aspect-ratio: 1; transition: transform 1s var(--ease); }
.ld__item { position: absolute; left: 50%; top: 50%; width: var(--ld-size, 54px); height: var(--ld-size, 54px); margin: calc(var(--ld-size, 54px) / -2);
  transform: translate(calc(var(--x) * 50% * var(--rr, 7.2)), calc(var(--y) * 50% * var(--rr, 7.2))) scale(.4); opacity: 0; transition: transform .7s cubic-bezier(.34,1.56,.64,1), opacity .4s; }
.ld__item.is-in { opacity: 1; transform: translate(calc(var(--x) * 50% * var(--rr, 7.2)), calc(var(--y) * 50% * var(--rr, 7.2))) scale(1); }
.ld__item img, .ld__item svg { width: 100%; height: 100%; object-fit: contain; }
.ld__mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ld__num { font-family: var(--font-display); font-weight: 400; font-size: clamp(56px, 9vmin, 92px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ld__mid sup { position: absolute; top: calc(50% - 44px); left: calc(50% + 52px); font-size: 18px; }
.ld__mid small { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.ld.is-out { opacity: 0; visibility: hidden; } .ld.is-out .ld__ring { transform: scale(1.25) rotate(25deg); }
@media (max-width: 600px) { .ld { --ld-size: 40px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
