/* =========================================================
   RAVINDRA SISODIA — SHARED STYLES
   Swiss editorial system, OKLCH tokens, restrained palette
   ========================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11", "tnum";
  line-height: 1.5;
}
body.loading { overflow: hidden; height: 100vh; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--paper); }

/* ----- tokens ----- */
:root {
  --paper:      oklch(0.965 0.014 75);
  --paper-2:    oklch(0.93  0.014 75);
  --paper-3:    oklch(0.88  0.016 75);
  --ink:        oklch(0.18  0.009 60);
  --ink-2:      oklch(0.32  0.008 60);
  --muted:      oklch(0.55  0.008 65);
  --muted-2:    oklch(0.72  0.008 65);
  --line:       oklch(0.82  0.014 75);
  --line-2:     oklch(0.89  0.012 75);
  --orange:     oklch(0.68  0.197 42);
  --orange-2:   oklch(0.92  0.045 50);
  --green:      oklch(0.58  0.155 145);

  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:   'Bodoni Moda', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  --d-xxl: clamp(72px, 14vw, 240px);
  --d-xl:  clamp(56px, 10vw, 168px);
  --d-lg:  clamp(40px, 6.4vw, 112px);
  --d-md:  clamp(28px, 3.4vw, 56px);
  --d-sm:  clamp(22px, 2.2vw, 36px);
  --b-xl:  clamp(18px, 1.42vw, 24px);
  --b-lg:  clamp(16px, 1.1vw, 19px);
  --b-md:  clamp(14px, 0.95vw, 16px);
  --b-sm:  clamp(12px, 0.78vw, 13px);
  --b-xs:  clamp(10px, 0.68vw, 11px);

  --pad:    clamp(80px, 11vw, 200px);
  --gutter: clamp(20px, 3.6vw, 56px);
  --max:    1640px;

  --ease-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-quint: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out:   cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="midnight"] {
  --paper:   oklch(0.16 0.011 65);
  --paper-2: oklch(0.21 0.011 65);
  --paper-3: oklch(0.26 0.011 65);
  --ink:     oklch(0.96 0.014 75);
  --ink-2:   oklch(0.82 0.012 75);
  --muted:   oklch(0.62 0.010 70);
  --muted-2: oklch(0.45 0.010 70);
  --line:    oklch(0.30 0.011 65);
  --line-2:  oklch(0.24 0.011 65);
  --orange:  oklch(0.72 0.205 42);
  --orange-2: oklch(0.32 0.080 42);
}



/* ----- type utilities ----- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1, "zero" 1;
  letter-spacing: 0.01em;
}
.upper { text-transform: uppercase; letter-spacing: 0.14em; }

.star {
  display: inline-block;
  color: var(--orange);
  margin-right: 0.4em;
}
.star::before { content: "✶"; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  letter-spacing: 0.04em;
  background: var(--paper-2);
  color: var(--ink-2);
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill.present { background: transparent; color: var(--orange); border-color: var(--orange); }
.pill.live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--green) 30%, transparent);
}

/* ----- containers & rules ----- */
.section { position: relative; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.eyebrow .num { color: var(--orange); }
.eyebrow .rule {
  width: 32px; height: 1px;
  background: var(--line);
  display: inline-block;
}

/* clip reveal mask for headlines */
.clip-reveal {
  display: inline-block;
  overflow: hidden;
}
.clip-reveal > span {
  display: inline-block;
  transform: translateY(110%);
}
.clip-reveal.in > span {
  transform: translateY(0);
  transition: transform 0.95s var(--ease-quart);
}
.clip-reveal.delay-1 > span { transition-delay: 0.05s; }
.clip-reveal.delay-2 > span { transition-delay: 0.10s; }
.clip-reveal.delay-3 > span { transition-delay: 0.15s; }
.clip-reveal.delay-4 > span { transition-delay: 0.20s; }
.clip-reveal.delay-5 > span { transition-delay: 0.25s; }

/* generic reveal */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-quart), transform 0.9s var(--ease-quart);
}
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.06s; }
.fade-up.d2 { transition-delay: 0.12s; }
.fade-up.d3 { transition-delay: 0.18s; }
.fade-up.d4 { transition-delay: 0.24s; }
.fade-up.d5 { transition-delay: 0.30s; }
.fade-up.d6 { transition-delay: 0.36s; }

/* ----- header / shell ----- */
.shell-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in oklch, var(--paper) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
  transition: transform 0.45s var(--ease-quart);
}
.shell-top.hidden { transform: translateY(-100%); }
.shell-top-l {
  display: flex;
  align-items: center;
  gap: 16px;
}
.shell-mark {
  width: 30px; height: 30px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.shell-id {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.shell-id strong { color: var(--ink); font-weight: 600; }
.shell-id .sep { color: var(--muted); margin: 0 8px; }
.shell-top-r {
  display: flex;
  align-items: center;
  gap: 22px;
}
.shell-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  color: var(--muted);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0.4;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.55; }
  100% { transform: scale(1.8); opacity: 0; }
}
.shell-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: var(--b-sm);
  font-weight: 500;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.shell-cta:hover { background: var(--orange); transform: translateY(-1px); }
