/* ============================================================
   Kingsley Digital Group — site
   Black room. White light. One serif, one sans.
   ============================================================ */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 400;
  padding: 10px 16px; background: var(--fg); color: var(--bg);
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.label {
  display: inline-block;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--dim { color: var(--faint); }

.line-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.line-mask > span { display: block; will-change: transform; }

/* ---------- film texture ---------- */
.grain {
  position: fixed; inset: 0; z-index: 210;
  pointer-events: none;
  background-image: url('../assets/grain.svg');
  background-size: 220px 220px;
  opacity: .055;
}
.vignette {
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 42%, rgb(0 0 0 / .42) 100%);
  mix-blend-mode: multiply;
}
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 190;
  height: 2px; pointer-events: none;
}
.progress i {
  display: block; height: 100%; width: 100%;
  background: var(--fg);
  transform: scaleX(0); transform-origin: 0 50%;
  mix-blend-mode: difference;
}

/* ---------- loader ---------- */
.loader { display: none; }
html.js:not(.loaded) .loader {
  position: fixed; inset: 0; z-index: 320;
  display: grid; place-items: center;
  background: var(--bg-deep);
}
.loader__mark { width: 56px; opacity: .9; }
.loader__mark svg { width: 100%; height: auto; fill: var(--fg); }
.loader__bar {
  position: absolute; left: 50%; bottom: 14vh; transform: translateX(-50%);
  width: min(220px, 40vw); height: 1px; background: var(--line);
}
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; }
.loader__pct {
  position: absolute; right: var(--gutter); bottom: calc(14vh - 9px);
  font-size: 10px; letter-spacing: .18em; color: var(--muted);
}

