/* ============================================================
   Self-hosted variable fonts. Subset to Latin + the punctuation
   this site uses, and instanced to only the axis ranges the
   stylesheet requests. No external requests, no Google Fonts,
   nothing to disclose in a privacy policy.
   ============================================================ */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono.woff2') format('woff2');
}

/* ============================================================
   lillyadkins.com — "Regrettably Excellent"
   A humble-brag monument. Hand-built, no frameworks, no build step.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: dark;

  --bg:        #06070c;
  --bg-2:      #0a0c14;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.065);
  --line:      rgba(255, 255, 255, 0.10);
  --line-2:    rgba(255, 255, 255, 0.20);

  --ink:       #f6f3ec;
  --ink-dim:   #bcb9c6;
  --muted:     #8a8898;

  --gold:      #e6c583;
  --gold-2:    #b8914d;
  --violet:    #8b6bff;
  --cyan:      #3fe0d0;
  --rose:      #ff6ba8;
  --amber:     #ffb45c;

  --glow:      rgba(230, 197, 131, 0.30);
  --shadow:    0 24px 60px -20px rgba(0, 0, 0, 0.85);

  --ff-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ff-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell:  min(1180px, calc(100% - 2.5rem));
  --radius: 18px;

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg:        #f7f3ea;
  --bg-2:      #efe9dc;
  --surface:   rgba(20, 16, 10, 0.030);
  --surface-2: rgba(20, 16, 10, 0.058);
  --line:      rgba(20, 16, 10, 0.12);
  --line-2:    rgba(20, 16, 10, 0.24);

  --ink:       #14120e;
  --ink-dim:   #4b4740;
  --muted:     #746f65;

  --gold:      #9a7526;
  --gold-2:    #7d5e1a;
  --violet:    #5b3fd6;
  --cyan:      #0f8f84;
  --rose:      #c93f77;
  --amber:     #b9711a;

  --glow:      rgba(154, 117, 38, 0.22);
  --shadow:    0 24px 60px -26px rgba(60, 45, 20, 0.35);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.5s var(--ease-soft), color 0.5s var(--ease-soft);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -0.035em; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
/* The UA stylesheet gives these a 40px side margin. It overflows the grid. */
figure, blockquote, dl, dd, figcaption { margin: 0; }

::selection { background: var(--gold); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, color-mix(in oklab, var(--violet) 12%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg) 100%);
}

.blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
  will-change: transform;
  mix-blend-mode: screen;
}
:root[data-theme="light"] .blob { mix-blend-mode: multiply; opacity: 0.20; filter: blur(78px); }

.blob--a { background: radial-gradient(circle, var(--violet), transparent 62%); top: -16vmax; left: -12vmax; animation: drift-a 34s var(--ease-soft) infinite alternate; }
.blob--b { background: radial-gradient(circle, var(--cyan),   transparent 62%); top: 24vmax;  right: -18vmax; animation: drift-b 41s var(--ease-soft) infinite alternate; }
.blob--c { background: radial-gradient(circle, var(--rose),   transparent 62%); bottom: -22vmax; left: 28vmax;  animation: drift-c 47s var(--ease-soft) infinite alternate; }
.blob--d { background: radial-gradient(circle, var(--gold),   transparent 60%); top: 60vmax;  left: -14vmax; animation: drift-a 39s var(--ease-soft) infinite alternate-reverse; }

@keyframes drift-a { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.22); } }
@keyframes drift-b { to { transform: translate3d(-16vmax, 12vmax, 0) scale(0.82); } }
@keyframes drift-c { to { transform: translate3d(12vmax, -14vmax, 0) scale(1.15); } }

/* Film grain — kills gradient banding, adds texture */
.grain {
  position: fixed;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.30;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}
:root[data-theme="light"] .grain { opacity: 0.16; }

@keyframes grain {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-6%, 4%, 0); }
  40%  { transform: translate3d(4%, -6%, 0); }
  60%  { transform: translate3d(-4%, -4%, 0); }
  80%  { transform: translate3d(6%, 6%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Cursor spotlight */
.spotlight {
  position: fixed;
  z-index: -1;
  width: 40rem; height: 40rem;
  left: 0; top: 0;
  margin: -20rem 0 0 -20rem;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 62%);
  opacity: 0;
  transition: opacity 0.7s var(--ease-soft);
  will-change: transform;
}
body.pointer-fine .spotlight { opacity: 0.55; }

/* Particle constellation */
#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.75;
}

