/* Manrope (SIL OFL 1.1, see /fonts/OFL.txt) is served from this site; no third-party font requests. */
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/manrope-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/manrope-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --ink: #17211b;
  --paper: #f5f6f1;
  --muted: #526158;
  --line: #d3dad2;
  --acid: #778b34;
  --paper-rgb: 245, 246, 241;
  --ink-rgb: 23, 33, 27;
  --header-height: 72px;
  --story-mode: stacked;
  --reading-top: 55vh;
  --reading-bottom: 64px;
  --tree-top: 26vh;
  --tree-bottom: 52vh;
  color-scheme: light;
}
html[data-theme="dark"] {
  --ink: #edf1eb;
  --paper: #0d1210;
  --muted: #b0bdb2;
  --line: #334039;
  --acid: #c1d66a;
  --paper-rgb: 13, 18, 16;
  --ink-rgb: 237, 241, 235;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 Manrope, system-ui, sans-serif; letter-spacing: -.012em; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .24em; }
button { color: inherit; font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
#top:focus, .plant-node:focus { outline: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
h1, h2 { line-height: 1.05; letter-spacing: -.065em; }
h1 span, h2 span { color: var(--muted); }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.04em; }
svg, img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 60; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 999px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.eyebrow { margin-bottom: 16px; color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.button, .contact-button, .nav-contact, .header-contact, .copy-email {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; line-height: 1.4; font-weight: 700; text-decoration: none;
  background: transparent;
}
.button-dark, .button-light, .header-contact { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.button:hover, .header-contact:hover { color: var(--ink); background: var(--paper); }
.plain-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 15px; font-weight: 600; }
.copy-email:hover, .contact-button-secondary:hover, .nav-contact:hover { border-color: var(--ink); }
.button > span[aria-hidden], .service a > span { font-size: 19px; }

/* A normal document is the fallback. Animation is an enhancement, not a gate. */
.plant-rail, .theme-toggle, .language-toggle, .menu-button, .header-contact { display: none; }
.site-header { position: relative; z-index: 30; display: flex; align-items: center; gap: 18px; min-height: var(--header-height); padding: 10px max(24px, calc((100vw - 1480px) / 2)); border-bottom: 1px solid var(--line); background: rgba(var(--paper-rgb), .96); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; min-width: 44px; min-height: 44px; font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; letter-spacing: -.06em; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; }
.nav a.is-current:not(.nav-contact) { text-decoration: underline; text-decoration-color: var(--acid); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.mobile-nav { display: none; }
.plant-content { max-width: 1480px; margin: 0 auto; }
.plant-node { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.story-heading { margin-bottom: 32px; }
.story-heading h1 { font-size: clamp(36px, 6vw, 64px); }
.story-heading h2 { font-size: clamp(32px, 5vw, 56px); }
.story-frame { min-width: 0; }
.story-flow { display: flow-root; }
.stage-lead-slot { display: none; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: 1480px; margin: 0 auto; padding: 16px 24px; color: var(--muted); font-size: 12px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* One fixed reading frame per chapter. Only its inner flow moves on scroll. */
.has-story .site-header { position: fixed; top: 0; right: 0; left: 0; height: var(--header-height); }
.has-story .theme-toggle, .has-story .language-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 14px; }
.has-story .theme-toggle { font-size: 0; }
.theme-toggle::before { content: ""; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.has-story .theme-toggle:hover, .has-story .language-toggle:hover { border-color: var(--ink); }
.has-story .plant-content { max-width: none; }
.has-story .plant-node {
  --content-shift: 0px;
  position: fixed; top: 0; left: 50%; width: min(720px, calc(100% - 40px));
  max-width: none; height: var(--viewport-height, 100dvh); margin: 0; padding: 0;
  z-index: 2; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%); transition: opacity .18s ease;
}
.has-story .plant-node.is-active { z-index: 3; opacity: 1; visibility: visible; pointer-events: auto; }
.has-story .story-heading { position: absolute; top: calc(var(--header-height) + 24px); right: 0; left: auto; width: 70%; margin: 0; text-align: left; }
.has-story .story-heading h1 { font-size: 52px; }
.has-story .story-heading h2 { font-size: 46px; }
.has-story .story-heading h1, .has-story .story-heading h2 { text-wrap: nowrap; white-space: nowrap; letter-spacing: 0; }
.has-story .story-heading .eyebrow { max-width: 44ch; margin: 0 0 12px; }
.has-story .story-frame { position: absolute; top: var(--reading-top); right: 0; bottom: calc(var(--reading-bottom) + env(safe-area-inset-bottom)); left: 0; overflow: hidden; }
.has-story .hero .story-frame, .has-story .contact-section .story-frame { top: calc(var(--reading-top) - var(--unused-lead-space, 0px)); }
.has-story .story-flow { transform: translate3d(0, var(--content-shift), 0); }
.has-story .stage-lead-slot { display: block; position: absolute; top: calc(var(--reading-top) - 58px); right: 0; left: 0; pointer-events: none; }
.story-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(32px, .35fr) minmax(0, 1fr); align-items: end; gap: 8px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; text-align: center; }
.story-lead-part { max-width: 20ch; justify-self: center; text-wrap: balance; }
.story-lead-part:first-child { grid-column: 1; }
.story-lead-part:last-child { grid-column: 3; }
.has-story .work-output { display: flex; flex-direction: column; }
.has-story .reading-window { flex: 1; min-height: 0; overflow: hidden; }
.has-story .site-footer { position: fixed; right: 0; bottom: env(safe-area-inset-bottom); left: 0; z-index: 10; max-width: none; min-height: 52px; padding: 4px max(24px, calc((100vw - 1480px) / 2)); background: var(--paper); }
.has-story .site-footer[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.has-story .plant-rail { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.plant-rail canvas { display: block; width: 100%; height: 100%; }
.plant-rail::before, .plant-rail::after { content: ""; position: absolute; top: var(--header-height); bottom: 0; width: 34px; opacity: .3; background: repeating-linear-gradient(90deg, transparent 0 6px, var(--line) 7px, transparent 9px); }
.plant-rail::before { left: 0; }
.plant-rail::after { right: 0; transform: scaleX(-1); }
.plant-rail-title, .plant-rail-note, .mobile-stage-label { position: absolute; bottom: 22px; color: var(--muted); font-size: 11px; line-height: 1.4; letter-spacing: .07em; }
.plant-rail-title { left: max(24px, calc((100vw - 1480px) / 2)); }
.plant-rail-note { right: max(24px, calc((100vw - 1480px) / 2)); }
.mobile-stage-label { display: none; }

.hero-lead { font-size: 19px; line-height: 1.6; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }
.hero-note { margin-top: 22px; color: var(--muted); font-size: 14px; }
.origin-profile { display: grid; gap: 20px; padding-top: 4px; overflow-wrap: anywhere; }
.profile-intro h3 { margin-bottom: 8px; font-size: 28px; }
.profile-role { color: var(--muted); font-size: 15px; }
.profile-background, .profile-method, .profile-fit { font-size: 16px; line-height: 1.6; }
.signal-tags { display: flex; flex-wrap: wrap; gap: 12px 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: .07em; }
.service { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 14px; padding: 23px 0; border-top: 1px solid var(--line); }
.service-index, .project-number, .approach-row > span { color: var(--muted); font-size: 12px; line-height: 1.5; padding-top: 4px; }
.service h3, .service p, .service a { grid-column: 2; }
.service p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.service .service-output { color: var(--ink); font-size: 15px; }
.service-output strong { font-weight: 700; }
.service a { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; margin-top: 10px; font-size: 14px; font-weight: 700; text-decoration: none; }
.service a:hover { text-decoration: underline; }
.work-tabs { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); background: var(--paper); }
.tab { position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; }
.tab span { font-size: 11px; font-variant-numeric: tabular-nums; }
.tab.is-active { color: var(--ink); font-weight: 700; }
.tab.is-active::after { content: ""; position: absolute; bottom: 0; right: 0; left: 0; height: 2px; background: var(--acid); }
.project { padding: 24px 0; border-bottom: 1px solid var(--line); }
.project-top { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.project h3 { margin: 4px 0 6px; font-size: 25px; }
.project-type { color: var(--muted); font-size: 12px; line-height: 1.5; }
.project-lockup { padding-top: 3px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.project-summary { color: var(--muted); font-size: 14px; line-height: 1.4; }
.project-top > a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -8px -8px 0 0; font-size: 25px; text-decoration: none; }
.project > p, .project-evidence { margin: 14px 0 0 36px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.project-evidence dt { margin-bottom: 4px; color: var(--ink); font-size: 13px; font-weight: 700; }
.project-evidence dd { margin: 0; color: var(--ink); }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 16px 0 0 36px; color: var(--muted); font-size: 12px; }
.project-featured { border-top: 2px solid var(--acid); }
.work-footnote { padding: 24px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.approach-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 24px 0; border-top: 1px solid var(--line); }
.approach-row p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.contact-copy > p:first-child { max-width: 42ch; font-size: 19px; line-height: 1.6; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.contact-icon { width: 17px; height: 17px; fill: currentColor; flex: none; }
.contact-button-secondary { font-size: 14px; text-decoration: none; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 24px; }
.email-address { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; overflow-wrap: anywhere; user-select: all; }
.copy-email { padding: 8px 14px; font-size: 13px; }
.copy-status { min-height: 26px; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.contact-note { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (min-width: 1180px) and (min-height: 620px) {
  :root { --story-mode: split; --reading-top: calc(var(--header-height) + 56px); --reading-bottom: 112px; }
  .has-story .plant-node { width: min(1480px, calc(100% - 96px)); }
  .has-story .story-heading { top: 24%; right: auto; left: 0; width: 30%; text-align: left; }
  .has-story .story-heading h1 { font-size: 72px; }
  .has-story .story-heading h2 { font-size: 62px; }
  .has-story .story-heading .eyebrow { margin-left: 0; }
  .has-story .story-frame { right: 0; left: auto; width: 32%; }
  .has-story .hero .story-frame, .has-story .contact-section .story-frame { top: 32%; }
  .has-story .hero .story-heading { top: 28%; }
  .has-story .stage-lead-slot { top: auto; bottom: 72px; }
  .story-lead { grid-template-columns: 30% 38% 32%; gap: 0; font-size: 14px; }
  .story-lead-part { justify-self: start; text-align: left; }
  .story-lead-part:last-child { justify-self: end; text-align: right; }
}
@media (max-width: 960px) {
  :root { --header-height: 64px; }
  .site-header { padding-inline: 20px; gap: 10px; }
  .nav { display: none; }
  .mobile-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 16px 24px; }
  .has-story .header-contact { display: inline-flex; padding-inline: 13px; white-space: nowrap; }
  .has-story .menu-button { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-width: 48px; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 13px; }
  .has-story .mobile-nav { display: none; position: fixed; z-index: 35; top: var(--header-height); right: 0; left: 0; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; padding: 16px 24px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .has-story .mobile-nav.is-open { display: grid; }
  .mobile-nav a { display: flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
  .plant-rail-title, .plant-rail-note { display: none; }
  .mobile-stage-label { display: block; left: 20px; bottom: 20px; font-size: 12px; }
  .site-footer > span:nth-child(2) { display: none; }
}
@media (max-width: 600px) {
  .site-header { gap: 6px; padding-inline: 16px; }
  .brand-name { display: none; }
  .brand { gap: 0; }
  .has-story .plant-node { width: calc(100% - 40px); }
  .has-story .story-heading { top: calc(var(--header-height) + 20px); }
  .has-story .story-heading h1 { font-size: 36px; }
  .has-story .story-heading h2 { font-size: 34px; }
  .hero-lead, .contact-copy > p:first-child { font-size: 17px; line-height: 1.6; }
  .hero-actions { margin-top: 20px; gap: 10px 16px; }
  .hero-note { margin-top: 16px; }
  .story-lead { font-size: 12px; }
  .has-story .stage-lead-slot { top: calc(var(--reading-top) - 52px); }
  .service, .approach-row { grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; }
  .service h3, .approach-row h3 { font-size: 20px; }
  .work-tabs { gap: 0 14px; }
  .tab { font-size: 12px; }
  .project-top { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .project-number { display: none; }
  .project > p, .project-evidence, .project-tags { margin-left: 0; }
  .project-lockup { font-size: 11px; }
  .email-row { gap: 4px 12px; }
  .site-footer { font-size: 12px; }
}
@media (max-height: 650px) {
  .has-story .story-heading { top: calc(var(--header-height) + 12px); }
  .has-story .story-heading .eyebrow { margin-bottom: 8px; font-size: 11px; }
  .has-story .story-heading h1, .has-story .story-heading h2 { font-size: 30px; line-height: 1.05; }
  .has-story .stage-lead-slot { display: none; }
  .plant-rail::before, .plant-rail::after { width: 18px; }
}
@media (max-width: 380px) {
  .has-story .story-heading h1, .has-story .story-heading h2 { font-size: 30px; }
  .work-tabs { column-gap: 10px; }
  .tab { font-size: 12px; }
  .tab span { font-size: 10px; }
  .header-contact { font-size: 13px; }
  .profile-intro h3 { font-size: 25px; }
}
@media (min-width: 480px) and (max-height: 619px) and (min-aspect-ratio: 1/1) {
  :root { --story-mode: landscape; }
  .has-story .plant-node { width: calc(100% - 48px); }
  .has-story .story-heading { left: auto; right: 0; width: 68%; text-align: left; }
  .has-story .story-heading .eyebrow { margin-left: 0; }
  .has-story .story-frame { top: var(--reading-top); left: auto; right: 0; width: 68%; }
}
@media (min-width: 480px) and (max-width: 649px) and (max-height: 619px) and (min-aspect-ratio: 1/1) {
  .has-story .story-heading .eyebrow { display: none; }
  .has-story .story-heading h1, .has-story .story-heading h2 { font-size: 26px; }
  .work-tabs { flex-wrap: nowrap; gap: 0 8px; }
  .tab span { display: none; }
}
html.is-menu-open { overflow: hidden; overscroll-behavior: none; }
body.is-menu-open { overscroll-behavior: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .plant-rail, .mobile-nav, .copy-email, .copy-status { display: none !important; }
  .has-story .plant-content { min-height: 0 !important; }
  .has-story .plant-node { position: static; width: 100%; height: auto; visibility: visible; opacity: 1; transform: none; padding: 24px 0; break-inside: avoid; }
  .has-story .story-heading, .has-story .story-frame { position: static; width: 100%; text-align: left; }
  .has-story .story-heading { margin-bottom: 20px; }
  .has-story .story-heading h1, .has-story .story-heading h2 { white-space: normal; font-size: 32px !important; }
  .has-story .story-flow { transform: none; }
  .has-story .reading-window, .has-story .story-frame { overflow: visible; }
  .has-story .stage-lead-slot { display: none; }
  .has-story .site-footer { position: static; visibility: visible; }
}