/* ---------- cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__dot, .cursor__ring {
  position: absolute; border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor__dot { width: 5px; height: 5px; background: #fff; }
.cursor__ring {
  width: 34px; height: 34px; border: 1px solid #fff;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), background-color .35s;
}
.cursor.is-state .cursor__ring { width: 62px; height: 62px; background: rgb(255 255 255 / .12); }
.cursor__label {
  position: absolute; left: 22px; top: 18px;
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; mix-blend-mode: difference; white-space: nowrap;
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s;
}
.cursor.is-state .cursor__label { opacity: 1; transform: none; }

/* ---------- chapter marker ---------- */
.chapter {
  position: fixed; left: var(--gutter); bottom: 26px; z-index: 120;
  display: flex; align-items: center; gap: 12px;
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); mix-blend-mode: difference;
  transition: opacity .4s var(--ease-out);
}
body.is-work .chapter, body.is-foot .chapter { opacity: 0; }
.chapter i { display: block; width: 34px; height: 1px; background: currentColor; opacity: .5; }
.chapter span:last-child { color: var(--fg); }

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  transition: transform .55s var(--ease-out), background-color .4s, border-color .4s, color .4s;
  border-bottom: 1px solid transparent;
  color: var(--fg);
}
.nav.is-stuck {
  background: color-mix(in oklab, var(--bg) 76%, transparent);
  backdrop-filter: blur(16px) saturate(120%);
  border-bottom-color: var(--line-soft);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-ink { color: var(--paper-ink); }
.nav.is-ink.is-stuck {
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  border-bottom-color: var(--paper-line);
}
.nav.is-ink .nav__name-dim { color: var(--paper-muted); }
.nav.is-ink .btn--solid { background: var(--paper-ink); color: var(--paper); }
.nav.is-ink .nav__menu span { background: var(--paper-ink); }
body.menu-open .nav { color: var(--fg); }
body.menu-open .nav.is-stuck { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
body.menu-open .nav .nav__name-dim { color: var(--muted); }
body.menu-open .nav .btn--solid { background: var(--fg); color: var(--bg-deep); }
body.menu-open .nav .nav__menu span { background: var(--fg); }

.nav__inner {
  max-width: var(--max); margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark { width: 30px; height: 30px; fill: currentColor; }
.nav__name {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; line-height: 1.05;
  text-transform: uppercase;
}
.nav__name-dim {
  display: block; font-size: 8.5px; font-weight: 500; letter-spacing: .22em;
  color: var(--muted); margin-top: 4px;
}
.nav__links { display: flex; align-items: center; gap: 38px; margin-left: auto; margin-right: 38px; }
.nav__links a { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.roll { position: relative; display: block; overflow: hidden; height: 1.25em; }
.roll span { display: block; transition: transform .45s var(--ease-out); }
.roll span:last-child { position: absolute; top: 100%; left: 0; }
.nav__links a:hover .roll span { transform: translateY(-100%); }
.nav__cta { height: 42px; padding: 0 20px; }
.nav__menu { display: none; width: 44px; height: 44px; position: relative; }
.nav__menu span {
  position: absolute; left: 11px; right: 11px; height: 1px; background: var(--fg);
  transition: transform .4s var(--ease-out), opacity .3s;
}
.nav__menu span:first-child { top: 18px; }
.nav__menu span:last-child { top: 26px; }
.nav__menu.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__menu.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 145;
  background: var(--bg-deep);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease-out), visibility .5s;
  display: flex; flex-direction: column; justify-content: center;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__inner { padding: 100px var(--gutter) 48px; width: 100%; max-width: var(--max); margin-inline: auto; }
.menu__links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: .08s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .14s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .2s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .26s; }
.menu__links span { font-family: var(--font-display); font-size: clamp(2.4rem, 9vw, 4rem); line-height: 1; }
.menu__links em { font-style: normal; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.menu__foot { margin-top: 36px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.menu__wa { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.menu__wa .wa__icon { width: 15px; height: 15px; }
.menu__tagline { color: var(--faint); }

/* ---------- buttons + links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .4s var(--ease-out), box-shadow .4s, background-color .3s, color .3s, border-color .3s;
  overflow: hidden; isolation: isolate;
}
.btn--solid { background: var(--fg); color: var(--bg-deep); }
.btn--solid::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .9s var(--ease-inout);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -14px rgb(255 255 255 / .45); }
.btn--solid:hover::after { transform: translateX(130%); }
.btn--solid:active { transform: translateY(0) scale(.98); }
.btn--outline {
  gap: 10px;
  border: 1px solid color-mix(in oklab, var(--fg) 46%, transparent);
  background: rgb(255 255 255 / .025);
  color: var(--fg);
}
.btn--outline:hover {
  background: var(--fg); color: var(--bg-deep); border-color: var(--fg);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -16px rgb(255 255 255 / .3);
}
.btn--outline:active { transform: translateY(0) scale(.98); }
.wa__icon { width: 16px; height: 16px; flex: none; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-size: 0% 1px; background-position: 0 100%;
  transition: background-size .45s var(--ease-out), color .3s;
}
.link:hover { background-size: 100% 1px; }
.link__arrow { font-size: 14px; transition: transform .4s var(--ease-out); }
.link:hover .link__arrow { transform: translate(2px, 2px); }

.eyebrow {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--muted); }

/* ---------- shared heads ---------- */
.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line-soft);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: .95;
  letter-spacing: -.025em;
}
.h2 em, .hero__title em, .cta__title em, .showcase__title em, .invite__line em {
  font-style: italic; letter-spacing: -.03em;
}
.lede { color: var(--muted); font-size: clamp(.95rem, 1.15vw, 1.05rem); line-height: 1.65; }

/* ---------- studies (light-field visuals) ---------- */
.study { position: absolute; inset: 0; overflow: hidden; background: var(--bg-deep); }
.study::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url('../assets/grain.svg');
  background-size: 180px 180px;
  opacity: .5; mix-blend-mode: overlay;
}
.study__bloom, .study__blade, .study__beam, .study__horizon, .study__floor,
.study__slats, .study__ember, .study__arch, .study__dust,
.study__window, .study__shaft { position: absolute; display: block; }

.study--blade {
  background:
    radial-gradient(65% 55% at 63% 44%, rgb(255 246 228 / .10), transparent 62%),
    radial-gradient(120% 90% at 50% 108%, rgb(255 236 206 / .07), transparent 55%),
    var(--bg-deep);
}
.study--blade .study__bloom {
  left: 48%; top: 8%; width: 30%; height: 74%;
  background: radial-gradient(closest-side, rgb(255 250 240 / .20), transparent 72%);
  filter: blur(46px);
}
.study--blade .study__blade {
  left: 62.5%; top: 4%; width: 2px; height: 90%;
  background: linear-gradient(180deg, transparent, rgb(255 253 246 / .95) 20%, rgb(255 253 246 / .98) 72%, transparent);
  box-shadow: 0 0 16px 1px rgb(255 246 226 / .55), 0 0 120px 26px rgb(255 236 200 / .10);
  transform: rotate(5deg);
}
.study--blade .study__beam {
  left: 18%; top: -30%; width: 46%; height: 160%;
  background: linear-gradient(100deg, transparent 44%, rgb(255 244 224 / .055) 50%, transparent 58%);
  transform: rotate(-10deg); filter: blur(16px);
}
.study--blade .study__horizon {
  left: 6%; right: 6%; top: 76%; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .16), transparent);
}
.study--blade .study__floor {
  left: 0; right: 0; bottom: 0; height: 24%;
  background: linear-gradient(0deg, rgb(255 240 214 / .055), transparent);
}

