:root {
  /* Shared semantic scale for every public page; breakpoints adjust layout only. */
  --type-display: clamp(3.5rem, 6.5vw, 6.75rem);
  --type-page: clamp(3rem, 5.5vw, 6rem);
  --type-section: clamp(2.25rem, 3.5vw, 3.75rem);
  --type-item: clamp(1.5rem, 2vw, 2.25rem);
  --type-lead: clamp(1.125rem, 1.35vw, 1.375rem);
  --type-body: 1rem;
  --type-meta: .875rem;
  --type-micro: .75rem;
  --paper: #f5f1e8;
  --surface: #e8e3d9;
  --ink: #252626;
  --muted: #6d6d67;
  --line: #d4d0c7;
  --orange: #ff7900;
  --blue: #68a9af;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: var(--type-body); font-weight: 400; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 7px; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.65; }
h2 { font-size: var(--type-section); line-height: 1.05; letter-spacing: -.045em; font-weight: 300; }
.top, main, footer { max-width: 1680px; margin: auto; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 2rem max(1rem, 5%); gap: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.logo { font-size: 1.75rem; line-height: 1.5; font-weight: 400; letter-spacing: -1.7px; white-space: nowrap; }
.logo span { color: var(--orange); font-size: 10px; vertical-align: middle; padding: 0 6px; }
nav { display: flex; gap: 36px; font-size: var(--type-meta); font-weight: 400; }
.top nav { font-size: var(--type-meta); line-height: 1.5; }
.top nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
nav a:hover, footer>a:last-child:hover { color: #ad4f00; }
.eyebrow, .tag, .status { font-size: var(--type-meta); line-height: 1.5; font-weight: 400; letter-spacing: .13em; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.language-control { display: inline-flex; align-items: center; min-height: 3.25rem; padding: 3px; border: 1px solid var(--control-border); border-radius: 999px; background: var(--control-bg); font-size: var(--type-meta); font-weight: 400; line-height: 1.5; white-space: nowrap; }
.language-control a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border-radius: 50%; color: var(--language-inactive-fg); }
.language-control a[aria-current="page"] { background: var(--language-active-bg); color: var(--language-active-fg); }
.language-control a:hover { color: var(--orange); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero { padding: 66px 5% 76px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin-bottom: 40px; }
.dot { display: inline-block; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; margin-right: 10px; vertical-align: 1px; }
h1 { position: relative; width: max-content; max-width: 120%; font-size: var(--type-page); line-height: 1; letter-spacing: -.045em; font-weight: 300; }
h1 em { font: inherit; color: #c75400; }
.hero-bottom { display: flex; align-items: flex-end; gap: 58px; margin-top: 44px; }
.hero-bottom p { max-width: 290px; color: var(--muted); font-size: 14px; }
.type-line { position: relative; min-height: 1.5em; margin-top: 28px; color: var(--muted); font-size: var(--type-meta); line-height: 1.5; font-weight: 400; letter-spacing: .13em; }
.has-type .type-line > span:first-child { opacity: 0; }
.type-clone { position: absolute; inset: 0 auto auto 0; color: var(--ink); }
.round-link { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 50%; font-size: 26px; font-weight: 300; }
.round-link:hover { background: var(--orange); border-color: var(--orange); }
.signal { min-width: 0; padding-block: 24px; }
.signal svg { display: block; width: 100%; height: auto; overflow: visible; }
.comet-track { fill: none; }
.comet-track { stroke: var(--blue); stroke-width: 1.5; }
.comet-terminal { fill: var(--paper); stroke: var(--blue); stroke-width: 1.5; }
.comet-ticks { fill: none; stroke: var(--blue); stroke-width: 1; opacity: .6; }
.comet-envelope { fill: var(--orange); opacity: .1; }
.comet-tail { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }
.comet-packet { fill: var(--orange); }
.comet-payload-static { display: none; }
/* Labels inside the aria-hidden comet illustration are decorative. */
.art-meta { font-size: var(--type-micro); font-weight: 400; letter-spacing: .13em; display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.about { background: var(--blue); padding: 76px 5% 86px; display: grid; grid-template-columns: 1fr 1.35fr; gap: 8%; }
.about h2 { margin-bottom: 36px; }
.large { font-size: var(--type-lead); line-height: 1.6; letter-spacing: -.02em; }
.about p:not(.eyebrow) { max-width: 550px; margin-bottom: 22px; }
.about .note { font-size: var(--type-meta); margin-top: 34px; }
.cv-action { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100%, 34.5rem); min-height: 76px; margin-top: 42px; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 18px; font-weight: 400; }
.cv-action strong, .cv-action small { display: block; }
.cv-action small { margin-top: 5px; color: color-mix(in srgb, var(--ink) 72%, transparent); font-size: var(--type-meta); font-weight: 400; letter-spacing: .02em; }
.cv-action > span:last-child { color: var(--accent-text); font-size: 28px; transition: transform 160ms ease-out; }
.cv-action:hover { border-bottom-color: var(--orange); }
.cv-action:hover > span:last-child { transform: translateX(6px); }
.practice-teaser { padding: 92px 5%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 38px 8%; border-bottom: 1px solid var(--line); }
.practice-teaser-copy { padding-top: 52px; }
.practice-teaser-copy .large { max-width: 560px; }
.practice-teaser-copy > p:not(.large) { max-width: 470px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.practice-index { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; margin-top: 18px; border-top: 1px solid var(--ink); }
.practice-index span { padding: 15px 10px 0 0; color: var(--muted); font-size: var(--type-meta); font-weight: 400; letter-spacing: .09em; text-transform: uppercase; }
.work-story { padding: 98px 5%; border-bottom: 1px solid var(--line); }
.work-story-page { padding-top: 0; }
.story-page-title { position: static; width: auto; max-width: 8.5ch; justify-self: end; font-size: var(--type-page); line-height: 1; letter-spacing: -.045em; font-weight: 300; }
.story-next { display: flex; justify-content: flex-end; }
.story-heading { display: grid; grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.45fr); gap: clamp(3rem, 9vw, 10rem); align-items: stretch; padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(3.5rem, 5vw, 5rem); border-bottom: 1px solid var(--line); }
.story-heading-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 4rem; padding-block: .5rem; }
.story-heading .eyebrow { margin: 0; font-size: var(--type-meta); line-height: 1.5; }
.story-heading .large { max-width: 29rem; margin: 0; color: var(--muted); font-size: var(--type-lead); line-height: 1.6; }
.story-layout { display: grid; grid-template-columns: minmax(210px, .7fr) minmax(0, 1.8fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.story-nav { position: sticky; top: 24px; display: block; padding-top: 18px; border-top: 1px solid var(--ink); }
.story-nav > p { margin-bottom: 22px; color: var(--muted); font-size: var(--type-meta); line-height: 1.5; font-weight: 400; letter-spacing: .13em; text-transform: uppercase; }
.story-nav ol, .story-chapters { list-style: none; margin: 0; padding: 0; }
.story-nav li { border-top: 1px solid var(--line); }
.story-nav a { position: relative; display: grid; grid-template-columns: 34px 1fr; align-items: center; min-height: 52px; padding: 8px 8px 8px 0; color: var(--muted); font-size: var(--type-meta); line-height: 1.5; }
.story-nav a::before { position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--orange); content: ""; transition: width 180ms ease-out; }
.story-nav a span { font-size: var(--type-meta); line-height: 1.5; letter-spacing: .08em; }
.story-nav a[aria-current="location"] { color: var(--ink); }
.story-nav a[aria-current="location"]::before { width: 38px; }
.story-chapter { scroll-margin-top: 28px; padding: 48px 0 54px 34px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); transition: border-color 180ms ease-out; }
.story-chapter:last-child { border-bottom: 1px solid var(--line); }
.story-chapter.is-active { border-left-color: var(--orange); }
.story-number { margin-bottom: 24px; color: var(--muted); font-size: var(--type-meta); line-height: 1.5; font-weight: 400; letter-spacing: .13em; }
.story-chapter h2, .story-chapter h3 { max-width: 720px; margin: 0 0 24px; font-size: var(--type-section); font-weight: 300; line-height: 1.05; letter-spacing: -.045em; }
.story-chapter > p:not(.story-number) { max-width: 660px; color: var(--muted); font-size: var(--type-body); line-height: 1.6; }
.story-result { margin-top: 26px; color: var(--ink) !important; font-size: var(--type-body) !important; }
.story-result span { display: block; margin-bottom: 5px; color: var(--accent-text); font-size: var(--type-meta); line-height: 1.5; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.story-scope { margin-top: 14px; font-size: var(--type-meta) !important; line-height: 1.5 !important; }
.story-note { max-width: 760px; margin: 34px 0 0 auto; color: var(--muted); font-size: var(--type-meta); line-height: 1.5; }
.story-note:target { scroll-margin-top: 28px; }
.cv-hero { padding: 4rem 5% 5rem; border-bottom: 1px solid var(--line); }
.cv-hero-copy { max-width: 52rem; margin-inline: auto; }
.cv-hero h1 { width: auto; max-width: 10ch; font-size: var(--type-page); line-height: 1; letter-spacing: -.045em; }
.cv-hero .large { max-width: 39rem; margin-top: 2rem; }
.cv-hero .large, .cv-experiments .large { font-size: var(--type-lead); font-weight: 400; line-height: 1.6; }
.cv-hero .eyebrow, .cv-section .eyebrow, .cv-hero .type-line { font-size: var(--type-meta); line-height: 1.5; }
.cv-section h2 { font-size: var(--type-section); line-height: 1.05; letter-spacing: -.045em; }
.cv-hero-actions { display: grid; align-items: stretch; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; width: min(100%, 39rem); margin-top: 3.25rem; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 400; }
.text-link:hover { color: var(--accent-text); border-color: currentColor; }
.cv-section { padding: 96px 5%; border-bottom: 1px solid var(--line); }
.cv-section > .eyebrow { margin-bottom: 26px; }
.cv-section > h2 { max-width: 14ch; margin-bottom: 3rem; }
.cv-timeline { position: relative; max-width: 68rem; margin: 0; padding: 0; list-style: none; }
.cv-timeline::before { position: absolute; top: 2rem; bottom: 2rem; left: calc(11.25rem + 14px + 5px); width: 1px; background: var(--line); content: ""; }
.cv-timeline-item { display: grid; grid-template-columns: 11.25rem 1.5rem minmax(0, 1fr); gap: 0 14px; padding: 32px 0; border-top: 1px solid var(--line); }
.cv-timeline-item:last-child { border-bottom: 1px solid var(--line); }
.cv-period { position: relative; padding-right: 16px; color: var(--muted); font-size: var(--type-meta); font-weight: 400; line-height: 1.5; }
.cv-period span { display: block; margin-top: 8px; color: var(--accent-text); font-size: var(--type-meta); line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; }
.cv-terminal { z-index: 1; width: 10px; height: 10px; margin-top: 4px; border: 1px solid var(--muted); background: var(--paper); }
.cv-timeline-item h3 { max-width: 42rem; margin: 0 0 16px; font-size: var(--type-item); font-weight: 300; line-height: 1.15; letter-spacing: -.045em; }
.cv-timeline-item div > p { max-width: 65ch; color: var(--muted); font-size: var(--type-body); font-weight: 400; }
.cv-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-bottom: 3rem; }
.cv-section-heading h2 { margin: 0; }
.cv-section-range { color: var(--muted); font-size: var(--type-meta); font-weight: 400; line-height: 1.5; }

.cv-expertise dl { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 68rem; margin: 0; }
.cv-expertise-item { padding: 2rem 0; border-top: 1px solid var(--line); }
.cv-expertise-item:last-child { border-bottom: 1px solid var(--line); }
.cv-expertise-item dt { margin-bottom: 18px; font-size: var(--type-item); font-weight: 300; line-height: 1.15; letter-spacing: -.04em; overflow-wrap: anywhere; }
.cv-expertise-item dd { margin: 0; }
.cv-expertise-item dd > p:first-child { max-width: 65ch; color: var(--muted); font-size: var(--type-body); font-weight: 400; }
.cv-technologies { max-width: 35rem; margin-top: 16px; font-size: var(--type-meta); font-weight: 400; line-height: 1.55; }
.cv-experiments { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 8%; align-items: start; background: var(--surface); }
.cv-experiments .eyebrow { margin: 0; }
.cv-experiments h2 { max-width: 12ch; margin-bottom: 28px; }
.cv-experiments .large { max-width: 33rem; }
.cv-scope { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 64px 5% 76px; border-bottom: 1px solid var(--line); }
.cv-scope > p { max-width: 65ch; color: var(--muted); font-size: var(--type-meta); font-weight: 400; line-height: 1.5; }
.cv-scope > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 1.5rem; }
.cv-scope .button { margin: 0; }
.projects { padding: 98px 5%; }
.section-heading { display: flex; justify-content: space-between; gap: 36px; align-items: flex-end; margin-bottom: 48px; }
.section-heading>p { font-size: 14px; color: var(--muted); padding-right: 6%; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.project { border-bottom: 1px solid var(--line); }
.project-art { height: 290px; display: grid; place-items: center; overflow: hidden; }
.project-game-link { cursor: pointer; }
.game .project-art { background: var(--orange); }
.game .project-art>span { font-size: clamp(72px, 8vw, 116px); font-weight: 300; letter-spacing: -.08em; }
.play-triangle { font-size: 43px; display: inline-block; margin-left: 20px; vertical-align: 9px; }
.home-lab .project-art { background: var(--blue); }
.home-lab-brand { display: grid; place-items: center; width: 100%; height: 100%; padding: clamp(1.5rem, 4vw, 3.5rem); }
.home-assistant-mark { width: clamp(7.5rem, 15vw, 10.5rem); height: auto; }
.home-assistant-house { fill: var(--on-accent); }
.home-assistant-circuit { fill: none; stroke: var(--blue); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.home-assistant-mark circle { fill: var(--blue); }
.home-lab .project-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 22px; border-bottom: 1px solid var(--ink); font-size: var(--type-meta); font-weight: 400; }
.home-lab .project-link:hover { color: var(--accent-text); border-color: currentColor; }
.homelab-hero { display: grid; grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.45fr); gap: clamp(3rem, 9vw, 10rem); align-items: stretch; padding: clamp(4rem, 8vw, 8rem) 5% clamp(4rem, 7vw, 7rem); border-bottom: 1px solid var(--line); }
.homelab-hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 4rem; padding-block: .5rem; }
.homelab-hero .eyebrow { margin: 0; }
.homelab-hero h1 { position: static; width: auto; max-width: 8.5ch; justify-self: end; font-size: var(--type-page); line-height: 1; letter-spacing: -.045em; font-weight: 300; }
.homelab-hero .large { max-width: 29rem; margin: 0; color: var(--muted); }
.homelab-page .large { font-size: var(--type-lead); font-weight: 400; line-height: 1.6; }
.homelab-page .eyebrow { font-size: var(--type-meta); line-height: 1.5; }
.homelab-page h2 { font-size: var(--type-section); line-height: 1.05; letter-spacing: -.045em; }
.homelab-approach { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 8%; padding: 6rem 5%; border-bottom: 1px solid var(--line); }
.homelab-approach h2 { max-width: 12ch; margin-bottom: 2rem; }
.homelab-approach .large { max-width: 36rem; margin-bottom: 1.5rem; }
.homelab-approach div > p:not(.large) { max-width: 38rem; color: var(--muted); font-size: var(--type-body); font-weight: 400; line-height: 1.6; }
.homelab-principles { padding: 6rem 5%; border-bottom: 1px solid var(--line); }
.homelab-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8%; align-items: end; margin-bottom: 3.5rem; }
.homelab-section-heading .eyebrow { margin: 0; }
.homelab-section-heading h2 { max-width: 12ch; }
.homelab-principles ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.homelab-principle { min-height: 16rem; padding: 1.5rem 0; border-top: 1px solid var(--ink); }
.homelab-principle > span { display: block; margin-bottom: 2rem; color: var(--orange); font-size: var(--type-meta); line-height: 1.5; font-weight: 400; letter-spacing: .13em; }
.homelab-principle h3 { margin-bottom: 1rem; font-size: var(--type-item); font-weight: 300; line-height: 1.15; letter-spacing: -.04em; }
.homelab-principle p { max-width: 22rem; color: var(--muted); font-size: var(--type-body); font-weight: 400; line-height: 1.6; }
.homelab-scope { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 8%; padding: 5rem 5% 6rem; background: var(--blue); color: var(--on-accent); }
.homelab-scope .eyebrow { margin-bottom: 2rem; }
.homelab-scope h2 { max-width: 12ch; }
.homelab-scope .large { max-width: 41rem; }
.homelab-scope .text-link { margin-top: 2rem; border-color: var(--on-accent); }
.homelab-scope .text-link:hover { color: var(--accent-text); }
.photo-hero { padding: 4.75rem 5% 6rem; border-bottom: 1px solid var(--line); }
.photo-hero-copy { max-width: 62rem; }
.photo-hero h1 { width: auto; max-width: 11ch; font-size: var(--type-page); line-height: 1; letter-spacing: -.045em; }
.photo-hero .large { max-width: 42rem; margin-top: 2rem; }
.photo-page .large { font-size: var(--type-lead); font-weight: 400; line-height: 1.6; }
.photo-page .eyebrow, .photo-page .type-line { font-size: var(--type-meta); line-height: 1.5; }
.photo-page h2 { font-size: var(--type-section); line-height: 1.05; letter-spacing: -.045em; }
.photo-empty { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 8vw, 9rem); align-items: center; padding: 6rem 5%; border-bottom: 1px solid var(--line); }
.photo-empty-art { position: relative; min-height: 25rem; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.photo-preview-art { display: block; width: 100%; height: 100%; }
.photo-preview-frame, .photo-preview-cross, .photo-preview-corner { fill: none; stroke: var(--line); stroke-width: 1; }
.photo-preview-track { fill: none; stroke: var(--blue); stroke-width: 2; }
.photo-preview-node { fill: var(--orange); }
.photo-empty-art > p { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; margin: 0; color: var(--muted); font-size: var(--type-meta); line-height: 1.5; font-weight: 400; letter-spacing: .13em; }
.photo-empty h2 { max-width: 11ch; margin-bottom: 2rem; }
.photo-empty .large { max-width: 35rem; }
.photo-structure { padding: 6rem 5%; border-bottom: 1px solid var(--line); }
.photo-structure-heading { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 8%; margin-bottom: 3.5rem; }
.photo-structure-heading .eyebrow { margin: 0; }
.photo-structure-heading h2 { max-width: 13ch; margin-bottom: 2rem; }
.photo-structure-heading .large { max-width: 38rem; }
.photo-structure ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.photo-format { min-height: 17rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--ink); }
.photo-format > span { display: block; margin-bottom: 2rem; color: var(--orange); font-size: var(--type-meta); line-height: 1.5; font-weight: 400; letter-spacing: .13em; }
.photo-format h3 { margin-bottom: 1rem; font-size: var(--type-item); font-weight: 300; line-height: 1.15; letter-spacing: -.04em; }
.photo-format p { max-width: 22rem; color: var(--muted); font-size: var(--type-body); font-weight: 400; line-height: 1.6; }
.photo-next { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 8%; padding: 5rem 5% 6rem; background: var(--blue); color: var(--on-accent); }
.photo-next .eyebrow { margin-bottom: 2rem; }
.photo-next h2 { max-width: 12ch; }
.photo-next .large { max-width: 41rem; }
.photo-next .text-link { margin-top: 2rem; border-color: var(--on-accent); }
.photo-next .text-link:hover { color: var(--accent-text); }
.project-info { padding: 28px 0 34px; }
.tag { font-size: var(--type-meta); }
.project h3 { font-size: var(--type-item); line-height: 1.15; letter-spacing: -.045em; font-weight: 300; margin: 16px 0; }
.project p { font-size: 14px; color: var(--muted); max-width: 360px; }
.status { display: inline-block; font-size: var(--type-meta); letter-spacing: .07em; border-bottom: 1px solid currentColor; padding: 0 0 6px; margin-top: 25px; }
.company { margin: 0 5%; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 64px 0 76px; display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.company h2 span { color: var(--orange); }
.company .large { margin: 54px 0 22px; max-width: 440px; }
.company p:not(.large):not(.eyebrow) { font-size: 14px; color: var(--muted); max-width: 380px; }
.button { margin-top: 34px; display: inline-flex; justify-content: space-between; gap: 80px; padding: 17px 0; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 400; }
.button:hover { color: #ad4f00; border-color: currentColor; }
.practice-teaser .button, .company .button, .lens .button, .projects .project-link, .projects .game .status { position: relative; width: 100%; }
.practice-teaser .button::before, .company .button::before, .lens .button::before, .projects .project-link::before, .projects .game .status::before { content: ""; position: absolute; inset: 0 0 auto; border-top: 1px solid var(--ink); pointer-events: none; }
.projects .game .status { padding-top: 6px; margin-top: 19px; }
.lens { padding: 96px 5%; display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: center; }
.lens-art { background: #e8e3d9; height: 330px; display: flex; align-items: center; justify-content: space-around; overflow: hidden; }
.lens-art div { width: 210px; aspect-ratio: 1; border: 1px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 24px #e8e3d9, 0 0 0 25px var(--blue), 0 0 0 55px #e8e3d9, 0 0 0 56px var(--blue); background: var(--blue); }
.lens-art span { font-size: 20px; z-index: 1; }
.lens h2 { margin-bottom: 26px; }
.lens p:not(.eyebrow) { font-size: 14px; color: var(--muted); max-width: 350px; }
footer { padding: 2rem max(1rem, 5%); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
footer p, footer>a:last-child { font-size: var(--type-meta); line-height: 1.5; font-weight: 400; color: var(--muted); }
footer p { max-width: 65ch; }
html.has-reveal .reveal { opacity: 0; transform: translateY(10px); }
html.has-reveal .reveal.is-revealed { opacity: 1; transform: none; transition: opacity 200ms ease-out var(--reveal-delay, 0ms), transform 200ms ease-out var(--reveal-delay, 0ms); }
.selector-main, .not-found { min-height: 100vh; max-width: 1680px; margin: auto; padding: clamp(6rem, 10vw, 8rem) max(1rem, 5%) 3rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.selector-main .logo, .not-found .logo { position: absolute; top: 2rem; }
.selector-main .eyebrow { margin: 0 0 1.75rem; }
.selector-main h1, .not-found h1 { width: auto; max-width: 100%; line-height: 1; letter-spacing: -.045em; }
.selector-main h1 { font-size: var(--type-display); }
.not-found h1 { font-size: var(--type-page); }
.selector-main .eyebrow, .not-found .eyebrow { font-size: var(--type-meta); line-height: 1.5; }
.selector-main, .not-found { font-size: var(--type-body); font-weight: 400; }
.selector-main .logo, .not-found .logo { display: inline-flex; align-items: center; min-height: 2.75rem; }
.selector-intro, .not-found > p { max-width: 65ch; margin-top: 1.5rem; color: var(--muted); font-size: var(--type-body); line-height: 1.6; }
.selector-links { width: min(100%, 52rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 3rem; border-top: 1px solid var(--ink); }
.selector-links a { display: flex; flex-direction: column; gap: .65rem; min-height: 9rem; padding: 1.25rem 1.25rem 1.25rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.selector-links a + a { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.selector-links strong { font-size: var(--type-item); line-height: 1.15; font-weight: 300; letter-spacing: -.045em; }
.selector-links span { color: var(--muted); font-size: var(--type-meta); line-height: 1.5; }
.selector-links a:hover { color: var(--accent-text); }
.not-found { gap: 0; }
.not-found .eyebrow { margin: 0 0 1.25rem; }
.not-found .button { margin-top: 2rem; font-size: var(--type-meta); line-height: 1.5; }
.skip { position: absolute; top: -100px; left: 16px; display: inline-flex; min-height: 44px; align-items: center; background: var(--ink); color: var(--paper); padding: 12px; z-index: 5; }
.skip:focus { top: 16px; }
@media (max-width: 900px) {
  .header-tools { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; }
  .hero-bottom { gap: 24px; }
  .about, .company, .lens { gap: 32px; }
  .lens-art div { width: 150px; }
}
@media (max-width: 640px) {
  .logo { font-size: 24px; }
  .hero { padding: 40px 6% 48px; grid-template-columns: 1fr; }
  h1 { max-width: 100%; }
  .eyebrow { letter-spacing: .08em; margin-bottom: 30px; }
  .hero-bottom { justify-content: space-between; margin-top: 30px; }
  .hero-bottom p { max-width: 245px; }
  .signal { width: 100%; max-width: 480px; justify-self: center; padding-block: 0; }
  .about, .company, .lens { grid-template-columns: 1fr; gap: 32px; }
  .about, .projects, .lens { padding: 52px 6%; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading>p { margin-top: 24px; }
  .project-grid { grid-template-columns: 1fr; gap: 32px; }
  .project-art { height: 240px; }
  .company { margin: 0 6%; padding: 48px 0; gap: 0; }
  .company .large { margin-top: 30px; }
  .lens-art { height: 270px; }
  footer { padding: 1.5rem max(1rem, 6%); flex-wrap: wrap; }
  .selector-main, .not-found { padding-inline: max(1rem, 6%); }
  footer p { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Shared navigation CTA: the landing treatment also used by every detail page. */
.navigation-action { display: grid; grid-template-columns: minmax(0, 1fr) 3rem; align-items: center; gap: 1.5rem; width: 100%; min-height: 5.5rem; margin-top: 2rem; padding: 1rem 0; border-block: 1px solid currentColor; color: inherit; font-weight: 400; }
.navigation-action-copy { min-width: 0; }
.navigation-action-copy strong { display: block; font-size: 1.125rem; line-height: 1.4; font-weight: 400; overflow-wrap: anywhere; }
.navigation-action-copy small { display: block; margin-top: .5rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.navigation-action-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid currentColor; color: inherit; }
.navigation-action-icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--accent-text); stroke-width: 1.5; }
.navigation-action:hover .navigation-action-icon, .navigation-action:focus-visible .navigation-action-icon { background: var(--orange); }
.navigation-action:hover .navigation-action-icon svg, .navigation-action:focus-visible .navigation-action-icon svg { stroke: var(--on-accent); }
.cv-hero-actions .navigation-action, .cv-scope .navigation-action { margin-top: 0; }
.homelab-scope .navigation-action-icon svg, .photo-next .navigation-action-icon svg { stroke: var(--on-accent); }
.homelab-scope .navigation-action:focus-visible, .photo-next .navigation-action:focus-visible { outline-color: var(--on-accent); }
.story-next .navigation-action { max-width: 47.5rem; }

/* Reading state belongs to the terminal; static rows do not react to hover. */
.cv-timeline-item.is-active .cv-terminal { border-color: var(--accent-text); background: var(--accent-text); }

.storage-notice { width: min(100%, 52rem); margin-top: 2rem; }
.storage-notice summary { width: fit-content; min-height: 2.75rem; padding: .75rem 0; color: var(--muted); font-size: var(--type-meta); line-height: 1.5; cursor: pointer; }
.storage-notice summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.storage-notice-content { display: grid; gap: 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.storage-notice h2 { margin: 0 0 1rem; font-size: var(--type-item); font-weight: 300; line-height: 1.15; letter-spacing: -.04em; }
.storage-notice p { max-width: 65ch; color: var(--muted); font-size: var(--type-meta); line-height: 1.6; }
footer p a { text-decoration: underline; text-underline-offset: .2em; }

.lens-status { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--type-meta); line-height: 1.5; }
