/* ════════════════════════════════════════════════════════════════════
   HELLO: Ahsan's personal site.

   A warm, first-person page: paper and ink, one coral accent, an
   illustrated portrait that waves, doodles in the margins. The honesty
   system stays semantic: green always means *verified*, amber always
   means *reported, not audited*.

   Themes:
     paper (default): warm cream, letterpress ink
     night          : espresso dark, same warmth

   No framework. No build step. Three self-hosted variable fonts.
   ════════════════════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('assets/fonts/bricolage-var.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrainsmono-var.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/fonts/instrumentserif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ── Tokens ────────────────────────────────────────────────────────── */
:root,
:root[data-theme='paper'] {
  color-scheme: light;

  --bg:    #F7F2E9;
  --bg-2:  #F0E9DC;
  --bg-3:  #FDFBF5;
  --ink:   #211B13;
  --ink-2: #5D5546;
  --ink-3: #6E6553;
  --line:   rgba(33, 27, 19, .13);
  --line-2: rgba(33, 27, 19, .3);

  --accent:      #BC3F11;
  --accent-ink:  #FFFFFF;
  --accent-dim:  rgba(188, 63, 17, .09);
  --green:      #0A6F3E;
  --green-dim:  rgba(10, 111, 62, .1);
  --green-line: rgba(10, 111, 62, .4);
  --amber:      #8F5B00;
  --amber-dim:  rgba(143, 91, 0, .1);
  --red:        #B3261E;

  --hud-bg: rgba(247, 242, 233, .84);
  --scrim:  rgba(33, 27, 19, .42);
  --shadow:      0 24px 60px rgba(76, 57, 31, .16);
  --shadow-soft: 0 10px 28px rgba(76, 57, 31, .1);
  --tape: rgba(190, 168, 124, .38);

  --font-d: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-s: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-m: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-b: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: min(1200px, 92vw);
}

:root[data-theme='night'] {
  color-scheme: dark;

  --bg:    #1A1511;
  --bg-2:  #211B16;
  --bg-3:  #29221B;
  --ink:   #F4EEE3;
  --ink-2: #BFB4A0;
  --ink-3: #9A9078;
  --line:   rgba(244, 238, 227, .1);
  --line-2: rgba(244, 238, 227, .24);

  --accent:      #FF8B57;
  --accent-ink:  #2A1207;
  --accent-dim:  rgba(255, 139, 87, .12);
  --green:      #4CD98A;
  --green-dim:  rgba(76, 217, 138, .12);
  --green-line: rgba(76, 217, 138, .4);
  --amber:      #F2B75C;
  --amber-dim:  rgba(242, 183, 92, .12);
  --red:        #FF7A70;

  --hud-bg: rgba(26, 21, 17, .82);
  --scrim:  rgba(8, 6, 4, .6);
  --shadow:      0 24px 60px rgba(0, 0, 0, .45);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, .3);
  --tape: rgba(244, 238, 227, .14);
}

/* ── Reset / base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 16.5px;
  line-height: 1.7;
  overflow-x: clip;
  transition: background-color .5s ease, color .5s ease;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, canvas { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
  *::-webkit-scrollbar { width: 8px; height: 8px; }
  *::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
  *::-webkit-scrollbar-track { background: transparent; }
}

.mono {
  font-family: var(--font-m);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wrap { width: var(--wrap); margin-inline: auto; }

.skip {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-m);
  font-size: 12px;
  border-radius: 99px;
  transition: top .25s var(--ease);
}
.skip:focus-visible { top: 12px; }

/* Serif-italic accent inside display type */
h1 em, .sect__title em, .cta__title em, .quote__mark {
  font-family: var(--font-s);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

/* ── Reveal engine ─────────────────────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--d, 0ms);
}
.rv.on { opacity: 1; transform: none; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .3s var(--bounce), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); background: var(--ink); color: var(--bg); }
.btn:active { transform: translateY(0) scale(.98); }
.btn em { font-style: normal; transition: transform .3s var(--ease); }
.btn:hover em { transform: translate(3px, -3px); }

.btn--sm { padding: 10px 18px; font-size: 13.5px; }
.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ── Chips & stamps ────────────────────────────────────────────────── */
.chip {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink-2);
  white-space: nowrap;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  white-space: nowrap;
}
.stamp--verified { color: var(--green); background: var(--green-dim); }
.stamp--reported { color: var(--amber); background: var(--amber-dim); }
.stamp i { width: 6px; height: 6px; border-radius: 99px; background: currentColor; flex: none; }
.rv.on .stamp, .stamp.stamped { animation: stampIn .55s var(--ease) both; }
@keyframes stampIn {
  0%   { opacity: 0; transform: scale(2.2) rotate(-13deg); }
  55%  { opacity: 1; transform: scale(.94) rotate(-1deg); }
  100% { opacity: 1; transform: scale(1) rotate(-2deg); }
}

/* Trust chips (hero, link out to the public profile) */
.trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--green-line);
  border-radius: 99px;
  background: var(--green-dim);
  color: var(--green);
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: transform .3s var(--bounce), box-shadow .3s;
}
.trust:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: var(--shadow-soft); }
.trust i { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }

/* ── HUD ───────────────────────────────────────────────────────────── */
.hud {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--hud-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hud__inner {
  width: var(--wrap);
  margin-inline: auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.hud__brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.hud__mark {
  width: 30px; height: 30px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  transition: transform .4s var(--bounce);
}
.hud__brand:hover .hud__mark { transform: rotate(-8deg); }
.hud__mark i {
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 3px;
  animation: markBlink 4s steps(1) infinite;
}
@keyframes markBlink { 0%, 88%, 100% { opacity: 1; } 92%, 96% { opacity: .25; } }
.hud__name {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .01em;
}
.hud__nav { display: flex; gap: 2px; }
.hud__link {
  padding: 9px 14px;
  border-radius: 99px;
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color .25s, background-color .25s;
}
.hud__link:hover { color: var(--ink); background: var(--line); }
.hud__right { display: flex; align-items: center; gap: 14px; }
.hud__avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1.5px solid var(--green-line);
  border-radius: 99px;
  background: var(--green-dim);
}
.hud__avail b {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--green);
  text-transform: uppercase;
}
.pulse { width: 7px; height: 7px; border-radius: 99px; background: var(--green); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--green-line); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hud__clock {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.hud__theme {
  width: 36px; height: 36px;
  border: 1.5px solid var(--line-2);
  border-radius: 99px;
  display: grid;
  place-items: center;
  transition: border-color .25s, transform .4s var(--ease);
}
.hud__theme:hover { border-color: var(--ink); transform: rotate(40deg); }
.hud__themeglyph {
  width: 13px; height: 13px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
  border: 1.5px solid var(--ink);
}
.hud__burger { display: none; flex-direction: column; gap: 5px; padding: 10px 6px; }
.hud__burger i { width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.hud__burger[aria-expanded='true'] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.hud__burger[aria-expanded='true'] i:last-child  { transform: translateY(-3.75px) rotate(-45deg); }
.hud__progress { position: absolute; inset: auto 0 -1px 0; height: 2px; }
.hud__progress span {
  display: block; height: 100%; width: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ── Full-screen menu ──────────────────────────────────────────────── */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  padding: 110px 6vw 40px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.menu[hidden] { display: none; }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 3.2vh 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-d);
  font-weight: 750;
  font-size: clamp(1.9rem, 8.5vw, 3.2rem);
  letter-spacing: -.02em;
  line-height: 1;
  opacity: 0;
  transform: translateY(30px);
}
.menu.open .menu__link {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--i) * 55ms);
}
.menu__link s {
  text-decoration: none;
  font-family: var(--font-s);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
}
.menu__foot {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* ── Atmosphere: aurora + grain ────────────────────────────────────── */
.aurora {
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
  filter: blur(46px) saturate(115%);
  opacity: .85;
}
.aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: multiply;
  animation: drift var(--dur, 26s) ease-in-out infinite alternate;
  animation-delay: var(--dly, 0s);
}
:root[data-theme='night'] .aurora i { mix-blend-mode: screen; opacity: .55; }
.aurora i:nth-child(1) {
  width: 46vw; height: 46vw; left: 52%; top: -8%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 138, 92, .5), transparent 62%);
}
.aurora i:nth-child(2) {
  width: 40vw; height: 40vw; left: -6%; top: 34%;
  background: radial-gradient(circle at 50% 50%, rgba(88, 190, 140, .38), transparent 64%);
  --dur: 32s; --dly: -6s;
}
.aurora i:nth-child(3) {
  width: 34vw; height: 34vw; left: 24%; top: 58%;
  background: radial-gradient(circle at 50% 50%, rgba(226, 176, 92, .4), transparent 64%);
  --dur: 38s; --dly: -14s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, -4vh, 0) scale(1.14); }
}

/* Film grain over everything: the texture that stops flat colour looking cheap */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .3;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}
:root[data-theme='night'] body::after { mix-blend-mode: screen; opacity: .16; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  margin-inline: auto;
  padding: 118px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero__hello {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-s);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--accent);
}
.hero__hello i {
  font-style: normal;
  display: inline-block;
  animation: waveHand 2.6s var(--ease) infinite;
  transform-origin: 70% 70%;
}
@keyframes waveHand {
  0%, 24%, 100% { transform: rotate(0); }
  6%  { transform: rotate(18deg); }
  12% { transform: rotate(-8deg); }
  18% { transform: rotate(12deg); }
}

.hero__title {
  margin-top: 16px;
  font-family: var(--font-d);
  font-size: clamp(2.5rem, 5.9vw, 4.9rem);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero__title em { color: var(--accent); font-size: 1.05em; }
.hero__title .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(.5em) rotate(2deg);
  transform-origin: 0 100%;
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: var(--d, 0ms);
}
.hero__title.on .w { opacity: 1; transform: none; }

.hero__now {
  margin-top: 26px;
  font-family: var(--font-d);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--ink-2);
}
.hero__now b {
  position: relative;
  color: var(--accent);
  font-weight: 750;
  white-space: nowrap;
}
.hero__now b::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.5C22 2 40 6.5 60 4S100 2.5 118 5' fill='none' stroke='%23BC3F11' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
:root[data-theme='night'] .hero__now b::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.5C22 2 40 6.5 60 4S100 2.5 118 5' fill='none' stroke='%23FF8B57' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.hero__now .caret {
  display: inline-block;
  width: 3px; height: 1.05em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: -0.18em;
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.hero__intro {
  margin-top: 22px;
  max-width: 56ch;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 13px; }