/* ---------- 4. Utilities ---------- */
.shell { width: var(--shell); margin-inline: auto; }
.section { padding: clamp(5rem, 11vw, 9.5rem) 0; position: relative; }
.center  { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 2rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.h-sec {
  font-family: var(--ff-display);
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 40;
  margin-bottom: 1.1rem;
}
.h-sec em { font-style: italic; color: var(--gold); font-variation-settings: "SOFT" 60, "WONK" 1; }

.lede {
  color: var(--ink-dim);
  font-size: clamp(1.02rem, 0.97rem + 0.32vw, 1.2rem);
  max-width: 56ch;
  text-wrap: pretty;
}
.center .lede { margin-inline: auto; }

.sec-head { margin-bottom: clamp(2.8rem, 6vw, 4.5rem); }

/* Buttons */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: #0a0a0f;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.93rem;
  letter-spacing: -0.005em;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.6) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn:hover { box-shadow: 0 14px 34px -10px var(--glow); }
.btn:hover::after { transform: translateX(120%); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold), 0 14px 34px -16px var(--glow); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
/* text-align does not centre flex children — these need it explicitly */
.center .btn-row,
.hero .btn-row,
.contact .btn-row,
.page-head .btn-row { justify-content: center; }

/* Glass card */
.card {
  position: relative;
  padding: 1.9rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: box-shadow 0.45s var(--ease), background-color 0.45s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--gold) 16%, transparent), transparent 62%);
  pointer-events: none;
}
.card:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.card:hover::before { opacity: 1; }

/* Reveal-on-scroll.
   Gated behind .js (set by an inline script in <head>) so that with
   JavaScript disabled the content is simply visible rather than stranded
   at opacity 0. Progressive enhancement, not a hard dependency. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity   0.9s var(--ease) var(--rd, 0s),
    transform 0.9s var(--ease) var(--rd, 0s),
    filter    0.9s var(--ease) var(--rd, 0s);
  filter: blur(6px);
  will-change: opacity, transform;
}
.js [data-reveal].shown { opacity: 1; transform: none; filter: none; }

/* ---------- 5. Scroll progress + skip link ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 200;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--rose), var(--violet), var(--cyan));
  will-change: transform;
}

.skip {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 300;
  padding: 0.7rem 1.1rem;
  border-radius: 100px;
  background: var(--gold);
  color: #0a0a0f;
  font-weight: 600;
  font-size: 0.85rem;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- 6. Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.15rem 0;
  transition: padding 0.45s var(--ease), background-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.nav.stuck {
  padding: 0.65rem 0;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--ff-display);
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  margin-right: auto;
  transition: opacity 0.3s var(--ease);
}
.brand:hover { opacity: 0.75; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__mark .ring { transform-origin: 50% 50%; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand small {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.1rem;
}

.nav__links { display: flex; align-items: center; gap: 0.2rem; }
.nav__links a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 100px;
  font-size: 0.87rem;
  color: var(--ink-dim);
  transition: color 0.3s var(--ease);
}
.nav__links a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--surface-2);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::before { opacity: 1; transform: none; }
.nav__links a[aria-current="page"] { color: var(--gold); }
.nav__links a span { position: relative; }

.nav__tools { display: flex; align-items: center; gap: 0.45rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--ink-dim);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.icon-btn:hover { color: var(--gold); box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .moon { display: none; }
:root[data-theme="light"] .icon-btn .moon { display: block; }
:root[data-theme="light"] .icon-btn .sun  { display: none; }

.nav__burger { display: none; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  /* bottom padding reserves the band the scroll cue is absolutely placed in,
     so tall hero content can never land on top of it */
  padding: 8rem 0 10rem;
  text-align: center;
}
@media (max-height: 740px) {
  /* .scroll-cue's own `display: flex` is declared later in this file, so this
     needs the extra specificity to win regardless of source order */
  .hero .scroll-cue { display: none; }
  .hero { padding-bottom: 4rem; }
}