.shell-cta .arrow { transition: transform 0.3s var(--ease-out); display: inline-block; }
.shell-cta:hover .arrow { transform: translate(2px, -2px); }
.shell-hamburger {
  display: none;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.shell-hamburger span {
  width: 12px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
.shell-hamburger.open span:first-child { transform: translateY(2.7px) rotate(45deg); }
.shell-hamburger.open span:last-child { transform: translateY(-2.7px) rotate(-45deg); }

.shell-nav {
  position: fixed;
  top: 70px;
  right: var(--gutter);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 99;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  min-width: 240px;
  box-shadow: 0 24px 50px -20px oklch(0.18 0.009 60 / 0.18);
}
.shell-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.shell-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  font-size: var(--b-sm);
  color: var(--ink-2);
  transition: background 0.22s var(--ease-out), padding-left 0.22s var(--ease-out), color 0.22s var(--ease-out);
}
.shell-nav a::after {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}
.shell-nav a:hover {
  background: var(--paper-2);
  padding-left: 22px;
  color: var(--ink);
}

/* ----- footer ----- */
.shell-foot {
  padding: 32px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.shell-foot a:hover { color: var(--orange); }
.shell-foot-links {
  display: flex;
  gap: 22px;
  justify-content: center;
}
.shell-foot-top {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  color: var(--ink);
}
.shell-foot-top:hover { color: var(--orange); }
@media (max-width: 720px) {
  .shell-foot { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .shell-foot-top { justify-self: center; }
}

/* ----- preloader ----- */
.preloader {
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 9998;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 40px var(--gutter);
  transition: opacity 0.7s var(--ease-quart);
}
.preloader.done { opacity: 0; pointer-events: none; }
.preloader-num {
  font-family: var(--font-mono);
  font-size: clamp(64px, 18vw, 240px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 0.85;
}
.preloader-side {
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  color: var(--muted);
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.preloader-side strong { color: var(--ink); display: block; font-weight: 600; }

/* ----- theme toggle (sun / moon) ----- */
.theme-toggle {
  position: fixed;
  bottom: 24px; right: 24px;
  height: 40px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 14px 28px oklch(0.18 0.009 60 / 0.18);
  transition: background 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.theme-toggle:hover { transform: translateY(-2px); }
.theme-toggle .icon {
  width: 18px; height: 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle .icon svg {
  width: 18px; height: 18px;
  transition: transform 0.6s var(--ease-quart);
}
[data-theme="midnight"] .theme-toggle .icon svg { transform: rotate(180deg); }
.theme-toggle .lbl-dark { display: inline; }
.theme-toggle .lbl-light { display: none; }
[data-theme="midnight"] .theme-toggle .lbl-dark { display: none; }
[data-theme="midnight"] .theme-toggle .lbl-light { display: inline; }
@media (max-width: 560px) {
  .theme-toggle {
    bottom: 18px; right: 18px;
    height: 36px;
    padding: 0 14px 0 10px;
    font-size: 10px;
  }
}

/* ----- side ticks (page progress) ----- */
.ticks {
  position: fixed;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tick {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease-out);
}
.tick .line {
  width: 16px; height: 1px;
  background: var(--line);
  transition: width 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.tick.active { color: var(--ink); }
.tick.active .line { width: 30px; background: var(--orange); }
.tick .label { opacity: 0; transition: opacity 0.3s var(--ease-out); }
.tick.active .label { opacity: 1; }
@media (max-width: 1100px) { .ticks { display: none; } }

/* ----- shared work card ----- */
.workcard {
  display: block;
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  padding: 28px;
  aspect-ratio: 4/3;
  overflow: hidden;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.workcard.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.workcard.orange { background: var(--orange); color: var(--paper); border-color: var(--orange); }
.workcard.cream { background: var(--paper-3); }
.workcard:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.workcard.orange:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.workcard-tag {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.workcard-title {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.0;
  max-width: 22ch;
}
.workcard-arrow {
  width: 36px; height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.35s var(--ease-out);
  position: absolute;
  top: 28px; right: 28px;
}
.workcard:hover .workcard-arrow { transform: rotate(-45deg); }

/* ----- responsive base ----- */
@media (max-width: 880px) {
  .shell-hamburger { display: flex; }
  .shell-cta { display: none; }
  .shell-status { display: none; }
  .shell-id .sep, .shell-id strong { display: inline; }
  .shell-id { font-size: 11px; }
  .preloader { padding: 24px var(--gutter); }
  .preloader-num { font-size: clamp(48px, 22vw, 120px); }
}
@media (max-width: 560px) {
  :root { --pad: clamp(64px, 14vw, 100px); --gutter: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   INDEX PAGE — hero, history, impact, work, contact
   ========================================================= */

/* ----- hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(60px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(48px, 6vw, 96px);
  overflow: hidden;
}

/* ---- HERO · GENERATIVE (light) ---- */
.hero.hero-gen {
  --gen-accent: oklch(0.68 0.197 42);
  --gen-weight: 900;
  --gen-track: -0.055em;
  --gen-marq-dur: 28s;
  --gen-marq-dir: normal;
  --gen-bg: var(--paper);
  background: var(--gen-bg);
  transition: background 0.5s var(--ease-out);
}
.hero.hero-gen .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto 18px;
  width: 100%;
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.9vw, 14px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gen-accent);
  font-weight: 700;
  transition: color 0.5s var(--ease-out);
}
.hero.hero-gen .hero-eyebrow::before {
  content: "";
  width: clamp(28px, 4vw, 64px);
  height: 1px;
  background: var(--gen-accent);
  transition: background 0.5s var(--ease-out);
}
.hero.hero-gen .hero-name {
  font-weight: var(--gen-weight);
  letter-spacing: var(--gen-track);
  transition: font-weight 0.4s var(--ease-out), letter-spacing 0.4s var(--ease-out);
}
.hero.hero-gen .hero-name .dot {
  color: var(--gen-accent);
  transition: color 0.5s var(--ease-out);
}
.hero.hero-gen .hero-marquee-track {
  animation-duration: var(--gen-marq-dur);
  animation-direction: var(--gen-marq-dir);
}
.hero.hero-gen .hero-marquee-track .ar { color: var(--gen-accent); }
.hero.hero-gen .hero-pointer .ar { color: var(--gen-accent); }

/* variant tag (top right) */
.hero-variant {
  position: absolute;
  top: clamp(20px, 2.6vw, 36px);
  right: var(--gutter);
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-variant-k { color: var(--muted); }
.hero-variant strong {
  color: var(--gen-accent, var(--orange));
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  transition: color 0.5s var(--ease-out);
}
.hero-variant-roll {
  margin-left: 4px;
  padding: 5px 10px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.15s var(--ease-out);
}
.hero-variant-roll:hover { background: var(--gen-accent, var(--orange)); }
.hero-variant-roll:active { transform: scale(0.97); }
@media (max-width: 600px) {
  .hero-variant { top: 14px; right: 14px; padding: 6px 10px; font-size: 10px; }
  .hero-variant-roll { font-size: 9px; padding: 4px 8px; }
}

/* ---- MANIFESTO · SPOTLIGHT REVEAL (dark) ---- */
.philo.philo-spot {
  --mx: 50%;
  --my: 50%;
  background: oklch(0.11 0.008 60);
  color: oklch(0.96 0.014 75);
  cursor: none;
  position: relative;
  overflow: hidden;
}
.philo.philo-spot .eyebrow { color: oklch(0.75 0.012 75 / 0.55); }
.philo.philo-spot .eyebrow .num { color: var(--orange); }
.philo.philo-spot .eyebrow .rule { background: oklch(0.75 0.012 75 / 0.3); }

.philo.philo-spot .manifesto {
  border-top-color: oklch(0.96 0.014 75 / 0.2);
}
.philo.philo-spot .ma-row {
  border-bottom-color: oklch(0.96 0.014 75 / 0.12);
  opacity: 0.16;
  transition: opacity 0.7s var(--ease-out), padding-left 0.45s var(--ease-out);
}
.philo.philo-spot .ma-row.revealed { opacity: 1; }
.philo.philo-spot .ma-num { color: oklch(0.96 0.014 75 / 0.55); }
.philo.philo-spot .ma-line { color: oklch(0.96 0.014 75); }
.philo.philo-spot .ma-line em { color: var(--orange); }

/* hide the orange bg star on the dark variant */
.philo.philo-spot .philo-bg-star { display: none; }

/* dark mask overlay revealed by cursor */
.philo-spot-glow {
  position: absolute;
  inset: 0;
  background: oklch(0.10 0.006 60 / 0.93);
  pointer-events: none;
  z-index: 4;
  -webkit-mask-image: radial-gradient(circle clamp(220px, 26vw, 360px) at var(--mx) var(--my), transparent 0%, transparent 22%, black 72%);
  mask-image: radial-gradient(circle clamp(220px, 26vw, 360px) at var(--mx) var(--my), transparent 0%, transparent 22%, black 72%);
  transition: opacity 0.5s var(--ease-out);
}
.philo.philo-spot.no-cursor .philo-spot-glow { opacity: 0; }
.philo-spot-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle clamp(220px, 26vw, 360px) at var(--mx) var(--my), var(--orange) 0%, transparent 35%);
  opacity: 0.07;
  pointer-events: none;
}

/* crosshair indicator */
.philo-spot-cursor {
  position: absolute;
  top: var(--my);
  left: var(--mx);
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.philo-spot-cursor::before,
.philo-spot-cursor::after {
  content: "";
  position: absolute;
  background: var(--orange);
}
.philo-spot-cursor::before {
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}
.philo-spot-cursor::after {
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
}
.philo.philo-spot:not(.no-cursor) .philo-spot-cursor { opacity: 1; }

.philo-spot-hint {
  position: absolute;
  bottom: clamp(20px, 2.6vw, 36px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.75 0.012 75 / 0.55);
  opacity: 0.6;
  animation: hint-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
.philo.philo-spot:not(.no-cursor) .philo-spot-hint { opacity: 0 !important; animation: none; }
@keyframes hint-pulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.85; }
}

@media (hover: none), (pointer: coarse) {
  .philo.philo-spot { cursor: auto; }
  .philo.philo-spot .ma-row { opacity: 1; }
  .philo-spot-glow,
  .philo-spot-cursor,
  .philo-spot-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .philo-spot-hint { animation: none; opacity: 0.6; }
}

/* ---- GENZ HERO: photo + name + diagonal marquee + pointers ---- */
.hero-top {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero-photo {
  width: 100%;
  max-width: 380px;
  margin: 0;
  align-self: end;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}
.hero-photo img {
  width: 100%;
  height: auto;
  max-height: clamp(360px, 56vh, 620px);
  object-fit: contain;
  object-position: bottom;
  display: block;
  filter: contrast(1.06) saturate(0.95);
}
[data-theme="midnight"] .hero-photo img {
  filter: contrast(1.04) saturate(0.9) brightness(0.95);
}
@media (max-width: 760px) {
  .hero-photo { max-width: 240px; }
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(76px, 14vw, 240px);
  line-height: 0.82;
  letter-spacing: -0.055em;
  color: var(--ink);
  margin: 0;
  text-transform: none;
}
.hero-name .dot { color: var(--orange); }

@media (max-width: 760px) {
  .hero-top { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .hero-photo { max-width: 260px; }
}

/* diagonal marquee strip — full bleed past edges so rotation doesn't show gaps */
.hero-marquee-diag {
  position: relative;
  width: 140vw;
  margin-left: -20vw;
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: clamp(14px, 1.6vw, 24px) 0;
  overflow: hidden;
  transform: rotate(-5deg);
  transform-origin: center;
}
.hero-marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marq-scroll 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5.6vw, 92px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.hero-marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: clamp(24px, 2.4vw, 44px);
  padding-right: clamp(24px, 2.4vw, 44px);
}
.hero-marquee-track .ar {
  color: var(--orange);
  font-weight: 800;
  font-size: 0.86em;
}
@keyframes marq-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track { animation: none; }
}

/* pointer list */
.hero-pointers {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.8vw, 14px);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 0;
}
.hero-pointer {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 1.4vw, 22px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero-pointer .ar {
  color: var(--orange);
  font-weight: 900;
  flex-shrink: 0;
  font-size: 1.1em;
}
@media (max-width: 600px) {
  .hero-marquee-diag { width: 160vw; margin-left: -30vw; }
  .hero-pointer { font-size: 16px; }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: clamp(80px, 8vw, 140px) clamp(80px, 8vw, 140px);
  background-position: center;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  pointer-events: none;
}

/* meta strip */
.hero-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--gutter);
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}
.hero-meta-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta-v {
  font-size: var(--b-md);
  font-weight: 500;
  color: var(--ink);
}
.hero-meta-v a:hover { color: var(--orange); }

/* main stage: portrait + content */
.hero-main {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.4fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: end;
  position: relative;
  z-index: 2;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: end;
  padding-top: 6px;
}
@media (max-width: 880px) {
  .hero-main { grid-template-columns: 1fr; gap: 32px; }
  .hero-row { grid-template-columns: 1fr; gap: 18px; }
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--ink);
}
.hero-eyebrow .num { color: var(--orange); }

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 11vw, 200px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: var(--ink);
  margin: 0;
}
.hero-name .row { display: block; }
.hero-name .word {
  display: inline-block;
  overflow: hidden;
}
.hero-name .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.0s var(--ease-quart);
}
.hero-name.in .word > span { transform: translateY(0); }
.hero-name.in .row:nth-child(2) .word > span { transition-delay: 0.10s; }

.hero-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-2);
  max-width: 22ch;
}
.hero-line em { font-style: italic; color: var(--orange); font-weight: 500; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}
.hero-tags .role {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--b-sm);
  color: var(--ink-2);
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.hero-tags .role:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* foot strip */
.hero-foot {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.hero-foot-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-foot-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-foot-v {
  font-size: var(--b-md);
  font-weight: 500;
  color: var(--ink);
}
.hero-foot-v small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

@media (max-width: 720px) {
  .hero-meta-row { grid-template-columns: 1fr 1fr; }
  .hero-foot { grid-template-columns: 1fr 1fr; gap: 18px; }
}

/* ----- hero portrait (pixelated, in hero only) ----- */
.hero-portrait {
  position: relative;
  width: 100%;
  max-width: 380px;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.hero-portrait canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  background: var(--paper-3);
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  filter: contrast(1.06) saturate(0.92);
}
.hero-portrait-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-portrait-meta strong { color: var(--ink); font-weight: 500; }
@media (max-width: 880px) {
  .hero-portrait { max-width: 260px; }
}

/* =========================================================
   MAGAZINE COVER HERO — mixed serif + sans, maximalist
   ========================================================= */

/* top masthead rail */
.cover-rail-top, .cover-rail-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.78vw, 12px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  z-index: 2;
}
.cover-rail-top .star,
.cover-rail-bottom .star {
  color: var(--orange);
}
.cover-rail-bottom strong {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.6em;
  letter-spacing: -0.02em;
  color: var(--orange);
  text-transform: none;
  margin: 0 4px;
}
.cover-rail-bottom em {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 1.15em;
  color: var(--ink);
}

/* main grid */
.cover-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(0, 2.5fr) minmax(220px, 1fr);
  gap: clamp(20px, 2.4vw, 56px);
  align-items: start;
  position: relative;
  z-index: 2;
}

.cover-rail-l,
.cover-rail-r {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 36px);
}