.study--facade {
  background:
    radial-gradient(70% 80% at 24% 42%, rgb(255 168 88 / .10), transparent 66%),
    var(--bg-deep);
}
.study--facade .study__slats {
  inset: 0;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .055) 0 1px, transparent 1px 42px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 82%, transparent);
}
.study--facade .study__ember {
  left: -12%; top: 36%; width: 74%; height: 22%;
  background: radial-gradient(58% 100% at 42% 50%, rgb(255 166 86 / .34), transparent 72%);
  filter: blur(34px);
}
.study--facade .study__beam {
  left: 30%; top: -12%; width: 2px; height: 124%;
  background: linear-gradient(180deg, transparent, rgb(255 210 160 / .5), transparent);
  box-shadow: 0 0 70px 12px rgb(255 170 96 / .14);
  transform: rotate(13deg);
}

.study--aperture {
  background:
    radial-gradient(90% 60% at 50% 8%, rgb(255 236 204 / .13), transparent 62%),
    linear-gradient(180deg, #09080a 0%, #070707 58%, #050505 100%);
}
.study--aperture .study__bloom {
  left: 50%; top: 14%; width: 54%; height: 46%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(255 236 204 / .22), transparent 72%);
  filter: blur(52px);
}
.study--aperture .study__window {
  left: 50%; top: 7%; width: 17%; height: 33%;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(120% 84% at 50% 0%, #fffdf7 0%, #fff1da 32%, #f0d6b2 62%, #c4a37b 88%, #8b6f4f 100%);
  box-shadow:
    inset 0 0 60px 10px rgb(112 78 40 / .38),
    inset 0 -20px 40px rgb(90 62 32 / .28),
    0 0 80px 18px rgb(255 231 192 / .24),
    0 0 240px 70px rgb(255 212 154 / .10);
  filter: blur(3.5px);
}
.study--aperture .study__window::before {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, transparent, rgb(255 241 214 / .75), transparent);
  filter: blur(2px);
}
.study--aperture .study__window::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 49.2%, rgb(8 8 8 / .42) 49.2% 50.8%, transparent 50.8%);
}
.study--aperture .study__shaft {
  left: 6%; top: 4%; width: 88%; height: 76%;
  background:
    radial-gradient(50% 46% at 50% 26%, rgb(255 240 214 / .13), transparent 72%),
    radial-gradient(70% 40% at 50% 62%, rgb(255 232 198 / .05), transparent 76%);
  filter: blur(42px);
}
.study--aperture .study__floor {
  left: 0; right: 0; top: 63%; bottom: 0;
  background: linear-gradient(180deg, rgb(12 11 10 / .1), rgb(10 9 8 / .78) 44%, #060606 100%);
}
.study--aperture .study__floor::after {
  content: ""; position: absolute; left: 50%; top: 0;
  width: 19%; height: 52%; transform: translateX(-50%);
  background: linear-gradient(180deg, rgb(255 236 204 / .26), rgb(255 228 184 / .05) 62%, transparent);
  filter: blur(12px);
}
.study--aperture .study__dust {
  inset: 0;
  background:
    radial-gradient(1px 1px at 24% 38%, rgb(255 255 255 / .35), transparent 60%),
    radial-gradient(1px 1px at 68% 28%, rgb(255 255 255 / .28), transparent 60%),
    radial-gradient(1.4px 1.4px at 52% 62%, rgb(255 255 255 / .22), transparent 60%),
    radial-gradient(1px 1px at 78% 56%, rgb(255 255 255 / .18), transparent 60%);
  opacity: .8;
}

/* ---------- hero ---------- */
.hero { position: relative; height: 260vh; background: var(--bg); }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0;
  clip-path: inset(16% 5% 20% 46%);
  will-change: clip-path;
}
.hero__media .study { position: absolute; inset: 0; transform: scale(1.16); }
.hero__edge {
  position: absolute; z-index: 2; pointer-events: none;
  top: 16%; right: 5%; bottom: 20%; left: 46%;
  border: 1px solid rgb(255 255 255 / .16);
}
.hero__caption {
  position: absolute; z-index: 3;
  right: calc(5% + 20px); bottom: calc(20% + 16px);
  display: flex; gap: 16px;
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: rgb(255 255 255 / .62);
}
.hero__inner {
  position: absolute; left: var(--gutter); bottom: 16vh; z-index: 3;
  width: min(46vw, 680px);
}
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3rem, 7.4vw, 7.4rem);
  line-height: .92; letter-spacing: -.035em;
  margin: 22px 0 0;
}
.hero__sub {
  margin-top: 26px; max-width: 34ch;
  font-size: clamp(.95rem, 1.15vw, 1.08rem); line-height: 1.6; color: var(--muted);
}
.hero__actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; }
.hero__meta {
  position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 18px); z-index: 3;
  display: flex; flex-direction: column; gap: 3px; text-align: right;
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: rgb(255 255 255 / .62);
}
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 26px; z-index: 3;
  display: flex; align-items: center; gap: 12px; color: rgb(255 255 255 / .7);
}
.hero__scroll i { display: block; width: 1px; height: 42px; background: linear-gradient(180deg, currentColor, transparent); }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line-soft); background: var(--bg); }
.ticker__track {
  display: flex; align-items: center; gap: 42px;
  width: max-content; padding: 20px 0;
  animation: ticker 48s linear infinite;
}
.ticker span {
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.ticker i {
  display: block; flex: none;
  width: 5px; height: 5px;
  background: var(--faint);
  transform: rotate(45deg);
  opacity: .75;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- manifesto ---------- */
.manifesto { padding: 16vh 0 14vh; background: var(--bg); }
.manifesto__statement {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 4.4rem);
  line-height: 1.02; letter-spacing: -.028em;
  max-width: 19ch;
  margin: 9vh 0 12vh;
}
.manifesto__statement .word { display: inline-block; }
.manifesto__grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.manifesto__lede { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.7; max-width: 46ch; }
.principles li {
  display: grid; grid-template-columns: 54px 1fr; gap: 18px;
  padding: 22px 0; border-top: 1px solid var(--line-soft);
}
.principles li:last-child { border-bottom: 1px solid var(--line-soft); }
.principles__n { font-size: 10px; letter-spacing: .16em; color: var(--faint); padding-top: 6px; }
.principles h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 1.9vw, 1.7rem); letter-spacing: -.015em; }
.principles p { color: var(--muted); font-size: 13.5px; margin-top: 6px; max-width: 40ch; grid-column: 2; }