.seal { width: clamp(112px, 15vw, 152px); margin: 0 auto 2.4rem; }
.seal__text { transform-origin: 50% 50%; animation: spin 26s linear infinite; }
.seal__mono {
  font-family: var(--ff-display);
  font-size: 30px;
  font-weight: 400;
  fill: var(--gold);
}
.seal__ring-text { font-family: var(--ff-mono); font-size: 8.4px; letter-spacing: 0.34em; fill: var(--ink-dim); text-transform: uppercase; }

.hero__name {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(3.4rem, 15.5vw, 12rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 144;
  margin-bottom: 1.5rem;
}
.hero__name .ln { display: block; overflow: hidden; padding: 0 0.06em; }
.hero__name .ln > span {
  display: block;
  background: linear-gradient(96deg, var(--ink) 12%, var(--gold) 44%, var(--ink) 78%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s var(--ease-soft) infinite;
  will-change: transform;
}
.js .hero__name .ln > span { transform: translate3d(0, 105%, 0) rotate(4deg); }
.hero__name .ln > span.in { transform: none; rotate: 0deg; transition: transform 1.25s var(--ease) var(--d, 0s), rotate 1.25s var(--ease) var(--d, 0s); }
.hero__name .ln:nth-child(2) > span { animation-delay: 1.1s; font-style: italic; font-variation-settings: "SOFT" 70, "WONK" 1, "opsz" 144; }

@keyframes sheen {
  0%, 100% { background-position: 130% 50%; }
  50%      { background-position: -30% 50%; }
}

.hero__role {
  font-family: var(--ff-mono);
  font-size: clamp(0.72rem, 0.66rem + 0.34vw, 0.92rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.9rem;
  min-height: 1.6em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.hero__role b { color: var(--gold); font-weight: 500; }
.hero__role .cursor {
  display: inline-block;
  width: 0.55em; height: 1.05em;
  background: var(--gold);
  vertical-align: -0.16em;
  animation: blink 1.05s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__lede {
  max-width: 44ch;
  margin: 0 auto 2.6rem;
  color: var(--ink-dim);
  text-wrap: balance;
}
.hero__lede b { color: var(--ink); font-weight: 500; }

.scroll-cue {
  position: absolute;
  bottom: 2.2rem; left: 50%;
  translate: -50% 0;
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 3rem;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.4s var(--ease-soft) infinite;
  transform-origin: 50% 0;
}
@keyframes cue {
  0%       { transform: scaleY(0); opacity: 0; }
  35%      { transform: scaleY(1); opacity: 1; }
  100%     { transform: scaleY(1) translateY(3rem); opacity: 0; }
}

/* ---------- 8. Marquee ---------- */
.marquee {
  position: relative;
  padding: 1.6rem 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: slide 46s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translate3d(-50%, 0, 0); } }

.marquee__item {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--ff-display);
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  font-style: italic;
  white-space: nowrap;
  color: var(--ink-dim);
}
.marquee__item::after {
  content: "✦";
  font-style: normal;
  font-size: 0.62em;
  color: var(--gold);
}

/* ---------- 9. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: 2.4rem 1.7rem;
  text-align: center;
  position: relative;
  transition: background-color 0.45s var(--ease);
}
.stat:hover { background: var(--surface-2); }
.stat__num {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 5.6vw, 3.9rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.65rem;
}
.stat__label {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.55rem;
}
.stat__note { font-size: 0.83rem; color: var(--muted); line-height: 1.5; text-wrap: pretty; }

/* ---------- 10. About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 220px 220px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow);
  background: linear-gradient(165deg, color-mix(in oklab, var(--violet) 34%, var(--bg)), color-mix(in oklab, var(--rose) 22%, var(--bg)) 45%, color-mix(in oklab, var(--gold) 30%, var(--bg)));
}
.portrait__inner { position: absolute; inset: 0; }
.portrait__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-size: clamp(6rem, 16vw, 11rem);
  font-style: italic;
  color: color-mix(in oklab, var(--ink) 88%, transparent);
  mix-blend-mode: overlay;
  letter-spacing: -0.05em;
}
.portrait__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(0,0,0,0.14) 3px 4px);
  opacity: 0.5;
}
.portrait__badge {
  position: absolute;
  bottom: 1.1rem; left: 50%;
  translate: -50% 0;
  padding: 0.5rem 1.05rem;
  border-radius: 100px;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

.prose p { margin-bottom: 1.25rem; color: var(--ink-dim); text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .drop::first-letter {
  font-family: var(--ff-display);
  font-size: 3.6em;
  float: left;
  line-height: 0.78;
  padding: 0.06em 0.1em 0 0;
  color: var(--gold);
  font-style: italic;
}

/* ---------- 11. Timeline ---------- */
.timeline { position: relative; padding-left: clamp(1.6rem, 4vw, 2.6rem); }
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6rem; bottom: 0.6rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-2) 8%, var(--line-2) 92%, transparent);
}
.timeline__fill {
  position: absolute;
  left: 0; top: 0.6rem;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--gold), var(--rose), var(--violet));
  box-shadow: 0 0 12px var(--glow);
  will-change: height;
}