.hero__trust {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.hero__verifyline {
  margin-top: 18px;
  font-family: var(--font-m);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.hero__verifyline b { color: var(--green); font-weight: 700; }

/* Portrait card */
.hero__figure { position: relative; justify-self: center; }
.polaroid {
  position: relative;
  width: min(340px, 72vw);
  padding: 16px 16px 18px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
  transition: transform .5s var(--bounce);
}
.polaroid.tilt {
  transform: perspective(900px) rotate(2.5deg)
             rotateX(calc(var(--ty, 0) * -7deg))
             rotateY(calc(var(--tx, 0) * 7deg));
}
.polaroid:hover { transform: rotate(0deg) translateY(-4px); }
.polaroid.tilt:hover {
  transform: perspective(900px) rotate(0deg) translateY(-6px)
             rotateX(calc(var(--ty, 0) * -7deg))
             rotateY(calc(var(--tx, 0) * 7deg));
}
.polaroid::before, .polaroid::after {
  content: '';
  position: absolute;
  top: -12px;
  width: 74px; height: 26px;
  background: var(--tape);
  border-radius: 3px;
  transform: rotate(-4deg);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}
.polaroid::before { left: 22px; }
.polaroid::after  { right: 22px; transform: rotate(5deg); }
.polaroid__art {
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 18%, var(--accent-dim), transparent 70%),
    var(--bg-2);
}
.polaroid__art svg { width: 100%; height: auto; }
/* Zoom stays gentle and drifts downward: the crown of the head must never clip. */
.polaroid__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.04);
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04) translate(0, 0); }
  to   { transform: scale(1.11) translate(-1%, 1.2%); }
}
.polaroid__wave {
  position: absolute;
  top: -16px;
  right: -12px;
  font-size: 34px;
  line-height: 1;
  transform-origin: 70% 70%;
  animation: waveHand 2.6s var(--ease) infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .18));
}
.polaroid__wave[hidden] { display: none; }
.polaroid__caption {
  margin-top: 13px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.polaroid__name { font-family: var(--font-s); font-style: italic; font-size: 1.25rem; color: var(--ink); }
.polaroid__meta { font-family: var(--font-m); font-size: 10px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }

/* intro video card */
.vidcard {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(340px, 72vw);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-3);
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.6deg);
  transition: transform .45s var(--bounce), box-shadow .45s, border-color .45s;
}
.vidcard:hover { transform: rotate(0) translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.vidcard__thumb {
  position: relative;
  width: 128px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
}
.vidcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vidcard__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 13px;
  color: #fff;
}
.vidcard__play::before {
  content: '';
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  transition: transform .35s var(--bounce);
}
.vidcard:hover .vidcard__play::before { transform: scale(1.15); }
.vidcard__play span { position: relative; left: 1px; }
.vidcard__meta { display: grid; gap: 3px; min-width: 0; }
.vidcard__meta b { font-family: var(--font-d); font-size: 15px; font-weight: 750; }
.vidcard__title {
  font-size: 11.5px;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vidcard__ext {
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* the "this is me" arrow note */
.henote {
  position: absolute;
  left: -86px;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: var(--accent);
  transform: rotate(-6deg);
}
.henote span { font-family: var(--font-s); font-style: italic; font-size: 1.15rem; white-space: nowrap; }
.henote svg { width: 54px; height: 34px; }

/* Avatar life */
.av__eyes { transform-origin: 120px 107px; animation: blink 4.6s ease-in-out infinite; }
@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  93%, 95% { transform: scaleY(.06); }
}
.av__arm { transform-origin: 186px 196px; animation: wave 6.5s var(--ease) infinite; }
@keyframes wave {
  0%, 24%, 100% { transform: rotate(0deg); }
  6%  { transform: rotate(-14deg); }
  12% { transform: rotate(6deg); }
  18% { transform: rotate(-10deg); }
}

/* Doodles */
.doodles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.doodle {
  position: absolute;
  color: var(--ink-3);
  opacity: .5;
  transform: translate(calc(var(--px, 0) * var(--depth, 8) * 1px), calc(var(--py, 0) * var(--depth, 8) * 1px));
  animation: bob 7s ease-in-out infinite;
  animation-delay: var(--bd, 0s);
}
.doodle--accent { color: var(--accent); opacity: .65; }
.doodle--green { color: var(--green); opacity: .6; }
@keyframes bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}

.hero__scrollcue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--ink-3);
  animation: bob 2.4s ease-in-out infinite;
}