/* issue stamp */
.cover-stamp {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.stamp-no {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 4vw, 72px);
  line-height: 0.78;
  color: var(--orange);
  align-self: start;
  padding-top: 4px;
}
.stamp-yr {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(56px, 6vw, 110px);
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.stamp-mo {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.stamp-mo strong { color: var(--ink); font-weight: 600; }

/* section blocks in rails */
.cover-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cover-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cover-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink);
  opacity: 0.6;
}
.cover-feature {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 30px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cover-feature strong {
  font-style: normal;
  font-weight: 800;
}

.cover-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cover-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--line);
  font-family: var(--font-body);
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 500;
  color: var(--ink);
}
.cover-list li .num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--orange);
  font-weight: 700;
}

/* CENTER: name + photo + verb stack */
.cover-main {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0;
}

.cover-name {
  font-family: var(--font-serif);
  color: var(--ink);
  margin: 0;
  line-height: 0.82;
  position: relative;
  z-index: 3;
}
.cover-name .name-r {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 96px);
  letter-spacing: -0.02em;
  padding-left: 6%;
  color: var(--ink);
  position: relative;
}
.cover-name .name-r::before {
  content: "★";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.36em;
  color: var(--orange);
  font-style: normal;
  font-weight: 400;
}
.cover-name .name-s {
  display: block;
  font-weight: 900;
  font-style: normal;
  font-size: clamp(96px, 17vw, 280px);
  letter-spacing: -0.06em;
  margin-top: -0.05em;
  position: relative;
  mix-blend-mode: multiply;
}
.cover-name .name-s::after {
  content: ".";
  color: var(--orange);
}