.tl-item { position: relative; padding-bottom: clamp(2.6rem, 6vw, 4rem); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: calc(clamp(1.6rem, 4vw, 2.6rem) * -1 - 4.5px);
  top: 0.55rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: box-shadow 0.5s var(--ease), background-color 0.5s var(--ease);
}
.tl-item.shown::before { background: var(--gold); box-shadow: 0 0 0 4px color-mix(in oklab, var(--gold) 18%, transparent); }

.tl-item__year {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.tl-item__title {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2.9vw, 1.85rem);
  font-weight: 400;
  margin-bottom: 0.55rem;
}
.tl-item__body { color: var(--ink-dim); max-width: 60ch; text-wrap: pretty; }

/* ---------- 12. Awards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: 1.15rem;
}

.award { transform-style: preserve-3d; will-change: transform; }
.award__ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(150deg, color-mix(in oklab, var(--gold) 26%, transparent), transparent);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1.15rem;
}
.award__title { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 400; margin-bottom: 0.55rem; }
.award__org {
  font-family: var(--ff-mono);
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.award__body { color: var(--ink-dim); font-size: 0.94rem; text-wrap: pretty; }

/* ---------- 13. Humility gauge ---------- */
.gauge-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.gauge { position: relative; max-width: 400px; margin-inline: auto; width: 100%; }
.gauge__track { fill: none; stroke: var(--line); stroke-width: 13; stroke-linecap: round; }
.gauge__bar {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 13;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 9.42;   /* filled — the no-JS resting state */
  filter: drop-shadow(0 0 10px var(--glow));
  transition: stroke-dashoffset 2.4s var(--ease);
}
.js .gauge__bar { stroke-dashoffset: 314; }   /* JS animates it up from empty */
.gauge__val {
  position: absolute;
  left: 50%; bottom: 8%;
  translate: -50% 0;
  text-align: center;
}
.gauge__val strong {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(3rem, 8vw, 4.6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.gauge__val span {
  font-family: var(--ff-mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.readout { display: grid; gap: 0.9rem; }
.readout__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.readout__row:last-child { border-bottom: 0; }
.readout__row dt { color: var(--ink-dim); font-size: 0.95rem; }
.readout__row dd {
  margin: 0;
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  color: var(--gold);
  white-space: nowrap;
}

/* ---------- 14. Benchmarks table ---------- */
.bench {
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.bench__scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
thead th {
  padding: 1.35rem 1.5rem;
  text-align: left;
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
thead th:nth-child(2) { color: var(--gold); }
tbody td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 0.35s var(--ease); }
tbody tr:hover { background: var(--surface-2); }
tbody td:first-child { color: var(--ink-dim); }
tbody td:nth-child(2) { color: var(--ink); font-weight: 500; }
tbody td:nth-child(3) { color: var(--muted); }
.tick  { color: var(--cyan); margin-right: 0.45rem; }
.cross { color: var(--muted); margin-right: 0.45rem; }

/* ---------- 15. Testimonials ---------- */
.quotes { columns: 3 260px; column-gap: 1.15rem; }
.quote {
  break-inside: avoid;
  margin-bottom: 1.15rem;
  display: inline-block;
  width: 100%;
}
.quote__mark {
  font-family: var(--ff-display);
  font-size: 3.2rem;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.5;
  display: block;
  margin-bottom: 0.5rem;
}
.quote__text {
  font-family: var(--ff-display);
  font-size: 1.14rem;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
  text-wrap: pretty;
}
.quote__by { font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; }
.quote__role { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }

/* ---------- 16. FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 2.6rem 1.3rem 0;
  position: relative;
  font-family: var(--ff-display);
  font-size: clamp(1.08rem, 2.3vw, 1.32rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem; top: 50%;
  width: 11px; height: 11px;
  translate: 0 -50%;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  rotate: 45deg;
  transition: rotate 0.4s var(--ease);
}
.faq details[open] summary::after { rotate: -135deg; }
.faq__body {
  overflow: hidden;
  color: var(--ink-dim);
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.faq details[open] .faq__body { grid-template-rows: 1fr; }
.faq__body > div { min-height: 0; }
.faq__body p { padding-bottom: 1.4rem; max-width: 68ch; text-wrap: pretty; }

/* ---------- 17. Contact ---------- */
.contact {
  position: relative;
  border-radius: clamp(20px, 4vw, 34px);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.6rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-2);
  background:
    radial-gradient(680px 400px at 50% 0%, color-mix(in oklab, var(--gold) 15%, transparent), transparent 70%),
    var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.contact__mail {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 5.4vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 0.5rem 0 2rem;
  background: linear-gradient(96deg, var(--ink), var(--gold), var(--ink));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s var(--ease-soft) infinite;
  overflow-wrap: anywhere;
}

/* ---------- 18. Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
  font-size: 0.9rem;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2.5rem;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; }
.footer__nav a { color: var(--ink-dim); transition: color 0.3s var(--ease); }
.footer__nav a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
}
.footer__note {
  margin-top: 1.6rem;
  padding: 1.05rem 1.25rem;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.footer__note b { color: var(--ink-dim); font-weight: 600; }

/* ---------- 19. Interior page header ---------- */
.page-head {
  padding: clamp(9rem, 18vw, 13rem) 0 clamp(3rem, 7vw, 5rem);
  text-align: center;
}
.page-head h1 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(2.9rem, 10vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 100;
  margin-bottom: 1.3rem;
}
.page-head h1 em { font-style: italic; color: var(--gold); }

/* ---------- 20. Ventures ---------- */
.vent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.15rem;
}
.vent { display: flex; flex-direction: column; padding: 0; }
.vent__vis {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(150deg, color-mix(in oklab, var(--violet) 30%, var(--bg)), color-mix(in oklab, var(--cyan) 20%, var(--bg)));
}
.vent:nth-child(3n+2) .vent__vis { background: linear-gradient(150deg, color-mix(in oklab, var(--rose) 30%, var(--bg)), color-mix(in oklab, var(--amber) 22%, var(--bg))); }
.vent:nth-child(3n+3) .vent__vis { background: linear-gradient(150deg, color-mix(in oklab, var(--gold) 32%, var(--bg)), color-mix(in oklab, var(--violet) 20%, var(--bg))); }
.vent__vis::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 42%, rgba(255,255,255,0.16) 50%, transparent 58% 100%);
  animation: spin 14s linear infinite;
}
.vent__glyph {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  color: color-mix(in oklab, var(--ink) 86%, transparent);
  mix-blend-mode: overlay;
  z-index: 1;
}
.vent__body { padding: 1.55rem 1.6rem 1.75rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.vent__body h3 { font-family: var(--ff-display); font-size: 1.28rem; font-weight: 400; }
.vent__meta { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.vent__body p { color: var(--ink-dim); font-size: 0.93rem; text-wrap: pretty; }

.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: 100px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink-dim);
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--live  { color: var(--cyan); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--cyan) 42%, transparent); }
.badge--live::before { animation: pulse 2.1s var(--ease-soft) infinite; }
.badge--soon  { color: var(--amber); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--amber) 42%, transparent); }
.badge--myth  { color: var(--violet); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--violet) 42%, transparent); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  70%      { box-shadow: 0 0 0 6px transparent; opacity: 0.55; }
}