/* ---------- services deck ---------- */
.deck { padding: 12vh 0 8vh; background: var(--bg); }
.deck__intro {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px;
  align-items: end; margin: 7vh 0 9vh;
}
.deck__intro .lede { max-width: 34ch; padding-bottom: 8px; }
.deck__stack { position: relative; }
.deck__card {
  position: sticky;
  top: calc(var(--nav-h) + var(--offset, 0px));
  z-index: var(--z, 1);
  min-height: min(66vh, 640px);
  margin-bottom: 11vh;
  padding: clamp(26px, 3.6vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  overflow: hidden; isolation: isolate;
  will-change: transform;
}
.deck__card:nth-child(1) { --offset: 0px; --z: 1; }
.deck__card:nth-child(2) { --offset: 10px; --z: 2; }
.deck__card:nth-child(3) { --offset: 20px; --z: 3; }
.deck__card:nth-child(4) { --offset: 30px; --z: 4; }
.deck__card:nth-child(5) { --offset: 40px; --z: 5; }
.deck__card::before {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: rgb(0 0 0 / var(--veil, 0));
}
.deck__card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 82% 12%, rgb(255 255 255 / .045), transparent 60%);
}
.deck__top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.deck__num { font-family: var(--font-display); font-size: 15px; color: var(--muted); }
.deck__body {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 80px);
  align-items: end; margin-top: auto; padding-top: 8vh; position: relative; z-index: 1;
}
.deck__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: .92; letter-spacing: -.03em;
}
.deck__copy { color: var(--muted); font-size: clamp(.9rem, 1.05vw, 1rem); line-height: 1.65; max-width: 42ch; }
.deck__items {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px;
  position: relative; z-index: 1;
}
.deck__items li {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  display: flex; align-items: center; gap: 10px;
}
.deck__items li::before { content: ""; width: 4px; height: 4px; background: var(--muted); border-radius: 50%; opacity: .6; }
.deck__link {
  margin-top: 26px; align-self: flex-start; position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
  transition: border-color .3s, color .3s;
}
.deck__link:hover { border-color: var(--fg); }
.deck__link span { transition: transform .4s var(--ease-out); }
.deck__link:hover span { transform: translate(2px, -2px); }