/* photo bleeds out from beneath the name */
.cover-photo {
  position: relative;
  margin-top: -8%;
  margin-left: 18%;
  width: clamp(220px, 30vw, 460px);
  aspect-ratio: 4/5;
  z-index: 2;
  box-shadow:
    0 1px 0 var(--ink),
    0 30px 60px -22px oklch(0.18 0.009 60 / 0.45);
  background: var(--paper-3);
  overflow: hidden;
}
.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  filter: contrast(1.1) saturate(0.88);
}
.cover-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, oklch(0.18 0.009 60 / 0.35) 100%);
  pointer-events: none;
  mix-blend-mode: multiply;
}
[data-theme="midnight"] .cover-photo img {
  filter: contrast(1.04) saturate(0.85) brightness(0.92);
}
.cover-photo-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 1;
  border: 1px solid var(--ink);
}
.cover-photo-rotated {
  position: absolute;
  top: -16px;
  right: -32px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-12deg);
  z-index: 3;
  box-shadow: 0 8px 24px -8px oklch(0 0 0 / 0.3);
  border: 2px solid var(--paper);
}
.cover-photo-rotated em {
  display: block;
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
}

/* role line under the photo */
.cover-role {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding-left: 18%;
  padding-right: 0;
  border-top: 1px solid var(--ink);
  padding-top: 10px;
}
.cover-role-l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}
.cover-role-l .dot {
  color: var(--orange);
  margin: 0 6px;
}
.cover-role-r {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--muted);
  font-weight: 500;
}

/* right rail: pull quote + stats */
.cover-rail-r { align-self: end; }