/* ---------- 21. Press ---------- */
.press-list { display: grid; gap: 1rem; }
.press-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
  padding: 1.7rem;
}
.press-item__src {
  font-family: var(--ff-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.7;
}
.press-item__date { color: var(--muted); display: block; letter-spacing: 0.08em; }
.press-item h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 400;
  margin-bottom: 0.55rem;
  text-wrap: pretty;
}
.press-item p { color: var(--ink-dim); font-size: 0.94rem; text-wrap: pretty; }

/* ---------- 22. Colophon / legal prose ---------- */
.doc { max-width: 760px; margin-inline: auto; }
.doc h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 400;
  margin: 3rem 0 1rem;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.08rem; font-weight: 600; margin: 1.9rem 0 0.6rem; color: var(--gold); }
.doc p, .doc li { color: var(--ink-dim); margin-bottom: 1rem; text-wrap: pretty; }
.doc ul { margin: 0 0 1.4rem; padding-left: 1.3rem; list-style: disc; }
.doc li { margin-bottom: 0.5rem; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc code {
  font-family: var(--ff-mono);
  font-size: 0.86em;
  background: var(--surface-2);
  padding: 0.16em 0.42em;
  border-radius: 5px;
  color: var(--gold);
}
.doc a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc a:hover { color: var(--ink); }

.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2rem 0;
}
.spec div { background: var(--bg); padding: 1.4rem; }
.spec dt { font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.spec dd { margin: 0; font-family: var(--ff-display); font-size: 1.5rem; color: var(--gold); }

/* ---------- 23. Easter eggs ---------- */
#confetti {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  display: none;
}
#confetti.on { display: block; }

