/* ═════════════════════════════ TOKENS ═════════════════════════════ */
/* Dark, Linear-inspired: near-black canvas, hairline borders, monochrome accent */
:root {
  --bg: #08090a;
  --bg-2: #0c0d0e;
  --surface: #0f1011;
  --surface-2: #141517;
  --surface-3: #191a1c;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.2);
  --text: #f7f8f8;
  --body: #d0d6e0;
  --muted: #8a8f98;
  --muted-2: #6e737c;
  --dim: #5a5f66;

  --brand: #5e6ad2;
  --brand-hi: #7b86e8;
  --brand-soft: rgba(94, 106, 210, 0.16);
  --brand-glow: rgba(94, 106, 210, 0.42);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --hand: 'Caveat', 'Segoe Script', cursive;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Ambient glow, the way Linear lights its pages from above */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: 70vh; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 100% at 50% -18%, rgba(94, 106, 210, 0.2), transparent 70%),
    radial-gradient(40% 70% at 85% 0%, rgba(94, 106, 210, 0.1), transparent 70%);
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
::selection { background: var(--brand); color: #fff; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: var(--r-md); background: var(--text); color: #08090a; font-weight: 500;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; }
.label {
  margin: 0;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═════════════════════════════ NAV ═════════════════════════════ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px var(--gutter);
  transition: background-color .4s, box-shadow .4s;
}
.nav.is-scrolled {
  background: rgba(8, 9, 10, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.nav__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font: 600 11px/1 var(--mono); letter-spacing: 0.02em;
  transition: transform .5s var(--ease);
}
.nav__logo:hover .nav__avatar { transform: scale(1.08); }

.nav__tabs {
  position: relative; justify-self: center;
  display: flex; align-items: center;
  padding: 3px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav__tabs a {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 7px 14px;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  color: var(--muted);
  transition: color .35s var(--ease);
}
.nav__tabs a:hover { color: var(--text); }
.nav__tabs a.is-pill { color: #08090a; }
.nav__pill {
  position: absolute; top: 3px; bottom: 3px; left: 0;
  width: 0; border-radius: var(--r-md);
  background: var(--text);
  opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
}
html:not(.js) .nav__tabs a.is-active { background: var(--text); color: #08090a; }

.nav__resume {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: var(--r-md);
  background: var(--brand); color: #fff;
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px -12px var(--brand-glow);
  transition: background-color .3s, box-shadow .3s;
}
.nav__resume svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.nav__resume:hover { background: var(--brand-hi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 26px -12px var(--brand-glow); }
.nav__resume:hover svg { transform: translateY(2px); }

/* ═════════════════════════════ HERO ═════════════════════════════ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding: 120px var(--gutter) 28px;
  overflow: hidden;
}
.hero__dots {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 55% 45%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 95% 85% at 55% 45%, #000 45%, transparent 100%);
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 48% 40% at 24% 48%, rgba(8, 9, 10, 0.75), transparent 75%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero__inner {
  align-self: center;
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.hero__chip {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 0 0 clamp(20px, 2.6vw, 32px);
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 500 13px/1 var(--mono);
  color: var(--body);
}
.hero__chip b { color: var(--text); font-weight: 600; }
.hero__chip-sep { width: 1px; height: 13px; background: var(--line-2); }
.pulse {
  position: relative; flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-hi);
}
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--brand-hi);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse { to { transform: scale(3.2); opacity: 0; } }

.hero__title {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 78px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.05em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding: 0 0.06em 0.12em 0;
  margin-bottom: -0.12em;
}
.hero__title .line > span { display: inline-block; }
.hero__title em {
  color: var(--brand-hi);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.02em;
  padding-right: 0.03em;
}
.hero.is-settled .hero__title .line { overflow: visible; }

/* Rotating word — all options stack in one grid cell so the line never jumps */
.rotator { display: inline-grid; vertical-align: top; }
.rotator em {
  grid-area: 1 / 1;
  justify-self: start;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(0.3em) rotate(-1.5deg);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.rotator em.is-in { opacity: 1; transform: none; }
.rotator em.is-out { opacity: 0; transform: translateY(-0.35em) rotate(1.5deg); }

.hero__sub {
  max-width: 48ch;
  margin: clamp(22px, 2.4vw, 30px) 0 0;
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  line-height: 1.65;
  color: var(--muted);
}
.hero__sub a {
  color: var(--text);
  font-weight: 500;
  box-shadow: inset 0 -1px 0 var(--line-3);
  transition: box-shadow .3s;
}
.hero__sub a:hover { box-shadow: inset 0 -1px 0 var(--text); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(26px, 3vw, 36px); }

.hero__stack { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: clamp(28px, 3.4vw, 44px); }
.hand { font-family: var(--hand); font-size: 20px; line-height: 1; color: var(--muted); transform: rotate(-2deg); }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stack li {
  width: 38px; height: 38px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 12.5px/1 var(--font); letter-spacing: -0.02em;
  color: var(--muted);
  transition: transform .4s var(--ease), color .3s, box-shadow .3s;
}
.stack li:hover {
  transform: translateY(-4px);
  color: var(--text);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-3);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Polaroid */
.hero__right { display: flex; justify-content: center; }
.polaroid {
  margin: 0;
  width: min(330px, 100%);
  padding: 14px 14px 16px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 34px 70px -28px rgba(0, 0, 0, 0.95);
  rotate: -3deg;
  transition: rotate .6s var(--ease), translate .6s var(--ease), box-shadow .6s var(--ease);
}
.polaroid:hover {
  rotate: 0deg;
  translate: 0 -8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 44px 70px -30px rgba(20, 20, 30, 0.55);
}
.polaroid__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  border-radius: 2px;
  overflow: hidden;
  background: #e9e9e6;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.polaroid__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid__ph { display: none; padding: 20px; text-align: center; font: 500 12px/1.7 var(--mono); color: #6e737c; }
.polaroid__ph b { color: #08090a; }
.polaroid.no-photo img { display: none; }
.polaroid.no-photo .polaroid__ph { display: block; }
.polaroid figcaption { margin-top: 14px; text-align: center; font-family: var(--hand); font-size: 20px; color: #3a3a38; }

.hero__bottom {
  width: 100%; max-width: var(--max);
  margin: clamp(28px, 4vh, 52px) auto 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 14px 32px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.hero__clients { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; }
.hero__clients b {
  font: 600 17px/1 var(--font);
  letter-spacing: -0.03em;
  color: var(--text);
  opacity: .5;
  transition: opacity .3s;
}
.hero__clients b:hover { opacity: 1; }
.hero__meta { display: flex; align-items: center; gap: 24px; }
.hero__meta time { color: var(--text); font-variant-numeric: tabular-nums; }
@media (hover: none) { .hint-fine { display: none; } }

/* Intro animation */
.js .hero__title .line > span {
  transform: translateY(110%);
  transition: transform 1.1s var(--ease) var(--d, 0s);
}
.js .hero .fade {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.js .hero.is-ready .hero__title .line > span,
.js .hero.is-ready .fade { transform: none; opacity: 1; }

/* ═════════════════════════════ BUTTONS ═════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 48px;
  border: 0; border-radius: var(--r-md);
  font: 500 15px/1 var(--font); letter-spacing: -0.012em;
  white-space: nowrap;
  cursor: pointer;
  transition: translate .45s var(--ease), background-color .3s, box-shadow .3s, color .3s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.btn--primary {
  padding: 0 6px 0 20px;
  background: var(--brand);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 24px -12px var(--brand-glow);
}
.btn--primary:hover {
  background: var(--brand-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 34px -12px var(--brand-glow);
}
.btn__arrow {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: grid; place-items: center; overflow: hidden;
  background: rgba(255, 255, 255, 0.16); color: #fff;
  transition: transform .5s var(--ease);
}
.btn__arrow svg { grid-area: 1 / 1; transition: transform .5s var(--ease); }
.btn__arrow svg:last-child { transform: translateY(-220%); }
.btn--primary:hover .btn__arrow { transform: scale(1.05); }
.btn--primary:hover .btn__arrow svg:first-child { transform: translateY(220%); }
.btn--primary:hover .btn__arrow svg:last-child { transform: none; }

.btn--ghost {
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 13.5px;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-3); }

.copy__swap { display: grid; overflow: hidden; height: 20px; line-height: 20px; }
.copy__swap > span { grid-area: 1 / 1; transition: transform .45s var(--ease); white-space: nowrap; }
.copy__done { transform: translateY(110%); }
.copy.is-copied .copy__label { transform: translateY(-110%); }
.copy.is-copied .copy__done { transform: none; }
.copy__icon { color: var(--muted); transition: color .3s, transform .45s var(--ease); }
.copy:hover .copy__icon { color: var(--text); transform: rotate(-8deg); }

/* ═════════════════════════════ WORK ═════════════════════════════ */
.work { padding: clamp(80px, 11vw, 150px) var(--gutter) clamp(80px, 10vw, 140px); }

.work__head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 24px 48px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.work__title {
  margin: 16px 0 0;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}
.work__intro { max-width: 36ch; margin: 0; color: var(--muted); line-height: 1.55; }

.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

.js .reveal-up { opacity: 0; transform: translateY(48px); }
.js .reveal-up.is-in {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}

/* ─── Card shell ─── */
.card {
  --mx: 50%; --my: 50%; --nx: 0; --ny: 0;
  position: relative;
  isolation: isolate;
  display: flex; flex-direction: column;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.js .card.reveal-up.is-in {
  transition:
    opacity 1s var(--ease) var(--d, 0s),
    transform 1s var(--ease) var(--d, 0s),
    translate .6s var(--ease),
    box-shadow .6s var(--ease);
}
.card:hover {
  translate: 0 -4px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.card--feature { grid-column: 1 / -1; flex-direction: row; }
/* Stacked full-width cards alternate which side the mockup sits on */
.cards .card:nth-child(even) { flex-direction: row-reverse; }
.cards .card:nth-child(even) .card__body { padding: 40px 28px 32px 36px; }

/* Spotlight border that follows the pointer */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 4;
  border-radius: inherit; padding: 1.5px;
  background: radial-gradient(340px circle at var(--mx) var(--my), var(--brand-hi), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .45s;
  pointer-events: none;
}
/* Soft inner glow */
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(94, 106, 210, 0.14), transparent 50%);
  opacity: 0; transition: opacity .45s;
  pointer-events: none;
}
.card:hover::before, .card:hover::after { opacity: 1; }

/* ─── Visual area ─── */
.card__visual {
  position: relative; z-index: 1;
  min-height: 360px;
  aspect-ratio: 16 / 10;
  margin: 10px 10px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card--feature .card__visual { flex: 1.4 1 0; aspect-ratio: auto; min-height: 480px; margin: 10px; }

/* Dot grid inside the card, drifts with the pointer */
.card__visual::before {
  content: ""; position: absolute; inset: -24px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1.3px);
  background-size: 18px 18px;
  translate: calc(var(--nx) * -14px) calc(var(--ny) * -14px);
  transition: translate .9s var(--ease);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
}
.card__visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 115%, rgba(94, 106, 210, 0.3), transparent 65%);
  opacity: .6; transition: opacity .6s var(--ease);
  pointer-events: none;
}
.card:hover .card__visual::after { opacity: 1; }

.layer {
  position: absolute; z-index: 1;
  translate: calc(var(--nx) * var(--depth, 10) * -1px) calc(var(--ny) * var(--depth, 10) * -1px);
  transition: translate .8s var(--ease);
  pointer-events: none;
}
.layer--main { inset: 0; display: grid; place-items: center; }
.layer--main > .mock { transition: transform .8s var(--ease); }
.card:hover .layer--main > .mock { transform: scale(1.035); }

.mock { scale: var(--mock-scale, 1); }

/* ─── Card body ─── */
.card__body {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px 28px 28px;
}
.card--feature .card__body { flex: 1 1 0; padding: 40px 36px 32px 28px; }

.card__meta { display: flex; flex-wrap: wrap; gap: 6px; font: 500 12px/1 var(--mono); color: var(--muted); }
.card__meta span { padding: 6px 9px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); }
.card__meta .card__index { color: var(--brand-hi); background: var(--brand-soft); box-shadow: none; }

.card__title {
  margin: 6px 0 0;
  max-width: 24ch;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.card--feature .card__title { font-size: clamp(28px, 3vw, 42px); max-width: 18ch; }
.card__desc { margin: 0; max-width: 48ch; color: var(--muted); font-size: 15px; line-height: 1.55; }

.card__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-top: auto; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.metrics { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.metrics strong {
  display: block;
  font-size: 26px; font-weight: 600; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transition: color .4s;
}
.metrics span { font: 500 11.5px/1.4 var(--mono); color: var(--muted); }
.card:hover .metrics li:first-child strong { color: var(--brand-hi); }

.card__arrow {
  flex: none; position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color .45s var(--ease), box-shadow .45s, color .45s;
}
.card__arrow svg {
  grid-area: 1 / 1; width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .55s var(--ease);
}
.card__arrow svg:last-child { transform: translate(-160%, 160%); }
.card:hover .card__arrow { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px var(--brand-glow); }
.card:hover .card__arrow svg:first-child { transform: translate(160%, -160%); }
.card:hover .card__arrow svg:last-child { transform: none; }

.card:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

/* "Coming soon" cards — same card, no destination yet */
.card--soon { cursor: default; }
.card--soon:hover { translate: 0 -2px; }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 22%, transparent);
  box-shadow: inset 0 0 0 1px rgba(123, 134, 232, 0.55);
  font: 500 13.5px/1 var(--font); letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
}
.soon__dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-hi);
  box-shadow: 0 0 10px var(--brand-glow);
}
.soon__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--brand-hi);
  animation: pulse 2.4s var(--ease) infinite;
}

/* ═════════════════════════════ MOCKUPS ═════════════════════════════ */
.mock-label { display: block; font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.prime, .insights {
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0, 0, 0, 0.95);
}

/* Prime membership */
.prime { width: 300px; padding: 18px; display: flex; flex-direction: column; gap: 13px; }
.prime__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.prime__head strong { display: block; margin-top: 5px; font-size: 21px; font-weight: 600; letter-spacing: -0.025em; }
.prime__badge {
  flex: none; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  transition: transform .6s var(--ease);
}
.prime__badge svg { width: 15px; height: 15px; fill: currentColor; }
.card:hover .prime__badge { transform: rotate(18deg) scale(1.06); }

.prime__toggle {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  padding: 3px; border-radius: var(--r-md);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px; font-weight: 500; text-align: center; color: var(--muted);
}
.prime__toggle span:not(.prime__knob) { position: relative; z-index: 1; padding: 7px 0; transition: color .4s var(--ease); }
.prime__toggle span:nth-child(2) { color: var(--text); }
.prime__knob {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 4px); border-radius: var(--r-sm);
  background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform .55s var(--ease);
}
.card:hover .prime__knob { transform: translateX(calc(100% + 2px)); transition-delay: .25s; }
.card:hover .prime__toggle span:nth-child(2) { color: var(--muted); transition-delay: .25s; }
.card:hover .prime__toggle span:nth-child(3) { color: var(--text); transition-delay: .25s; }

.prime__plan {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px; border-radius: var(--r-md);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(94, 106, 210, 0.45);
}
.prime__price { display: flex; align-items: baseline; gap: 6px; }
.prime__price b { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.prime__price span { font: 500 11.5px/1 var(--mono); color: var(--muted); }
.prime__save {
  padding: 5px 9px; border-radius: var(--r-sm);
  background: var(--text); color: #08090a;
  font: 600 10px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
  opacity: 0; transform: translateY(4px) scale(.9);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.card:hover .prime__save { opacity: 1; transform: none; transition-delay: .55s; }

.prime__benefits { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.prime__benefits li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--body); }
.prime__benefits i {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); color: transparent;
  transition: background-color .35s, color .35s;
}
.prime__benefits i svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .prime__benefits i { background: var(--brand); color: #fff; }
.card:hover .prime__benefits li:nth-child(1) i { transition-delay: .1s; }
.card:hover .prime__benefits li:nth-child(2) i { transition-delay: .22s; }
.card:hover .prime__benefits li:nth-child(3) i { transition-delay: .34s; }

.prime__cta {
  position: relative; overflow: hidden;
  margin-top: 2px; padding: 11px; border-radius: var(--r-md);
  background: var(--brand); color: #fff;
  text-align: center; font-size: 14px; font-weight: 500;
}
.prime__cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-120%);
}
.card:hover .prime__cta::after { transform: translateX(120%); transition: transform 1s var(--ease) .2s; }

/* Floating chips */
.float {
  border-radius: var(--r-md);
  background: rgba(20, 21, 23, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 22px 40px -20px rgba(0, 0, 0, 0.9);
}
.float--stat { padding: 12px 14px; }
.float--stat strong { display: block; margin: 4px 0 6px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }

.spark { display: block; width: 84px; height: 26px; }
.spark path { fill: none; stroke: var(--brand-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.card:hover .spark path { animation: draw 1.1s var(--ease); }
@keyframes draw { from { stroke-dashoffset: 1; } }

.bars { display: flex; align-items: flex-end; gap: 3px; height: 24px; }
.bars i { width: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); transform-origin: bottom; transition: transform .6s var(--ease); }
.bars i:nth-child(1) { height: 30%; }
.bars i:nth-child(2) { height: 45%; transition-delay: .05s; }
.bars i:nth-child(3) { height: 40%; transition-delay: .1s; }
.bars i:nth-child(4) { height: 70%; transition-delay: .15s; }
.bars i:nth-child(5) { height: 100%; transition-delay: .2s; background: var(--brand-hi); }
.card:hover .bars i { transform: scaleY(1.18); }

.float--toast {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px;
  opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.float--toast strong { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 600; }
.card:hover .float--toast { opacity: 1; transform: none; transition-delay: .35s; }
@media (hover: none) { .float--toast { opacity: 1; transform: none; } }
.toast__check {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(94, 106, 210, 0.18); color: var(--brand-hi);
}
.toast__check svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.float--pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  font: 500 11px/1 var(--mono); color: var(--body);
}
.float--pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-hi); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Phone — onboarding / KYC */
.phone {
  position: relative;
  width: 172px; height: 330px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 32px 14px 14px;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 5px #141517, 0 0 0 6px rgba(255, 255, 255, 0.09), 0 40px 60px -30px rgba(0, 0, 0, 0.95);
}
.phone__notch { position: absolute; top: 11px; left: 50%; width: 52px; height: 14px; margin-left: -26px; border-radius: 999px; background: #000; }
.phone__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.phone__progress i { position: relative; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.phone__progress i::after {
  content: ""; position: absolute; inset: 0;
  background: var(--brand-hi);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
}
.phone__progress i:first-child::after { transform: none; }
.card:hover .phone__progress i:nth-child(2)::after { transform: none; transition-delay: .35s; }
.card:hover .phone__progress i:nth-child(3)::after { transform: none; transition-delay: .75s; }
.phone__q { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.phone__field {
  display: flex; align-items: center;
  padding: 10px 11px; border-radius: var(--r-md);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2);
  font: 12.5px/1 var(--mono); color: var(--text);
}
.caret { width: 1.5px; height: 13px; margin-left: 2px; background: var(--brand-hi); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.phone__steps { display: grid; gap: 7px; margin: 2px 0 0; padding: 0; list-style: none; }
.phone__steps li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.phone__steps i {
  flex: none; width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1); color: transparent;
  transition: background-color .35s, color .35s;
}
.phone__steps i svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.phone__steps .is-done { color: var(--body); }
.phone__steps .is-done i { background: var(--brand); color: #fff; }
.card:hover .phone__steps .is-doing { color: var(--body); }
.card:hover .phone__steps .is-doing i { background: var(--brand); color: #fff; transition-delay: .4s; }
.phone__cta {
  margin-top: auto; padding: 10px; border-radius: var(--r-md);
  background: var(--brand); color: #fff;
  text-align: center; font-size: 12px; font-weight: 500;
}

/* Trading Insights */
.insights { width: 320px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.insights__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.insights__head strong { display: block; margin-top: 5px; font-size: 19px; font-weight: 600; letter-spacing: -0.025em; }
.insights__chip {
  padding: 6px 10px; border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 10.5px/1 var(--mono); color: var(--muted);
}
.insights__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.insights__stats div { padding: 11px 13px; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.insights__stats b { display: block; margin-top: 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.03em; }

.insights__chart { display: flex; align-items: flex-end; gap: 6px; height: 74px; padding: 0 2px; }
.insights__chart i {
  flex: 1; height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: rgba(94, 106, 210, 0.55);
  transform-origin: bottom;
  transform: scaleY(.45);
  transition: transform .7s var(--ease), background-color .4s;
}
.insights__chart i.is-loss { background: rgba(255, 255, 255, 0.14); }
.card:hover .insights__chart i { transform: none; }
.card:hover .insights__chart i:nth-child(2) { transition-delay: .06s; }
.card:hover .insights__chart i:nth-child(3) { transition-delay: .12s; }
.card:hover .insights__chart i:nth-child(4) { transition-delay: .18s; }
.card:hover .insights__chart i:nth-child(5) { transition-delay: .24s; }
.card:hover .insights__chart i:nth-child(6) { transition-delay: .3s; background: var(--brand-hi); }
.card:hover .insights__chart i:nth-child(7) { transition-delay: .36s; }
.card:hover .insights__chart i:nth-child(8) { transition-delay: .42s; }

.insights__tip {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 13px; border-radius: var(--r-md);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(94, 106, 210, 0.4);
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.card:hover .insights__tip { opacity: 1; transform: none; transition-delay: .45s; }
@media (hover: none) { .insights__tip { opacity: 1; transform: none; } }
.insights__tip strong { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 600; line-height: 1.25; }
.insights__bulb {
  flex: none; width: 30px; height: 30px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
}
.insights__bulb svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }


/* ═════════════════════════════ SIDE PROJECTS ═════════════════════════════ */
.side { padding: 0 var(--gutter) clamp(80px, 10vw, 140px); }
.side__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.sp {
  display: flex; flex-direction: column;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.js .sp.reveal-up.is-in {
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s), translate .6s var(--ease), box-shadow .6s var(--ease);
}
.sp:hover { translate: 0 -4px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }

.sp__visual {
  position: relative;
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
  min-height: 210px;
  margin: 10px 10px 0;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.3px);
  background-size: 18px 18px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.sp__visual > * { position: relative; }

.sp__week { display: flex; gap: 6px; }
.sp__week i { flex: 1; height: 26px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.08); transition: background-color .4s var(--ease); }
.sp__week i.is-on { background: var(--brand); }
.sp:hover .sp__week i:nth-child(6) { background: var(--brand); transition-delay: .15s; }
.sp__streak { display: flex; align-items: baseline; gap: 8px; }
.sp__streak strong { font-size: 30px; font-weight: 600; letter-spacing: -0.04em; }
.sp__streak span { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.sp__row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: var(--r-md);
  background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12.5px; color: var(--body);
}
.sp__row b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.sp__row.is-muted { color: var(--muted); }
.sp__tick { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); }
.sp__row.is-muted .sp__tick { background: rgba(255, 255, 255, 0.14); }
.sp__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-hi); }

.sp__range { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.sp__fill { position: absolute; inset: 0 38% 0 0; border-radius: 999px; background: var(--brand); transition: inset .7s var(--ease); }
.sp:hover .sp__fill { inset: 0 22% 0 0; }
.sp__marker { position: absolute; top: -28px; left: 62%; transform: translateX(-50%); transition: left .7s var(--ease); }
.sp:hover .sp__marker { left: 78%; }
.sp__marker b { display: block; padding: 4px 8px; border-radius: var(--r-sm); background: var(--brand); color: #fff; font: 500 10px/1 var(--mono); }
.sp__scale { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--mono); color: var(--muted); }
.sp__verdict {
  align-self: flex-start;
  padding: 7px 11px; border-radius: 999px;
  background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(94, 106, 210, 0.4);
  font-size: 12px; font-weight: 500; color: var(--text);
}

.sp__spend strong { display: block; margin-top: 5px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.sp__bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.sp__bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: rgba(255, 255, 255, 0.13); transform-origin: bottom; transform: scaleY(.5); transition: transform .6s var(--ease), background-color .4s; }
.sp:hover .sp__bars i { transform: none; }
.sp:hover .sp__bars i:nth-child(3) { background: var(--brand-hi); }
.sp__bars i:nth-child(2) { transition-delay: .05s; }
.sp__bars i:nth-child(3) { transition-delay: .1s; }
.sp__bars i:nth-child(4) { transition-delay: .15s; }
.sp__bars i:nth-child(5) { transition-delay: .2s; }

.sp__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px 24px 24px; }
.sp__title { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.03em; }
.sp__desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.sp__facts { display: grid; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.sp__facts li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--body); }
.sp__facts li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.sp__link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: auto; padding-top: 16px;
  font-size: 14px; font-weight: 500;
}
.sp__link { color: var(--brand-hi); }
.sp__link span { transition: transform .4s var(--ease); }
.sp__link:hover span { transform: translate(3px, -3px); }

@media (max-width: 1080px) { .side__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .side__grid { grid-template-columns: minmax(0, 1fr); } }


/* ═════════════════════════════ EARLIER WORK ═════════════════════════════ */
.earlier { padding: 0 var(--gutter) clamp(80px, 10vw, 140px); }
.elist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.elist li { border-bottom: 1px solid var(--line-2); }
.elist a {
  position: relative;
  display: flex; align-items: center; gap: clamp(14px, 2.5vw, 32px);
  padding: clamp(20px, 2.4vw, 28px) clamp(10px, 1.5vw, 20px);
  transition: padding .45s var(--ease), color .3s;
}
.elist a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0; transform: scale(.98);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.elist a:hover::before { opacity: 1; transform: none; }
.elist a:hover { padding-left: clamp(18px, 2.2vw, 30px); }
.elist__num { font: 500 12px/1 var(--mono); color: var(--muted); }
.elist__main { flex: 1; min-width: 0; }
.elist__main strong {
  display: block;
  font-size: clamp(17px, 1.7vw, 22px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25;
}
.elist__desc { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.elist__tag {
  flex: none;
  padding: 6px 10px; border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 11.5px/1 var(--mono); color: var(--muted);
}
.elist__arrow {
  flex: none; display: grid; place-items: center; overflow: hidden;
  width: 40px; height: 40px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color .4s var(--ease), color .4s, box-shadow .4s;
}
.elist__arrow svg {
  grid-area: 1 / 1; width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease);
}
.elist__arrow svg:last-child { transform: translate(-160%, 160%); }
.elist a:hover .elist__arrow { background: var(--brand); color: #fff; box-shadow: 0 10px 22px -12px var(--brand-glow); }
.elist a:hover .elist__arrow svg:first-child { transform: translate(160%, -160%); }
.elist a:hover .elist__arrow svg:last-child { transform: none; }

.foot__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 640px) {
  .elist a { flex-wrap: wrap; gap: 10px 14px; }
  .elist__main { flex-basis: 100%; order: 2; }
  .elist__tag { order: 3; }
  .elist__arrow { order: 4; margin-left: auto; }
}


/* ═════════════════════════════ IMAGE CARDS ═════════════════════════════ */
.card--shot .card__visual--shot {
  display: grid; place-items: center;
  padding: clamp(14px, 2vw, 26px);
  background: var(--surface-2);
}
.card--shot .card__visual--shot::before,
.card--shot .card__visual--shot::after { display: none; }
.card--shot .card__visual--shot img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  border-radius: var(--r-md);
  transition: transform .9s var(--ease), filter .6s;
  filter: saturate(.9) brightness(.95);
}
.card--shot:hover .card__visual--shot img { transform: scale(1.03); filter: none; }

/* ═════════════════════════════ ABOUT ═════════════════════════════ */
.about { padding: 0 var(--gutter) clamp(80px, 10vw, 140px); }
.about__inner {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about__side { position: sticky; top: 100px; display: grid; gap: 20px; }
.about__photo {
  margin: 0; aspect-ratio: 1; overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__meta { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.about__meta li { display: grid; gap: 5px; padding: 13px 15px; background: var(--surface); }
.about__meta span { font: 500 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.about__meta b { font-size: 13.5px; font-weight: 500; }

.about__body { max-width: 68ch; }
.about__title {
  margin: 18px 0 26px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.04em;
}
.about__body p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.72; color: var(--muted); }
.about__lead { font-size: clamp(17px, 1.5vw, 19.5px) !important; color: var(--body) !important; }
.about__body a { color: var(--brand-hi); box-shadow: inset 0 -1px 0 rgba(123, 134, 232, 0.4); transition: box-shadow .3s; }
.about__body a:hover { box-shadow: inset 0 -1px 0 var(--brand-hi); }

.about__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px; margin: 32px 0 0; padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.about__facts strong { display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.about__facts span { display: block; margin-top: 8px; font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.about__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.side__grid--one { grid-template-columns: minmax(0, 1fr); }
.sp--wide { flex-direction: row; }
.sp--wide .sp__visual { flex: 1 1 42%; min-height: 240px; margin: 10px; }
.sp--wide .sp__body { flex: 1 1 58%; justify-content: center; padding: 32px 34px 32px 24px; }

@media (max-width: 900px) {
  .about__inner { grid-template-columns: minmax(0, 1fr); }
  .about__side { position: static; grid-template-columns: 200px minmax(0, 1fr); align-items: start; }
  .sp--wide { flex-direction: column; }
  .sp--wide .sp__visual { margin: 10px 10px 0; }
  .sp--wide .sp__body { padding: 22px 24px 24px; }
}
@media (max-width: 560px) {
  .about__side { grid-template-columns: minmax(0, 1fr); }
  .side__grid--one { grid-template-columns: minmax(0, 1fr); }
}


/* ═════════════════════════════ ID BADGE ═════════════════════════════ */
.hero__right { display: flex; justify-content: center; align-items: flex-start; }

.badge {
  position: relative;
  width: min(300px, 78%);
  padding-top: 86px;                 /* room for the lanyard */
  transform-origin: 50% 8px;
  animation: sway 7s var(--ease) infinite alternate;
  cursor: pointer;
  perspective: 1400px;
}
.badge:hover, .badge:focus-visible { animation-play-state: paused; }
.badge:focus-visible { outline: none; }
@keyframes sway {
  from { transform: rotate(-2.2deg); }
  to   { transform: rotate(2.2deg); }
}

/* Lanyard ribbon + metal clip */
.badge__strap {
  position: absolute; top: 0; left: 50%; z-index: 0;
  width: 26px; height: 78px; margin-left: -13px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 0 40%, rgba(255,255,255,0.12) 40% 60%, rgba(255,255,255,0.05) 60% 100%),
    var(--brand);
  clip-path: polygon(0 0, 100% 0, 66% 100%, 34% 100%);
  opacity: .9;
}
.badge__clip {
  position: absolute; top: 72px; left: 50%; z-index: 2;
  width: 56px; height: 20px; margin-left: -28px;
  border-radius: 5px;
  background: linear-gradient(180deg, #3a3d44, #1b1d21);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), inset 0 0 0 1px rgba(0,0,0,0.6), 0 6px 12px -6px rgba(0,0,0,0.9);
}
.badge__clip::after {
  content: ""; position: absolute; left: 50%; top: 6px;
  width: 22px; height: 7px; margin-left: -11px;
  border-radius: 999px;
  background: #0b0c0d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

/* The flipping card */
.badge__card {
  position: relative;
  aspect-ratio: 300 / 430;
  transform-style: preserve-3d;
  transition: transform 1s var(--ease);
}
.badge:hover .badge__card,
.badge:focus-visible .badge__card { transform: rotateY(180deg); }

.badge__face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)), var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--line-2),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 40px 80px -40px rgba(0,0,0,0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}
/* punch-hole for the clip */
.badge__face::before {
  content: ""; position: absolute; top: 10px; left: 50%;
  width: 46px; height: 8px; margin-left: -23px;
  border-radius: 999px;
  background: #06070800;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.badge__face--back { transform: rotateY(180deg); }

.badge__brand { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.badge__logo {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font: 700 11px/1 var(--font);
}

.badge__photo {
  flex: 1; margin: 14px 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.badge__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  display: block;
  filter: grayscale(1) contrast(1.08) brightness(.95);
  transition: filter .6s var(--ease), transform 1.2s var(--ease);
}
.badge:hover .badge__photo img { transform: scale(1.04); }

.badge__id strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.03em; }
.badge__id .mock-label { margin-top: 5px; }

.badge__hint {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font: 500 10.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-2);
}
.badge__hint svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* Back face */
.badge__role {
  margin-top: 10px;
  font-size: 25px; font-weight: 600; line-height: 1.1; letter-spacing: -0.035em;
  color: var(--text);
}
.badge__meta { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.badge__meta li { display: grid; gap: 4px; }
.badge__meta span { font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.badge__meta b { font-size: 13.5px; font-weight: 500; color: var(--body); }
.badge__barcode {
  margin-top: auto;
  height: 34px; border-radius: 4px;
  background: repeating-linear-gradient(90deg,
    var(--text) 0 2px, transparent 2px 4px,
    var(--text) 4px 5px, transparent 5px 9px,
    var(--text) 9px 12px, transparent 12px 14px);
  opacity: .5;
}
.badge__sign {
  margin-top: 10px;
  font-family: var(--hand); font-size: 22px; line-height: 1;
  color: var(--brand-hi);
}

@media (prefers-reduced-motion: reduce) {
  .badge { animation: none; }
}

/* ═════════════════════════════ WORK RAIL ═════════════════════════════ */
.hero__bottom { align-items: stretch; gap: 16px 28px; }
.rail {
  display: flex; align-items: stretch;
  margin: 0; padding: 0; list-style: none;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px var(--line-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail li {
  position: relative;
  flex: 1 1 0; min-width: 168px;
  padding: 16px 22px 15px;
  transition: background-color .35s var(--ease);
}
.rail li + li { box-shadow: inset 1px 0 0 var(--line); }
.rail li:hover { background: rgba(255, 255, 255, 0.04); }

/* the connecting line, drawn through the dots */
.rail li::after {
  content: ""; position: absolute; left: 0; right: 0; top: 22px;
  height: 1px; background: var(--line-2);
}
.rail li:first-child::after { left: 22px; }
.rail li:last-child::after { right: 22px; }

.rail__dot {
  position: relative; z-index: 1;
  display: block; width: 9px; height: 9px; margin-bottom: 11px;
  border-radius: 50%;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-3), 0 0 0 4px var(--bg);
}
.rail li.is-now .rail__dot {
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--brand-soft), 0 0 16px var(--brand-glow);
}

.rail__year {
  display: flex; align-items: center; gap: 8px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.06em;
  color: var(--muted);
}
.rail__badge {
  padding: 4px 7px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-hi);
  font: 500 9.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; font-style: normal;
}
.rail__co {
  display: block; margin-top: 9px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.025em;
  color: var(--body);
  white-space: nowrap;
}
.rail li.is-now .rail__co { color: var(--text); }
.rail__role { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.hero__clock {
  display: flex; align-items: center; align-self: center;
  font: 500 12px/1 var(--mono); letter-spacing: 0.04em; color: var(--muted); white-space: nowrap;
}
.hero__clock time { color: var(--text); font-variant-numeric: tabular-nums; margin-left: 6px; }

/* ═════════════════════════════ EXPERIENCE ═════════════════════════════ */
.about__sub { margin: 36px 0 18px !important; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.xp { margin: 0; padding: 0 0 0 2px; list-style: none; }
.xp li {
  position: relative;
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 24px;
  padding: 0 0 24px 24px;
  border-left: 1px solid var(--line);
}
.xp li:last-child { padding-bottom: 0; border-left-color: transparent; }
.xp li::before {
  content: ""; position: absolute; left: -4px; top: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-3);
  transition: background-color .35s, box-shadow .35s;
}
.xp li:first-child::before { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.xp__when { font: 500 11px/1.5 var(--mono); letter-spacing: 0.04em; color: var(--muted); padding-top: 1px; }
.xp__what strong { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; }
.xp__what p { margin: 7px 0 0 !important; font-size: 14.5px !important; line-height: 1.6 !important; }

@media (max-width: 900px) {
  .hero__right { justify-content: flex-start; }
  .ticker { width: min(360px, 100%); }
}
@media (max-width: 700px) {
  .xp li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 560px) {
  .rail li { min-width: 150px; padding: 14px 16px 13px; }
  .rail__co { font-size: 14.5px; }
  .rail__role { font-size: 11.5px; }
}


.hobbies { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.hobbies li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 13.5px; font-weight: 500; color: var(--body);
  transition: transform .4s var(--ease), background-color .3s, box-shadow .3s, color .3s;
}
.hobbies li span { font-size: 15px; line-height: 1; }
.hobbies li:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-3); color: var(--text); }

/* ═════════════════════════════ CURSOR CHIP ═════════════════════════════ */
.cursor-chip { position: fixed; top: 0; left: 0; z-index: 80; pointer-events: none; will-change: transform; }
.cursor-chip__inner {
  display: flex; align-items: center; gap: 6px;
  margin: 18px 0 0 18px;
  padding: 10px 14px; border-radius: 999px;
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 24px -10px var(--brand-glow);
  font: 600 13px/1 var(--font); white-space: nowrap;
  opacity: 0; scale: .4;
  transform-origin: top left;
  transition: opacity .25s, scale .4s var(--ease), background-color .3s;
}
.cursor-chip__inner svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cursor-chip.is-on .cursor-chip__inner { opacity: 1; scale: 1; }
@media (hover: none), (pointer: coarse) { .cursor-chip { display: none; } }

/* ═════════════════════════════ FOOTER ═════════════════════════════ */
.foot { padding: 28px var(--gutter) 36px; border-top: 1px solid var(--line); }
.foot__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font: 500 13px/1 var(--mono); color: var(--dim); }
.foot__inner a { color: var(--body); transition: color .3s; }
.foot__inner a:hover { color: var(--brand-hi); }

/* ═════════════════════════════ RESPONSIVE ═════════════════════════════ */
@media (max-width: 1080px) {
  .polaroid { width: min(280px, 100%); }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero__right { justify-content: flex-start; }
  .polaroid { width: min(260px, 70%); rotate: -2deg; }
  .hero__title { font-size: clamp(40px, 7.6vw, 68px); }
}
@media (max-width: 960px) {
  .card--feature,
  .cards .card:nth-child(even) { flex-direction: column; }
  .cards .card:nth-child(even) .card__body { padding: 24px 28px 28px; }
  .card--feature .card__visual { flex: none; min-height: 420px; margin: 10px 10px 0; }
  .card--feature .card__body { padding: 24px 28px 28px; }
}

@media (max-width: 560px) {
  .nav__name { display: none; }
  .nav__tabs a { padding: 8px 11px; font-size: 13px; }
  .hero { padding-top: 100px; }
  .hero__chip { font-size: 12px; gap: 8px; padding: 7px 13px 7px 11px; }
  .stack li { width: 36px; height: 36px; border-radius: 10px; font-size: 11.5px; }
  .polaroid { width: min(240px, 78%); }
  .hero__meta .hint-fine { display: none; }
  .hero__clients { gap: 8px 18px; }
  .hero__clients > span { flex-basis: 100%; }
  .hero__clients b { font-size: 16px; }
  .btn { height: 52px; }
  .card__visual { min-height: 400px; }
  .card--feature .card__visual { min-height: 440px; }
  .card--feature .layer--main { padding-top: 60px; }
  /* Tuck floating chips into the corners so they don't cover the main mockup */
  .layer[style*="top"] { top: 4% !important; }
  .layer[style*="bottom"] { bottom: 4% !important; }
  .layer[style*="left"] { left: 3% !important; }
  .layer[style*="right"] { right: 3% !important; }
  .card__body, .card--feature .card__body { padding: 20px 18px 22px; }
  .mock { --mock-scale: .84; }
  .float { --mock-scale: .8; }
  .metrics { gap: 10px 20px; }
  .metrics strong { font-size: 22px; }
}
@media (max-width: 480px) {
  .nav { grid-template-columns: auto auto; gap: 10px; justify-content: space-between; }
  .nav__logo { display: none; }
  .nav__tabs { justify-self: start; }
  .nav__tabs a { padding: 8px 10px; font-size: 13px; }
  .nav__long { display: none; }
  .nav__resume { height: 36px; padding: 0 13px; font-size: 13px; }
}

/* ═════════════════════════════ 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;
    transition-delay: 0s !important;
  }
  .js .reveal-up, .js .hero .fade, .js .hero__title .line > span { opacity: 1; transform: none; }
  .layer, .card__visual::before { translate: none; }
}

/* Netlify injects a floating "Powered by Netlify" badge iframe */
#nl-badge-frame { display: none !important; }