.cover-quote {
  position: relative;
  padding-top: 8px;
  border-top: 2px solid var(--ink);
}
.cover-quote-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(80px, 7vw, 140px);
  line-height: 0.6;
  color: var(--orange);
  display: block;
  margin-top: 8px;
  margin-bottom: -0.4em;
}
.cover-quote-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 1.9vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.cover-quote-line em {
  font-style: italic;
  font-weight: 700;
  color: var(--orange);
}
.cover-quote-attr {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.cover-stats {
  display: flex;
  flex-direction: column;
}
.cover-stat {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--font-body);
  align-items: baseline;
}
.cover-stat:first-child { border-top: 1px solid var(--ink); }
.cover-stat-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.cover-stat-v {
  font-size: clamp(13px, 0.95vw, 15px);
  color: var(--ink);
  font-weight: 600;
}
.cover-stat-v em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
}

/* trim/registration marks at corners */
.cover-trim {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 1;
  pointer-events: none;
}
.cover-trim::before, .cover-trim::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.cover-trim::before { width: 1px; height: 100%; left: 50%; }
.cover-trim::after  { width: 100%; height: 1px; top: 50%; }
.cover-trim.tl { top: 6px; left: 6px; }
.cover-trim.tr { top: 6px; right: 6px; }
.cover-trim.bl { bottom: 6px; left: 6px; }
.cover-trim.br { bottom: 6px; right: 6px; }

/* responsive collapse */
@media (max-width: 1024px) {
  .cover-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cover-rail-l, .cover-rail-r {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-self: stretch;
  }
  .cover-name .name-r { padding-left: 0; }
  .cover-photo { margin-left: 0; margin-top: -3%; }
  .cover-role { padding-left: 0; }
}
@media (max-width: 600px) {
  .cover-rail-top, .cover-rail-bottom {
    flex-wrap: wrap;
    gap: 6px 12px;
    justify-content: flex-start;
    font-size: 9px;
  }
  .cover-rail-l, .cover-rail-r { grid-template-columns: 1fr; }
  .cover-photo-rotated { width: 74px; height: 74px; font-size: 11px; top: -10px; right: -16px; }
  .cover-photo-rotated em { font-size: 17px; }
}

/* ----- now widget (top-right of hero) ----- */
.now-widget {
  position: absolute;
  top: 28px;
  right: var(--gutter);
  padding: 12px 16px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  z-index: 3;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.now-widget::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed color-mix(in oklch, var(--ink) 20%, transparent);
  pointer-events: none;
}
.now-row {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.now-k {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.now-time {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.now-loc { color: var(--muted); }
.now-doing {
  color: var(--ink);
  transition: opacity 0.35s var(--ease-out);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.now-blip {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--orange) 25%, transparent);
  animation: now-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}
@keyframes now-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
@media (max-width: 880px) {
  .now-widget {
    position: static;
    width: fit-content;
    margin: 0 auto 24px 0;
  }
}

/* ----- cursor-tracked work preview ----- */
.proj-preview { display: none; }  /* hide inline previews; global one takes over */

.proj-cursor-preview {
  position: fixed;
  top: 0; left: 0;
  width: 320px;
  height: 210px;
  border: 1px solid var(--ink);
  background: var(--paper);
  pointer-events: none;
  opacity: 0;
  z-index: 95;
  overflow: hidden;
  will-change: transform;
  transition: opacity 0.32s var(--ease-out);
  box-shadow: 0 24px 50px -16px oklch(0.18 0.009 60 / 0.32);
}
.proj-cursor-preview.show { opacity: 1; }
.proj-cursor-preview svg { width: 100%; height: 100%; display: block; }
.proj-cursor-preview::after {
  content: "↗ Read case";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 7px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 720px), (hover: none) {
  .proj-cursor-preview { display: none; }
}

/* ----- marquee strip ----- */
.marquee {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
  padding: 20px 0;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 56px);
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: scroll-x 36s linear infinite;
  width: max-content;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee-track .dot { color: var(--orange); }
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

/* ----- intro / statement ----- */
.statement {
  padding: var(--pad) var(--gutter);
  background: var(--paper);
}
.statement-wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  align-items: end;
}
.statement-side {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.7;
  text-transform: uppercase;
}
.statement-side strong { color: var(--ink); display: block; margin-bottom: 8px; }
.statement-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--d-lg);
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--ink);
}
.statement-line em {
  font-style: italic;
  color: var(--orange);
  font-weight: 500;
}
@media (max-width: 880px) {
  .statement-wrap { grid-template-columns: 1fr; gap: 30px; }
}

/* ----- design history (timeline) ----- */
.history {
  padding: var(--pad) var(--gutter);
  background: var(--paper-2);
  border-top: 1px solid var(--ink);
}
.history-wrap { max-width: var(--max); margin: 0 auto; }
.history-h {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
.history-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--d-lg);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
}
.history-title em {
  font-style: italic;
  color: var(--orange);
  font-weight: 500;
}
.history-side {
  font-family: var(--font-mono);
  font-size: var(--b-sm);
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.6;
}
@media (max-width: 880px) {
  .history-h { grid-template-columns: 1fr; gap: 24px; }
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.tl-row {
  display: grid;
  grid-template-columns: 100px 1fr 2.5fr auto;
  gap: 30px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  position: relative;
  transition: padding 0.5s var(--ease-out), background 0.5s var(--ease-out);
}
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-row:hover { padding-left: 12px; background: var(--paper); }
.tl-year {
  font-family: var(--font-mono);
  font-size: var(--b-sm);
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-top: 6px;
  position: sticky;
  top: 28px;
  align-self: start;
  z-index: 2;
}
.tl-row:hover .tl-year { color: var(--orange); }
.tl-titlewrap { display: flex; flex-direction: column; gap: 6px; }
.tl-role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--d-sm);
  letter-spacing: -0.025em;
  line-height: 1.0;
  color: var(--ink);
}
.tl-company {
  font-family: var(--font-mono);
  font-size: var(--b-sm);
  color: var(--orange);
  letter-spacing: 0.02em;
}
.tl-meta {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.tl-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tl-bullet {
  font-size: var(--b-md);
  line-height: 1.5;
  color: var(--ink-2);
}
.tl-bullet strong { color: var(--ink); font-weight: 600; }
.tl-bullet .mk {
  background: linear-gradient(transparent 62%, var(--orange-2) 62%);
  padding: 0 2px;
  color: var(--ink);
  font-weight: 500;
}
.tl-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
@media (max-width: 1024px) {
  .tl-row { grid-template-columns: 70px 1fr; gap: 18px; }
  .tl-bullets, .tl-pills { grid-column: 1 / -1; }
  .tl-pills { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
}

/* ----- impact stats ----- */
.impact {
  padding: var(--pad) var(--gutter);
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--ink);
}
[data-theme="midnight"] .impact { background: var(--paper-3); color: var(--ink); }
.impact-wrap { max-width: var(--max); margin: 0 auto; }
.impact .eyebrow { color: color-mix(in oklch, var(--paper) 55%, transparent); }
.impact .eyebrow .rule { background: color-mix(in oklch, var(--paper) 30%, transparent); }
.impact-h {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--d-md);
  letter-spacing: -0.025em;
  line-height: 1.0;
  margin-bottom: 80px;
  max-width: 18ch;
}
.impact-h em { font-style: italic; color: var(--orange); }