.toast {
  position: fixed;
  left: 50%; bottom: 2rem;
  translate: -50% 0;
  z-index: 400;
  padding: 0.9rem 1.5rem;
  border-radius: 100px;
  background: var(--gold);
  color: #0a0a0f;
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(140%);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  text-align: center;
  max-width: calc(100% - 2rem);
}
.toast.on { opacity: 1; transform: none; }

body.humility-max { animation: hue 5s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }

/* ---------- 24. Responsive ---------- */
@media (max-width: 940px) {
  .about, .gauge-wrap { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; margin-inline: auto; }
  .quotes { columns: 2 240px; }
}

@media (max-width: 720px) {
  :root { --shell: calc(100% - 2rem); }

  .nav__links {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 5.5rem 1.5rem 2rem;
    background: color-mix(in oklab, var(--bg) 96%, transparent);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 1px 0 var(--line);
    clip-path: inset(0 0 100% 0);
    /* clip-path alone leaves this full-width overlay sitting over the nav
       controls in some engines' hit-testing. Belt and braces. */
    pointer-events: none;
    transition: clip-path 0.5s var(--ease);
  }
  .nav__links.open { clip-path: inset(0 0 0 0); pointer-events: auto; }
  .nav__links a { padding: 0.85rem 1rem; font-size: 1.02rem; }

  .nav__burger {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--line);
    position: relative;
    z-index: 2;
  }
  .nav__burger i {
    display: block;
    width: 16px; height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
  }
  .nav__burger i:nth-child(1) { transform: translateY(-4.5px); }
  .nav__burger i:nth-child(3) { transform: translateY(4.5px); }
  .nav__burger[aria-expanded="true"] i:nth-child(1) { transform: rotate(45deg); }
  .nav__burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] i:nth-child(3) { transform: rotate(-45deg); }

  .quotes { columns: 1; }
  .press-item { grid-template-columns: 1fr; gap: 0.85rem; }
  .stat { padding: 1.9rem 1.2rem; }
  .card { padding: 1.5rem; }
  .hero { padding-top: 7rem; }
  .seal { margin-bottom: 1.8rem; }
}

/* ---------- 25. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .hero__name .ln > span { transform: none !important; rotate: 0deg !important; }
  .grain, #stars, .spotlight { display: none; }
  .gauge__bar { transition: none; }
}

@media print {
  .nav, .ambient, .grain, #stars, .spotlight, .progress, .scroll-cue, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------- 26. A11y helper ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