/* ---------- work rail ---------- */
.rail { position: relative; height: 340vh; background: var(--bg-deep); }
.rail__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; overflow: hidden;
  border-top: 1px solid var(--line-soft);
}
.rail__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  padding-top: calc(var(--nav-h) + 24px); padding-bottom: 3vh;
}
.rail__head .h2 { margin-top: 16px; }
.rail__note { color: var(--muted); font-size: 13px; line-height: 1.65; max-width: 34ch; padding-bottom: 8px; }
.rail__viewport { overflow: hidden; flex: 1; display: flex; align-items: center; }
.rail__track { display: flex; flex: 0 0 auto; gap: 4vw; padding-left: var(--gutter); padding-right: var(--gutter); will-change: transform; }
.panel { flex: 0 0 auto; width: min(72vw, 980px); }
.panel__media {
  position: relative; height: clamp(280px, 46vh, 520px);
  overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-soft);
}
.panel__media .study { position: absolute; inset: 0; transition: transform 1.1s var(--ease-out); }
.panel:hover .panel__media .study { transform: scale(1.03); }
.panel__flag {
  position: absolute; left: 16px; bottom: 14px;
  font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgb(255 255 255 / .55);
  background: rgb(0 0 0 / .38); padding: 5px 8px;
  backdrop-filter: blur(6px);
}
.panel__meta {
  display: grid; grid-template-columns: 120px 1fr auto; align-items: baseline; gap: 16px;
  padding-top: 16px; border-top: 1px solid var(--line-soft); margin-top: 14px;
}
.panel__meta h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: -.02em; }
.panel__disc { font-size: 11px; color: var(--muted); letter-spacing: .04em; text-align: right; }
.panel__media--plain {
  background:
    linear-gradient(180deg, rgb(255 255 255 / .022), transparent 34%),
    repeating-linear-gradient(90deg, rgb(255 255 255 / .03) 0 1px, transparent 1px 25%),
    var(--surface);
  display: grid; place-items: center;
}
.panel__media--plain::before {
  content: ""; position: absolute; inset: 16px; pointer-events: none;
  border: 1px solid rgb(255 255 255 / .05);
}
.status, .invite { text-align: center; padding: 24px; }
.status__dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--fg);
  margin-bottom: 18px; box-shadow: 0 0 0 0 rgb(255 255 255 / .5);
  animation: pulse 2.8s var(--ease-soft) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(255 255 255 / .35); }
  70% { box-shadow: 0 0 0 12px rgb(255 255 255 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0); }
}
.status__line {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  line-height: 1.1; letter-spacing: -.02em; margin-top: 18px; color: var(--fg);
}
.status__rule { display: block; width: 40px; height: 1px; background: var(--line); margin: 26px auto 0; }
.invite__line { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.03em; margin: 18px 0 26px; }
.rail__hud {
  display: flex; align-items: center; gap: 28px;
  padding-top: 14px; padding-bottom: 22px; border-top: 1px solid var(--line-soft);
}
.rail__count { font-size: 10px; letter-spacing: .16em; display: flex; gap: 6px; align-items: baseline; }
.rail__count b { font-weight: 500; font-variant-numeric: tabular-nums; }
.rail__count span { color: var(--faint); }
.rail__bar { display: block; flex: 1; height: 1px; background: var(--line-soft); position: relative; }
.rail__bar i { position: absolute; inset: 0; background: var(--fg); transform-origin: 0 50%; transform: scaleX(.33); }
.rail__hint { margin-left: auto; }

