:root {
  --ink: #0d0e0c;
  --ink-2: #171815;
  --ink-3: #22231f;
  --cream: #efebe3;
  --paper: #f8f6f1;
  --muted: #77746c;
  --lime: #d6fb41;
  --rec: #ff3b30;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 300; }
::selection { background: var(--lime); color: var(--ink); }

.eyebrow { margin: 0 0 18px; font-size: 13px; letter-spacing: 0.02em; color: var(--muted); }
.h2 { margin: 0; font-weight: 600; font-size: clamp(46px, 7vw, 112px); line-height: 0.92; letter-spacing: -0.045em; }
.h2 em { letter-spacing: -0.02em; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__in { display: inline-block; will-change: transform; }
.rec { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: rec 1.2s steps(1) infinite; }
@keyframes rec { 50% { opacity: 0.2; } }

/* ---------- loader ---------- */
.loader {
  --r: 0vmax;
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--ink); color: var(--cream);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1px));
  mask-image: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1px));
}
.loader__title { font-weight: 600; font-size: clamp(40px, 7vw, 96px); letter-spacing: -0.05em; line-height: 1; overflow: hidden; padding-bottom: 0.1em; }
.loader__title span, .loader__title em { display: inline-block; }
.loader__title em { color: var(--lime); }
.loader__tc { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }

/* ---------- cursor, grain, credit ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--lime);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease);
}
.cursor__label { font-size: 13px; font-weight: 600; color: var(--ink); opacity: 0; transform: scale(0.6); transition: opacity .3s, transform .45s var(--ease); white-space: nowrap; }
.cursor.has-label { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.cursor.has-label .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-link { width: 36px; height: 36px; margin: -18px 0 0 -18px; background: transparent; border: 1.5px solid var(--lime); }
@media (hover: none) { .cursor { display: none; } }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -2%); }
  60% { transform: translate(-2%, -4%); } 80% { transform: translate(4%, 2%); } 100% { transform: translate(0, 0); }
}

.credit {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: rgba(13, 14, 12, 0.82); color: var(--cream); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  transition: background .3s, color .3s;
}
.credit:hover { background: var(--lime); color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px 28px; color: #fff; mix-blend-mode: difference;
}
.nav__logo { font-weight: 700; font-size: 20px; letter-spacing: -0.04em; }
.nav__logo em { font-weight: 400; margin: 0 1px; }
.nav__links { display: flex; gap: 30px; font-size: 14px; }
.nav__links a, .footer a { position: relative; }
.nav__links a::after, .footer__cols a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after, .footer__cols a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: 22px; font-size: 14px; }
.nav__clock { font-variant-numeric: tabular-nums; opacity: 0.75; letter-spacing: 0.04em; }
.nav__cta { padding: 9px 18px; border: 1px solid currentColor; border-radius: 999px; transition: background .3s, color .3s; }
.nav__cta:hover { background: #fff; color: #000; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; padding-top: 118px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  background: var(--ink);
}
.hero__glow {
  position: absolute; left: 50%; top: 58%; width: 90vw; height: 60vh; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(214, 251, 65, 0.13), transparent 70%);
  pointer-events: none;
}
.hero__title {
  position: relative; z-index: 3; margin: 0; text-align: center;
  font-weight: 600; font-size: clamp(52px, 8.6vw, 148px); line-height: 0.9; letter-spacing: -0.055em;
}
.roll {
  display: inline-flex; vertical-align: bottom; overflow: hidden; padding: 0 0.04em 0.12em; margin-bottom: -0.12em;
  font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -0.03em; color: var(--lime);
}
.roll .ch { display: inline-block; white-space: pre; will-change: transform; }

.reel {
  position: relative; z-index: 2; width: 100%; height: 46vh; min-height: 320px; margin-top: -1vh;
  perspective: 820px; cursor: grab; touch-action: pan-y;
}
.reel.is-dragging { cursor: grabbing; }
.reel__stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.frame {
  position: absolute; left: 50%; top: 50%;
  width: 250px; height: 356px; margin: -178px 0 0 -125px;
  padding: 22px 7px; background: #141412;
  backface-visibility: hidden; will-change: transform, opacity;
  user-select: none;
}
.frame::before, .frame::after {
  content: ""; position: absolute; left: 6px; right: 6px; height: 9px;
  background: repeating-linear-gradient(90deg, rgba(239,235,227,0.55) 0 7px, transparent 7px 15px);
  border-radius: 1px; opacity: .6;
}
.frame::before { top: 7px; }
.frame::after { bottom: 7px; }
.frame img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.frame__edge { position: absolute; left: 8px; bottom: -1px; font-size: 7px; letter-spacing: 0.2em; color: #e8a33a; opacity: 0.8; white-space: nowrap; }

.hero__row {
  position: relative; z-index: 3; width: 100%; margin-top: auto;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: 0 28px 72px;
}
.hero__intro { margin: 0; max-width: 430px; font-size: 15px; color: rgba(239, 235, 227, 0.7); }
.hero__hint { display: flex; align-items: center; gap: 30px; font-size: 13px; color: rgba(239, 235, 227, 0.6); }
.hint__scroll { display: flex; align-items: center; gap: 10px; }
.hint__scroll i { position: relative; width: 1px; height: 38px; background: rgba(239,235,227,0.2); overflow: hidden; }
.hint__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--lime); animation: drip 1.6s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; padding: 26px 0; background: var(--lime); color: var(--ink); }
.ticker__track { display: flex; align-items: center; width: max-content; will-change: transform; }
.ticker span, .ticker b { flex: none; padding: 0 26px; font-size: clamp(36px, 5vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.ticker b { font-size: 0.5em; padding: 0; }
.ticker .o { color: transparent; -webkit-text-stroke: 1.5px var(--ink); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }

/* ---------- work ---------- */
.work { background: var(--ink); }
.work__pin { position: relative; height: 100vh; overflow: hidden; }
.work__stage { position: absolute; inset: 0; clip-path: inset(22% 30% 22% 30% round 14px); will-change: clip-path; }
.shot { position: absolute; inset: 0; }
.slat { position: absolute; left: 0; right: 0; overflow: hidden; transform-origin: 50% 0; will-change: transform; }
.slat__img { position: absolute; left: 0; width: 100%; background-size: cover; background-position: center; will-change: transform; }
.work__shade { position: absolute; inset: 0; z-index: 50; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 30%, transparent 55%, rgba(0,0,0,0.6)); }

