/* Mixed editorial typography, full-bleed accents, and the Morningside palette. */
:root {
  --paper: #fafaf7;
  --surface: #f0f0eb;
  --ink: #252825;
  --muted: #62645e;
  --line: #d2d4cb;
  --green: #b6f34a;
  --accent: var(--green);
  --accent-dark: #294b32;
  --term: #171a18;
  --term-ink: #e1e3dd;
  --display: "Anton", "Arial Narrow", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --text: "Open Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
::selection { background: var(--green); color: var(--ink); }
a { color: inherit; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
button { font: inherit; }
p { margin: 0 0 1.25em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; overflow-wrap: break-word; }
h1 { font-size: clamp(5rem, 10vw, 10rem); line-height: 0.86; letter-spacing: -0.01em; text-transform: uppercase; }
h2 { font-size: clamp(2.8rem, 5.8vw, 5.5rem); line-height: 0.91; letter-spacing: -0.005em; text-transform: uppercase; }
h3 { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.08; text-transform: uppercase; }
.serif-accent { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.08em; letter-spacing: -0.045em; text-transform: none; }
.grain { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0.025; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.frame { width: 100%; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; min-width: 0; }
.skip-link { position: absolute; top: -100px; left: 22px; z-index: 1200; padding: 12px 20px; background: var(--green); }
.skip-link:focus { top: 12px; }
.rule { border: 0; border-top: 1px dashed var(--line); margin: 32px 0; }
.eyebrow { display: block; font-size: 0.73rem; font-weight: 800; line-height: 1.4; letter-spacing: 0.18em; text-transform: uppercase; }
.lede { margin: 28px 0 0; font-size: 1.08rem; line-height: 1.65; }
.split { display: grid; }
.split > * { min-width: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* The home masthead and the inner-page navigation have distinct source metrics. */
.site-head { position: sticky; top: 0; z-index: 1100; padding: 1rem 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.head-inner { max-width: 1280px; margin: 0 auto; padding: 0 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 0.4rem; flex-shrink: 0; color: var(--accent-dark); line-height: 1; text-decoration: none; }
.wordmark-first { font-family: var(--text); font-size: 0.9rem; font-weight: 400; letter-spacing: 0.06em; }
.wordmark-last { font-family: var(--display); font-size: 2.4rem; font-weight: 400; letter-spacing: 0.01em; }
.site-nav .nav-social { justify-content: center; min-width: 44px; min-height: 44px; color: var(--accent-dark); }
.nav-social svg { display: block; width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.7; }
.nav-disclosure > summary { display: none; }
/* Keep native details navigation visible without JavaScript on desktop. */
.nav-disclosure::details-content { content-visibility: visible; }
.nav-disclosure:not([open]) > .site-nav, .site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { display: inline-flex; align-items: center; padding: 0.15rem 0; font-size: 0.9rem; font-weight: 600; line-height: 1.5; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.home-shell .site-head { height: 84px; padding: 0; }
.home-shell .head-inner { width: min(100% - 48px, 1440px); height: 100%; max-width: none; padding: 0; display: flex; justify-content: space-between; }
.home-shell .wordmark { width: clamp(188px, 15vw, 220px); min-height: 34px; line-height: 1.2; }
.home-shell .site-nav { justify-content: center; gap: clamp(16px, 2vw, 34px); }
.home-shell .site-nav a { padding: 0; font-size: 0.71rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.105em; }

/* Full-bleed portrait band with hand-drawn callouts. */
.site-nav a.nav-cta { padding: 0.85rem 1.5rem; border-radius: 999px; background: var(--accent); color: var(--ink); }
.hero-note { position: absolute; z-index: 2; max-width: 190px; color: var(--accent-dark); font-size: clamp(0.65rem, 1vw, 0.88rem); font-weight: 800; line-height: 1.4; letter-spacing: 0.08em; }
.hero-note svg { display: block; width: 130px; height: 84px; margin: 12px auto 0; overflow: visible; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note-projects { top: 40%; left: 8%; transform: rotate(-7deg); }
.note-system { top: 45%; right: 7%; transform: rotate(7deg); }
.note-system svg { transform: scaleX(-1); }
.note-founder { bottom: 8%; left: 17%; transform: rotate(-4deg); }
.note-founder svg { width: 100px; height: 64px; transform: rotate(-65deg); }
.hero { position: relative; height: clamp(650px, calc(100svh - 84px), 920px); min-height: 650px; display: flex; align-items: flex-start; justify-content: center; padding: clamp(54px, 8vh, 90px) clamp(20px, 4vw, 64px); overflow: hidden; }
.hero-content { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: inherit; }
.portrait-placeholder { display: grid; place-items: center; width: 100%; background: var(--surface); color: var(--muted); }
.portrait-placeholder span { padding: 10px 16px; border: 1px dashed var(--line); font-size: 13px; }
.hero > .portrait-placeholder { position: absolute; inset: 0; height: 100%; background: linear-gradient(120deg, #817b71, #999185); }
.hero > .portrait-placeholder::before { content: ""; position: absolute; top: 30%; bottom: 4%; left: 31%; right: 31%; border: 1px dashed rgb(250 250 247 / 55%); border-radius: 46% 46% 0 0; }
.hero > .portrait-placeholder > span { position: relative; margin-top: 12rem; background: var(--paper); color: var(--muted); }
.hero h1 { position: relative; width: min(100%, 1500px); font-size: clamp(6rem, 14vw, 13rem); line-height: 0.87; letter-spacing: -0.015em; text-align: center; white-space: nowrap; color: var(--paper); text-shadow: 0 2px 12px rgb(37 40 37 / 25%); }
.introduction { position: relative; overflow: clip; border-top: 1px solid var(--line); }
.intro-stage { position: relative; min-height: 850px; display: grid; place-items: center; padding: clamp(90px, 10vw, 150px) 24px; }
.hero-copy { width: min(820px, 70vw); text-align: center; }
.positioning, .flagship h2, .path-copy > h2, .recent-heading h2 { color: var(--accent-dark); }
.positioning { font-size: clamp(4rem, 8vw, 8rem); line-height: 1; letter-spacing: -0.005em; }
.bio { width: min(650px, 100%); margin: 25px auto 0; font-size: clamp(0.98rem, 1.25vw, 1.12rem); line-height: 1.72; }
.tool-chip { position: absolute; z-index: 2; display: grid; place-items: center; width: 96px; aspect-ratio: 1; padding: 10px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 14px 34px rgb(37 40 37 / 18%); font-size: 16px; font-weight: 700; letter-spacing: -0.04em; }
.chip-claude { left: 6%; top: 65%; font-family: var(--serif); font-size: 19px; transform: rotate(-12deg); }
.chip-openai { left: 8%; top: 22%; transform: rotate(9deg); }
.chip-gemini { right: 7%; top: 29%; color: var(--accent-dark); transform: rotate(-10deg); }
.chip-meta { right: 5%; top: 73%; font-size: 20px; transform: rotate(12deg); }

/* Equal image and accent panels. */
.flagship { grid-template-columns: 1fr 1fr; min-height: 760px; }
.book-stage { display: grid; place-items: center; min-height: 760px; overflow: hidden; padding: 60px; background: var(--surface); border: 1px solid var(--line); }
.guide-book { display: flex; flex-direction: column; justify-content: space-between; width: min(100%, 300px); aspect-ratio: 0.74; padding: 22px 22px 22px 27px; border: 1px solid var(--ink); border-left: 10px solid var(--ink); border-radius: 2px 6px 6px 2px; background: var(--green); box-shadow: 5px 5px 0 var(--paper), 6px 6px 0 var(--ink); transform: rotate(-5deg); }
.book-author { font-size: 9px; font-weight: 600; }
.book-title { display: block; font-family: var(--display); font-size: 37px; font-weight: 400; line-height: 1.04; letter-spacing: -0.04em; }
.book-arrow { display: block; margin-top: 10px; }
.book-caption { padding-top: 12px; border-top: 1px solid var(--ink); font-size: 10px; line-height: 1.4; }
.flagship-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 96px); background: var(--accent); color: var(--ink); }
.flagship-copy > .eyebrow { margin: 0 0 18px; }
.flagship h2 { margin-bottom: 28px; font-size: clamp(3.8rem, 5vw, 6.5rem); line-height: 1; }
.flagship-copy > p:not(.eyebrow) { width: min(620px, 100%); margin: 0 0 18px; font-size: clamp(1rem, 1.25vw, 1.13rem); line-height: 1.72; }
.button { display: inline-block; max-width: 100%; padding: 1rem 2.5rem; border: 0; border-radius: 0; background: var(--green); color: var(--ink); font-family: var(--display); font-size: 1.05rem; font-weight: 400; line-height: 1.7; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: transform 150ms, box-shadow 150ms; }
.button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgb(0 0 0 / 15%); }
.flagship .button { align-self: flex-start; margin-top: 15px; border: 1px solid var(--ink); background: transparent; color: var(--ink); }

/* Two identical runs make a seamless, CSS-only ribbon. */
.marquee { overflow: hidden; padding: 25px 0 30px; border-block: 1px solid var(--line); background: var(--paper); color: var(--accent-dark); font-family: var(--serif); font-size: clamp(1.65rem, 3.4vw, 3.4rem); line-height: 1.25; }
.marquee-track { display: flex; width: max-content; animation: ribbon-scroll 45s linear infinite; }
.marquee-track > span { flex-shrink: 0; white-space: pre; }
@keyframes ribbon-scroll { to { transform: translateX(-50%); } }

/* Numbered resource rows alongside a portrait-sized, original placeholder. */
.next-section { padding: 0 0 clamp(80px, 10vw, 150px); overflow: hidden; background: var(--paper); }
.path-layout { width: min(100% - 64px, 1380px); margin: clamp(50px, 7vw, 100px) auto 0; display: grid; grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(60px, 9vw, 140px); }
.path-portrait { position: sticky; top: 120px; height: min(68vw, 760px); background: var(--surface); border: 1px solid var(--line); }
.portrait-badge { position: absolute; right: -18px; bottom: 42px; padding: 18px 24px; background: var(--accent); color: var(--ink); font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.1; text-align: center; text-transform: uppercase; transform: rotate(-8deg); }
.path-copy { min-width: 0; padding-top: 20px; }
.path-copy > h2 { margin-bottom: 36px; font-size: clamp(4rem, 7vw, 7.2rem); line-height: 1; }
.next-tiles { display: grid; }
.next-tile { display: grid; grid-template-columns: 90px minmax(0, 1fr); column-gap: 24px; padding: 32px 0 38px; border-top: 1px solid var(--line); text-decoration: none; }
.next-tile > .eyebrow { grid-row: 1 / 3; font-family: var(--serif); font-size: 3.5rem; font-weight: 400; line-height: 1; letter-spacing: normal; }
.next-tile h3 { margin-bottom: 10px; color: var(--accent-dark); }
.next-tile:last-child { border-bottom: 1px solid var(--line); }
.tile-detail { text-decoration: underline; text-underline-offset: 0.3em; grid-column: 2; display: flex; justify-content: space-between; gap: 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.next-tile:hover { color: var(--muted); }

/* Shared editorial cards; the library uses three columns on desktop. */
.guides-section { padding: clamp(80px, 10vw, 150px) clamp(24px, 4vw, 64px); }
.recent-heading { width: min(100%, 1380px); margin: 0 auto clamp(45px, 7vw, 90px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); align-items: end; gap: clamp(30px, 5vw, 80px); }
.recent-heading > p { margin: 0 0 0.35em; font-size: 0.95rem; line-height: 1.65; text-align: right; }
.recent-heading h2 { font-size: clamp(4rem, 7.5vw, 8rem); line-height: 1; letter-spacing: -0.01em; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guides-section .cards { width: min(100%, 1380px); margin: 0 auto; gap: 28px; }
.card { min-width: 0; color: var(--ink); text-decoration: none; }
.card-body { min-width: 0; }
.card-category { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.card { container-type: inline-size; min-height: 330px; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); background: #fff; transition: background 180ms; }
.card h3 { margin-bottom: 17px; font-size: clamp(1.8rem, 10cqw, 3.5rem); line-height: 1.05; }
.card-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 620px; margin: 0 0 26px; font-size: 0.98rem; line-height: 1.65; }
.card-link { text-decoration: underline; text-underline-offset: 0.3em; margin-top: auto; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.card:hover { background: var(--surface); }

/* A shared capture band; guide pages use a smaller inset version. */
.email-capture { padding: clamp(72px, 8vw, 120px) 24px 48px; border-top: 1px solid var(--line); background: var(--surface); text-align: center; }
.email-capture-inner { width: min(100%, 1080px); margin: 0 auto; }
.email-capture .eyebrow { margin-bottom: 24px; color: var(--accent-dark); }
.email-capture h2 { color: var(--accent-dark); font-size: clamp(3rem, 6.8vw, 6.5rem); line-height: 1.06; }
.email-sub { margin: 24px auto 30px; max-width: 660px; }
.email-form { display: flex; gap: 12px; width: min(100%, 720px); margin: 0 auto; }
.email-form input { flex: 1; min-width: 0; min-height: 60px; padding: 16px 20px; border: 1px solid var(--muted); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; }
.email-form input::placeholder { color: var(--muted); opacity: 1; }
.email-form button { flex-shrink: 0; min-height: 60px; padding: 16px 28px; border: 1px solid var(--ink); border-radius: 999px; background: var(--green); color: var(--ink); font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.06em; cursor: pointer; }
.email-form button:hover { text-decoration: underline; text-underline-offset: 0.25em; }
/* Reserve the fallback's space so submitting does not move the footer. */
.email-message { max-width: 720px; min-height: 5.1em; margin: 16px auto 0; color: var(--muted); font-size: 0.78rem; line-height: 1.7; }
.email-noscript { color: var(--muted); font-size: 0.78rem; }
.email-capture--compact { max-width: 850px; margin: 64px auto 0; padding: 40px 28px 12px; border: 1px solid var(--line); }
.email-capture--compact h2 { font-size: clamp(2.6rem, 4.5vw, 4rem); }
.email-capture--compact .eyebrow { margin-bottom: 16px; }
.email-capture--compact .email-sub { margin: 18px auto 24px; font-size: 0.95rem; }

.page-intro { min-height: 60svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(42px, 5vw, 72px) 24px clamp(35px, 4vw, 55px); background: var(--accent); color: var(--ink); text-align: center; }
.page-intro > .eyebrow { margin: 0 0 18px; font-size: 0.72rem; line-height: 1.7; }
.page-intro h1 { max-width: 1200px; margin: 0 auto; font-size: clamp(3.25rem, 7vw, 7rem); line-height: 1.02; letter-spacing: -0.005em; }
.page-intro h1 > span { white-space: nowrap; }
.page-intro h1 .serif-accent { display: block; }
.page-intro .lede { max-width: 680px; margin: 30px auto 0; font-size: 1.05rem; line-height: 1.65; }
/* Filters retain their existing JavaScript and accessible pressed states. */
.filters { top: 84px; padding: 24px 0; border-bottom: 1.5px solid var(--line); background: var(--paper); backdrop-filter: blur(12px); }
.filter-inner { max-width: 880px; margin: 0 auto; padding: 0 3.5rem; }
.filter-row { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; margin-bottom: 1.1rem; }
.filter-row:last-of-type { margin-bottom: 0; }
.filter-label { color: var(--muted); font-size: 0.72rem; font-weight: 600; line-height: 1.7; letter-spacing: 0.14em; }
.filter-options { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 100%; }
.filter-options button { flex-shrink: 0; padding: 0.55rem 1.35rem; border: 1.5px solid transparent; border-radius: 999px; background: var(--surface); color: var(--ink); font-family: var(--text); font-size: 0.9rem; font-weight: 500; line-height: normal; letter-spacing: 0.02em; white-space: nowrap; cursor: pointer; }
.filter-options button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.filter-options button:hover { border-color: var(--ink); }
.filter-options button:disabled { cursor: default; }
.filter-note { color: var(--muted); font-size: 0.9rem; }
.resource-count { margin: 1rem 0 0; color: var(--muted); font-size: 0.85rem; }
.results-frame { max-width: 1280px; margin: 0 auto; padding: 3rem 3.5rem; }
.listing-page .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1rem auto 0; gap: 28px; }
#empty-results { padding: 3rem 1rem; text-align: center; }

/* Reading pages retain their content-first layout. */
.about-page, .guide-page { width: 100%; max-width: 1280px; margin: 0 auto; padding: clamp(70px, 8vw, 120px) 3.5rem; }
.about-split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; gap: 54px; }
.about-split .portrait-placeholder { aspect-ratio: 4 / 5; }
.story p:not(.lede) { color: var(--muted); }
.story p:last-child { margin-bottom: 0; }
.contact-page { max-width: 872px; width: 100%; margin: 0 auto; padding: clamp(70px, 8vw, 120px) 3.5rem; }
.contact-page p { overflow-wrap: anywhere; }
.contact-page p:not(.lede) { color: var(--muted); }
.guide { max-width: 850px; margin: 0 auto; }
.guide > h1 { max-width: 24ch; margin-bottom: 24px; font-size: clamp(2.8rem, 5.8vw, 5.5rem); line-height: 0.91; }
.guide h2 { margin: 42px 0 20px; font-size: 27px; line-height: 1.16; }
.guide h3 { margin: 30px 0 15px; font-size: 1.3rem; line-height: 1.3; }
.guide ul, .guide ol { padding-left: 24px; margin: 20px 0 28px; }
.guide li { margin: 8px 0; }
.guide blockquote { margin: 28px 0; padding-left: 20px; border-left: 3px solid var(--green); }
.stamp { color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 1.7; }
.tick { display: inline-block; padding: 0 3px; background: var(--green); color: var(--ink); }
pre { position: relative; max-width: 100%; margin: 32px 0; padding: 65px 28px 28px; overflow-x: auto; border: 1px solid #353935; border-radius: 8px; background: var(--term); box-shadow: inset 0 43px 0 #202420, inset 0 44px 0 #353935; color: var(--term-ink); font-family: var(--mono); font-size: 13px; line-height: 1.7; tab-size: 2; }
pre::before { content: ""; position: absolute; top: 17px; left: 18px; width: 9px; height: 9px; border-radius: 50%; background: #858983; box-shadow: 16px 0 #858983, 32px 0 #858983; }
pre::after { content: "receipt.txt"; position: absolute; top: 13px; right: 18px; color: var(--green); font-size: 10px; }
pre code { display: block; width: max-content; min-width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); font-family: var(--mono); font-size: 0.85em; }
.site-foot { padding: 40px clamp(20px, 4vw, 64px) 24px; border-top: 1px solid var(--line); }
.footer-wordmark-window { overflow: hidden; }
.footer-wordmark { display: flex; align-items: baseline; justify-content: center; gap: 0.12em; padding: 0 0 0.14em; color: var(--accent-dark); font-family: var(--display); font-size: 18vw; font-weight: 400; line-height: 1.2; letter-spacing: -0.035em; white-space: nowrap; }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.site-foot p { margin: 0; color: var(--muted); font-size: 0.68rem; line-height: 1.9; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 760px) {
  .nav-disclosure > summary { display: grid; place-items: center; width: 45px; height: 45px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; }
  .nav-disclosure > summary::-webkit-details-marker { display: none; }
  .nav-disclosure:not([open]) > .site-nav { display: none; }
  .nav-disclosure[open] > .site-nav { position: absolute; top: 100%; left: 0; width: 100%; display: grid; gap: 0; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--paper); }
  .nav-disclosure[open] .site-nav a { display: flex; justify-content: center; padding: 11px 20px; text-align: center; }
  .nav-disclosure[open] .site-nav .nav-cta { margin: 6px auto; }
}
@media (max-width: 900px) {
  .listing-page .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { top: 72px; }
}
@media (max-width: 760px) {
  .home-shell .site-head { height: 72px; }
  .home-shell .head-inner { width: min(100% - 32px, 1440px); min-height: 72px; }
  .home-shell .wordmark { width: 174px; min-height: 30px; }
  .nav-disclosure > summary { width: 40px; height: 40px; }
  .hero { height: calc(100svh - 72px); min-height: 560px; max-height: 780px; padding: 52px 16px; }
  .hero h1 { font-size: clamp(3rem, 11.5vw, 5.5rem); line-height: 1; white-space: nowrap; }
  .hero-note { max-width: 115px; font-size: 0.58rem; letter-spacing: 0.03em; }
  .hero-note svg { width: 78px; height: 50px; }
  .note-projects { left: 5%; top: 31%; }
  .note-system { right: 4%; top: 49%; }
  .note-founder { left: 7%; bottom: 7%; }
  .hero > .portrait-placeholder::before { left: 26%; right: 26%; top: 29%; }
  .hero > .portrait-placeholder > span { margin-top: 5rem; padding: 6px; font-size: 10px; }
  .introduction { height: auto; min-height: 0; }
  .intro-stage { position: relative; top: auto; height: auto; min-height: 0; display: block; padding: 132px 18px 138px; }
  .hero-copy { position: relative; z-index: 5; width: min(94vw, 520px); margin: 0 auto; padding: 0 10px; background: var(--paper); }
  .positioning { font-size: clamp(3.5rem, 17vw, 5.4rem); }
  .bio { font-size: 0.9rem; line-height: 1.58; }
  .tool-chip { width: 72px; }
  .chip-claude { left: 8%; top: auto; bottom: 30px; }
  .chip-openai { left: 12%; top: 30px; }
  .chip-gemini { right: 10%; top: 38px; }
  .chip-meta { right: 8%; top: auto; bottom: 26px; }
  .flagship { grid-template-columns: 1fr; }
  .book-stage { min-height: 460px; padding: 50px; }
  .flagship-copy { padding: 58px 24px 68px; }
  .flagship h2 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .flagship .button { width: 100%; padding: 1rem; text-align: center; }
  .next-section { padding-bottom: 75px; }
  .path-layout { width: min(100% - 32px, 1380px); grid-template-columns: 1fr; gap: 55px; margin-top: 45px; }
  .path-portrait { position: relative; top: auto; height: 116vw; max-height: 620px; }
  .path-copy > h2 { font-size: clamp(3.8rem, 18vw, 5.5rem); }
  .next-tile { grid-template-columns: 58px minmax(0, 1fr); column-gap: 15px; padding: 28px 0 32px; }
  .next-tile > .eyebrow { font-size: 2.7rem; }
  .guides-section { padding: 75px 16px; }
  .recent-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 45px; }
  .recent-heading h2 { font-size: clamp(4.3rem, 20vw, 6rem); }
  .recent-heading > p { max-width: 420px; text-align: left; }
  .portrait-badge { right: 10px; bottom: 28px; }
  .guides-section .cards, .listing-page .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 28px 22px 32px; }
  .card h3 { font-size: 2rem; }
  .email-capture { padding: 64px 20px 28px; }
  .email-capture--compact { padding: 36px 20px 12px; margin-top: 48px; }
  .email-capture h2 { font-size: clamp(3rem, 12vw, 5rem); }
  .email-capture--compact h2 { font-size: clamp(2.5rem, 10vw, 4rem); }
  .email-form { flex-direction: column; }
  .email-form button { width: 100%; }
  .page-intro { padding: 40px 18px 35px; }
  .page-intro h1 { font-size: clamp(2.6rem, 10.5vw, 5rem); }
  .filters { position: relative; top: auto; }
  .about-page, .guide-page, .contact-page { padding: 64px 20px; }
  .about-split { grid-template-columns: 1fr; gap: 32px; }
  .about-split .portrait-placeholder { max-width: 470px; margin: 0 auto; }
  .about-page h1, .contact-page h1 { font-size: clamp(4.7rem, 23vw, 7rem); }
  .footer-bar { flex-direction: column; gap: 5px; }
}
@media (max-width: 700px) {
  .filter-row { gap: 0.45rem; margin-bottom: 0.9rem; }
  .filter-options { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.4rem; -webkit-overflow-scrolling: touch; }
  .filter-options button { font-size: 0.8rem; padding: 0.4rem 0.9rem; }
  pre { padding: 62px 20px 24px; font-size: 12px; }
}
@media (max-width: 600px) {
  .inner-shell .head-inner { padding: 0.6rem 1rem; gap: 0.75rem; }
  .inner-shell .wordmark { line-height: 1; }
  .inner-shell .site-nav { gap: 0.6rem; }
  .inner-shell .site-nav a { padding: 0.28rem 0.26rem; font-size: 0.6rem; line-height: 1.4; letter-spacing: 0.01em; }
  .inner-shell .site-nav a.nav-cta { padding: 0.65rem 0.75rem; }
  .filter-inner { padding-right: 2rem; padding-left: 2rem; }
  .results-frame { padding-right: 2rem; padding-left: 2rem; }
  .site-foot { padding-right: 2rem; padding-left: 2rem; }
}
/* Transform/opacity only; JS opts elements in after support and preference checks. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(var(--reveal-distance, 26px)); transition: opacity 650ms ease var(--reveal-delay, 0ms), transform 650ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms); }
  .reveal.is-visible, .reveal:focus-within { opacity: 1; transform: none; }
  .reveal:focus-within { transition-delay: 0ms; }
  .footer-wordmark.reveal { --reveal-distance: 65px; }
  .hero-motion .hero-note { animation: annotation-pop 600ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hero-motion .note-projects { --note-tilt: -7deg; animation-delay: 160ms; }
  .hero-motion .note-system { --note-tilt: 7deg; animation-delay: 320ms; }
  .hero-motion .note-founder { --note-tilt: -4deg; animation-delay: 480ms; }
  .guide-book.book-in-view { animation: book-float 1600ms ease-in-out both; }
}
@keyframes annotation-pop {
  from { opacity: 0; transform: translateY(10px) rotate(var(--note-tilt)) scale(0.94); }
  to { opacity: 1; transform: translateY(0) rotate(var(--note-tilt)) scale(1); }
}
@keyframes book-float {
  0% { transform: translateY(10px) rotate(-7deg); }
  55% { transform: translateY(-12px) rotate(-3deg); }
  100% { transform: translateY(0) rotate(-5deg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; transform: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; }
}