/* tabular monospace dashboard */
.impact-table {
  border-top: 1px solid color-mix(in oklch, var(--paper) 32%, transparent);
}
.impact-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1.6fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid color-mix(in oklch, var(--paper) 12%, transparent);
  align-items: baseline;
  transition: padding-left 0.4s var(--ease-out), background 0.4s var(--ease-out);
}
.impact-row:hover {
  padding-left: 10px;
  background: color-mix(in oklch, var(--paper) 5%, transparent);
}
.impact-row:hover .i-val { color: var(--orange); }
.impact-row.thead {
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in oklch, var(--paper) 30%, transparent);
}
.impact-row.thead > * {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--paper) 55%, transparent);
}
.impact-row.thead:hover { padding-left: 0; background: transparent; }
.i-num {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  letter-spacing: 0.08em;
  color: var(--orange);
  padding-top: 4px;
}
.i-label {
  font-family: var(--font-display);
  font-size: var(--b-xl);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.i-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 48px);
  letter-spacing: -0.025em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: color 0.3s var(--ease-out);
}
.i-val .pre, .i-val .post { color: var(--orange); font-size: 0.55em; font-weight: 500; }
.i-tag, .i-meta {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--paper) 65%, transparent);
}
.i-meta { text-align: right; }
@media (max-width: 880px) {
  .impact-row { grid-template-columns: 36px 1fr; gap: 6px 18px; }
  .impact-row .i-val { grid-column: 1 / -1; padding-left: 54px; }
  .impact-row .i-tag, .impact-row .i-meta { grid-column: 1 / -1; padding-left: 54px; text-align: left; }
  .impact-row.thead { display: none; }
}

/* ----- work index ----- */
.work {
  padding: var(--pad) var(--gutter);
  border-top: 1px solid var(--ink);
  background: var(--paper);
}
.work-wrap { max-width: var(--max); margin: 0 auto; }
.work-h {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  align-items: end;
}
.work-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--d-lg);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
}
.work-title em { font-style: italic; color: var(--orange); font-weight: 500; }
.work-counter {
  font-family: var(--font-mono);
  font-size: var(--b-sm);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: right;
}
.work-counter strong { color: var(--ink); font-weight: 500; }
@media (max-width: 880px) {
  .work-h { grid-template-columns: 1fr; gap: 14px; }
  .work-counter { text-align: left; }
}

.work-list {
  display: grid;
  grid-template-columns: 1fr;
}
.proj {
  display: grid;
  grid-template-columns: 60px 1fr 1.4fr auto;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  position: relative;
  transition: padding 0.5s var(--ease-out);
}
.proj:last-child { border-bottom: 1px solid var(--line); }
.proj::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 0.55s var(--ease-quart);
  z-index: 0;
}
.proj:hover::before { width: 100%; }
.proj > * { position: relative; z-index: 1; transition: color 0.45s var(--ease-out); }
.proj:hover > * { color: var(--paper); }
.proj-num {
  font-family: var(--font-mono);
  font-size: var(--b-sm);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.proj-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--d-md);
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proj-name .yr {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.proj-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.proj-tag {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.proj-tag::before { content: "//"; margin-right: 6px; opacity: 0.5; }
.proj-tag:first-child::before { display: none; }
.proj-go {
  font-family: var(--font-mono);
  font-size: var(--b-sm);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  transition: color 0.3s var(--ease-out);
}
.proj-go .ar {
  width: 30px; height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-quart);
}
.proj:hover .proj-go .ar { transform: rotate(-45deg); background: var(--orange); border-color: var(--orange); color: var(--paper); }
.proj-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(240px, 22vw, 360px);
  height: clamp(160px, 14vw, 230px);
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-quart);
}
.proj:hover .proj-preview {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.proj-preview > svg { width: 100%; height: 100%; }
@media (max-width: 1024px) {
  .proj { grid-template-columns: 40px 1fr auto; gap: 20px; padding: 24px 0; }
  .proj-tags { grid-column: 1 / -1; padding-left: 60px; margin-top: 4px; }
  .proj-preview { display: none; }
}
@media (max-width: 560px) {
  .proj { grid-template-columns: 1fr; gap: 8px; }
  .proj-num { font-size: 11px; }
  .proj-tags, .proj-go { padding-left: 0; }
}

.work-foot {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.work-foot-l {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.work-foot-l strong { color: var(--ink); display: block; margin-bottom: 8px; }
.work-foot-r {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--b-sm);
  color: var(--ink-2);
}
.work-foot-r div { display: flex; gap: 16px; }
.work-foot-r span:first-child {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  color: var(--muted);
  letter-spacing: 0.06em;
  width: 90px;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .work-foot { grid-template-columns: 1fr; }
}

/* ----- philosophy quote ----- */
.philo {
  padding: var(--pad) var(--gutter);
  background: var(--orange);
  color: var(--paper);
  border-top: 1px solid var(--orange);
  position: relative;
  overflow: hidden;
}
.philo-wrap {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.philo .eyebrow { color: color-mix(in oklch, var(--paper) 70%, transparent); }
.philo .eyebrow .rule { background: color-mix(in oklch, var(--paper) 40%, transparent); }
.philo .eyebrow .num { color: var(--paper); }
.philo-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--d-lg);
  letter-spacing: -0.035em;
  line-height: 1.0;
  max-width: 18ch;
}
.philo-text em { font-style: italic; font-weight: 500; }

/* manifesto list */
.manifesto {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid color-mix(in oklch, var(--paper) 30%, transparent);
  max-width: 1100px;
}
.ma-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid color-mix(in oklch, var(--paper) 20%, transparent);
  align-items: baseline;
  transition: padding-left 0.45s var(--ease-out);
}
.ma-row:hover { padding-left: 12px; }
.ma-num {
  font-family: var(--font-mono);
  font-size: var(--b-sm);
  letter-spacing: 0.08em;
  color: color-mix(in oklch, var(--paper) 70%, transparent);
}
.ma-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--paper);
}
.ma-line em { font-style: italic; font-weight: 500; }
@media (max-width: 600px) {
  .ma-row { grid-template-columns: 50px 1fr; gap: 16px; padding: 16px 0; }
}
.philo-bg-star {
  position: absolute;
  right: -0.06em;
  bottom: -0.22em;
  font-size: clamp(200px, 30vw, 540px);
  line-height: 0.7;
  opacity: 0.10;
  pointer-events: none;
  user-select: none;
  color: var(--paper);
}