/* ── Marquee ───────────────────────────────────────────────────────── */
.marquee { border-block: 1px solid var(--line); overflow: clip; background: var(--bg-2); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 13px 26px 13px 0;
  white-space: nowrap;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.marquee__item b { color: var(--accent); font-weight: 500; }

/* ── Section chrome ────────────────────────────────────────────────── */
.sect { padding: clamp(3rem, 7vh, 5rem) 0; }
.sect--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sect__head { margin-bottom: clamp(1.6rem, 3.5vh, 2.4rem); max-width: 46rem; }
.sect__squiggle { width: 74px; height: 12px; color: var(--accent); margin-bottom: 14px; }
.sect__squiggle path {
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.sect__squiggle.drawn path { stroke-dashoffset: 0; }
.sect__kicker {
  font-family: var(--font-s);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent);
}
.sect__title {
  margin-top: 6px;
  font-family: var(--font-d);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 780;
  letter-spacing: -.02em;
  line-height: 1.04;
}
.sect__sub { margin-top: 12px; color: var(--ink-2); font-size: 15px; max-width: 56ch; }

/* ── Interaction: pointer tilt + spotlight ─────────────────────────── */
.tilt {
  transform: perspective(900px)
             rotateX(calc(var(--ty, 0) * -5deg))
             rotateY(calc(var(--tx, 0) * 5deg))
             translateY(var(--lift, 0));
  transition: transform .5s var(--ease);
  will-change: transform;
}
.tilt.live { transition: transform .12s linear; }
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .35s var(--ease);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
              var(--accent-dim), transparent 62%);
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* ── Receipts: bento grid ─────────────────────────────────────────── */
.claims { padding: clamp(2.4rem, 5vh, 3.4rem) 0 clamp(1.6rem, 3.5vh, 2.4rem); }
.claims__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.claims__cell {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-3);
  box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .4s;
}
.claims__cell:hover { --lift: -4px; border-color: var(--accent); box-shadow: var(--shadow); }
/* first tile is the hero stat: wide and loud */
.claims__cell:nth-child(1) { grid-column: span 3; background: var(--bg-2); }
.claims__cell:nth-child(2) { grid-column: span 3; }
.claims__cell:nth-child(1) .claims__value,
.claims__cell:nth-child(2) .claims__value { font-size: clamp(3rem, 6.4vw, 5rem); }
/* the last tile closes the grid across the full width */
.claims__cell:last-child {
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 30px;
  background: var(--bg-2);
}
.claims__cell:last-child .claims__value { font-size: clamp(2.6rem, 5vw, 4rem); }
.claims__cell:last-child .claims__label { margin-top: 0; font-size: 17px; }
.claims__cell:last-child .claims__src { flex: 1 1 34ch; margin-top: 0; }
.claims__cell:last-child .claims__stamp { margin-top: 0; }
.claims__value {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--ink), color-mix(in oklab, var(--ink) 66%, var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.claims__label {
  margin-top: 8px;
  font-family: var(--font-d);
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink-2);
}
.claims__src { margin-top: 8px; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); flex: 1; }
.claims__stamp { margin-top: 14px; }
.claims__note {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
}

