/* ============ Tokens ============ */
:root {
  --bg: #121110;
  --bg-2: #1a1917;
  --surface: #211f1d;
  --surface-2: #2a2825;
  --line: rgba(251, 249, 245, 0.08);
  --line-2: rgba(251, 249, 245, 0.14);
  --cream: #fbf9f5;
  --ink: #0e0d0c;
  --text: #fbf9f5;
  --muted: rgba(251, 249, 245, 0.58);
  --faint: rgba(251, 249, 245, 0.36);
  --accent: #ff3b2f;
  --blue: #2f6bff;
  --ae: #9999ff;
  --pr: #9999ff;
  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 20px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0; text-transform: uppercase; }
::selection { background: var(--accent); color: var(--cream); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ============ Ambient ============ */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  inset: 0; /* still grain: animating a full-screen noise layer costs a lot of frame time */
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}
.spectrum {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80;
  background: linear-gradient(90deg, #ff3b2f, #ff9f1c, #ffe14d, #3ddc84, #2f6bff, #9b5cff, #ff3b2f);
  background-size: 200% 100%;
  animation: spectrum 8s linear infinite;
}
@keyframes spectrum { to { background-position: 200% 0; } }

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: grid; place-content: center; justify-items: center; gap: 18px;
  transition: clip-path .9s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); }
.loader__rec { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; letter-spacing: .1em; }
.loader__tc { font-family: var(--mono); font-size: clamp(32px, 7vw, 72px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.loader__bar { width: min(280px, 60vw); height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; animation: blink 1.1s infinite; }
.dot--live { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 60;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  /* frosted glass: light tint, strong blur, bright top edge */
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)) , rgba(24, 23, 21, .35);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(255, 255, 255, .03), 0 10px 30px -12px rgba(0, 0, 0, .6);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  transition: transform .5s var(--ease);
}
.nav.is-hidden { transform: translate(-50%, -140%); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.04em; font-size: 20px; }
.nav__mark {
  width: 22px; height: 22px; border-radius: 7px; background: var(--accent); position: relative;
}
.nav__mark::after {
  content: ""; position: absolute; left: 8px; top: 6px;
  border-left: 8px solid var(--cream); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--text); background: var(--line); }