.vf { position: absolute; inset: 0; z-index: 60; pointer-events: none; color: #fff; font-size: 12px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.vf__c { position: absolute; width: 34px; height: 34px; border: 0 solid rgba(255,255,255,0.85); }
.vf__c.tl { top: 90px; left: 28px; border-width: 1.5px 0 0 1.5px; }
.vf__c.tr { top: 90px; right: 28px; border-width: 1.5px 1.5px 0 0; }
.vf__c.bl { bottom: 28px; left: 28px; border-width: 0 0 1.5px 1.5px; }
.vf__c.br { bottom: 28px; right: 28px; border-width: 0 1.5px 1.5px 0; }
.vf__rec { position: absolute; top: 100px; left: 76px; display: flex; align-items: center; gap: 8px; }
.vf__spec { position: absolute; top: 100px; right: 76px; opacity: .8; }
.vf__tc { position: absolute; bottom: 38px; right: 76px; }
.vf__cross { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; opacity: .6; }
.vf__cross::before, .vf__cross::after { content: ""; position: absolute; background: #fff; }
.vf__cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.vf__cross::after { top: 50%; left: 0; right: 0; height: 1px; }

.work__meta { position: absolute; z-index: 61; left: 76px; bottom: 92px; color: #fff; }
.work__idx { margin: 0 0 8px; font-size: 13px; opacity: .8; font-variant-numeric: tabular-nums; }
.work__title { margin: 0; display: flex; font-weight: 600; font-size: clamp(56px, 10vw, 170px); line-height: 0.86; letter-spacing: -0.06em; overflow: hidden; padding-bottom: 0.06em; }
.work__title .ch { display: inline-block; white-space: pre; will-change: transform; }
.work__tags { margin: 12px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.work__tags span { padding: 5px 12px; font-size: 12px; border-radius: 999px; background: rgba(255,255,255,0.14); backdrop-filter: blur(8px); }
.work__tags span:first-child { background: var(--lime); color: var(--ink); }

.work__list {
  position: absolute; z-index: 62; right: 76px; bottom: 92px; margin: 0; padding: 0; list-style: none;
  width: 290px; color: #fff; font-size: 15px;
}
.work__list li { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.18); opacity: .45; cursor: pointer; transition: opacity .4s; }
.work__list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.18); }
.work__list li.is-active { opacity: 1; }
.work__list li span { font-size: 11px; opacity: .7; font-variant-numeric: tabular-nums; }
.work__list li em { margin-left: auto; font-size: 14px; opacity: .75; }
.work__list li i { position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--lime); transform-origin: left; transform: scaleX(0); }