/* ── Services ──────────────────────────────────────────────────────── */
.svc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.svc__card {
  position: relative;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-3);
  box-shadow: var(--shadow-soft);
  transition: transform .4s var(--bounce), border-color .4s, box-shadow .4s;
}
.svc__card:hover { transform: translateY(-5px) rotate(-.4deg); border-color: var(--accent); box-shadow: var(--shadow); }
.svc__icon { width: 44px; height: 44px; color: var(--accent); }
.svc__card:hover .svc__icon { animation: wiggle .5s var(--ease); }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(-8deg); }
  65% { transform: rotate(6deg); }
}
.svc__name {
  margin-top: 16px;
  font-family: var(--font-d);
  font-size: 1.22rem;
  font-weight: 750;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.svc__detail { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* ── Work: filter chips + one dense grid ───────────────────────────── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: clamp(1.4rem, 3vh, 2rem);
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  background: var(--bg-3);
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 650;
  transition: border-color .3s, background-color .3s, color .3s, transform .35s var(--bounce);
}
.filter span {
  font-family: var(--font-m);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--line);
  color: var(--ink-3);
}
.filter:hover { border-color: var(--line-2); transform: translateY(-2px); }
.filter.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filter.on span { background: rgba(255, 255, 255, .22); color: inherit; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: clamp(14px, 2vw, 20px);
}
.grid__empty { margin-top: 16px; color: var(--ink-3); text-transform: none; letter-spacing: .06em; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-3);
  box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease), border-color .4s, box-shadow .4s, opacity .4s;
}
.card[hidden] { display: none; }
.card:hover { --lift: -5px; border-color: var(--accent); box-shadow: var(--shadow); }
.card--wide { grid-column: span 2; }
.card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.card__eyebrow i {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: currentColor;
  flex: none;
}
.card__schem {
  margin: 4px 0 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(60% 90% at 70% 10%, var(--green-dim), transparent 60%),
    var(--bg-2);
}
.card__schem svg { width: 100%; height: auto; }
.card__shot {
  margin: 2px 0 4px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.card__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__shot img { transform: scale(1.04); }
.card__repo {
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
  text-transform: none;
  overflow-wrap: anywhere;
}
.card__name {
  font-family: var(--font-d);
  font-size: 1.28rem;
  font-weight: 750;
  letter-spacing: -.015em;
  line-height: 1.15;
}
.card--wide .card__name { font-size: 1.7rem; }
.card__meta { font-size: 13.5px; color: var(--ink-2); }
.card__outrow { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.card__outrow p { flex: 1 1 24ch; font-size: 14px; }
.card__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.card__go {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.card:hover .card__go { text-decoration: underline; text-underline-offset: 3px; }

.card--job { gap: 8px; }
.card__name--sm { font-size: 1.04rem; line-height: 1.25; }
.card__jobmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.card__stars { color: var(--amber); letter-spacing: 1px; }

.card--more {
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  border-style: dashed;
  background: var(--bg-2);
}
.card--more b {
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.card--more span { font-size: 13.5px; color: var(--ink-2); max-width: 24ch; margin-inline: auto; }
.card--more em {
  font-family: var(--font-m);
  font-style: normal;
  font-size: 9px;
  letter-spacing: .1em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--ink-3);
}

.after { margin-top: clamp(1.6rem, 4vh, 2.4rem); display: grid; gap: clamp(14px, 2vw, 20px); }
.after__block, .techwrap {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-3);
}
.after__block[hidden], .techwrap[hidden] { display: none; }
.panel__label { color: var(--ink-3); margin-bottom: 14px; }
.techwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.techchips { display: flex; flex-wrap: wrap; gap: 7px; }

/* folded detail: nothing is deleted, just not shouted */
.fold { margin-top: 2px; }
.fold summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: color .25s, border-color .25s;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: '+'; color: var(--accent); font-size: 13px; }
.fold[open] summary::after { content: '–'; }
.fold summary:hover { color: var(--ink); border-color: var(--accent); }
.fold > p { margin-top: 12px; color: var(--ink-2); font-size: 14px; max-width: 68ch; }
.fold .joblist { margin-top: 8px; }

/* ── Case files ────────────────────────────────────────────────────── */
.case {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  padding: clamp(1.6rem, 4vh, 2.6rem) 0;
  border-top: 1px solid var(--line);
}
.case:first-child { border-top: 0; padding-top: 0; }
.case__sticky { position: sticky; top: 96px; }
.case__no {
  font-family: var(--font-s);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
}
.case__name {
  margin-top: 8px;
  font-family: var(--font-d);
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 780;
  letter-spacing: -.02em;
  line-height: 1;
}
.case__cat { margin-top: 10px; font-family: var(--font-m); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.case__dates { color: var(--ink-3); }
.case__role { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.case__stack { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.case__links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.case__note { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); max-width: 34ch; }

.case__body { min-width: 0; }
.schem {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(60% 90% at 70% 10%, var(--green-dim), transparent 60%),
    var(--bg-3);
  box-shadow: var(--shadow-soft);
  padding: clamp(14px, 2.4vw, 26px);
  overflow: hidden;
  transition: border-color .4s var(--ease);
}
.case:hover .schem { border-color: var(--green-line); }
.schem svg { width: 100%; height: auto; }
.schem [data-draw] {
  stroke-dasharray: var(--len, 300);
  stroke-dashoffset: var(--len, 300);
  transition: stroke-dashoffset 1.6s var(--ease);
  transition-delay: var(--d, 0ms);
}
.rv.on .schem [data-draw], .schem.on [data-draw] { stroke-dashoffset: 0; }
.schem__caption {
  margin-top: 12px;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}


.case__block { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; }
.case__blabel {
  font-family: var(--font-s);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-3);
  padding-top: 1px;
}
.case__block p { color: var(--ink-2); font-size: 15px; max-width: 62ch; }
.case__block--outcome p { color: var(--ink); }
.case__outrow { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.case__outrow p { flex: 1 1 30ch; }

/* ── Open source cards ─────────────────────────────────────────────── */
.oss { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.oss__card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-3);
  transition: transform .4s var(--bounce), border-color .4s, box-shadow .4s;
}
.oss__card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-soft); }
.oss__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.oss__kind { color: var(--accent); font-size: 10px; font-weight: 700; }
.oss__arrow { font-family: var(--font-m); color: var(--ink-3); transition: transform .35s var(--ease), color .35s; }
.oss__card:hover .oss__arrow { transform: translate(3px, -3px); color: var(--accent); }
.oss__name { font-family: var(--font-d); font-size: 1.24rem; font-weight: 750; letter-spacing: -.01em; line-height: 1.15; }
.oss__desc { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.oss__foot { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 13px; border-top: 1px solid var(--line); }

/* ── Upwork case studies + job list ────────────────────────────────── */
.upcases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.2vw, 20px);
}
.upcase {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-3);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .45s, box-shadow .45s;
}
.upcase:hover { --lift: -6px; border-color: var(--accent); box-shadow: var(--shadow); }