.nav__links .nav__cta { background: var(--cream); color: var(--ink); }
.nav__links .nav__cta:hover { background: #fff; color: var(--ink); }
@media (max-width: 640px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__brand { font-size: 18px; }
}

/* ============ Buttons / chips ============ */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: var(--line); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 500; font-size: 16px; letter-spacing: -0.01em;
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease);
  will-change: transform;
}
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { background: var(--line); }
.btn--accent { background: var(--accent); color: var(--cream); }
.btn--accent:hover { background: #ff5446; }
.btn--big { padding: 20px 28px; font-size: clamp(16px, 2vw, 20px); flex-direction: column; gap: 2px; }
.btn__hint { font-size: 10px; opacity: .55; }
.eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 18px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
}
.hero__copy { position: relative; z-index: 3; max-width: 620px; }
.hero__title { font-size: clamp(72px, 13vw, 184px); letter-spacing: -0.065em; line-height: .86; margin: 22px 0 26px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.is-loaded .hero__title .line > span { transform: none; }
.hero__sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 470px; letter-spacing: -0.01em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero__tools { display: flex; align-items: center; gap: 8px; margin-top: 40px; color: var(--faint); font-size: 13px; }
.hero__tools-text { margin-left: 6px; }
.tool {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 600; font-size: 15px; letter-spacing: -0.02em;
  background: #00005b; color: var(--ae); border: 1px solid rgba(153, 153, 255, .35);
}
.tool--pr { background: #00005b; color: #9999ff; }
.tool--ae { background: #00005b; color: #d291ff; border-color: rgba(210, 145, 255, .35); }

.hero > *:not(.stage) { opacity: 0; transition: opacity .8s var(--ease) .2s; }
.is-loaded .hero > *:not(.stage) { opacity: 1; }
.hero .hero__copy > * { transform: translateY(14px); transition: transform 1s var(--ease); }
.is-loaded .hero .hero__copy > * { transform: none; }

/* Physics stage covers the whole hero so the strap can come from the top edge */
.stage { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.lanyard { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lanyard__strap { fill: none; stroke: url(#strapShade); stroke: #e8322a; stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.lanyard__text { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .18em; fill: rgba(251, 249, 245, .92); dominant-baseline: central; }
.stage__hint {
  position: absolute; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--faint); transform: translate(-50%, 0); white-space: nowrap; transition: opacity .6s; opacity: 0;
}
.stage__hint.show { opacity: 1; }

/* ID card */
.card {
  --w: 250px; --h: 360px;
  position: absolute; top: 0; left: 0;
  width: var(--w); height: var(--h);
  pointer-events: auto; touch-action: none; cursor: grab;
  transform-origin: 0 0;
  will-change: transform;
  user-select: none; -webkit-user-select: none;
  visibility: hidden;
}
.card.ready { visibility: visible; }
.card.dragging { cursor: grabbing; }
.card__inner {
  position: absolute; inset: 0;
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 0% 0%, #ffffff 0%, transparent 60%),
    var(--cream);
  color: var(--ink);
  padding: 34px 18px 16px;
  display: flex; flex-direction: column;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .8) inset,
    0 -2px 0 rgba(0, 0, 0, .06) inset,
    0 30px 60px -20px rgba(0, 0, 0, .7),
    0 10px 20px -10px rgba(0, 0, 0, .5);
  transform-style: preserve-3d;
  overflow: hidden;
}
/* film perforations along the card's right edge */
.card__inner::before {
  content: ""; position: absolute; right: 6px; top: 40px; bottom: 40px; width: 6px;
  background: radial-gradient(circle, rgba(14, 13, 12, .14) 2px, transparent 2.5px) 0 0 / 6px 12px repeat-y;
}
.card__inner::after {
  content: ""; position: absolute; left: 6px; top: 40px; bottom: 40px; width: 6px;
  background: radial-gradient(circle, rgba(14, 13, 12, .14) 2px, transparent 2.5px) 0 0 / 6px 12px repeat-y;
}
.card__slot {
  position: absolute; top: 12px; left: 50%; width: 46px; height: 9px; margin-left: -23px;
  border-radius: 9px; background: var(--bg);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6);
}
.card__clip {
  position: absolute; top: -26px; left: 50%; width: 30px; height: 40px; margin-left: -15px; z-index: 3;
  border-radius: 6px 6px 8px 8px;
  background: linear-gradient(90deg, #8d8a85, #e9e6e1 45%, #a9a6a0 60%, #6f6c68);
  box-shadow: 0 4px 6px rgba(0, 0, 0, .35);
}
.card__clip span { position: absolute; left: 50%; bottom: 8px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 3px solid #5d5a56; }
.card__head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: rgba(14, 13, 12, .55);
  margin-bottom: 10px; padding: 0 4px;
}
.card__rec { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); }
.card__rec i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.1s infinite; }
.card__photo {
  position: relative; flex: 1; min-height: 0;
  border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 100%, rgba(255, 59, 47, .55), transparent 70%),
    linear-gradient(180deg, #ece8e1, #d9d4cb);
}
.card__photo img {
  position: absolute; left: 50%; top: -26%; width: 130%; max-width: none; transform: translateX(-50%);
  pointer-events: none;
}
.card__corner { position: absolute; width: 12px; height: 12px; border: 2px solid rgba(14, 13, 12, .55); }
.card__corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.card__corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.card__corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.card__corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.card__role { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: 14px; padding: 0 4px; }
.card__name { font-size: 34px; font-weight: 600; letter-spacing: -0.055em; line-height: 1; padding: 2px 4px 0; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 0 4px; }
.card__code { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: rgba(14, 13, 12, .45); }
.card__bars {
  width: 70px; height: 18px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 3px, var(--ink) 3px 4px, transparent 4px 7px, var(--ink) 7px 10px, transparent 10px 11px);
  opacity: .8;
}
/* holographic sheen, moved by JS with --gx/--gy */
.card__holo {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit; mix-blend-mode: color-dodge; opacity: .55;
  background:
    linear-gradient(115deg, transparent 20%, rgba(255, 0, 128, .25) 35%, rgba(0, 220, 255, .28) 45%, rgba(255, 230, 0, .22) 55%, transparent 70%);
  background-size: 250% 250%;
  background-position: var(--gx, 50%) var(--gy, 50%);
}

/* scroll cue */
.scroll-cue { display: none; position: absolute; left: 50%; bottom: 26px; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid var(--line-2); border-radius: 14px; z-index: 3; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--muted); animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; align-items: end; padding-top: 0; min-height: auto; }
  .hero__copy { padding-top: 470px; }
  .card { --w: 200px; --h: 288px; }
  .card__name { font-size: 27px; }
  .card__inner { padding: 30px 14px 12px; }
  .card__code { white-space: nowrap; font-size: 8px; }
  .card__bars { width: 52px; }
  .nle__ruler span:nth-child(even) { display: none; }
  .scroll-cue { display: none; }
}

