/* Forest Phosphor Workbench · exact design tokens and component styles. */
:root {
  --bg: #0f1e17; --bg-deep: #0b1711; --bg-raised: #162b22; --bg-window: #101f19;
  --border: #304b3b; --border-bright: #526f5b;
  --text: #ece7da; --text-bright: #f6f2e4; --text-dim: #b5c0b3; --text-faint: #859887;
  --accent: #9bd1af; --accent-bright: #b8e4c7; --accent-glow: rgba(155,209,175,.16);
  --amber: #e0b872; --red: #f1a390;
  --mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'Syne', sans-serif;
  --col: 1120px; --reading: 660px; --gutter: clamp(20px, 4vw, 48px);
  --space-section: clamp(64px, 7vw, 104px); --nav-height: 76px;
  --grid-ink: rgba(155,209,175,.035); --nav-fill: rgba(15,30,23,.97);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 0 0 calc(48px + env(safe-area-inset-bottom,0px)); background: var(--bg); color: var(--text); font: 14px/1.8 var(--mono); -webkit-font-smoothing: antialiased; }
h1,h2,h3,p,figure,dl,dd { margin: 0; }
h1,h2,h3 { color: var(--text-bright); font-family: var(--display); letter-spacing: -.025em; overflow-wrap: anywhere; }
p,li,dd,a { overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
a,button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button,input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
strong { color: var(--text-bright); font-weight: 500; }
::selection { background: var(--accent); color: var(--bg-deep); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 5px; border-radius: 2px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; transform: translateY(-150%); background: var(--accent); color: var(--bg-deep); padding: 10px 18px; z-index: 100; }
.skip-link:focus { transform: none; }
.phosphor-strip { position: absolute; inset: 0 0 auto; height: 2px; background: var(--accent); z-index: 60; }
.gridlines { position: absolute; inset: 0 0 auto; height: 750px; pointer-events: none; background-image: linear-gradient(var(--grid-ink) 1px,transparent 1px),linear-gradient(90deg,var(--grid-ink) 1px,transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(#000,transparent); }
.wrap,.nav-inner,.footer-inner,.statusbar-inner { width: min(100% - var(--gutter) * 2, var(--col)); margin-inline: auto; }
.wrap { position: relative; }
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-fill); border-bottom: 1px solid var(--border); }
.nav-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.nav-logo { color: var(--accent); white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.tilde { color: var(--text-dim); }
.nav-links { display: flex; gap: 25px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--text-dim); font-size: 12px; border-bottom: 2px solid transparent; transition: color .18s,border-color .18s; }
.nav-links a:hover,.nav-links a[aria-current] { color: var(--accent-bright); border-bottom-color: var(--accent); }
.eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: .12em; font-weight: 500; color: var(--accent); }
.hero { padding: clamp(40px,4vw,56px) 0 56px; }
.hero-eyebrow { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; }
.eyebrow-divider { color: var(--text-faint); margin-inline: 10px; }
.hero-location { font-size: 11px; color: var(--text-dim); }
.hero h1 { max-width: 1120px; font-size: clamp(42px,6vw,80px); font-weight: 800; line-height: 1.03; text-wrap: balance; }
.hero-bottom { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 60px; align-items: end; margin-top: 28px; }
.hero-tagline { max-width: 570px; font-size: 14px; color: var(--text-dim); line-height: 1.9; margin-bottom: 24px; }
.hero-note { justify-self: end; max-width: 235px; color: var(--amber); font-size: 12px; padding-bottom: 12px; }
.hero-note span { margin-right: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.btn { padding: 11px 20px; min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 16px; border: 1px solid var(--border-bright); border-radius: 4px; font-size: 12px; line-height: 1.6; transition: background .18s,color .18s,border-color .18s,transform .18s; }
.btn-solid { color: var(--bg-deep); background: var(--accent); border-color: var(--accent); font-weight: 500; }
.btn-solid:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-raised); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.section { padding-block: var(--space-section); border-top: 1px solid var(--border); }
.section-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 36px; align-items: flex-start; }
.section-prompt { color: var(--accent); font-size: 12px; margin-bottom: 14px; }
.dollar { color: var(--text-faint); margin-right: 8px; }
.section-title { font-size: clamp(30px,3.6vw,46px); line-height: 1.15; }
.section-lead { max-width: var(--reading); color: var(--text-dim); margin-top: 18px; line-height: 1.9; }
.section-number { color: var(--text-faint); font-size: 12px; padding-top: 3px; }
.work-section { padding-top: 34px; }
@media(min-width:721px) {
  .work-section .section-heading > div { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 48px; align-items: baseline; width: 100%; }
  .work-section .section-prompt { grid-column: 1 / -1; }
  .work-section .section-lead { margin-top: 0; font-size: 12px; }
}
.featured { border: 1px solid var(--border); border-radius: 8px; background: var(--bg-window); padding: clamp(16px,3vw,30px); }
.featured-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 36px; align-items: center; }
.featured-grid.without-image { grid-template-columns: 1fr; }
.featured-intro h3 { font-size: clamp(26px,2.6vw,34px); line-height: 1.15; margin: 18px 0; }
.featured-intro > p { color: var(--text-dim); font-size: 13px; }
.project-label { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.project-label .eyebrow { font-size: 10px; }
.tag { display: inline-block; color: var(--text-dim); border: 1px solid var(--border-bright); padding: 2px 7px; border-radius: 3px; font: 10px/1.6 var(--mono); }
.tag-amber { color: var(--amber); }
.project-tags { list-style: none; display: flex; gap: 7px 14px; flex-wrap: wrap; padding: 0; margin: 20px 0; color: var(--text-dim); font-size: 10px; }
.project-tags li { border-bottom: 1px solid var(--border); padding-bottom: 3px; }
.inline-link { color: var(--accent-bright); border-bottom: 1px dashed var(--border-bright); padding-bottom: 4px; font-size: 12px; line-height: 2; }
.inline-link:hover { border-color: var(--accent); }
.viewer { border: 1px solid var(--border-bright); border-radius: 6px; overflow: hidden; background: var(--bg-deep); }
.viewer-bar,.term-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-raised); color: var(--text-dim); font-size: 10px; border-bottom: 1px solid var(--border); }
.lights { display: flex; gap: 5px; flex-shrink: 0; }
.lights i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-bright); }
.lights i:first-child { background: var(--accent); }
.viewer img { width: 100%; }
.viewer-caption { padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; color: var(--text-dim); font-size: 10px; border-top: 1px solid var(--border); }
.case-study { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin-top: 30px; border-top: 1px solid var(--border); padding-top: 26px; }
.case-study dt { color: var(--accent); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.case-study dd { font-size: 12px; color: var(--text-dim); line-height: 1.9; }
.subsection-heading { margin: 44px 0 24px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: baseline; }
.subsection-heading h3 { font-size: 22px; }
.subsection-heading p { color: var(--text-dim); font-size: 12px; }
.proj-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr)); gap: 16px; }
.proj { padding: 24px; border: 1px solid var(--border); border-radius: 6px; min-width: 0; }
.proj-linked { transition: background .18s,border-color .18s; }
.proj-linked:hover,.proj-linked:focus-within { background: var(--bg-raised); border-color: var(--border-bright); }
.proj-name { font-size: 22px; line-height: 1.3; margin: 20px 0 12px; }
.proj-name a:hover { color: var(--accent-bright); }
.proj-desc { color: var(--text-dim); font-size: 12px; line-height: 1.9; }
.proj .project-tags { margin-bottom: 0; }
.project-image { margin-bottom: 20px; }
.project-image img { width: 100%; border-radius: 3px; }
.project-image figcaption { margin-top: 6px; font-size: 10px; color: var(--text-dim); }
.about-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: clamp(32px,7vw,100px); align-items: start; }
.about-text { max-width: var(--reading); }
.about-text p { color: var(--text-dim); margin-bottom: 20px; }
.about-text .about-opening { font-family: var(--display); font-size: clamp(24px,2.5vw,30px); line-height: 1.4; color: var(--text-bright); }
.about-text .comment { color: var(--accent); font-size: 11px; margin-top: 28px; }
.portrait-viewer { max-width: 360px; justify-self: end; }
.play-btn { color: var(--accent-bright); background: transparent; border: 1px solid var(--border-bright); border-radius: 3px; min-height: 44px; padding: 8px 10px; font-size: 10px; }
.play-btn:hover { border-color: var(--accent); }
.play-btn.playing { color: var(--amber); }
.facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-top: 44px; background: var(--bg-window); }
.fact { padding: 20px; border-right: 1px solid var(--border); }
.fact:last-child { border-right: 0; }
.fact dt { color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 9px; }
.fact dd { color: var(--text); font-size: 12px; line-height: 1.8; }
.approach-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 32px; }
.approach-card { border-top: 1px solid var(--border-bright); padding-top: 20px; }
.approach-num { color: var(--amber); font-size: 12px; }
.approach-card h3 { font-size: 24px; margin: 22px 0 14px; }
.approach-card p { font-size: 13px; color: var(--text-dim); }
.xp { display: grid; grid-template-columns: minmax(130px,.65fr) minmax(0,2fr) minmax(100px,.65fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--border); }
.xp-years { color: var(--amber); font-size: 12px; }
.xp-title { font-size: 23px; line-height: 1.3; }
.xp-blurb { color: var(--text-dim); font-size: 12px; margin-top: 10px; max-width: 560px; }
.xp-co { text-align: right; color: var(--accent); font-size: 12px; }
.xp-more { font-size: 12px; color: var(--text-dim); margin-top: 28px; line-height: 2.3; }
.contact-section .section-title { max-width: 780px; font-size: clamp(38px,5vw,64px); }
.contact-section .section-heading { margin-bottom: 20px; }
.contact-state { font-size: 11px; color: var(--text-dim); margin-bottom: 26px; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.terminal-section { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: 44px; }
.terminal-heading h2 { font-size: 27px; }
.terminal-heading p { margin-top: 12px; color: var(--text-dim); font-size: 12px; }
code { color: var(--accent); font: inherit; }
.term { border: 1px solid var(--border-bright); border-radius: 6px; overflow: hidden; background: var(--bg-deep); }
.term-body { height: 255px; overflow: auto; padding: 16px; font-size: 12px; scrollbar-color: var(--border-bright) var(--bg-deep); }
.term-line { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 7px; }
.term-line a { color: var(--accent); text-decoration: underline; }
.term-input-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.term-prompt { color: var(--accent); white-space: nowrap; }
.term-input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--border-bright); border-radius: 3px; padding: 6px; background: var(--bg-window); color: var(--text); font-size: 16px; }
.term-submit { flex-shrink: 0; min-width: 44px; min-height: 44px; border: 1px solid var(--border-bright); border-radius: 3px; background: var(--bg-raised); color: var(--accent); }
.term-line.error { color: var(--red); }
.page-hero { padding: 48px 0; }
.page-hero .eyebrow { margin: 22px 0 18px; }
.page-hero h1 { font-size: clamp(36px,5vw,64px); line-height: 1.12; max-width: 920px; text-wrap: balance; }
.page-hero-copy { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; margin: 26px 0; max-width: 1020px; color: var(--text-dim); font-size: 13px; }
.page-index { border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; padding: 16px 0; }
.page-index a { color: var(--text-dim); font-size: 11px; min-height: 44px; display: inline-flex; align-items: center; }
.page-index a:hover { color: var(--accent); text-decoration: underline; }
.role { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,2fr); gap: 50px; padding: 34px 0; border-top: 1px solid var(--border); }
.role:first-child { padding-top: 0; border-top: 0; }
.role-period { color: var(--amber); font-size: 12px; }
.role-co { color: var(--accent); font-size: 13px; margin-top: 10px; }
.role-title { font-size: 27px; line-height: 1.25; }
.role-meta { color: var(--text-dim); font-size: 11px; margin: 12px 0 20px; }
.role-blurb { color: var(--text); font-size: 13px; }
.role ul { padding-left: 18px; margin: 20px 0 0; color: var(--text-dim); }
.role li { font-size: 12px; padding-left: 6px; margin: 8px 0; }
.role li::marker { color: var(--accent); }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 18px; }
.cert { border: 1px solid var(--border); border-radius: 6px; padding: 28px; }
.cert-issuer { color: var(--accent); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.cert h3 { font-size: 24px; line-height: 1.3; margin: 18px 0; }
.cert p:not(.cert-issuer) { font-size: 12px; color: var(--text-dim); }
.cert .cert-num { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 18px; font-size: 11px; }
.lic { display: grid; grid-template-columns: minmax(0,1fr) minmax(120px,.35fr); gap: 24px; border-bottom: 1px solid var(--border); padding: 24px 0; }
.lic:first-child { padding-top: 0; }
.lic-name { font-size: 21px; line-height: 1.4; }
.lic-issuer,.lic-num { color: var(--text-dim); font-size: 12px; margin-top: 7px; }
.lic-num { font-size: 11px; }
.lic-date { text-align: right; color: var(--amber); font-size: 11px; }
.footer { border-top: 1px solid var(--border); }
.footer-inner { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; color: var(--text-dim); font-size: 10px; }
.footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent); }
.statusbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 55; background: var(--bg-deep); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom,0px); }
.statusbar-inner { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 20px; font-size: 10px; }
.session { color: var(--accent); display: flex; align-items: center; gap: 3px; white-space: nowrap; }
#status-win { display: inline-block; max-width: 13ch; overflow: hidden; text-overflow: ellipsis; margin-left: 5px; }
.status-location { color: var(--text-dim); font-size: 9px; }
.status-right { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.sound-toggle { min-height: 44px; padding: 4px; font-size: 10px; color: var(--text-dim); border: none; background: transparent; }
.sound-toggle:hover,.sound-toggle.on { color: var(--accent-bright); }
#clock { color: var(--text-dim); }
@media(max-width:900px) {
  .hero-location { display: none; }
  .featured-grid { gap: 24px; }
  .facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .status-location { display: none; }
  .terminal-section { grid-template-columns: 1fr; gap: 24px; }
}
@media(max-width:720px) {
  :root { --nav-height: 104px; }
  .nav-inner { min-height: 104px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; padding-top: 6px; }
  .nav-logo { font-size: 12px; }
  .nav-links { width: 100%; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; }
  .nav-links a { font-size: 11px; justify-content: center; }
  .hero { padding: 34px 0 42px; }
  .hero-eyebrow { margin-bottom: 20px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .08em; }
  .hero h1 { font-size: clamp(38px,8.2vw,64px); line-height: 1.1; }
  .hero-bottom { display: block; margin-top: 22px; }
  .hero-tagline { font-size: 13px; margin-bottom: 22px; }
  .hero-note { display: none; }
  .btn { font-size: 11px; padding-inline: 15px; }
  .featured-grid,.case-study,.about-grid,.subsection-heading,.page-hero-copy { grid-template-columns: 1fr; }
  .featured-grid { gap: 24px; }
  .case-study { gap: 22px; }
  .featured-intro h3 { margin: 14px 0; }
  .subsection-heading { gap: 12px; }
  .section-heading { margin-bottom: 26px; }
  .section-number { font-size: 10px; }
  .about-grid { gap: 30px; }
  .portrait-viewer { justify-self: start; width: 100%; }
  .facts { margin-top: 30px; }
  .fact { padding: 16px; }
  .fact dd { font-size: 11px; }
  .xp { grid-template-columns: 1fr auto; gap: 10px; }
  .xp-body { grid-column: 1/-1; grid-row: 2; }
  .xp-title { font-size: 22px; }
  .xp-years,.xp-co { font-size: 11px; }
  .page-hero { padding-block: 32px; }
  .page-hero .eyebrow { font-size: 10px; }
  .page-hero h1 { font-size: clamp(34px,6.5vw,46px); }
  .page-hero-copy { gap: 16px; font-size: 12px; }
  .page-index { gap: 0 20px; }
  .page-index .eyebrow { width: 100%; margin-bottom: 6px; }
  .role { grid-template-columns: 1fr; gap: 20px; }
  .role-aside { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
  .role-co { margin-top: 0; }
  .role-title { font-size: 25px; }
  .lic { grid-template-columns: 1fr; gap: 12px; }
  .lic-date { text-align: left; }
  .statusbar-inner { width: calc(100% - 24px); gap: 10px; }
  .status-right { gap: 10px; }
  #status-win { max-width: 8ch; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media(max-width:420px) {
  .hero .eyebrow { max-width: 260px; }
  .eyebrow-divider { margin-inline: 4px; }
  .hero h1 { font-size: clamp(34px,9.5vw,40px); }
  .hero .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero .btn { padding-inline: 10px; gap: 8px; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--border); }
  .fact:last-child { border-bottom: 0; }
  .viewer-bar { font-size: 9px; padding-inline: 10px; }
  .term-body { padding: 12px; }
  .term-prompt { font-size: 10px; }
  .term-input-row { gap: 6px; }
  .sound-toggle,.statusbar-inner { font-size: 9px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
}
html.noanim { scroll-behavior: auto; }
.noanim * { animation: none !important; transition: none !important; }
@media print {
  body { background: white; color: black; padding: 0; }
  .nav,.statusbar,.gridlines,.phosphor-strip,.btn-row,.page-index,.terminal-section { display: none; }
  .wrap { width: 100%; }
  h1,h2,h3,p,li,dd,dt { color: black !important; }
  .section { padding-block: 24px; }
  .role,.cert { break-inside: avoid; }
}