/* the locked "+20 more" tile that ends the rail */
.upcase--more {
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  padding: 30px;
  border-style: dashed;
  background: var(--bg-2);
}
.upcase--more b {
  font-family: var(--font-d);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--accent);
}
.upcase--more span { font-size: 14px; color: var(--ink-2); max-width: 26ch; margin-inline: auto; }
.upcase--more em {
  font-family: var(--font-m);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .1em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--ink-3);
  max-width: 28ch;
  margin-inline: auto;
}
.railhint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.railhint i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}
/* When everything already fits, do not promise scrolling that cannot happen. */
.railhint.static .railnav,
.railhint.static .railhint__tip { display: none; }
.railnav { display: inline-flex; gap: 8px; }
.railnav__btn {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-2);
  border-radius: 99px;
  color: var(--ink-2);
  transition: color .25s, border-color .25s, background-color .25s, transform .3s var(--bounce);
}
.railnav__btn svg { width: 16px; height: 16px; }
.railnav__btn:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.railnav__btn[disabled] { opacity: .32; pointer-events: none; }
.upcase__shot {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.upcase__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.upcase:hover .upcase__shot img { transform: scale(1.04); }
.upcase__body { padding: 20px 22px 22px; display: grid; gap: 10px; }
.upcase__client {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.upcase__title {
  font-family: var(--font-d);
  font-size: 1.16rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.upcase__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.joblist {
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  border-top: 1px solid var(--line);
}
.joblist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
}
.joblist b { font-weight: 600; font-size: 14.5px; }
.joblist time {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink-3);
  text-transform: uppercase;
  white-space: nowrap;
}
.joblist span.rating { color: var(--amber); font-size: 12px; white-space: nowrap; }

/* ── Upwork portfolio rail ─────────────────────────────────────────── */
.uprail {
  margin-top: clamp(3rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-2);
  padding: clamp(20px, 3vw, 34px);
  align-items: center;
}
.uprail__big {
  font-family: var(--font-d);
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.03em;
}
.uprail__big small { display: block; font-size: .28em; font-weight: 650; color: var(--ink-2); letter-spacing: 0; margin-top: 10px; }
.uprail__side { display: grid; gap: 12px; }
.uprail__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-3);
  font-size: 14px;
  color: var(--ink-2);
}
.uprail__item b { color: var(--ink); font-weight: 650; }
.uprail__item span { font-family: var(--font-m); font-size: 10px; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; white-space: nowrap; }
.uprail__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.uprail__note { font-size: 12.5px; color: var(--ink-3); }

/* ── Testimonials ──────────────────────────────────────────────────── */
.quotes {
  columns: 3;
  column-gap: clamp(14px, 2vw, 20px);
}
.quote {
  break-inside: avoid;
  margin: 0 0 clamp(14px, 2vw, 20px);
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-3);
  box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease), border-color .4s, box-shadow .4s;
}
.quote:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.quote__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.quote__stars { color: var(--amber); font-size: 13px; letter-spacing: 2px; }
.quote__date { font-size: 9.5px; color: var(--ink-3); }
.quote__text {
  margin: 0;
  font-family: var(--font-s);
  font-style: italic;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}
.quote__job {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px dashed var(--line-2);
  font-size: 12.5px;
  color: var(--ink-2);
}
.quotes__more {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.quotes__morelink {
  font-family: var(--font-s);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent);
  border-bottom: 1.5px solid transparent;
  transition: border-color .25s;
}
.quotes__morelink:hover { border-color: var(--accent); }

/* ── Method loop ───────────────────────────────────────────────────── */
.loop { position: relative; }
.loop::before {
  content: '';
  position: absolute;
  left: 5px; top: 10px; bottom: 10px;
  width: 1.5px;
  background: var(--line);
}
.loop__step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  padding: clamp(1.8rem, 4.5vh, 3rem) 0 clamp(1.8rem, 4.5vh, 3rem) 42px;
  border-bottom: 1px solid var(--line);
}
.loop__step:last-child { border-bottom: 0; }
.loop__step::before {
  content: '';
  position: absolute;
  left: 0;
  top: clamp(2.35rem, 5vh, 3.55rem);
  width: 12px; height: 12px;
  border-radius: 99px;
  border: 2.5px solid var(--accent);
  background: var(--bg);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.loop__step.on::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-dim); }