/* ============ Marquee ============ */
.marquee {
  overflow: hidden; padding: 18px 0; margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-dur, 40s) linear infinite; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; flex: none; }
.marquee__track i { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 104px) var(--gutter); }
#work { padding-bottom: 8px; }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section h2, .process h2, .contact h2 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.055em; }
.lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 540px; }

.block { margin-bottom: 64px; }
.block__label { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 20px; font-size: 20px; font-weight: 500; letter-spacing: -0.03em; }
.block__label .mono { color: var(--faint); }

/* Players */
.player {
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface);
  cursor: pointer; isolation: isolate;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.player--wide { aspect-ratio: 16 / 9; }
.player img.thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.9); }
.player:hover img.thumb { transform: scale(1.04); filter: saturate(1.1); }
.player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .65)); pointer-events: none; z-index: 1; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.player.playing::after, .player.playing .player__meta, .player.playing .player__btn { display: none; }
.player--facebook-embed { cursor: auto; transform: none !important; }
.player--facebook-embed::after { display: none; }
.player--facebook-embed iframe { z-index: 1; background: #000; }
.player__fb-fallback {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em;
  color: var(--muted); background: rgba(18, 17, 16, .72); border: 1px solid var(--line-2);
  padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.player__fb-fallback:hover { color: var(--cream); border-color: var(--line-strong); }
.player__meta { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.player__title { font-size: clamp(20px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.player__num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.player__btn {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  background: rgba(251, 249, 245, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 249, 245, .3); display: grid; place-items: center;
  transition: transform .4s var(--ease), background .3s;
}
.player__btn::after { content: ""; margin-left: 5px; border-left: 18px solid var(--cream); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.player:hover .player__btn { transform: scale(1.12); background: var(--accent); border-color: var(--accent); }

/* Sliding rows (long form ~1.6 cards visible, short form ~4.4) */
.block__meta { display: inline-flex; align-items: center; gap: 14px; }
.rail-nav { display: inline-flex; gap: 6px; }
.arrow {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--text); font-size: 17px; line-height: 1;
  transition: background .25s, color .25s, border-color .25s, opacity .25s, transform .25s var(--ease);
}
.arrow:hover:not(:disabled) { background: var(--cream); color: var(--ink); border-color: var(--cream); transform: scale(1.06); }
.arrow:disabled { opacity: .3; cursor: default; }
.rail-nav.is-static { display: none; }

.rail {
  display: grid; grid-auto-flow: column; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; perspective: 1400px; padding: 4px 0 8px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail--long { grid-auto-columns: calc((100% - 16px) / 1.6); }
.rail--long .player { border-radius: var(--r-md); }
.rail--long .player__title { font-size: clamp(18px, 1.8vw, 24px); }
.rail--short { grid-auto-columns: calc((100% - 4 * 16px) / 4.4); }
.shorts .player { aspect-ratio: 9 / 16; border-radius: var(--r-md); }
.shorts .player__meta { left: 16px; right: 16px; bottom: 14px; }
.shorts .player__title { font-size: 18px; }
@media (max-width: 860px) {
  .rail { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .rail--long { grid-auto-columns: 84%; }
  .rail--short { grid-auto-columns: 58%; }
  .block__meta .mono { display: none; }
}

/* ============ Process / NLE timeline ============ */
.process { position: relative; height: 320vh; }
.process__sticky {
  position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-start;
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vh, 72px) var(--gutter) 40px;
}
.process .section__head { margin-bottom: 40px; }
.nle {
  border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line);
  overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  transform: perspective(1400px) rotateX(var(--tilt, 22deg)) scale(var(--sc, .92));
  transform-origin: 50% 100%;
}
.nle__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.nle__bar .mono { font-size: 11px; }
.nle__dots { display: flex; gap: 6px; }
.nle__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.nle__dots i:first-child { background: var(--accent); }
.nle__tc { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; font-size: 13px !important; }
.nle__ruler { height: 26px; margin-left: 56px; border-bottom: 1px solid var(--line); position: relative;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 10%) 0 100% / 100% 10px no-repeat,
              repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 2%) 0 100% / 100% 5px no-repeat; }
.nle__ruler span { position: absolute; top: 4px; font-family: var(--mono); font-size: 9px; color: var(--faint); transform: translateX(3px); }
.nle__tracks { position: relative; padding: 8px 0 10px; }
.track { display: flex; align-items: center; height: 46px; }
.track__name { width: 56px; flex: none; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.track__lane { position: relative; flex: 1; height: 38px; margin-right: 10px; }
.clip {
  position: absolute; top: 2px; bottom: 2px; left: calc(var(--s) * 1%); width: calc(var(--w) * 1% - 3px);
  border-radius: 8px; padding: 0 10px; display: flex; align-items: center; overflow: hidden; white-space: nowrap;
  font-size: 12px; font-weight: 500; letter-spacing: -0.01em;
  opacity: .25; transform: translateY(6px) scale(.98);
  transition: opacity .35s, transform .45s var(--ease), filter .3s;
}
.clip.on { opacity: 1; transform: none; }
.clip.hot { filter: brightness(1.25); box-shadow: 0 0 0 2px var(--cream) inset; }
.clip--v { background: #3b5bdb; }
.clip--fx { background: #9b5cff; }
.clip--a { background: #1f7a52; padding: 0 6px; }
.clip--sfx { background: #c97a12; font-size: 10px; padding: 0 6px; }
.wave {
  width: 100%; height: 70%; opacity: .7;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .8) 0 2px, transparent 2px 4px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 L5 6 L10 13 L15 4 L20 15 L25 8 L30 11 L35 3 L40 16 L45 7 L50 12 L55 2 L60 17 L65 9 L70 10 L75 5 L80 14 L85 6 L90 12 L95 4 L100 15 L105 8 L110 11 L115 3 L120 16 L125 7 L130 12 L135 5 L140 14 L145 6 L150 12 L155 3 L160 16 L165 8 L170 11 L175 5 L180 14 L185 7 L190 12 L195 6 L200 10 L200 20 L0 20Z M0 10 L200 10 L200 0 L0 0Z' fill='black'/%3E%3C/svg%3E") 0 0 / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 L5 6 L10 13 L15 4 L20 15 L25 8 L30 11 L35 3 L40 16 L45 7 L50 12 L55 2 L60 17 L65 9 L70 10 L75 5 L80 14 L85 6 L90 12 L95 4 L100 15 L105 8 L110 11 L115 3 L120 16 L125 7 L130 12 L135 5 L140 14 L145 6 L150 12 L155 3 L160 16 L165 8 L170 11 L175 5 L180 14 L185 7 L190 12 L195 6 L200 10 L200 20 L0 20Z M0 10 L200 10 L200 0 L0 0Z' fill='black'/%3E%3C/svg%3E") 0 0 / 100% 100%;
}
.playhead { position: absolute; top: 0; bottom: 0; left: 56px; width: 2px; background: var(--accent); z-index: 4; pointer-events: none; transform: translateX(0); }
.playhead span { position: absolute; top: -8px; left: -6px; width: 14px; height: 12px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }

.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: transparent; opacity: .4; transition: opacity .4s, background .4s, border-color .4s; }
.steps li.on { opacity: 1; background: var(--bg-2); border-color: var(--line-2); }
.steps li.current { border-color: var(--accent); }
.steps .mono { color: var(--accent); }
.steps h3 { font-size: 22px; letter-spacing: -0.04em; margin: 8px 0 6px; line-height: 1.1; }
.steps p { font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 860px) {
  .process { height: auto; }
  .process__sticky { position: relative; min-height: 0; padding-top: 90px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .track { height: 38px; } .track__lane { height: 30px; } .clip { font-size: 10px; padding: 0 6px; }
  .track__name, .nle__ruler { width: 36px; } .nle__ruler { margin-left: 36px; width: auto; } .playhead { left: 36px; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .nle__bar .mono:not(.nle__tc) { display: none; } }

/* ============ About / Spider reveal ============ */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about__photo { position: relative; }
.spidey__frame {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-xl); overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(255, 59, 47, .35), transparent 70%),
    var(--cream);
}
.spidey__frame img, .spidey__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; pointer-events: none; }
.spidey__mask {
  position: absolute; inset: 0;
  --r: 0px;
  /* same background as the frame, so the real photo never shows through inside the circle */
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(255, 59, 47, .35), transparent 70%),
    var(--cream);
  -webkit-mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 calc(var(--r) - 2px), transparent var(--r));
          mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 calc(var(--r) - 2px), transparent var(--r));
}
.spidey__fallback { display: none; }
.no-spidey .spidey__alt { display: none; }
.no-spidey .spidey__fallback { display: block; }
.spidey__ring {
  position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--accent); box-shadow: 0 0 0 6px rgba(255, 59, 47, .12);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s;
}
.about__photo.active .spidey__ring { opacity: 1; }
.spidey__hint { margin-top: 14px; text-align: center; color: var(--faint); }
.about__text { margin-top: 28px; display: grid; gap: 16px; color: var(--muted); font-size: 18px; max-width: 560px; }
.about__text p:first-child { color: var(--text); }
.skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.skill { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; letter-spacing: -0.02em; }
.skill .mono { color: var(--accent); font-size: 11px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__photo { max-width: 460px; } }
@media (hover: none) { .spidey__frame { cursor: auto; } }

/* ============ Contact ============ */
.contact { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 100px; }
.contact__card {
  border-radius: var(--r-xl); background: var(--cream); color: var(--ink);
  padding: clamp(36px, 7vw, 90px); position: relative; overflow: hidden;
}
.contact__card::before {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 47, .25), transparent 65%); pointer-events: none;
}
.contact__card .eyebrow { color: rgba(14, 13, 12, .45); }
.contact__title { font-size: clamp(48px, 9vw, 128px) !important; letter-spacing: -0.065em !important; max-width: 12ch; }
/* Email + WhatsApp rows */
.reach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 44px; position: relative; max-width: 860px; }
.reach__row {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  padding: 12px 14px 12px 12px; border-radius: 22px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(14, 13, 12, .1);
  box-shadow: 0 1px 0 #fff inset, 0 10px 30px -18px rgba(14, 13, 12, .35);
  color: var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, transform .35s var(--ease);
}
.reach__row:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: translateY(-2px); }
.reach__icon {
  flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: var(--ink); color: var(--cream);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.reach__icon--wa { background: #1faa59; }
.reach__row:hover .reach__icon { background: var(--cream); color: var(--ink); }
.reach__row:hover .reach__icon--wa { background: #25d366; color: #fff; }
.reach svg, .socials svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reach svg .fill, .socials svg .fill { fill: currentColor; stroke: none; }
.reach__text { display: grid; min-width: 0; flex: 1; }
.reach__label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .5; }
.reach__value { font-size: clamp(16px, 1.7vw, 19px); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reach__action {
  position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid currentColor; opacity: .35; transition: opacity .3s, transform .35s var(--ease);
}
.reach__action svg { width: 17px; height: 17px; }
.reach__row:hover .reach__action { opacity: 1; transform: rotate(-8deg) scale(1.06); }
.reach__tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  background: var(--ink); color: var(--cream); padding: 4px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.reach__row:hover .reach__tip, .reach__tip.show { opacity: 1; }
.reach__row:hover .reach__tip { background: var(--cream); color: var(--ink); }
@media (max-width: 720px) { .reach { grid-template-columns: 1fr; } }

.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 999px; border: 1px solid rgba(14, 13, 12, .12);
  font-weight: 500; font-size: 15px; transition: background .25s, color .25s, border-color .25s;
}
.socials svg { width: 18px; height: 18px; }
.socials a:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ============ Floating "let's collab" goo button ============ */
/* The goo is rendered inside a transparent frame; the pill's centre sits --collab-y above the bottom of the screen */
:root { --collab-y: clamp(70px, 12vh, 120px); --venom-w: 680px; --venom-h: 560px; }
.venom-frame {
  position: fixed; left: 50%; z-index: 70;
  width: min(var(--venom-w), 100vw); height: var(--venom-h);
  bottom: calc(var(--collab-y) - var(--venom-h) / 2);
  transform: translateX(-50%);
  border: 0; background: transparent; pointer-events: none;
  opacity: 0; transition: opacity .8s var(--ease);
  /* soft edges: nothing drawn in the frame can ever end in a hard straight line */
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
html.goo-ready .venom-frame { opacity: 1; }
/* The link is first a light CSS pill (instant, no GPU work). Once the 3D goo is ready it turns
   invisible and sits exactly over the goo pill (positioned by script.js). */
.venom-hit {
  position: fixed; z-index: 71; left: 50%; bottom: var(--collab-y); transform: translate(-50%, 50%);
  display: grid; place-items: center; height: 60px; padding: 0 30px; border-radius: 999px;
  color: #e9e9ea; font-weight: 700; font-size: 19px; letter-spacing: -0.03em; white-space: nowrap;
  background:
    radial-gradient(60% 50% at 50% 110%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(180deg, #3a3a3a 0%, #111 24%, #000 58%, #0b0b0b 82%, #262626 100%);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, .45), inset 0 -1.5px 1px rgba(255, 255, 255, .18),
    inset 0 0 0 1.5px #000, 0 0 0 1px rgba(251, 249, 245, .16),
    0 16px 30px -10px rgba(0, 0, 0, .8), 0 5px 10px rgba(0, 0, 0, .45);
  opacity: 0; pointer-events: none; cursor: pointer;
  transition: opacity .5s var(--ease), transform .4s var(--ease), color .4s, background .4s, box-shadow .4s;
}
.is-loaded .venom-hit { opacity: 1; pointer-events: auto; }
.venom-hit:hover { transform: translate(-50%, 50%) translateY(-3px) scale(1.03); }
html.goo-ready .venom-hit {
  bottom: auto; transform: none; padding: 0; color: transparent; background: transparent; box-shadow: none;
}
html.goo-ready .venom-hit:hover { transform: none; }
.venom-hit:focus-visible { outline: 2px solid var(--cream); outline-offset: 6px; }
/* while the goo has grabbed the cursor, its 3D hand replaces the mouse pointer */
html.venom-engaged, html.venom-engaged * { cursor: none !important; }
@media (max-width: 640px) { :root { --collab-y: 64px; --venom-h: 520px; } }

/* WhatsApp corner button: phones and tablets only (the 3D goo is desktop only) */
.wa-fab { display: none; }
@media (hover: none), (pointer: coarse) {
  .venom-frame, .venom-hit { display: none !important; }
  .wa-fab {
    position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 71;
    display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border-radius: 999px;
    background: #25d366; color: #fff; font-weight: 600; font-size: 15px; letter-spacing: -0.02em;
    box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .55), 0 4px 10px rgba(0, 0, 0, .35);
    opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .wa-fab svg { width: 24px; height: 24px; }
  .is-loaded .wa-fab { opacity: 1; transform: none; }
  .wa-fab:active { transform: scale(.96); }
  /* lighter page for phones: no full-screen grain layer, cheaper glass blur */
  .grain { display: none; }
  .nav { backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%); }
}

/* ============ Cursor follower ============ */
.cring { position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: 0; transition: opacity .3s; contain: strict; }
.cring.on { opacity: 1; }
.cring > span { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cring__halo { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .22); opacity: .6; transition: width .3s, height .3s; }
.cring__ring {
  width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .05);
  box-shadow: 0 0 24px -6px rgba(255, 255, 255, .9), 0 0 0 1px rgba(0, 0, 0, .28);
  transition: width .3s var(--ease), height .3s var(--ease), background-color .3s;
}
.cring__dot { width: 5px; height: 5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.cring__ring, .cring__halo, .cring__dot { transition-property: width, height, background-color, border-color, box-shadow; transition-duration: .3s; }
.cring.big .cring__ring { width: 56px; height: 56px; border-color: var(--accent); background: rgba(255, 59, 47, .14); box-shadow: 0 0 28px -4px rgba(255, 59, 47, .85), 0 0 0 1px rgba(0, 0, 0, .28); }
.cring.big .cring__halo { width: 66px; height: 66px; border-color: rgba(255, 59, 47, .4); }
.cring.big .cring__dot { background: var(--accent); }
.cring.hide { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cring { display: none; } }

/* ============ Footer ============ */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 14px;
}
.footer a:hover { color: var(--text); }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}