/* ---------- approach ---------- */
.approach {
  background: var(--paper); color: var(--paper-ink);
  --line-soft: var(--paper-line);
  --muted: var(--paper-muted);
  --faint: oklch(0.19 0.005 85 / .5);
  padding: 15vh 0 16vh;
}
.approach__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.approach__aside { position: sticky; top: calc(var(--nav-h) + 40px); }
.approach__aside .h2 { margin: 18px 0 22px; }
.approach__lede { color: var(--paper-muted); font-size: 14px; line-height: 1.7; max-width: 34ch; }
.approach__counter {
  display: flex; align-items: baseline; gap: 8px; margin-top: 8vh;
  font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1;
}
.approach__counter-total { font-size: 13px; font-family: var(--font-body); letter-spacing: .08em; color: var(--paper-muted); }
.steps { border-top: 1px solid var(--paper-line); }
.step {
  display: grid; grid-template-columns: 74px 1fr; gap: 24px;
  padding: 44px 0 52px; border-bottom: 1px solid var(--paper-line);
  transition: opacity .6s var(--ease-out);
}
.step__num { font-size: 10px; letter-spacing: .16em; padding-top: 10px; color: var(--paper-muted); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; letter-spacing: -.025em; }
.step p { color: var(--paper-muted); font-size: 14.5px; line-height: 1.65; max-width: 48ch; margin-top: 14px; }

/* ---------- showcase ---------- */
.showcase { position: relative; height: 230vh; background: var(--bg-deep); }
.showcase__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.showcase__media {
  position: absolute; inset: 0;
  clip-path: inset(15vh 20vw 26vh 20vw);
  will-change: clip-path;
}
.showcase__media .study { position: absolute; inset: 0; transform: scale(1.16); }
.showcase__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, #050505 0%, rgb(5 5 5 / .92) 26%, rgb(5 5 5 / .5) 48%, transparent 72%),
    radial-gradient(120% 80% at 50% 16%, transparent 42%, rgb(4 4 4 / .42) 100%);
}
.showcase__flag {
  position: absolute; left: calc(20% + 24px); top: calc(15% + 20px); z-index: 2;
  font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgb(255 255 255 / .5);
}
.showcase__center {
  position: absolute; left: 0; right: 0; bottom: 13vh; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-inline: var(--gutter);
}
.showcase__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3rem, 7.8vw, 7.8rem); line-height: .9; letter-spacing: -.035em;
  margin: 18px 0 22px;
}
.showcase__disc { color: rgb(255 255 255 / .68); font-size: 14px; line-height: 1.65; max-width: 56ch; }
.showcase__note {
  margin-top: 20px; font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: rgb(255 255 255 / .38);
}