.loop__no { font-family: var(--font-s); font-style: italic; font-size: 1.05rem; color: var(--accent); }
.loop__name {
  margin-top: 6px;
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 2.7vw, 2.05rem);
  font-weight: 780;
  letter-spacing: -.015em;
  line-height: 1.05;
}
.loop__purpose {
  margin-top: 10px;
  font-family: var(--font-s);
  font-style: italic;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  color: var(--ink-2);
  max-width: 34ch;
}
.loop__fields { display: grid; align-content: start; }
.loop__field {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.loop__field:last-child { border-bottom: 0; }
.loop__field b {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.loop__field--gate b, .loop__field--gate { color: var(--green); }
.loop__field--fail b { color: var(--red); }
.loop__field--fail { color: var(--ink-3); }

/* ── Proof ledger ──────────────────────────────────────────────────── */
.ledger { border-top: 1.5px solid var(--line-2); }
.ledger__row { border-bottom: 1px solid var(--line); }
.ledger__link {
  display: grid;
  grid-template-columns: 3.2ch 150px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(12px, 2.5vw, 30px);
  padding: 21px 12px;
  border-radius: 12px;
  transition: background-color .3s var(--ease), padding .3s var(--ease);
}
.ledger__link:hover { background: var(--bg-3); padding-left: 22px; box-shadow: var(--shadow-soft); }
.ledger__no { font-family: var(--font-m); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ledger__kind {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
}
.ledger__title { font-family: var(--font-d); font-weight: 750; font-size: clamp(1.05rem, 1.9vw, 1.4rem); letter-spacing: -.01em; }
.ledger__detail { display: block; margin-top: 3px; font-family: var(--font-b); font-weight: 400; font-size: 13px; color: var(--ink-3); }
.ledger__arrow { font-family: var(--font-m); font-size: 14px; color: var(--accent); }

/* ── Telemetry panels ──────────────────────────────────────────────── */
.telemetry--one { grid-template-columns: 1fr !important; }
.telemetry {
  margin-top: clamp(1.6rem, 3.5vh, 2.4rem);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 16px;
}
.telemetry__panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-3);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}
.tele__label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tele__big { margin-top: 13px; font-family: var(--font-d); font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1; }
.tele__big small { font-size: .45em; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.cadence { margin-top: 20px; display: flex; align-items: flex-end; gap: 3px; height: 104px; }
.cadence i {
  flex: 1;
  min-width: 2px;
  background: var(--accent);
  opacity: .9;
  border-radius: 3px 3px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.cadence i.z { background: var(--line-2); opacity: .6; }
.rv.on .cadence i { transform: scaleY(1); }
.tele__foot {
  margin-top: 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.langs { margin-top: 18px; display: grid; gap: 12px; }
.lang { display: grid; gap: 6px; }
.lang__row { display: flex; justify-content: space-between; font-family: var(--font-m); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.lang__row b { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.lang__bar { height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; }
.lang__bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  background: var(--accent);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.rv.on .lang__bar i { transform: scaleX(1); }

/* ── Journey timeline ──────────────────────────────────────────────── */
.tl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 22px; position: relative; padding-top: 30px; }
.tl::before { content: ''; position: absolute; top: 5px; left: 0; right: 0; height: 1.5px; background: var(--line-2); }
.tl__item { position: relative; }
.tl__item::before {
  content: '';
  position: absolute;
  top: -29px;
  left: 0;
  width: 10px; height: 10px;
  border-radius: 99px;
  background: var(--bg);
  border: 2.5px solid var(--accent);
}
.tl__year { font-family: var(--font-s); font-style: italic; font-size: 1.05rem; color: var(--accent); }
.tl__title { margin-top: 8px; font-family: var(--font-d); font-weight: 750; font-size: 1.14rem; line-height: 1.15; letter-spacing: -.01em; }
.tl__story { margin-top: 9px; font-size: 13px; color: var(--ink-2); }
.tl__up { margin-top: 12px; font-family: var(--font-m); font-size: 10px; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; line-height: 1.7; }
.tl__up b { color: var(--green); font-weight: 700; }

/* ── founder.txt ───────────────────────────────────────────────────── */
.ftxt {
  margin-top: clamp(2.6rem, 6vh, 4.2rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-3);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.ftxt__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-3);
  font-size: 10.5px;
}
.ftxt__dots { display: inline-flex; gap: 5px; }
.ftxt__dots i { width: 9px; height: 9px; border-radius: 99px; background: var(--line-2); }
.ftxt__dots i:first-child { background: var(--accent); }
.ftxt__hint { margin-left: auto; letter-spacing: .08em; }
.ftxt__body { padding: 8px 0; }
.ftxt details { border-bottom: 1px dashed var(--line); }
.ftxt details:last-child { border-bottom: 0; }
.ftxt summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-2);
  transition: color .25s;
}
.ftxt summary::-webkit-details-marker { display: none; }
.ftxt summary::before { content: '▸'; color: var(--accent); transition: transform .3s var(--ease); }
.ftxt details[open] summary::before { transform: rotate(90deg); }
.ftxt summary:hover { color: var(--ink); }
.ftxt details p { padding: 0 20px 16px 40px; max-width: 72ch; color: var(--ink-2); font-size: 14.5px; }

/* ── Field notes ───────────────────────────────────────────────────── */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.note {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-3);
  transition: transform .4s var(--bounce), border-color .4s, box-shadow .4s;
}
.note:hover { transform: translateY(-5px) rotate(-.3deg); border-color: var(--accent); box-shadow: var(--shadow-soft); }
.note__meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-m); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.note__title { font-family: var(--font-d); font-weight: 750; font-size: 1.34rem; line-height: 1.16; letter-spacing: -.015em; }
.note:hover .note__title { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.note__sum { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.note__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); }
.note__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.note__read { font-family: var(--font-s); font-style: italic; font-size: 1rem; color: var(--accent); white-space: nowrap; }

/* ── Contact ───────────────────────────────────────────────────────── */
.cta { padding: clamp(.5rem, 2vh, 1.5rem) 0 clamp(2rem, 5vh, 3.2rem); text-align: center; }
.cta__title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 780;
  letter-spacing: -.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.cta__title em { color: var(--accent); font-size: 1.05em; }
.cta__mail {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(1.35rem, 4.2vw, 3.4rem);
  letter-spacing: -.02em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 3px;
  background-repeat: no-repeat;
  background-position: 0 97%;
  transition: background-size .5s var(--ease), color .3s;
}
.cta__mail:hover { color: var(--accent); background-size: 100% 3px; }
.cta__row { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.cta__note { color: var(--ink-3); font-size: 13.5px; }

.socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: clamp(3rem, 8vh, 5rem);
  background: var(--bg-3);
}
.social {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-left: 1px solid var(--line);
  transition: background-color .3s;
}
.social:first-child { border-left: 0; }
.social:hover { background: var(--bg-2); }
.social__net {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.social__net i { font-style: normal; transition: transform .3s var(--ease); }
.social:hover .social__net i { transform: translate(3px, -3px); }
.social__handle { font-family: var(--font-m); font-size: 12.5px; color: var(--ink); overflow-wrap: anywhere; }
.social__why { font-size: 12px; color: var(--ink-3); }

/* ── Footer ────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); overflow: clip; }
.foot__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: clamp(2.4rem, 6vh, 3.6rem) 0 1.4rem;
}
.foot__col p { font-size: 13px; color: var(--ink-2); }
.foot__col.mono { font-size: 10.5px; letter-spacing: .06em; color: var(--ink-3); text-transform: none; line-height: 2; }
.foot__name {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 750;
  margin-bottom: 8px;
}
.foot__col b.ok { color: var(--green); font-weight: 600; }
.foot__giantin { display: inline-block; white-space: nowrap; }
.foot__col b.amber { color: var(--amber); font-weight: 600; }
.foot__giant {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(3.4rem, 13vw, 11rem); /* JS refits this to the column width */
  line-height: .8;
  letter-spacing: -.03em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-2);
  user-select: none;
  transform: translateY(16%);
}