/* ----- skills ----- */
.skills {
  padding: var(--pad) var(--gutter);
  border-top: 1px solid var(--ink);
  background: var(--paper);
}
.skills-wrap { max-width: var(--max); margin: 0 auto; }
.skills-h {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}
.skills-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--d-lg);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
  max-width: 16ch;
}
.skills-title em { font-style: italic; color: var(--orange); font-weight: 500; }
.skills-side {
  font-family: var(--font-mono);
  font-size: var(--b-sm);
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
@media (max-width: 880px) { .skills-h { grid-template-columns: 1fr; gap: 14px; } }

.skills-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 880px) { .skills-cols { grid-template-columns: 1fr; gap: 40px; } }
.sk-col-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 8px;
}
.sk-col-title {
  font-family: var(--font-display);
  font-size: var(--d-sm);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.sk-col-count {
  font-family: var(--font-mono);
  font-size: var(--b-sm);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.sk-list {
  display: flex;
  flex-direction: column;
}
.sk-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
  transition: padding-left 0.4s var(--ease-out);
}
.sk-row:hover { padding-left: 8px; }
.sk-row:hover .sk-name { color: var(--orange); }
.sk-num {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.sk-name {
  font-family: var(--font-display);
  font-size: var(--b-xl);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.3s var(--ease-out);
}
.sk-meta {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ----- education ----- */
.edu {
  padding: var(--pad) var(--gutter);
  border-top: 1px solid var(--ink);
  background: var(--paper-2);
}
.edu-wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px) { .edu-wrap { grid-template-columns: 1fr; gap: 40px; } }
.edu-l { display: flex; flex-direction: column; gap: 22px; }
.edu-deg {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--d-md);
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--ink);
}
.edu-deg em { font-style: italic; color: var(--orange); font-weight: 500; }
.edu-school { font-size: var(--b-xl); color: var(--ink-2); }
.edu-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.edu-r {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.edu-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--b-md);
}
.edu-row span:first-child {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.edu-row span:last-child { color: var(--ink); font-weight: 500; }

/* ----- contact ----- */
.contact {
  padding: var(--pad) var(--gutter);
  border-top: 1px solid var(--ink);
  background: var(--paper);
}
.contact-wrap { max-width: var(--max); margin: 0 auto; }
.contact-eye {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.contact-eye .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
}
.contact-eye .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0.4;
  animation: pulse 2.2s ease-out infinite;
}
.contact-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--d-xl);
  letter-spacing: -0.045em;
  line-height: 0.88;
  color: var(--ink);
  margin-bottom: 56px;
  max-width: 14ch;
}
.contact-head em { font-style: italic; color: var(--orange); font-weight: 500; }
.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 18px 32px 18px 36px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -0.015em;
  transition: background 0.4s var(--ease-quart), transform 0.4s var(--ease-quart);
  margin-bottom: 64px;
}
.contact-cta:hover { background: var(--orange); transform: translateY(-3px); }
.contact-cta .cta-ar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-quart), background 0.35s var(--ease-quart);
}
.contact-cta:hover .cta-ar { transform: rotate(-45deg); background: var(--ink); color: var(--orange); }
.contact-grid {
  border-top: 1px solid var(--line);
  padding-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.cc { display: flex; flex-direction: column; gap: 6px; }
.cc-k {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cc-v { font-size: var(--b-md); color: var(--ink); font-weight: 500; }
.cc-v a { display: inline-flex; align-items: center; gap: 6px; transition: color 0.3s var(--ease-out); }
.cc-v a:hover { color: var(--orange); }
.cc-v a::after {
  content: "↗";
  font-size: 0.85em;
  transition: transform 0.25s var(--ease-out);
}
.cc-v a:hover::after { transform: translate(2px, -2px); }

/* =========================================================
   WORK DETAIL PAGE — shared structure
   ========================================================= */

.detail-back-row {
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--line-2);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  color: var(--muted);
  letter-spacing: 0.04em;
  background: var(--paper);
  margin-top: 64px;
}
.detail-back-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  transition: color 0.25s var(--ease-out);
}
.detail-back-row a:hover { color: var(--orange); }
.detail-back-row .right { color: var(--muted); }
.detail-back-row .right strong { color: var(--ink); font-weight: 500; }