/* ---------- cta ---------- */
.cta { padding: 18vh 0 14vh; background: var(--bg); border-top: 1px solid var(--line-soft); }
.cta__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.4rem, 10.5vw, 10rem); line-height: .9; letter-spacing: -.04em;
  margin: 8vh 0 10vh;
}
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.cta__lede { color: var(--muted); font-size: clamp(.95rem, 1.15vw, 1.05rem); line-height: 1.7; max-width: 40ch; }
.cta__action { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta__mail {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 2.3rem); letter-spacing: -.01em;
  padding-bottom: 4px; border-bottom: 1px solid var(--line);
  transition: border-color .3s;
}
.cta__mail:hover { border-color: var(--fg); }
.cta__note { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.cta__note[hidden] { display: none; }

/* ---------- footer ---------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line-soft); padding-top: 9vh; }
.footer__grid {
  display: grid; grid-template-columns: 1.2fr .55fr .65fr 1fr; gap: clamp(24px, 5vw, 72px);
  padding-bottom: 8vh;
}
.footer__lockup { display: flex; align-items: flex-start; gap: 16px; }
.footer__mark { width: 46px; height: 46px; fill: var(--fg); flex: none; }
.footer__lockup span {
  font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1; letter-spacing: -.02em;
}
.footer__lockup em { display: block; font-style: normal; font-size: 10px; font-family: var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.footer__line { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 28px; }
.footer__nav, .footer__contact, .footer__social { display: flex; flex-direction: column; gap: 10px; }
.footer__nav .label, .footer__contact .label, .footer__social .label { margin-bottom: 8px; }
.footer__nav a, .footer__contact a, .footer__social a { font-size: 14px; color: var(--fg); width: fit-content; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.footer__nav a:hover, .footer__contact a:hover, .footer__social a:hover { border-color: var(--line); }
.footer__contact > a:first-of-type { font-size: 13px; color: var(--muted); }
.footer__contact > a:first-of-type:hover { color: var(--fg); }
.footer__top { margin-top: 18px; font-size: 10px !important; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ticker--footer { border-bottom: 1px solid var(--line-soft); }
.ticker--footer .ticker__track { padding: 26px 0; animation-duration: 40s; }
.ticker--footer span { font-size: 12px; letter-spacing: .2em; color: var(--fg); }
.ticker--footer i { color: var(--faint); }
.ticker--footer b { font-weight: 400; font-size: 12px; letter-spacing: .2em; color: var(--faint); }
.footer__social a { display: flex; align-items: center; gap: 10px; }
.footer__social svg { width: 15px; height: 15px; flex: none; }
.footer__social a[aria-disabled="true"] { opacity: .72; pointer-events: none; }
.social__tag {
  font-size: 7.5px; letter-spacing: .12em; color: var(--faint);
  border: 1px solid var(--line-soft); border-radius: 2px; padding: 2px 4px;
}
.footer__contact .footer__wa {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
}
.footer__contact .footer__wa:hover { color: var(--fg); border-bottom-color: var(--line); }
.footer__wa .wa__icon { width: 14px; height: 14px; }
.footer__base {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 34px;
  font-size: 10px; letter-spacing: .08em; color: var(--faint);
}

/* ============================================================
   motion hooks
   ============================================================ */
.word { display: inline-block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; vertical-align: bottom; }
.word-i { display: inline-block; will-change: transform; }
.deck__card { transform-origin: top center; }
.steps.is-live .step { opacity: .32; }
.steps.is-live .step.is-active { opacity: 1; }
.rail__viewport:focus-visible { outline: 2px solid var(--fg); outline-offset: 6px; }
html:not(.loaded) body { overflow: hidden; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1180px) {
  .hero__inner { width: min(50vw, 620px); }
  .hero__media { --h-l: 50vw; }
  .nav__links { gap: 26px; margin-right: 24px; }
  .chapter { display: none; }
}

@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__menu { display: block; }

  /* hero becomes a full-bleed still */
  .hero { height: 100svh; min-height: 620px; }
  .hero__sticky { position: relative; height: 100%; }
  .hero__media { clip-path: none; }
  .hero__media .study { transform: scale(1.04); }
  .hero__edge { display: none; }
  .hero__sticky::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(0deg, var(--bg) 2%, rgb(0 0 0 / .62) 42%, rgb(0 0 0 / .1) 74%, transparent);
  }
  .hero__inner { width: auto; right: var(--gutter); bottom: 12vh; }
  .hero__title { font-size: clamp(2.9rem, 12.5vw, 5rem); margin-top: 18px; }
  .hero__sub { max-width: 36ch; font-size: 14px; }
  .hero__actions { gap: 18px; margin-top: 26px; }
  .hero__meta { display: none; }
  .hero__caption { right: 14px; bottom: 12px; font-size: 8px; }
  .hero__scroll { display: none; }

  .manifesto { padding: 11vh 0 10vh; }
  .manifesto__statement { margin: 7vh 0 9vh; max-width: none; font-size: clamp(1.9rem, 8.4vw, 3rem); }
  .manifesto__grid { grid-template-columns: 1fr; gap: 36px; }

  .deck { padding: 9vh 0 6vh; }
  .deck__intro { grid-template-columns: 1fr; gap: 22px; margin: 6vh 0 7vh; }
  .deck__stack { display: flex; flex-direction: column; gap: 18px; }
  .deck__card {
    position: relative; top: auto; min-height: 0; margin-bottom: 0;
    padding: 26px 22px 30px;
  }
  .deck__card::before { display: none; }
  .deck__body { grid-template-columns: 1fr; gap: 20px; padding-top: 42px; }
  .deck__title { font-size: clamp(2.4rem, 10vw, 3.4rem); }
  .deck__copy { font-size: 13.5px; }
  .deck__items { margin-top: 24px; gap: 8px 18px; }
  .deck__link { margin-top: 22px; }

  /* rail: native, snap, no pin */
  .rail { height: auto; }
  .rail__sticky { position: relative; height: auto; padding-bottom: 18px; }
  .rail__head { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: calc(var(--nav-h) + 46px); padding-bottom: 26px; }
  .rail__note { max-width: 42ch; }
  .rail__viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .rail__viewport::-webkit-scrollbar { display: none; }
  .rail__track { transform: none !important; gap: 16px; padding-right: var(--gutter); }
  .panel { width: 84vw; scroll-snap-align: start; }
  .panel__media { height: 46vh; min-height: 260px; }
  .panel__meta { grid-template-columns: 1fr; gap: 2px; }
  .panel__disc { text-align: left; }
  .rail__hud { display: none; }

  /* approach */
  .approach { padding: 11vh 0 10vh; }
  .approach__grid { grid-template-columns: 1fr; gap: 44px; }
  .approach__aside { position: relative; top: auto; }
  .approach__counter { display: none; }
  .steps { border-top: 1px solid var(--paper-line); }
  .step { grid-template-columns: 42px 1fr; gap: 14px; padding: 30px 0 34px; opacity: 1 !important; }
  .step h3 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .step p { font-size: 13.5px; }

  /* showcase static */
  .showcase { height: auto; }
  .showcase__sticky { position: relative; height: auto; display: block; overflow: visible; }
  .showcase__media { position: relative; height: 62svh; min-height: 300px; clip-path: none; }
  .showcase__media .study { transform: none; }
  .showcase__flag { left: 14px; top: 14px; }
  .showcase__center {
    position: relative; bottom: auto; align-items: flex-start; text-align: left;
    padding: 30px var(--gutter) 34px;
  }
  .showcase__title { font-size: clamp(2.8rem, 12vw, 4.4rem); margin: 14px 0 18px; }
  .showcase__disc { font-size: 13.5px; }
  .showcase__note { margin-top: 16px; }

  .cta { padding: 12vh 0 10vh; }
  .cta__title { margin: 6vh 0 7vh; }
  .cta__grid { grid-template-columns: 1fr; gap: 28px; }
  .cta__mail { font-size: clamp(1.05rem, 4.6vw, 1.5rem); word-break: break-word; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__contact { grid-column: 1 / -1; }
  .footer__base { font-size: 9px; }
}

@media (max-width: 560px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .manifesto__statement { font-size: 8.6vw; }
  .section-head .label--dim { display: none; }
  .cta__title { font-size: 14vw; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker__track { animation: none; }
  .rail { height: auto; }
  .rail__sticky { position: relative; height: auto; padding-bottom: 20px; }
  .rail__viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
  .rail__track { transform: none !important; }
  .hero { height: 100svh; }
  .hero__sticky { position: relative; height: 100%; }
  .hero__media { clip-path: none; }
  .hero__media .study { transform: none; }
  .showcase { height: auto; }
  .showcase__sticky { position: relative; height: auto; }
  .showcase__media { position: relative; height: 70svh; clip-path: none; }
  .showcase__media .study { transform: none; }
  .showcase__center { position: relative; bottom: auto; padding: 28px var(--gutter) 34px; }
  html.js .step { opacity: 1; }
  .cursor { display: none !important; }
  body.has-cursor { cursor: auto; }
}