/* ── Toast ─────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 0);
  z-index: 160;
  padding: 11px 18px;
  border: 1.5px solid var(--green-line);
  border-radius: 99px;
  background: var(--bg-3);
  color: var(--ink);
  font-size: 11px;
  box-shadow: var(--shadow);
  animation: toastIn .4s var(--ease);
}
@keyframes toastIn { from { transform: translate(-50%, 14px); opacity: 0; } }

/* ── noscript ──────────────────────────────────────────────────────── */
.noscript { position: fixed; inset: 0; z-index: 999; background: var(--bg); padding: 90px 8vw; overflow: auto; }
.noscript h1 { font-family: var(--font-d); font-size: 2.4rem; }
.noscript p { margin-top: 12px; max-width: 60ch; color: var(--ink-2); }
.noscript ul { margin-top: 20px; display: grid; gap: 10px; }
.noscript a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .quotes { columns: 2; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .claims__grid { grid-template-columns: repeat(2, 1fr); }
  .claims__cell:nth-child(odd) { border-left: 0; padding-left: 0; }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .oss { grid-template-columns: repeat(2, 1fr); }
  .notes { grid-template-columns: repeat(2, 1fr); }
  .quotes { columns: 1; }
  .tl { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; padding-top: 0; }
  .tl::before { display: none; }
  .tl__item { padding-top: 26px; border-top: 1.5px solid var(--line-2); }
  .tl__item::before { top: -6px; }
  .telemetry { grid-template-columns: 1fr; }
  .socials { grid-template-columns: repeat(2, 1fr); }
  .social:nth-child(3) { border-left: 0; }
  .social { border-top: 1px solid var(--line); }
  .social:nth-child(-n+2) { border-top: 0; }
  .uprail { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .hud__nav, .hud__clock, .hud__avail { display: none; }
  .hud__burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; padding: 108px 0 90px; gap: 3rem; }
  .hero__figure { order: -1; justify-self: start; }
  .polaroid { width: min(280px, 66vw); }
  .henote { left: auto; right: -10px; bottom: -46px; transform: rotate(-4deg) scaleX(-1); }
  .henote span { transform: scaleX(-1); }
  .hero__scrollcue { display: none; }
  .case { grid-template-columns: 1fr; gap: 1.6rem; }
  .case__sticky { position: static; }
  .loop__step { grid-template-columns: 1fr; gap: 1.3rem; padding-left: 34px; }
  .ledger__link { grid-template-columns: 3ch minmax(0, 1fr) auto; grid-template-areas: 'no kind arrow' 'no title arrow'; row-gap: 8px; }
  .ledger__no { grid-area: no; }
  .ledger__kind { grid-area: kind; }
  .ledger__title { grid-area: title; }
  .ledger__arrow { grid-area: arrow; align-self: center; }
  .foot__grid { grid-template-columns: 1fr; gap: 24px; }
  .doodle { display: none; }
  .doodle--keep { display: block; }
  .upcases { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .techwrap { grid-template-columns: 1fr; }
  .joblist li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .joblist time { grid-column: 1; }
  .joblist span.rating { grid-row: 1; grid-column: 2; }

  /* Player becomes a bottom sheet on phones */
  .player {
    left: 8px; right: 8px; bottom: 8px;
    width: auto;
    border-radius: 16px;
  }
  .player__bar { cursor: default; }
  .player__grip { display: none; }
}

@media (max-width: 620px) {
  .quotes { columns: 1; }
  .svc, .oss, .notes { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; }
  .claims__grid { grid-template-columns: 1fr; gap: 28px; }
  .claims__cell { border-left: 0; padding-inline: 0; }
  .socials { grid-template-columns: 1fr; }
  .social { border-left: 0; }
  .social:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .social:first-child { border-top: 0; }
  .case__block { grid-template-columns: 1fr; gap: 4px; }
  .loop__field { grid-template-columns: 1fr; gap: 4px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
}

/* ── Reduced motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rv, .hero__title .w { opacity: 1; transform: none; }
  .schem [data-draw] { stroke-dashoffset: 0 !important; }
  .cadence i, .lang__bar i { transform: none !important; }
  .marquee__track { animation: none; }
  .caret { animation: none; }
  .doodle { animation: none; }
  .av__eyes, .av__arm { animation: none; }
  .aurora i { animation: none; }
  .polaroid__photo { animation: none; transform: scale(1.04); }
  .tilt, .polaroid.tilt { transform: none !important; }
  .spot::before { display: none; }
  .sect__squiggle path { stroke-dashoffset: 0; }
}