/* ---------- about ---------- */
.about { padding: 22vh 7vw 16vh; background: var(--cream); color: var(--ink); }
.about__text { margin: 0; max-width: 1250px; font-weight: 500; font-size: clamp(34px, 5vw, 80px); line-height: 1.02; letter-spacing: -0.045em; }
.about__text .word { opacity: 0.12; }
.pill {
  display: inline-block; width: 1.7em; height: 0.82em; vertical-align: 0.02em; margin: 0 0.05em;
  border-radius: 999px; background: var(--img) center / cover, var(--lime);
  transform: scale(0.3) rotate(-8deg); opacity: 0;
}
.mark { position: relative; display: inline; }
.mark::before {
  content: ""; position: absolute; left: -0.06em; right: -0.06em; top: 0.12em; bottom: 0.02em; z-index: -1;
  background: var(--lime); transform: scaleX(var(--mark, 0)); transform-origin: left; border-radius: 4px;
}
.about__text { position: relative; z-index: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 14vh; border-top: 1px solid rgba(13,14,12,0.15); padding-top: 28px; }
.stat__num { font-weight: 600; font-size: clamp(48px, 6vw, 96px); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat__plus { font-size: clamp(30px, 3vw, 48px); font-weight: 600; color: var(--muted); vertical-align: top; }
.stat p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- services ---------- */
.services { background: var(--ink); }
.services__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.services__head { padding: 0 6vw; margin-bottom: 5vh; display: flex; justify-content: space-between; align-items: flex-end; }
.services__track { display: flex; gap: 2.2vw; padding: 0 6vw; width: max-content; will-change: transform; }
.svc { width: clamp(260px, 27vw, 420px); flex: none; will-change: transform; }
.svc__media { aspect-ratio: 4 / 4.6; overflow: hidden; border-radius: 12px; background: var(--ink-3); }
.svc__media img { width: 125%; max-width: none; height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
.svc:hover .svc__media img { scale: 1.06; }
.svc__meta { display: grid; grid-template-columns: 40px 1fr; padding-top: 18px; }
.svc__meta span { grid-row: span 2; font-size: 12px; color: var(--lime); padding-top: 10px; }
.svc__meta h3 { margin: 0; font-weight: 600; font-size: 32px; letter-spacing: -0.04em; line-height: 1.1; }
.svc__meta p { margin: 6px 0 0; font-size: 14px; color: rgba(239,235,227,0.6); }

/* ---------- process ---------- */
.process { padding: 18vh 4vw 12vh; background: var(--cream); color: var(--ink); }
.process__head { padding: 0 3vw 8vh; }
.cards { position: relative; }
.card {
  position: sticky; top: 12vh;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 3vw;
  min-height: 72vh; margin-bottom: 8vh; padding: 3vw;
  border-radius: 22px; background: var(--paper);
  box-shadow: 0 -10px 40px rgba(13,14,12,0.06);
  transform-origin: 50% 0; will-change: transform;
}
.card:nth-child(2) { top: calc(12vh + 18px); background: #e3dfd5; }
.card:nth-child(3) { top: calc(12vh + 36px); background: var(--ink); color: var(--cream); }
.card:nth-child(4) { top: calc(12vh + 54px); background: var(--lime); }
.card__text { display: flex; flex-direction: column; }
.card__n { font-size: 13px; font-variant-numeric: tabular-nums; opacity: .6; }
.card h3 { margin: 14px 0 18px; font-weight: 600; font-size: clamp(44px, 5.4vw, 90px); letter-spacing: -0.05em; line-height: 0.9; }
.card p { margin: 0 0 24px; max-width: 420px; font-size: 16px; opacity: .8; }
.card ul { margin-top: auto !important; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.card li { padding: 6px 14px; font-size: 13px; border-radius: 999px; border: 1px solid currentColor; opacity: .75; }
.card__img { border-radius: 14px; overflow: hidden; min-height: 300px; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- cta ---------- */
.cta {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--ink);
}
.cta .eyebrow { position: relative; z-index: 2; }
.cta__title { position: relative; z-index: 2; margin: 0 0 48px; pointer-events: none; font-weight: 600; font-size: clamp(60px, 11vw, 190px); line-height: 0.88; letter-spacing: -0.06em; }
.cta__title em { color: var(--lime); }
.cta__btn {
  position: relative; z-index: 2; display: grid; place-items: center;
  width: 170px; height: 170px; border-radius: 50%;
  background: var(--lime); color: var(--ink); font-weight: 600; font-size: 17px;
}
.cta__btn span { pointer-events: none; display: inline-block; }
.trail { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.trail img { position: absolute; left: 0; top: 0; width: 210px; height: 260px; object-fit: cover; border-radius: 8px; will-change: transform, opacity; }

/* ---------- footer ---------- */
.footer { position: relative; padding: 14vh 28px 24px; background: var(--ink-2); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__big { margin: 0; font-weight: 500; font-size: clamp(28px, 3vw, 44px); line-height: 1.05; letter-spacing: -0.04em; }
.footer__cols { display: flex; gap: 70px; }
.footer__cols h5 { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--muted); }
.footer__cols a { display: table; margin-bottom: 8px; font-size: 15px; }
.clock--big { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.wordmark {
  display: flex; justify-content: center; margin: 12vh 0 3vh;
  font-weight: 700; font-size: 14.2vw; line-height: 0.8; letter-spacing: -0.07em; color: var(--cream);
  user-select: none;
}
.wordmark span { display: inline-block; will-change: transform; }
.wordmark .amp { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--lime); letter-spacing: -0.02em; margin: 0 0.02em; }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid rgba(239,235,227,0.12); font-size: 13px; color: var(--muted); }
.footer__base strong { color: var(--cream); font-weight: 600; }
.to-top { font-size: 13px; color: var(--cream); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; padding: 18px 16px; }
  .nav__links, .nav__clock { display: none; }
  .hero { padding-top: 110px; }
  .reel { height: 48vh; }
  .frame { width: 176px; height: 250px; margin: -125px 0 0 -88px; padding: 17px 5px; }
  .hero__row { flex-direction: column; align-items: flex-start; padding: 0 16px 64px; }
  .hint__drag { display: none; }
  .vf__c.tl, .vf__c.tr { top: 76px; } .vf__c { width: 22px; height: 22px; }
  .vf__c.tl, .vf__c.bl { left: 14px; } .vf__c.tr, .vf__c.br { right: 14px; }
  .vf__rec { top: 84px; left: 44px; } .vf__spec { top: 84px; right: 44px; }
  .vf__tc { display: none; }
  .work__meta { left: 24px; bottom: 210px; }
  .work__list { left: 24px; right: 24px; bottom: 28px; width: auto; font-size: 14px; }
  .services__head { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .card { grid-template-columns: 1fr; min-height: auto; padding: 22px; gap: 20px; }
  .card__img { min-height: 200px; aspect-ratio: 16 / 10; }
  .footer__cols { gap: 36px; flex-wrap: wrap; }
  .footer__base { flex-direction: column; align-items: flex-start; }
  .credit { bottom: 12px; left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .rec, .hint__scroll i::after { animation: none; }
}
