:root {
  --paper: #f3f0e8;
  --paper-deep: #e7e2d6;
  --ink: #101612;
  --ink-soft: #3f4943;
  --muted: #6e776f;
  --forest: #123f33;
  --forest-deep: #0b2a22;
  --green: #1e765d;
  --lime: #cfe7b7;
  --gold: #b59558;
  --line: rgba(16, 22, 18, 0.14);
  --white: #fffefa;
  --shadow: 0 28px 70px rgba(27, 38, 31, 0.1);
  --radius: 28px;
  --shell: min(1180px, calc(100vw - 64px));
  --header: 74px;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

img, video { max-width: 100%; }
img { display: block; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

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

::selection { background: var(--lime); color: var(--forest-deep); }

.shell { width: var(--shell); margin-inline: auto; }
.section-pad { padding-block: clamp(76px, 10vw, 148px); }
.skip-link {
  position: fixed;
  left: 20px;
  top: 12px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h1 { font-size: clamp(3.5rem, 8vw, 8.2rem); line-height: 0.92; }
h2 { font-size: clamp(2.35rem, 4.4vw, 5rem); line-height: 1.02; }
h3 { line-height: 1.2; }
p { text-wrap: pretty; }

.eyebrow {
  margin-bottom: 16px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}
.eyebrow-light { color: var(--lime); }
.large-copy {
  margin-bottom: 34px;
  max-width: 920px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 3.2rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.text-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}
.text-link span, .circle-arrow { transition: transform 180ms ease; }
.text-link:hover span { transform: translate(4px, -4px); }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--forest); color: white; box-shadow: 0 12px 30px rgba(18, 63, 51, 0.18); }
.button-primary:hover { background: var(--forest-deep); }
.button-quiet { border-color: var(--line); background: rgba(255,255,255,.42); }
.button-quiet:hover { background: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}
.site-header.scrolled { border-color: var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.wordmark {
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.wordmark-dot { color: var(--green); }
.site-nav { display: flex; gap: clamp(16px, 2.2vw, 34px); align-items: center; }
.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--green);
  transition: right 180ms ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.language-switcher { display: flex; gap: 7px; align-items: center; margin-left: 4px; padding-left: 18px; border-left: 1px solid var(--line); }
.language-switcher a { padding: 4px 5px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; }
.language-switcher a::after { display: none; }
.language-switcher a[aria-current="true"] { color: var(--green); font-weight: 700; }
.menu-toggle { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 54px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 36px; }
.footer-name { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; text-decoration: none; }
.footer-note { max-width: 440px; margin: 10px 0 0; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-links a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer-legal { color: var(--muted); font-size: 0.88rem; }

/* Reveal and motion */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms cubic-bezier(.2,.7,.2,1), transform 640ms cubic-bezier(.2,.7,.2,1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Home */
.home-hero {
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 128px);
}
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr); gap: clamp(50px, 9vw, 130px); align-items: center; }
.hero-kicker { display: flex; gap: 14px; align-items: center; margin-bottom: 34px; color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .13em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #37a776; box-shadow: 0 0 0 8px rgba(55, 167, 118, .13); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 13px rgba(55,167,118,0); } }
.home-hero h1 { max-width: 900px; margin-bottom: 34px; font-size: clamp(3rem, 6vw, 6.25rem); line-height: .96; }
.home-hero h1 em { color: var(--green); font-weight: 500; }
.hero-intro { max-width: 720px; font-size: clamp(1.15rem, 1.6vw, 1.42rem); color: var(--ink-soft); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 38px; }
.hero-aside { position: relative; min-height: 550px; display: grid; place-items: center; }
.orbit {
  position: absolute;
  width: min(100%, 510px);
  aspect-ratio: 1;
  border: 1px solid rgba(18,63,51,.22);
  border-radius: 50%;
}
.orbit::before, .orbit::after { content: ""; position: absolute; inset: 18%; border: 1px solid rgba(18,63,51,.14); border-radius: inherit; }
.orbit::after { inset: 36%; background: var(--forest); box-shadow: var(--shadow); }
.origin-signal { position: absolute; z-index: 2; width: 160px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,254,250,.88); box-shadow: 0 18px 40px rgba(27,38,31,.08); backdrop-filter: blur(10px); }
.origin-signal span { display: block; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.origin-signal strong { display: block; margin-top: 4px; }
.signal-school { top: 6%; right: 5%; }
.signal-volleyball { right: -4%; bottom: 18%; }
.signal-firstaid { left: 0; bottom: 4%; }
.signal-physics { left: -3%; top: 24%; }
.orbit-center { position: relative; z-index: 3; width: 130px; color: white; text-align: center; font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; line-height: 1.1; }
.hero-scroll-note { display: none; }

.manifesto-strip { background: var(--forest-deep); color: white; padding-block: 34px; overflow: hidden; }
.manifesto-track { display: flex; width: max-content; gap: 30px; font-family: "Fraunces", Georgia, serif; font-size: clamp(1.4rem, 2.3vw, 2.6rem); animation: marquee 35s linear infinite; }
.manifesto-track span:nth-child(even) { color: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

.home-section { padding-block: clamp(90px, 12vw, 170px); }
.section-heading { margin-bottom: 48px; }
.section-heading h2 { max-width: 900px; margin-bottom: 0; }
.split-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: end; }
.split-heading > p { max-width: 440px; margin: 0 0 8px; color: var(--muted); }

.featured-layout { display: grid; grid-template-columns: 1.5fr .5fr; gap: 20px; }
.featured-layout .project-card:first-child { grid-row: span 2; min-height: 590px; }
.featured-layout .project-card:not(:first-child) { min-height: 285px; }

.project-card {
  --card-accent: var(--green);
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,254,250,.66);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  text-decoration: none;
  transform-style: preserve-3d;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease, transform 160ms ease;
}
.project-card::before {
  content: "";
  position: absolute;
  width: 320px;
  aspect-ratio: 1;
  right: -130px;
  bottom: -170px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent) 16%, transparent);
  filter: blur(1px);
  transition: transform 400ms ease;
}
.project-card:hover { border-color: color-mix(in srgb, var(--card-accent) 52%, var(--line)); background: var(--white); box-shadow: var(--shadow); }
.project-card:hover::before { transform: scale(1.22); }
.project-card:hover .circle-arrow { transform: translate(4px, -4px); }
.project-card-top, .project-card-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 24px; }
.project-card-bottom { align-items: flex-end; }
.project-card-bottom > div { max-width: 650px; }
.project-card h3 { margin-bottom: 12px; font-family: "Fraunces", Georgia, serif; font-size: clamp(2rem, 3.5vw, 4.5rem); font-weight: 500; letter-spacing: -.04em; }
.project-card p { margin-bottom: 0; color: var(--ink-soft); }
.project-origin { max-width: 510px; padding-top: 30px; font-size: 1rem; }
.project-origin span { color: var(--card-accent); font-weight: 700; }
.project-year { color: var(--muted); font-size: .85rem; }
.circle-arrow { flex: 0 0 auto; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.55); font-size: 1.2rem; }
.project-card-compact { min-height: 310px; }
.project-card-compact h3 { font-size: clamp(1.8rem, 3vw, 3rem); }
.accent-emerald { --card-accent: #10845c; }
.accent-blue { --card-accent: #214fc3; }
.accent-cobalt { --card-accent: #3166e3; }
.accent-amber { --card-accent: #b5741c; }
.accent-red { --card-accent: #b63c36; }
.accent-violet { --card-accent: #6752b8; }
.accent-slate { --card-accent: #526269; }
.accent-gold { --card-accent: #a17d32; }
.accent-coral { --card-accent: #c55d50; }
.accent-purple { --card-accent: #7b3ea4; }
.accent-cyan { --card-accent: #16849a; }
.accent-pink { --card-accent: #b94977; }
.accent-forest { --card-accent: #123f33; }

.status { display: inline-flex; align-items: center; gap: 9px; width: max-content; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.status > span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-active, .status-building { color: #16845e; }
.status-completed { color: #52615a; }
.status-prototype { color: #a17222; }
.status-concept { color: #8a4c78; }
.status-active > span, .status-building > span { animation: pulseStatus 2s ease-in-out infinite; }
@keyframes pulseStatus { 50% { box-shadow: 0 0 0 6px rgba(22,132,94,0); } 0%,100% { box-shadow: 0 0 0 2px rgba(22,132,94,.18); } }

.life-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.life-card { min-height: 440px; padding: clamp(28px, 4vw, 54px); border-radius: var(--radius); overflow: hidden; }
.life-volleyball { background: var(--forest); color: white; }
.life-firstaid { background: var(--paper-deep); border: 1px solid var(--line); }
.life-card .eyebrow { color: var(--lime); }
.life-firstaid .eyebrow { color: var(--green); }
.life-card h3 { max-width: 650px; margin: 40px 0 24px; font-family: "Fraunces", Georgia, serif; font-size: clamp(2.2rem, 4vw, 4.7rem); font-weight: 500; line-height: 1.02; letter-spacing: -.04em; }
.life-card p { max-width: 620px; color: color-mix(in srgb, currentColor 76%, transparent); }
.life-link { display: inline-flex; margin-top: 34px; padding-bottom: 4px; border-bottom: 1px solid currentColor; text-decoration: none; }
.court-lines { position: absolute; }

.about-preview-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(50px, 9vw, 130px); align-items: start; }
.about-preview-grid h2 { position: sticky; top: 120px; }
.about-preview-copy > p:first-child { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.8rem, 3vw, 3.3rem); line-height: 1.2; letter-spacing: -.03em; }
.about-preview-copy > p { color: var(--ink-soft); font-size: 1.08rem; }
.fact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-block: 42px; }
.fact { padding-top: 16px; border-top: 1px solid var(--line); }
.fact strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 2.3rem; font-weight: 500; }
.fact span { color: var(--muted); }

.now-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; border-radius: var(--radius); background: var(--forest-deep); color: white; }
.now-panel > div { padding: clamp(34px, 6vw, 76px); }
.now-panel > div + div { border-left: 1px solid rgba(255,255,255,.16); }
.now-panel h2 { margin-bottom: 24px; }
.now-panel p { color: rgba(255,255,255,.72); }
.now-list { list-style: none; padding: 0; margin: 26px 0 0; }
.now-list li { display: flex; gap: 16px; padding-block: 15px; border-top: 1px solid rgba(255,255,255,.15); }
.now-list span { color: var(--lime); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.now-panel .text-link { color: var(--lime); }

.notes-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--line); }
.note-card { min-height: 320px; padding: 34px; border-right: 1px solid var(--line); text-decoration: none; transition: background 180ms ease; }
.note-card:last-child { border-right: 0; }
.note-card:hover { background: rgba(255,254,250,.55); }
.note-card span { color: var(--muted); font-size: .78rem; }
.note-card h3 { margin: 58px 0 18px; font-family: "Fraunces", Georgia, serif; font-size: 2rem; font-weight: 500; letter-spacing: -.035em; }
.note-card p { color: var(--ink-soft); }

/* Generic page hero */
.page-hero { padding-block: clamp(80px, 11vw, 160px); }
.page-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: end; }
.page-hero h1 { font-size: clamp(3.4rem, 7.5vw, 7.6rem); margin-bottom: 0; }
.page-hero h1 em { color: var(--green); font-weight: 500; }
.page-intro { max-width: 520px; margin-bottom: 12px; color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.3rem); }

/* Projects archive */
.origin-map-section { padding-bottom: clamp(70px, 9vw, 120px); }
.origin-map { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255,254,250,.38); }
.origin-node { min-height: 260px; display: flex; flex-direction: column; padding: 26px; border-right: 1px solid var(--line); text-decoration: none; transition: background 180ms ease, color 180ms ease; }
.origin-node:last-child { border-right: 0; }
.origin-node span { color: var(--green); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.origin-node i { margin: auto 0 14px; color: var(--gold); font-style: normal; font-size: 1.4rem; }
.origin-node strong { font-family: "Fraunces", Georgia, serif; font-size: 1.55rem; font-weight: 500; line-height: 1.05; }
.origin-node small { max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; color: rgba(255,255,255,.72); transition: max-height 240ms ease, opacity 240ms ease, margin 240ms ease; }
.origin-node:hover, .origin-node.active { background: var(--forest); color: white; }
.origin-node:hover span, .origin-node.active span { color: var(--lime); }
.origin-node:hover small, .origin-node.active small { max-height: 100px; opacity: 1; margin-top: 16px; }

.filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 80px; }
.filter-row > span { margin-right: 8px; color: var(--muted); }
.filter-row button { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.filter-row button:hover, .filter-row button.active { background: var(--forest); color: white; border-color: var(--forest); }
.project-group { margin-bottom: 120px; }
.project-group[hidden] { display: none; }
.group-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin-bottom: 32px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.group-heading h2 { margin: 0; font-size: clamp(2.3rem, 4vw, 4rem); }
.group-heading p { max-width: 480px; margin: 0; justify-self: end; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.founder-context { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 40px; padding: clamp(36px, 6vw, 70px); margin-bottom: 120px; border-radius: var(--radius); background: var(--forest); color: white; }
.founder-context h2 { font-size: clamp(2.3rem, 4vw, 4.4rem); }
.founder-context p:not(.eyebrow) { max-width: 700px; color: rgba(255,255,255,.72); }
.founder-context .eyebrow, .founder-context .text-link { color: var(--lime); }
.founder-context .text-link { justify-self: end; }
.timeline-section { margin-bottom: 30px; }
.timeline-scroll { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.timeline-year { min-width: 280px; padding: 28px; border-right: 1px solid var(--line); }
.timeline-year:last-child { border-right: 0; }
.timeline-year > strong { display: block; margin-bottom: 70px; color: var(--green); font-size: .82rem; letter-spacing: .1em; }
.timeline-year a { display: block; padding: 15px 0; border-top: 1px solid var(--line); font-family: "Fraunces", Georgia, serif; font-size: 1.35rem; line-height: 1.1; text-decoration: none; }
.timeline-year a span { display: block; margin-bottom: 6px; color: var(--muted); font-family: "DM Sans", sans-serif; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Project detail */
.project-hero { min-height: calc(90svh - var(--header)); display: grid; align-items: center; padding-block: clamp(70px, 10vw, 130px); overflow: hidden; }
.project-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(60px, 9vw, 130px); align-items: end; }
.back-link { display: inline-block; margin-bottom: 54px; color: var(--muted); font-size: .85rem; text-decoration: none; }
.project-meta-line { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.project-meta-line .status { color: var(--card-accent); }
.project-hero h1 { max-width: 920px; margin-bottom: 30px; font-size: clamp(3.4rem, 7vw, 7.5rem); }
.project-deck { max-width: 770px; color: var(--ink-soft); font-size: clamp(1.18rem, 1.8vw, 1.55rem); }
.project-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 35px; }
.origin-card { position: relative; min-height: 390px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 36px; border: 1px solid color-mix(in srgb, var(--card-accent) 40%, var(--line)); border-radius: var(--radius); background: rgba(255,254,250,.55); }
.origin-card::before { content: ""; position: absolute; width: 270px; aspect-ratio: 1; top: -140px; right: -110px; border-radius: 50%; background: color-mix(in srgb, var(--card-accent) 18%, transparent); }
.origin-card strong { font-family: "Fraunces", Georgia, serif; font-size: clamp(2.3rem, 4vw, 4.5rem); font-weight: 500; letter-spacing: -.04em; }
.origin-card p:not(.eyebrow) { max-width: 430px; color: var(--ink-soft); }
.origin-line { width: 100%; height: 1px; margin: 25px 0 12px; background: var(--line); }
.origin-result { color: var(--card-accent); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.editorial-grid { display: grid; grid-template-columns: .32fr 1.68fr; gap: 40px; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.tag-list li { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: .78rem; }

.project-media { background: var(--forest-deep); color: white; }
.project-media .eyebrow { color: var(--lime); }
.project-media .split-heading > p { color: rgba(255,255,255,.62); }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.media-item { margin: 0; }
.media-item img, .media-item video { width: 100%; border-radius: 20px; background: rgba(255,255,255,.06); box-shadow: 0 22px 50px rgba(0,0,0,.26); }
.media-item img { aspect-ratio: 9/18; object-fit: cover; object-position: top; }
.media-item video { aspect-ratio: 16/10; object-fit: cover; }
.media-item figcaption { margin-top: 13px; color: rgba(255,255,255,.64); font-size: .78rem; }
.media-count-1 { grid-template-columns: 1fr; }
.media-count-1 .media-item img, .media-count-1 .media-item video { aspect-ratio: 16/9; object-fit: contain; }
.media-count-5 { grid-template-columns: repeat(5, 1fr); }

.terminal-section { background: #071812; color: white; }
.terminal-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: center; }
.terminal-grid h2 { margin-bottom: 24px; }
.terminal-grid > div:first-child > p:last-child { color: rgba(255,255,255,.62); }
.terminal-card { padding: 18px; border: 1px solid rgba(207,231,183,.26); border-radius: 22px; background: rgba(255,255,255,.03); }
.terminal-grid > * { min-width: 0; }
.terminal-screen { min-height: 260px; padding: 34px; border-radius: 12px; background: #020906; box-shadow: inset 0 0 35px rgba(118,255,173,.08); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-screen span { color: #6f9a7e; font-size: .7rem; }
.terminal-screen strong { display: block; margin: 50px 0 16px; color: #b9ffcf; font-size: clamp(2rem, 5vw, 4.8rem); font-weight: 500; text-shadow: 0 0 22px rgba(185,255,207,.32); }
.terminal-screen p { color: #87b895; }
.component-buttons { display: flex; max-width: 100%; gap: 7px; flex-wrap: wrap; padding-top: 14px; }
.component-buttons button { border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 8px 13px; background: transparent; color: rgba(255,255,255,.7); cursor: pointer; }
.component-buttons button:hover, .component-buttons button.active { background: var(--lime); color: var(--forest-deep); border-color: var(--lime); }

.project-story { padding-top: 20px; }
.story-section { display: grid; grid-template-columns: .32fr 1.68fr; gap: 40px; padding-block: clamp(70px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.story-index { color: var(--card-accent); font-size: .8rem; font-weight: 700; letter-spacing: .1em; }
.story-copy { max-width: 830px; }
.story-copy h2 { margin-bottom: 32px; font-size: clamp(2.2rem, 4vw, 4.6rem); }
.story-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; }
.story-list { display: grid; gap: 0; padding: 0; margin: 34px 0 0; list-style: none; }
.story-list li { position: relative; padding: 15px 0 15px 28px; border-top: 1px solid var(--line); }
.story-list li::before { content: "↳"; position: absolute; left: 0; color: var(--card-accent); }
.related { background: var(--paper-deep); }

/* About */
.about-editorial { padding-bottom: clamp(90px, 12vw, 170px); }
.story-block { display: grid; grid-template-columns: .42fr 1.1fr .48fr; gap: clamp(30px, 6vw, 80px); align-items: start; padding-block: clamp(70px, 10vw, 140px); border-top: 1px solid var(--line); }
.story-block-number { color: var(--green); font-size: .8rem; letter-spacing: .1em; }
.story-block-copy h2 { margin-bottom: 32px; font-size: clamp(2.5rem, 5vw, 5.6rem); }
.story-block-copy > p { color: var(--ink-soft); font-size: 1.08rem; }
.story-block-wide .story-block-copy { grid-column: 2 / -1; }
.story-block-aside { padding: 24px; border-left: 1px solid var(--line); color: var(--muted); }
.story-block-aside strong { display: block; margin-bottom: 8px; color: var(--ink); font-family: "Fraunces", Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.progression { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.progression span { padding: 20px 10px 20px 0; color: var(--muted); font-size: .82rem; }
.progression span + span { padding-left: 16px; border-left: 1px solid var(--line); }
.progression strong { display: block; margin-bottom: 8px; color: var(--ink); font-family: "Fraunces", Georgia, serif; font-size: 1.4rem; font-weight: 500; }
.recognition-list { margin-top: 36px; border-top: 1px solid var(--line); }
.recognition-item { display: grid; grid-template-columns: .35fr 1.65fr; gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.recognition-item span { color: var(--muted); font-size: .78rem; }
.recognition-item p { margin: 0; }
.random-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 44px; }
.random-card { min-height: 230px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,254,250,.45); }
.random-card span { color: var(--green); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.random-card p { margin: 54px 0 0; font-family: "Fraunces", Georgia, serif; font-size: 1.55rem; line-height: 1.22; }

/* Now */
.now-snapshot { padding-bottom: 140px; }
.now-date { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; }
.now-date::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.snapshot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 50px; }
.snapshot-card { min-height: 360px; padding: clamp(30px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,254,250,.52); }
.snapshot-card:nth-child(1) { background: var(--forest); color: white; }
.snapshot-card:nth-child(1) .eyebrow { color: var(--lime); }
.snapshot-card h2 { margin: 52px 0 28px; font-size: clamp(2.2rem, 4vw, 4rem); }
.snapshot-card ul { padding: 0; margin: 0; list-style: none; }
.snapshot-card li { padding-block: 12px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.snapshot-card p { color: color-mix(in srgb, currentColor 72%, transparent); }
.update-note { margin-top: 46px; color: var(--muted); font-size: .88rem; }

/* Notes */
.notes-index { padding-bottom: 140px; }
.notes-list { border-top: 1px solid var(--line); }
.notes-list a { display: grid; grid-template-columns: .25fr 1.35fr .4fr; gap: 30px; align-items: center; padding-block: 36px; border-bottom: 1px solid var(--line); text-decoration: none; }
.notes-list a:hover h2 { color: var(--green); }
.notes-list span { color: var(--muted); font-size: .78rem; }
.notes-list h2 { margin: 0; font-size: clamp(2rem, 4vw, 4.2rem); transition: color 180ms ease; }
.notes-list p { margin: 0; color: var(--ink-soft); }
.article-hero { max-width: 980px; padding-block: clamp(80px, 11vw, 150px); }
.article-hero h1 { margin: 24px 0 34px; font-size: clamp(3.3rem, 7vw, 7rem); }
.article-hero .article-deck { max-width: 780px; color: var(--ink-soft); font-size: 1.25rem; }
.article-meta { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.article-body { max-width: 790px; padding-bottom: 150px; }
.article-body h2 { margin: 80px 0 28px; font-size: clamp(2.1rem, 4vw, 3.8rem); }
.article-body p, .article-body li { color: var(--ink-soft); font-size: 1.08rem; }
.article-body .pullquote { margin: 70px -90px; padding: 38px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--forest); font-family: "Fraunces", Georgia, serif; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.12; letter-spacing: -.04em; }

/* Legal */
.legal-page { padding-block: 90px 140px; }
.legal-page h1 { margin-bottom: 40px; font-size: clamp(3.3rem, 7vw, 6.6rem); }
.legal-card { max-width: 830px; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,254,250,.6); }
.legal-card h2 { margin-top: 50px; font-size: 2rem; }
.legal-card p, .legal-card li { color: var(--ink-soft); }

/* Responsive */
@media (max-width: 1050px) {
  :root { --shell: min(100% - 44px, 1180px); }
  .home-hero-grid { grid-template-columns: 1fr .75fr; gap: 40px; }
  .origin-map { grid-template-columns: repeat(3, 1fr); }
  .origin-node:nth-child(3) { border-right: 0; }
  .origin-node:nth-child(n+4) { border-top: 1px solid var(--line); }
  .media-count-5 { grid-template-columns: repeat(3, 1fr); }
  .media-count-5 .media-item:nth-child(n+4) { display: none; }
}

@media (max-width: 820px) {
  :root { --header: 68px; }
  .menu-toggle { display: flex; width: 44px; height: 44px; flex-direction: column; gap: 7px; justify-content: center; align-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 18px; height: 1px; background: var(--ink); transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: fixed; inset: var(--header) 0 auto; display: grid; max-height: 0; overflow: hidden; padding: 0 22px; background: var(--paper); border-bottom: 1px solid transparent; transition: max-height 260ms ease, padding 260ms ease, border-color 260ms ease; }
  .site-nav.open { max-height: 460px; padding: 20px 22px 28px; border-color: var(--line); }
  .site-nav a { padding: 8px 0; font-family: "Fraunces", Georgia, serif; font-size: 1.55rem; }
  .site-nav a::after { display: none; }
  .language-switcher { gap: 18px; margin: 10px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .language-switcher a { padding: 0; font-family: "DM Sans", system-ui, sans-serif; font-size: .8rem; }
  .home-hero { min-height: auto; }
  .home-hero-grid, .page-hero-grid, .project-hero-grid, .split-heading, .editorial-grid, .terminal-grid, .about-preview-grid { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: clamp(3rem, 11vw, 5.8rem); }
  .hero-aside { min-height: 480px; max-width: 540px; width: 100%; margin-inline: auto; }
  .hero-scroll-note { display: none; }
  .featured-layout, .life-grid, .snapshot-grid, .project-grid { grid-template-columns: 1fr; }
  .featured-layout .project-card:first-child { min-height: 460px; }
  .featured-layout .project-card:not(:first-child) { min-height: 330px; }
  .about-preview-grid h2 { position: static; }
  .now-panel { grid-template-columns: 1fr; }
  .now-panel > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .notes-row { grid-template-columns: 1fr; }
  .note-card { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .origin-map { grid-template-columns: 1fr 1fr; }
  .origin-node, .origin-node:nth-child(3) { border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
  .origin-node:nth-child(1), .origin-node:nth-child(2) { border-top: 0; }
  .origin-node:nth-child(even) { border-right: 0; }
  .group-heading, .founder-context { grid-template-columns: 1fr; align-items: start; }
  .group-heading p, .founder-context .text-link { justify-self: start; }
  .project-hero { min-height: auto; }
  .origin-card { min-height: 320px; }
  .media-grid, .media-count-5 { grid-template-columns: repeat(2, 1fr); overflow-x: auto; }
  .media-count-5 .media-item:nth-child(n+4) { display: block; }
  .story-block { grid-template-columns: .15fr 1fr; }
  .story-block-aside { grid-column: 2; }
  .story-block-wide .story-block-copy { grid-column: 2; }
  .progression { grid-template-columns: repeat(2, 1fr); }
  .notes-list a { grid-template-columns: .25fr 1.75fr; }
  .notes-list a p { grid-column: 2; }
  .article-body .pullquote { margin-inline: 0; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 32px); --radius: 22px; }
  body { font-size: 15.5px; }
  .section-pad, .home-section { padding-block: 78px; }
  .home-hero { padding-block: 54px 80px; }
  .hero-kicker { align-items: flex-start; }
  .hero-aside { min-height: 360px; }
  .orbit { width: 310px; }
  .origin-signal { width: 132px; padding: 11px 13px; font-size: .82rem; }
  .signal-school { right: 0; }
  .signal-volleyball { right: 0; bottom: 5%; }
  .signal-firstaid { left: 0; bottom: -4%; }
  .signal-physics { left: 0; top: 12%; }
  .orbit-center { width: 95px; font-size: .95rem; }
  .manifesto-track { animation-duration: 24s; }
  .project-card, .project-card-compact { min-height: 330px; padding: 24px; }
  .project-card h3 { font-size: 2.4rem; }
  .project-card-bottom { gap: 12px; }
  .circle-arrow { width: 42px; height: 42px; }
  .life-card { min-height: 390px; }
  .fact-row, .random-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .page-hero { padding-block: 70px 90px; }
  .origin-map { grid-template-columns: 1fr; }
  .origin-node, .origin-node:nth-child(n) { min-height: 180px; border-right: 0; border-top: 1px solid var(--line); }
  .origin-node:first-child { border-top: 0; }
  .origin-node i { margin: 30px 0 10px; }
  .project-group { margin-bottom: 88px; }
  .founder-context { margin-bottom: 90px; }
  .project-hero h1 { font-size: clamp(3.2rem, 15vw, 5.3rem); }
  .back-link { margin-bottom: 40px; }
  .origin-card { min-height: 290px; padding: 26px; }
  .editorial-grid, .story-section { grid-template-columns: 1fr; }
  .story-index { margin-bottom: -15px; }
  .media-grid, .media-count-5 { grid-template-columns: repeat(5, 72vw); scroll-snap-type: x mandatory; padding-bottom: 18px; }
  .media-count-1 { grid-template-columns: 1fr; }
  .media-item { scroll-snap-align: start; }
  .media-count-1 .media-item img, .media-count-1 .media-item video { aspect-ratio: auto; }
  .terminal-screen { min-height: 220px; padding: 24px; }
  .component-buttons { flex-wrap: nowrap; overflow-x: auto; }
  .component-buttons button { flex: 0 0 auto; }
  .story-block { grid-template-columns: 1fr; }
  .story-block-wide .story-block-copy { grid-column: auto; }
  .story-block-aside { grid-column: auto; border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .progression { grid-template-columns: 1fr; }
  .progression span + span { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .recognition-item { grid-template-columns: 1fr; gap: 8px; }
  .snapshot-card { min-height: 320px; }
  .notes-list a { grid-template-columns: 1fr; gap: 12px; }
  .notes-list a p { grid-column: auto; }
  .article-body h2 { margin-top: 60px; }
  .article-body .pullquote { padding-block: 28px; }
}

@media (hover: none) {
  .project-card { transform: none !important; }
  .origin-node small { max-height: 100px; opacity: 1; margin-top: 12px; color: var(--muted); }
  .origin-node:hover small, .origin-node.active small { color: rgba(255,255,255,.72); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .manifesto-track { width: auto; flex-wrap: wrap; }
}