.dp {
  padding: calc(var(--pad) - 30px) var(--gutter) var(--pad);
  background: var(--paper);
}
.dp-wrap { max-width: var(--max); margin: 0 auto; }
.dp-eye {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.dp-eye-l, .dp-eye-r {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dp-eye-r { text-align: right; }
.dp-eye strong { color: var(--ink); font-weight: 500; }
.dp-eye .num { color: var(--orange); }
.dp-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(58px, 11vw, 200px);
  letter-spacing: -0.05em;
  line-height: 0.84;
  color: var(--ink);
  margin-bottom: 56px;
}
.dp-title em { font-style: italic; color: var(--orange); font-weight: 500; }
.dp-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 30px;
  border-top: 1px solid var(--ink);
}
.dp-meta-cell { display: flex; flex-direction: column; gap: 4px; }
.dp-meta-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.dp-meta-v { font-size: var(--b-md); color: var(--ink); font-weight: 500; }
@media (max-width: 720px) {
  .dp-meta { grid-template-columns: 1fr 1fr; }
  .dp-eye { grid-template-columns: 1fr; gap: 8px; }
  .dp-eye-r { text-align: left; }
}

/* ----- big hero canvas (image space) ----- */
.canvas {
  padding: 60px var(--gutter) 0;
  background: var(--paper);
}
.canvas-wrap { max-width: var(--max); margin: 0 auto; }
.canvas-frame {
  background: var(--ink);
  color: var(--paper);
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}
.canvas-frame.light {
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
}
.canvas-frame.orange {
  background: var(--orange);
  color: var(--paper);
}
.canvas-frame > svg { width: 100%; height: 100%; }
.canvas-frame > .frame-label {
  position: absolute;
  top: 18px; left: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
  z-index: 2;
}
.canvas-frame > .frame-stamp {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.5;
  z-index: 2;
}

/* ----- side-by-side image rows ----- */
.story {
  padding: var(--pad) var(--gutter);
  background: var(--paper);
}
.story-wrap { max-width: var(--max); margin: 0 auto; }
.scene {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--gutter);
  padding: 80px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.scene.flip { grid-template-columns: 1.4fr 1fr; }
.scene.flip .scene-visual { order: -1; }
.scene:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 880px) { .scene, .scene.flip { grid-template-columns: 1fr; padding: 50px 0; } .scene.flip .scene-visual { order: 0; } }
.scene-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.scene-num {
  font-family: var(--font-mono);
  font-size: var(--b-sm);
  letter-spacing: 0.04em;
  color: var(--orange);
}
.scene-h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 60px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
}
.scene-h em { font-style: italic; color: var(--orange); font-weight: 500; }
.scene-d {
  font-size: var(--b-lg);
  color: var(--ink-2);
  line-height: 1.45;
  max-width: 38ch;
}
.scene-d strong { color: var(--ink); font-weight: 600; }
.scene-d .mk {
  background: linear-gradient(transparent 62%, var(--orange-2) 62%);
  padding: 0 2px;
  color: var(--ink);
  font-weight: 500;
}
.scene-meta {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.scene-meta strong { color: var(--ink); font-weight: 500; display: block; }
.scene-visual {
  aspect-ratio: 4/3;
  background: var(--paper-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.scene-visual.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.scene-visual.orange { background: var(--orange); color: var(--paper); border-color: var(--orange); }
.scene-visual > svg { width: 100%; height: 100%; }
.scene-visual .stamp {
  position: absolute;
  top: 16px; left: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  z-index: 2;
}
.scene-visual .stamp-r {
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.5;
  z-index: 2;
}

/* ----- big metric band ----- */
.metric-band {
  padding: var(--pad) var(--gutter);
  background: var(--orange);
  color: var(--paper);
  border-top: 1px solid var(--orange);
  position: relative;
  overflow: hidden;
}
.metric-band.dark { background: var(--ink); border-top-color: var(--ink); }
.metric-band-wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) { .metric-band-wrap { grid-template-columns: 1fr; gap: 24px; } }
.metric-band .eyebrow { color: color-mix(in oklch, var(--paper) 65%, transparent); }
.metric-band .eyebrow .rule { background: color-mix(in oklch, var(--paper) 40%, transparent); }
.metric-band .eyebrow .num { color: var(--paper); }
.metric-big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(80px, 14vw, 220px);
  letter-spacing: -0.05em;
  line-height: 0.82;
}
.metric-cap {
  font-size: var(--b-xl);
  line-height: 1.4;
  color: color-mix(in oklch, var(--paper) 88%, transparent);
  max-width: 30ch;
  justify-self: end;
}
.metric-band-bg {
  position: absolute;
  right: -0.06em;
  bottom: -0.3em;
  font-size: clamp(220px, 32vw, 560px);
  line-height: 0.7;
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 880px) { .metric-cap { justify-self: start; } }

/* ----- metric strip (four columns) ----- */
.metrics-strip {
  padding: 0 var(--gutter);
  background: var(--paper);
}
.metrics-strip-wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.ms {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}
.ms:last-child { border-right: none; }
.ms-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 4.5vw, 76px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.ms-num .post, .ms-num .pre { color: var(--orange); font-size: 0.5em; }
.ms-label {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .metrics-strip-wrap { grid-template-columns: 1fr 1fr; }
  .ms:nth-child(2) { border-right: none; }
  .ms:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ----- next project nav ----- */
.next {
  padding: var(--pad) var(--gutter);
  border-top: 1px solid var(--ink);
  background: var(--paper-2);
}
.next-wrap {
  max-width: var(--max);
  margin: 0 auto;
}
.next-eye {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.next-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--ink);
}
.next-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--d-lg);
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--ink);
  transition: color 0.4s var(--ease-out);
}
.next-link:hover .next-name { color: var(--orange); }
.next-name em { font-style: italic; font-weight: 500; }
.next-ar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.5s var(--ease-quart), background 0.5s var(--ease-quart);
}
.next-link:hover .next-ar { transform: rotate(-45deg); background: var(--orange); }
.next-tags {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.next-tag {
  font-family: var(--font-mono);
  font-size: var(--b-xs);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.next-tag::before { content: "//"; margin-right: 6px; opacity: 0.5; }
.next-tag:first-child::before { display: none; }
@media (max-width: 720px) {
  .next-name { font-size: clamp(36px, 9vw, 60px); }
  .next-ar { width: 56px; height: 56px; font-size: 18px; }
}
