/* One persistent sheet spans Zenith router content swaps. */
html[data-k2-route] { overflow:hidden; }
.paper-shutter { position:fixed; inset:0; z-index:65; background:var(--mat,#e4e1da); color:var(--ink,#141311); border-bottom:1px solid currentColor; display:flex; align-items:center; justify-content:center; pointer-events:none; will-change:transform; }
.paper-shutter-label { width:84%; overflow:clip; text-align:center; perspective:800px; }
.paper-shutter-line { backface-visibility:hidden; transform-origin:50% 50%; }
.paper-shutter-title { display:block; perspective:800px; font:400 clamp(48px,9vw,144px)/1.08 var(--font-display,"Instrument Serif",serif); overflow-wrap:anywhere; }
.paper-shutter-context { position:absolute; left:var(--shell-gutter,48px); right:var(--shell-gutter,48px); bottom:8%; font:400 11px/1.6 var(--font-mono,"JetBrains Mono",monospace); letter-spacing:.6px; }
.paper-shutter-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
html[data-theme="night"] .paper-shutter { background:#1c1b18; color:#f0eee9; }
@media(prefers-color-scheme:dark) {
 html:not([data-theme="light"]) .paper-shutter { background:#1c1b18; color:#f0eee9; }
}
/* ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  /* Keep mobile text inflation from resizing individual SplitText masks.
     Browser zoom remains available; the responsive type scale owns layout. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 5;
  transform: translateY(-160%);
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.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;
}

.label,
.kicker,
.meta,
.theme-tip,
figcaption,
.clock,
.fig-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}

.display-hero {
  font-size: 2.5rem;
}

.display-page,
.display-study,
.display-contact {
  font-size: 2.75rem;
}

.display-index {
  font-size: 2rem;
}

.lede {
  max-width: 42rem;
  font-size: 16px;
}

@media (min-width: 768px) {
  .display-hero,
  .display-study {
    font-size: 4.5rem;
  }

  .display-page {
    font-size: 6rem;
  }

  .display-contact {
    font-size: 6.5rem;
  }

  .display-index {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .display-page {
    font-size: 7.5rem;
  }

  .display-contact {
    font-size: 8.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ---- */
/* Shared future sections inherit the accepted type, frame, link and motion vocabulary. */
.content-block { margin-block:clamp(40px,6vw,88px); }
.content-block:first-child { margin-top:0; }
.block-text { max-width:100%; }
.block-prose { max-width:none;font:400 18px/1.65 var(--font-body);margin-top:24px; }
.block-prose p + p { margin-top:24px; }
.block-media { max-width:none;margin-inline:auto; }
.block-media .plate-body { padding:7px; }
.block-media .study-media { height:auto; }
.block-media img { display:block;width:100%;height:auto;object-fit:contain; }
.block-caption { margin-top:12px;font:11px/1.5 var(--font-mono);color:var(--mute); }
.block-quote { padding-block:32px;border-block:1px solid var(--ink); }
.block-quote blockquote { margin:0;max-width:none;font:400 clamp(32px,4vw,64px)/1.2 var(--font-display); }
.block-quote figcaption { margin-top:24px;color:var(--mute);font:12px/1.5 var(--font-mono); }
.block-links > div { display:flex;flex-wrap:wrap;gap:20px 40px;margin-top:24px; }
main[data-page-blocks] > .content-block { margin-inline:var(--shell-gutter); }
@media(max-width:767px) { .block-prose {font-size:14px;line-height:1.65}.block-links > div {gap:20px} }

.block-form { max-width:none;margin-inline:auto; }
.block-form form { margin-top:24px; }

/* Shared editorial chapters for Home, About, Work and Experience. */
.page-section { margin-block:clamp(72px,8vw,144px); }
.page-section-inner { position:relative; padding-top:25px; }
.section-rule { position:absolute; inset:0 0 auto; height:1px; display:flex; pointer-events:none; }
.section-rule > span { width:50%; height:100%; background:var(--hairline); transform-origin:left center; }
.section-rule > span:last-child { transform-origin:right center; }
.page-section .section-index { margin:0 0 40px; color:var(--mute); font:11px/1.4 var(--font-mono); letter-spacing:.06em; }
.page-section .content-block,.page-section .about-how,.page-section .about-recent { margin:0; max-width:none; }
.page-section h2 { font:400 clamp(36px,4.4vw,72px)/1.06 var(--font-display); letter-spacing:-.015em; max-width:none; }
.page-section .block-text,.page-section .about-how { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:clamp(32px,5vw,88px); align-items:start; }
.page-section .block-text .section-title { display:flex; flex-direction:column; align-items:flex-start; gap:32px; }
.page-section .section-title > a { font:13px/1.6 var(--font-body); }
.page-section .block-prose { margin:0; max-width:none; font:400 clamp(16px,1.4vw,21px)/1.7 var(--font-body); }
.page-section .block-prose p + p { margin-top:28px; }
.page-section .principles { margin:0; padding:0; list-style:none; }
.page-section .principles .ledger-row { grid-template-columns:32px minmax(0,1fr); gap:24px; min-height:0; padding:0 0 28px; }
.page-section .principles .ledger-row + .ledger-row { padding-top:28px; }
.page-section .principles p { padding:0; font-size:clamp(16px,1.4vw,21px); line-height:1.65; }
.page-section .principles .role-year { padding-top:6px; }
.page-section .about-recent .section-title { display:flex; justify-content:space-between; gap:24px; align-items:flex-end; }
.page-section .recent-ledger { margin-top:48px; }
.page-section .recent-ledger .ledger-row { grid-template-columns:176px minmax(0,1fr) minmax(160px,.6fr) 20px; min-height:100px; gap:24px; padding-block:24px; }
.page-section .recent-company { font-size:clamp(28px,2.5vw,40px); }
.page-section .recent-ledger .role-year { white-space:nowrap; }
.page-section .recent-ledger .ledger-row > span:last-child { transition:transform .18s cubic-bezier(.22,1,.36,1); }
.page-section .recent-ledger .ledger-row[data-selected] > span:last-child { transform:translateX(4px); }
.about-shell { min-height:0; }
.about-shell .about-intro { min-height:0; }
.about-shell .about-story p + p { margin-top:28px; }
.page-section .about-tools { margin:0; }
.page-section .about-tools .section-title { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; }
.page-section .about-tools .section-title > a { font:13px/1.6 var(--font-body); }
.page-section .about-tools .tool-row { margin-top:40px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.page-section .tool-card { display:block; min-width:0; color:inherit; text-decoration:none; }
.page-section .tool-card:focus-visible { outline:2px solid var(--ink); outline-offset:8px; }
.page-section .tool-row .plate,.page-section .tool-row .plate-body { height:100%; }
.page-section .tool-card .plate-body,.page-section .tool-card .view-frame { padding:0; }
.page-section .tool-card .view-frame { height:100%; }
.page-section .tool-link { min-height:232px; height:100%; display:flex; flex-direction:column; align-items:flex-start; gap:20px; padding:24px; }
.page-section .tool-link h3 { font:400 clamp(30px,3vw,44px)/1.15 var(--font-display); }
.page-section .tool-link p { font:14px/1.65 var(--font-body); max-width:none; }
.page-section .tool-link .tool-cta { margin:auto 0 0; font:11px/1.5 var(--font-mono); }
.page-section .tool-cta span { font:inherit; }
.about-shell > .about-resume { margin-top:48px; }

@media(prefers-reduced-motion:reduce) {
  .page-section .recent-ledger .ledger-row > span:last-child { transition:none; transform:none; }
}

@media(max-width:1023px) {
  .page-section .recent-ledger .ledger-row { grid-template-columns:100px minmax(0,1fr) 160px 16px; gap:16px; }
}
@media(max-width:767px) {
  .page-section { margin-block:64px; }
  .page-section-inner { padding-top:19px; }
  .page-section .section-index { margin-bottom:28px; font-size:10px; }
  .page-section h2 { font-size:42px; max-width:none; }
  .page-section .block-text,.page-section .about-how { grid-template-columns:minmax(0,1fr); gap:32px; }
  .page-section .block-text .section-title { gap:20px; }
  .page-section .block-prose,.page-section .principles p { font-size:16px; }
  .page-section .principles .ledger-row { gap:16px; padding-bottom:24px; }
  .page-section .principles .ledger-row + .ledger-row { padding-top:24px; }
  .page-section .about-recent .section-title { display:flex; flex-direction:column; align-items:flex-start; gap:24px; }
  .page-section .recent-ledger { margin-top:32px; }
  .page-section .recent-ledger .ledger-row { grid-template-columns:82px minmax(0,1fr) 16px; gap:6px 12px; min-height:88px; padding-block:20px; }
  .page-section .recent-company { grid-column:2; grid-row:1; font-size:26px; }
  .page-section .recent-ledger .role-year { grid-column:1; grid-row:1; padding-top:6px; font-size:10px; align-self:start; }
  .page-section .recent-ledger .role-name { display:block; grid-column:2; grid-row:2; font-size:12px; }
  .page-section .recent-ledger .ledger-row > span:last-child { grid-column:3; grid-row:1; }
  .page-section .about-tools .section-title { align-items:flex-start; flex-direction:column; gap:24px; }
  .page-section .about-tools .tool-row { grid-template-columns:minmax(0,1fr); gap:24px; margin-top:32px; }
  .page-section .tool-link { min-height:200px; padding:24px 20px; }
  .page-section .tool-link h3 { font-size:36px; }
  .about-shell .about-story { font-size:16px; line-height:1.7; }
}

/* Career chapters use the shared editorial rules and existing image frames. */
.experience-shell.route-shell { min-height:0; }
.experience-shell .route-heading-split { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:40px; min-height:200px; }
.experience-shell .display-page { font-size:clamp(64px,7.5vw,120px); }
.career-chapters { list-style:none; margin:48px 0 0; padding:0; }
.career-chapters > li + li { border-top:1px solid var(--rule); }
.view-card.career-chapter { display:grid; grid-template-columns:112px minmax(0,1fr) minmax(180px,.52fr); gap:40px; align-items:start; padding-block:40px; color:inherit; text-decoration:none; }
.career-chapters > li:first-child .career-chapter { padding-top:0; }
.career-period { margin:7px 0 0; color:var(--mute); font:11px/1.7 var(--font-mono); }
.career-copy h3 { font:400 clamp(32px,3.3vw,52px)/1.13 var(--font-display); }
.career-position { margin-top:18px; font:15px/1.6 var(--font-body); }
.career-summary { margin-top:14px; font:14px/1.7 var(--font-body); color:var(--mute); }
.career-cta { margin-top:24px; font:11px/1.5 var(--font-mono); }
.career-chapter .plate { width:100%; }
.career-chapter .view-frame { position:relative; overflow:clip; }
.career-mark { display:flex; align-items:center; justify-content:center; aspect-ratio:8/5; padding:clamp(24px,3vw,48px); background:#141413; color:#f0eee9; }
.career-mark img { display:block; width:100%; height:100%; min-width:0; min-height:0; object-fit:contain; }
.career-identity { font:400 clamp(26px,2.6vw,42px)/1.12 var(--font-display); text-align:center; overflow-wrap:anywhere; }
.career-chapter:focus-visible { outline:2px solid var(--ink); outline-offset:8px; }
@media(max-width:1023px) {
  .experience-shell .route-heading-split { display:block; min-height:0; }
  .experience-shell .route-heading-split .route-intro { padding-top:24px; }
  .view-card.career-chapter { grid-template-columns:minmax(0,1fr) minmax(160px,.6fr); gap:20px 32px; }
  .career-period { grid-column:1 / -1; }
}
@media(max-width:767px) {
  .experience-shell .display-page { font-size:clamp(48px,12vw,72px); }
  .career-chapters { margin-top:32px; }
  .view-card.career-chapter { grid-template-columns:minmax(0,1fr); gap:24px; padding-block:32px; }
  .career-period { margin:0; font-size:10px; }
  .career-copy h3 { font-size:36px; }
  .career-position { margin-top:14px; font-size:14px; }
  .career-summary { font-size:14px; }
  .career-chapter .plate { width:100%; }
  .career-mark { padding:32px; }
  .career-identity { font-size:34px; }
}

/* Home is an opening page; the interactive index is a later chapter. */
.hero.hero-cover {
  /* The portrait shares both rows, so its height never stacks below the intro.
     Its 4:5 frame reserves room for the header, padding and caption. */
  display:grid; grid-template-columns:minmax(0,1fr) min(27vw,calc((100svh - var(--shell-height) - 96px) * .8));
  grid-template-rows:1fr auto; gap:40px 64px; height:auto;
  min-height:calc(100svh - var(--shell-height)); padding-block:36px 36px;
}
.hero-cover .hero-copy { grid-column:1; grid-row:1; position:static; min-height:0; border:0; width:auto; }
.hero-cover .hero-copy::after { content:none; }
.hero.hero-cover .display-hero { font-size:clamp(72px,8.7vw,144px); line-height:1.04; letter-spacing:-.025em; white-space:normal; }
.hero.hero-cover .lede { width:75%; max-width:none; margin-top:24px; font-size:clamp(17px,1.45vw,23px); line-height:1.55; }
.hero-cover .hero-current { position:static; grid-column:1; grid-row:2; align-self:end; margin:0; width:75%; padding-bottom:20px; border-bottom:1px solid var(--ink); }
.hero-cover .hero-current .meta { font-size:11px; line-height:1.6; }
.hero-cover .hero-current .resume-link { margin-top:12px; }
.page .hero-cover .hero-stage { grid-column:2; grid-row:1 / 3; align-self:end; width:100%; margin:0; }
.hero-cover .hero-stage figcaption { position:static; margin:8px 0 0; font:10px/1.4 var(--font-mono); }

/* Shared, locally scoped table + frame preview. Logos keep their full shape. */
.figure-index-section .section-title { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; }
.preview-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,.42fr); gap:clamp(36px,6vw,96px); align-items:start; margin-top:48px; }
.figure-index .label { font:10px/1.5 var(--font-mono); color:var(--mute); margin-bottom:12px; }
.figure-index .figure-list { margin:0; padding:0; }
.figure-index .figure-row { display:grid; grid-template-columns:32px minmax(0,1fr); gap:20px; height:auto; min-height:84px; padding-block:16px; }
.figure-index .figure-row > span:first-child { font:11px/1.4 var(--font-mono); }
.figure-index .figure-row > span:last-child { font:400 clamp(30px,3.1vw,48px)/1.15 var(--font-display); white-space:normal; }
.preview-stage { margin:0; min-width:0; }
.preview-stage .stage-clip { position:relative; width:100%; height:auto; aspect-ratio:4/5; overflow:visible; border:1px solid var(--ink); }
.preview-stage .stage-clip > img:not([hidden]),.preview-stage .stage-clip > pre:not([hidden]) { display:block !important; position:absolute; inset:0; width:100%; height:100%; padding:var(--frame-inset); background:var(--mat); object-fit:contain; }
.preview-stage .stage-clip > pre:not([hidden]) { padding:24px 18px; overflow:auto; white-space:pre-wrap; font:12px/1.7 var(--font-mono); }
.preview-stage figcaption { margin-top:12px; min-height:2.8em; font:10px/1.4 var(--font-mono); color:var(--mute); }
.page-section .about-recent-logos .recent-ledger { margin-top:0; }
.page-section .about-recent-logos .ledger-row { grid-template-columns:92px minmax(0,1fr) 20px; gap:6px 20px; min-height:110px; }
.about-recent-logos .recent-company { grid-column:2; grid-row:1; }
.about-recent-logos .role-year { grid-column:1; grid-row:1; align-self:start; padding-top:7px; font-size:10px; }
.page-section .about-recent-logos .role-name { display:block; grid-column:2; grid-row:2; font-size:13px; }
.about-recent-logos .ledger-row > span:last-child { grid-column:3; grid-row:1; }
.logo-stage .stage-clip { aspect-ratio:1; }
.logo-stage .stage-clip > img:not([hidden]) { padding:clamp(24px,3vw,48px); background:#141413; }
.preview-touch-hint { display:none; margin-top:18px; color:var(--mute); font:11px/1.6 var(--font-mono); }
@media(hover:none) { .preview-touch-hint { display:block; } }
@media(min-width:768px) and (max-height:800px) {
  .hero.hero-cover { gap:28px 48px; }
}
@media(max-width:767px) {
  .hero.hero-cover { grid-template-columns:minmax(0,1fr) minmax(140px,.95fr); grid-template-rows:1fr auto; gap:28px 24px; padding-block:16px 28px; min-height:calc(100svh - var(--shell-height)); }
  .hero-cover .hero-copy { grid-column:1 / -1; }
  .hero.hero-cover .display-hero { font-size:clamp(52px,12vw,78px); line-height:1.02; }
  .hero.hero-cover .lede { width:100%; font-size:15px; line-height:1.55; margin-top:20px; }
  .hero-cover .hero-current { width:100%; padding-bottom:12px; }
  .hero-cover .hero-current .meta { font-size:9px; margin-bottom:8px; }
  .hero-cover .hero-current .mobile-copy > p:last-child { font-size:12px; line-height:1.5; }
  .hero-cover .hero-current .resume-link { font-size:12px; }
  .page .hero-cover .hero-stage { grid-row:2; width:100%; }
  .hero-cover .hero-stage figcaption { font-size:9px; }
  .figure-index-section .section-title { align-items:flex-start; flex-direction:column; gap:24px; }
  .preview-layout { grid-template-columns:minmax(0,1fr); gap:32px; margin-top:32px; }
  .preview-stage { grid-row:1; width:min(100%,260px); justify-self:end; }
  .preview-stage .stage-clip { aspect-ratio:4/3; }
  .preview-stage .stage-clip > pre:not([hidden]) { font-size:10px; line-height:1.35; padding:12px; }
  .preview-stage figcaption { min-height:0; font-size:9px; }
  .figure-index .figure-row { min-height:70px; grid-template-columns:24px minmax(0,1fr); gap:16px; }
  .figure-index .figure-row > span:last-child { font-size:30px; }
  .page-section .about-recent-logos .ledger-row { grid-template-columns:72px minmax(0,1fr) 16px; gap:6px 12px; min-height:96px; }
  .page-section .about-recent-logos .recent-company { font-size:26px; }
  .logo-stage .stage-clip { aspect-ratio:3/2; }
}
/* ---- */
/* Project catalog in the same editorial language as Writing. */
.catalog-row-preview { position:fixed; top:0; left:0; z-index:45; width:clamp(240px,28vw,360px); visibility:hidden; transform:scale(0); pointer-events:none; }
.catalog-row-preview .plate { width:100%; background:var(--paper); }
.catalog-row-preview .plate-body { padding:7px; }
.catalog-preview-media { position:relative; aspect-ratio:8/5; background:var(--mat); }
.catalog-preview-media > [data-preview-key] { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; background:var(--mat); opacity:0; }
.catalog-preview-media > .catalog-preview-note { display:flex; flex-direction:column; justify-content:center; padding:22px; gap:16px; }
.catalog-preview-note span { font:10px/1.5 var(--font-mono); color:var(--mute); }
.catalog-preview-note strong { font:400 28px/1.14 var(--font-display); }
@media(hover:none),(pointer:coarse),(max-width:767px) { .catalog-row-preview { display:none; } }
.work-shell.route-shell { min-height:0; }
.content-catalog { margin-top:48px; }
.content-catalog > .section-title h2 { font:400 clamp(36px,3.5vw,56px)/1.12 var(--font-display); }
.catalog-controls { margin-top:32px; }
.catalog-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:32px; }
.catalog-search { display:flex; flex-direction:column; gap:14px; width:50%; min-width:0; }
.catalog-search > span { font:10px/1.4 var(--font-mono); text-transform:uppercase; letter-spacing:.06em; color:var(--mute); }
.catalog-search input { appearance:none; border:0; border-radius:0; border-bottom:1px solid var(--ink); padding:0 0 13px; width:100%; min-width:0; background:transparent; color:var(--ink); font:15px/1.5 var(--font-body); }
.catalog-search input::placeholder { color:var(--mute); opacity:1; }
.catalog-views { display:flex; gap:24px; padding-bottom:13px; flex-shrink:0; }
.content-catalog button { appearance:none; border:0; border-radius:0; padding:0; background:transparent; color:var(--mute); font:11px/1.5 var(--font-mono); cursor:pointer; }
.catalog-views button { display:flex; align-items:center; gap:10px; }
.catalog-views svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1; }
.content-catalog button[aria-pressed="true"] { color:var(--ink); }
.catalog-views button[aria-pressed="true"] { text-decoration:underline; text-underline-offset:6px; }
.catalog-filter-line { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:24px; padding-bottom:16px; border-bottom:1px solid var(--rule); }
.catalog-filters { display:flex; align-items:center; flex-wrap:wrap; gap:10px 28px; }
.catalog-filters button { position:relative; padding-block:10px; }
.catalog-filters button::after { content:""; position:absolute; inset:auto 0 0; height:1px; background:var(--ink); transform:scaleX(0); transform-origin:right; transition:transform .24s var(--ease-out); }
.catalog-filters button[aria-pressed="true"]::after { transform:scaleX(1); transform-origin:left; }
.catalog-reset { flex-shrink:0; }
.catalog-result-meta { display:flex; justify-content:space-between; gap:20px; margin:24px 0 32px; font:10px/1.5 var(--font-mono); color:var(--mute); }
.catalog-result-meta .meta { font:inherit; }
.catalog-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:48px 32px; }
.catalog-cards > article { min-width:0; }
.catalog-card { display:block; color:inherit; text-decoration:none; }
.catalog-card .plate-body { padding:7px; }
.catalog-card .view-frame { position:relative; overflow:clip; }
.catalog-media { aspect-ratio:var(--frame-landscape); background:var(--mat); width:100%; }
.catalog-media img { display:block; width:100%; height:100%; object-fit:contain; }
.catalog-caption { display:grid; grid-template-columns:24px minmax(0,1fr) auto; gap:16px; margin-top:24px; }
.catalog-number { font:400 24px/1.15 var(--font-display); }
.catalog-caption h3 { font:400 clamp(28px,2.6vw,44px)/1.1 var(--font-display); }
.catalog-caption p { margin:12px 0 0; font:13px/1.65 var(--font-body); }
.catalog-caption .catalog-card-tags { font:10px/1.7 var(--font-mono); color:var(--mute); margin-top:16px; }
.catalog-caption time { padding-top:5px; font:10px/1.5 var(--font-mono); color:var(--mute); }
.catalog-table table { width:100%; border-collapse:collapse; table-layout:fixed; }
.catalog-table th,.catalog-table td { text-align:left; font-weight:400; }
.catalog-table thead th { padding-bottom:20px; font:10px/1.5 var(--font-mono); color:var(--mute); text-transform:uppercase; letter-spacing:.06em; }
.catalog-table th:first-child { width:65%; }
.catalog-table th:nth-child(3) { width:72px; }
.catalog-table tbody tr { border-top:1px solid var(--ink); }
.catalog-table tbody tr:last-child { border-bottom:1px solid var(--ink); }
.catalog-table tbody th,.catalog-table td { padding-block:28px; vertical-align:middle; }
.catalog-table tbody th { padding-right:56px; }
.catalog-table-link { display:grid; grid-template-columns:28px minmax(0,1fr) 20px; gap:20px; align-items:baseline; text-decoration:none; }
.catalog-table-link h3 { font:400 clamp(32px,3vw,48px)/1.15 var(--font-display); }
.catalog-arrow { display:block; font:20px/1 var(--font-body); transition:transform .24s var(--ease-out); }
.catalog-arrow svg { display:block; width:1em; height:1em; }
.catalog-table-link:focus-visible .catalog-arrow { transform:translate(3px,-3px); }
.catalog-table-summary { margin:12px 0 0 48px; font:13px/1.6 var(--font-body); }
.catalog-table-tags,.catalog-table time { font:11px/1.7 var(--font-mono); color:var(--mute); }
.catalog-empty { padding:44px 0 56px; border-block:1px solid var(--rule); }
.catalog-empty h3 { font:400 40px/1.15 var(--font-display); }
.catalog-empty p { margin:16px 0 24px; font:15px/1.6 var(--font-body); color:var(--mute); }
.content-catalog button:focus-visible,.content-catalog a:focus-visible,.catalog-search input:focus-visible { outline:2px solid var(--ink); outline-offset:6px; }
.content-catalog [hidden] { display:none !important; }
.catalog-table caption { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(hover:hover) {
  .content-catalog button:hover { color:var(--ink); }
  .catalog-table-link:hover .catalog-arrow { transform:translate(3px,-3px); }
}
@media(max-width:1199px) { .catalog-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:767px) {
  .work-shell .route-heading-split,.experience-shell .route-heading-split { display:block; min-height:0; }
  .work-shell .route-heading-split .route-intro,.experience-shell .route-heading-split .route-intro { padding-top:20px; }
  .content-catalog { margin-top:56px; }
  .catalog-toolbar { align-items:flex-start; flex-direction:column; gap:24px; }
  .catalog-search { width:100%; }
  .catalog-search input { font-size:16px; }
  .catalog-views { padding:0; }
  .content-catalog button { min-height:44px; }
  .catalog-filter-line { align-items:flex-start; flex-direction:column; gap:8px; margin-top:12px; }
  .catalog-filters { gap:0 24px; }
  .catalog-result-meta { margin-top:20px; }
  .catalog-cards { grid-template-columns:minmax(0,1fr); gap:40px; }
  .catalog-caption { gap:16px; margin-top:24px; }
  .catalog-caption h3 { font-size:34px; }
  .catalog-caption p { font-size:14px; }
  .catalog-table th:first-child { width:66%; }
  .catalog-table tbody th { padding-right:20px; }
  .catalog-table tbody th,.catalog-table td { padding-block:24px; }
  .catalog-table-link { grid-template-columns:minmax(0,1fr) 16px; gap:8px; }
  .catalog-table-link .catalog-number { grid-column:1 / -1; font:10px/1.5 var(--font-mono); color:var(--mute); }
  .catalog-table-link h3 { font-size:29px; }
  .catalog-arrow { font-size:16px; }
  .catalog-table-summary { margin-left:0; font-size:12px; }
  .catalog-table-tags,.catalog-table time { font-size:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .catalog-filters button::after,.catalog-arrow { transition:none; }
  .catalog-table-link:hover .catalog-arrow,.catalog-table-link:focus-visible .catalog-arrow { transform:none; }
}
/* ---- */
.page[data-page="work"] [data-nav="work"],
.page[data-page="writing"] [data-nav="writing"],
.page[data-page="experience"] [data-nav="experience"],
.page[data-page="about"] [data-nav="about"],
.page[data-page="contact"] [data-nav="contact"],
.nav-inline [aria-current="page"],
.menu-panel [aria-current="page"] {
  font-weight: 600;
}

.theme-toggle,
.menu-toggle,
.inspect-toggle,
.text-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.theme-glyph {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
}

[data-theme="night"] .theme-glyph {
  transform: rotate(180deg);
}

.theme-tip {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    box-shadow: inset 0 0 0 1px var(--hairline);
  }

  .theme-toggle:hover .theme-tip {
    opacity: 1;
  }
}

.theme-toggle:active {
  background: var(--ink);
}

.theme-toggle:active .theme-glyph {
  border-color: var(--paper);
  background: linear-gradient(90deg, var(--paper) 50%, transparent 50%);
}

@media (min-width: 1024px) and (pointer: fine) {
  .theme-toggle {
    width: 32px;
    height: 32px;
  }
}

.menu-toggle {
  min-width: 44px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.inspect-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inspect-toggle kbd {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--hairline);
  font-family: inherit;
  font-size: 11px;
}

.plate {
  position: relative;
  min-width: 0;
  border: 1px solid var(--hairline);
  background: var(--mat);
}

.plate-body {
  min-width: 0;
  padding: 16px;
}

.crop {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--ink);
  border-style: solid;
  pointer-events: none;
}

.crop-nw { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.crop-ne { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.crop-sw { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.crop-se { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.plate-code {
  background: var(--plate-code);
  color: var(--plate-code-ink);
}

.plate-code .path {
  color: var(--plate-code-path);
  font-family: var(--font-mono);
  font-size: 12px;
}

.plate-code pre {
  margin: 12px 0 0;
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
}

.portrait {
  margin: 0;
  background: var(--mat);
}

.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.filter-row {
  display: flex;
  gap: 18px;
  padding-bottom: 8px;
}

.filter-row button {
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.filter-row button[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}

.field input,
.field textarea {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 10px 0;
}

.field textarea {
  border: 1px solid var(--hairline);
  padding: 12px;
  min-height: 140px;
  resize: vertical;
}

.copy-status,
.form-status {
  min-height: 1.4em;
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.preloader[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .inspect-toggle {
    display: none;
  }
}

[data-inspect="on"] .plate {
  outline: 1px dashed var(--inspect-amber);
  outline-offset: 4px;
}

/* Motion. GSAP owns playback. These rules only hold the resting clip, the disc, and the theme fade. */

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.skip-link {
  z-index: 90;
}

.plate-body {
  position: relative;
  overflow: hidden;
}

.k2-plate-media {
  transform-origin: center center;
}

.k2-mag {
  display: inline-block;
  pointer-events: none;
}

.theme-toggle > .k2-mag {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.k2-line {
  display: block;
  height: var(--link-ix-ink-weight, 1.5px);
  background: var(--ink, currentColor);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.menu-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-label::before,
.menu-label::after {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  background: currentColor;
}

.menu-panel {
  position: relative;
}

.menu-edge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  pointer-events: none;
}

.menu-aperture {
  position: absolute;
  inset: 32px;
  pointer-events: none;
  opacity: 0;
}

.menu-esc {
  margin: 0;
  padding: 8px 16px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.view-disc {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: clamp(96px, 8vw, 120px);
  height: clamp(96px, 8vw, 120px);
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  pointer-events: none;
  will-change: transform;
}

.view-disc-visual {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  border:1px solid var(--ink);
  border-radius:inherit;
  background:var(--paper);
  color:inherit;
  will-change:transform;
}
.view-disc:has(> .view-disc-visual) { border:0; background:transparent; }

.view-disc-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-motion="view-b"] {
  cursor: pointer;
}

.filter-row {
  position: relative;
}

.filter-bar {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 1px;
  height: 2px;
  background: var(--ink);
  transform-origin: left center;
  pointer-events: none;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}

.preloader-scrim {
  position: absolute;
  inset: 0;
  background: var(--paper);
}

.preloader-plate {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  width: min(280px, calc(100vw - 48px));
  min-height: 320px;
  padding: 24px;
  border: 1px solid var(--hairline);
  background: var(--mat);
}

.preloader-word {
  border-top: 1px solid var(--ink);
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.k2-flip-ghost {
  background: var(--paper);
  color: var(--ink);
}

html[data-menu="open"] .header-bar {
  background: var(--paper);
}

html[data-menu="open"],
html[data-menu="open"] body {
  overflow: hidden;
}

html[data-motion-ready] .menu-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  margin: 0;
  overflow: auto;
  border-bottom: 0;
  background: var(--paper);
  clip-path: inset(0 0 100% 0);
}

html[data-motion-ready] .menu-panel nav {
  padding-top: 88px;
}

html[data-motion-ready] .filter-row button {
  text-decoration: none;
}

html[data-k2-preload]:not([data-k2-preload-reveal]) body > :not(.preloader) {
  visibility: hidden;
}

html[data-k2-preload] .preloader-plate,
html[data-k2-preload] .preloader-word,
html[data-k2-preload] .preloader .crop {
  visibility: hidden;
}

html[data-k2-preload] .preloader[hidden] {
  display: grid !important;
}

html[data-motion-ready] .site-header {
  z-index: 60;
}

@media (max-width: 767px) {
  .menu-label::before,
  .menu-label::after {
    width: 24px;
  }
}

@media (pointer: coarse), (hover: none) {
  .menu-esc {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) and (min-width: 768px) {
  html[data-theme-animate] body,
  html[data-theme-animate] .site-header,
  html[data-theme-animate] .header-bar,
  html[data-theme-animate] .site-footer,
  html[data-theme-animate] .menu-panel,
  html[data-theme-animate] .plate,
  html[data-theme-animate] .preloader,
  html[data-theme-animate] .preloader-scrim,
  html[data-theme-animate] .preloader-plate,
  html[data-theme-animate] a,
  html[data-theme-animate] button,
  html[data-theme-animate] h1,
  html[data-theme-animate] h2,
  html[data-theme-animate] h3,
  html[data-theme-animate] p,
  html[data-theme-animate] figcaption,
  html[data-theme-animate] input,
  html[data-theme-animate] textarea,
  html[data-theme-animate] .theme-toggle {
    transition-property: background-color, color, border-color, outline-color;
    transition-duration: 240ms;
    transition-timing-function: var(--ease-out);
  }
}
/* ---- */
/* Contact sources: 234:240 (1440), 317:384 (768), 234:404 (390), states 234:304. */
.contact-main { display:grid; grid-template-columns:minmax(0,600fr) minmax(0,632fr); gap:clamp(48px,7.778vw,112px); padding-top:88px; padding-bottom:40px; }
.contact-main .kicker { font:400 11px/15px var(--font-mono); letter-spacing:.06em; color:var(--mute); }
.contact-details .display-contact { font:400 120px/1.3 var(--font-display); margin-top:9px; letter-spacing:0; }
.contact-open-to { margin-top:20px; }
.contact-open-to .kicker { font-size:10px;line-height:13px; }
.contact-open-to>p:last-child { font-size:18px;line-height:25px;font-weight:500;margin-top:11px; }
.contact-email-block { border-top:1px solid var(--ink);margin-top:51px;padding-top:26px;position:relative; }
.contact-email { display:flex;justify-content:space-between;align-items:center;width:170px;min-height:74px;border:0;border-bottom:2px solid var(--ink);padding:0;background:none;color:var(--ink);font:400 56px/1.3 var(--font-display);letter-spacing:0;text-align:left; }
.contact-email-arrow { font:400 28px/1.3 var(--font-mono); }
.contact-email[data-copied] .contact-email-arrow { visibility:hidden; }
.contact-copy-mobile { display:none; }
.copy-address { font:400 13px/18px var(--font-body);color:var(--mute);margin-top:14px;overflow-wrap:anywhere; }
.copy-address a { text-decoration:none; }
.copy-status { font:400 13px/18px var(--font-body);color:var(--ink); }
.copy-status:empty { display:none; }
.contact-links { display:grid;gap:6px;margin-top:46px; }
.contact-links>div { display:flex;align-items:flex-start;gap:32px;min-height:44px; }
.contact-links>div>span { font:400 12px/17px var(--font-body);color:var(--mute);padding-top:2px; }
.contact-action { position:relative;display:inline-flex;align-items:flex-start;justify-content:flex-start;min-height:44px;padding:0;background:none;border:0;color:var(--ink);font:400 13px/17px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;text-decoration:none;cursor:pointer; }
.contact-action::after { content:"";position:absolute;top:24px;left:0;width:100%;height:1px;background:var(--ink); }
.contact-action[data-link-ix]::after { display:none; }
.contact-action[data-link-ix] > .link-ix-line { top:24px;bottom:auto;height:1px; }
.contact-links>div:first-child .contact-action { width:120px; }
.contact-links>div:last-child .contact-action { width:138px; }
.contact-plate { width:360px;max-width:100%;height:300px;margin-top:46px; }
.contact-plate>.plate { height:100%; }
.contact-plate .plate-body { height:100%;padding:7px; }
.contact-plate-mat { width:100%;height:100%;background:var(--mat);padding:10px 12px; }
.contact-plate .meta { font:400 10px/13px var(--font-mono);letter-spacing:.04em; }
.contact-fields { display:grid;gap:30px;margin-top:25px; }
[data-page="contact"] .field { display:block;min-width:0; }
[data-page="contact"] .field>span:first-child { display:block;color:var(--mute);font:500 13px/18px var(--font-body);text-transform:none;letter-spacing:0; }
[data-page="contact"] .field input,[data-page="contact"] .field textarea { display:block;width:100%;min-width:0;border:0;border-bottom:1px solid var(--ink);border-radius:0;background:transparent;box-shadow:none;color:var(--ink);font:400 17px/24px var(--font-body); }
[data-page="contact"] .field input { height:64px;padding:22px 0 16px; }
[data-page="contact"] .field textarea { margin-top:8px;height:200px;min-height:200px;padding:14px 15px;border:1px solid color-mix(in srgb,var(--ink) 50%,transparent);resize:vertical; }
[data-page="contact"] .field input::placeholder,[data-page="contact"] .field textarea::placeholder { color:var(--mute);opacity:.55; }
[data-page="contact"] .field input:focus-visible,[data-page="contact"] .field textarea:focus-visible { outline:2px solid var(--ink);outline-offset:10px; }
[data-page="contact"] .field input:focus-visible,[data-page="contact"] .field input[aria-invalid="true"] { border-bottom-width:2px; }
[data-page="contact"] .field-error { display:block;margin-top:10px;color:var(--ink);font:400 13px/18px var(--font-body);text-transform:none;letter-spacing:0; }
.contact-message .form-action { margin-top:28px; }
.contact-message .contact-action { padding-top:12px;min-width:120px; }
.contact-message .contact-action::after { top:36px;width:84px;height:2px; }
[data-page="contact"] .contact-action:disabled { cursor:wait; }
[data-page="contact"] .form-status { font:400 13px/18px var(--font-body);color:var(--ink);margin-top:8px; }
[data-page="contact"] .form-status:empty { display:none; }
.contact-newsletter { border-top:1px solid var(--ink);min-height:140px; }
.contact-newsletter-inner { display:grid;grid-template-columns:minmax(0,600fr) minmax(0,632fr);column-gap:clamp(48px,7.778vw,112px);padding-top:25px; }
.contact-newsletter-copy { padding-top:4px; }
.contact-newsletter .kicker { font:400 10px/13px var(--font-mono);letter-spacing:.06em;color:var(--mute); }
.newsletter-title { font:400 32px/42px var(--font-display);margin-top:9px; }
.newsletter-note { font:400 12px/17px var(--font-body);color:var(--mute);margin-top:2px; }
[data-integration="buttondown"] { display:grid;grid-template-columns:minmax(0,1fr) 152px;column-gap:40px; }
[data-integration="buttondown"] .form-action { align-self:start;margin-top:39px; }
[data-integration="buttondown"] .contact-action { padding-top:12px;width:128px; }
[data-integration="buttondown"] .contact-action::after { top:36px;height:2px; }
[data-integration="buttondown"] .form-status { grid-column:1/-1; }
[data-page="contact"] .site-footer { padding:30px 0 18px; }
[data-page="contact"] .site-footer .colophon { font:400 12px/16px var(--font-body);margin:0;padding:0;border:0;text-transform:none;letter-spacing:0; }
[data-page="contact"] .site-footer .colophon>p:last-child { display:none; }
@media (min-width:1680px) {
 .contact-main { grid-template-columns:minmax(0,600fr) minmax(0,632fr);gap:calc(112 * var(--k2-unit)); }
 .contact-newsletter-inner { gap:calc(112 * var(--k2-unit)); }
}
@media (min-width:768px) and (max-width:1023px) {
 .contact-main { grid-template-columns:1fr;gap:80px;padding-bottom:38px; }
 .contact-newsletter { min-height:300px; }
 .contact-newsletter-inner { display:block; }
 .contact-newsletter form { margin-top:54px;grid-template-columns:minmax(0,1fr) 128px;column-gap:76px; }
 [data-page="contact"] .site-footer { padding-top:50px;padding-bottom:24px; }
}
@media (max-width:767px) {
 [data-page="contact"] .frame { padding-inline:20px; }
 .contact-main { grid-template-columns:1fr;gap:26px;padding-top:46px;padding-bottom:74px; }
 .contact-main .kicker { font-size:10px;line-height:13px; }
 .contact-details .display-contact { font-size:64px;line-height:83px;margin-top:7px; }
 .contact-open-to { margin-top:27px; }
 .contact-open-to>p:last-child { font-size:16px;line-height:22px;margin-top:9px; }
 .contact-email-block { margin-top:26px;padding-top:19px; }
 .contact-email { width:140px;min-height:59px;font-size:44px;line-height:57px; }
 .contact-email-arrow { font-size:22px; }
 .copy-address { font-size:12px;line-height:16px;margin-top:11px; }
 .contact-copy-desktop { display:none; }.contact-copy-mobile { display:inline; }
 .contact-links { display:flex;gap:50px;margin-top:29px; }
 .contact-links>div { display:block; }
 .contact-links>div>span { display:none; }
 .contact-links>div:first-child .contact-action { width:110px; }
 .contact-links>div:last-child .contact-action { width:128px; }
 .contact-plate { display:none; }
 .contact-message { border-top:1px solid var(--ink);padding-top:27px; }
 .contact-fields { margin-top:19px;gap:28px; }
 [data-page="contact"] .field textarea { height:180px;min-height:180px; }
 .contact-message .form-action { margin-top:24px; }
 [data-page="contact"] .form-action .contact-action { display:flex;align-items:center;justify-content:center;padding:0;width:100%;height:56px;border:1px solid var(--ink); }
 [data-page="contact"] .form-action .contact-action::after { display:none; }
 .contact-newsletter { min-height:390px; }
 .contact-newsletter-inner { display:block;padding-top:29px; }
 .contact-newsletter-copy { padding-top:0; }
 .newsletter-title { font-size:26px;line-height:34px;margin-top:9px; }
 .newsletter-note { display:none; }
 [data-integration="buttondown"] { display:block;margin-top:14px; }
 [data-integration="buttondown"] .form-action { margin-top:28px; }
 [data-page="contact"] .site-footer { padding-top:40px;padding-bottom:35px; }
 [data-page="contact"] .site-footer .colophon { font-size:11px;line-height:15px; }
}
@media (max-width:359px) { .contact-links { gap:24px; }.newsletter-title { font-size:24px; } }

/* Keep the magnetic wrapper from changing the email control's intrinsic line box. */
.contact-email>.k2-mag { display:flex;align-items:center;justify-content:space-between;width:100%; }
.contact-plate .plate-body { background:var(--paper); }
.contact-plate .plate-body>.k2-plate-media { height:100%; }
.contact-footer { padding-block:30px 14px;font:400 12px/16px var(--font-body);color:var(--mute); }
@media (min-width:768px) and (max-width:1023px) { .contact-footer { padding-block:50px 64px; } }
@media (max-width:767px) { .newsletter-title { width:100%;white-space:normal;overflow-wrap:break-word; }.contact-footer { padding-block:40px 35px;font-size:11px;line-height:15px; } }
/* Contact keeps its own locked quiet header (234:240 / 234:404). */
.page[data-page="contact"] .site-header {height:88px;}
html:not([data-menu="open"]) .page[data-page="contact"] .header-bar {height:88px;}
html:not([data-menu="open"]) .page[data-page="contact"] .header-bar::after,html:not([data-menu="open"]) .page[data-page="contact"] .nav-inline,html:not([data-menu="open"]) .page[data-page="contact"] .inspect-toggle,html:not([data-menu="open"]) .page[data-page="contact"] .theme-toggle {display:none;}
html:not([data-menu="open"]) .page[data-page="contact"] .brand {font:400 24px/1.3 var(--font-display);}
.page[data-page="contact"] .header-tools {margin-left:auto;}
.page[data-page="contact"] .contact-main {padding-top:72px;}
@media (max-width:767px) {
 .page[data-page="contact"] .site-header {height:80px;}
 html:not([data-menu="open"]) .page[data-page="contact"] .header-bar {height:80px;align-items:center;padding-top:0;}
 html:not([data-menu="open"]) .page[data-page="contact"] .brand {font-size:20px;padding:0;}
 html:not([data-menu="open"]) .page[data-page="contact"] .menu-toggle {width:80px;}
 html:not([data-menu="open"]) .page[data-page="contact"] .menu-label {justify-content:space-between;font-size:10px;}
 html:not([data-menu="open"]) .page[data-page="contact"] .menu-open-word {display:block;}
 html:not([data-menu="open"]) .page[data-page="contact"] .menu-bars {width:24px;height:8px;}
 html:not([data-menu="open"]) .page[data-page="contact"] .menu-bars::after {display:none;}
 .page[data-page="contact"] .contact-main {padding-top:30px;}
}

/* Keep the contact columns and portrait proportional at every desktop size. */
.page[data-page="contact"] .contact-main { column-gap:clamp(32px,5vw,88px); padding-block:68px 64px; align-items:start; }
.contact-main > *,.contact-newsletter-inner > * { min-width:0; }
.contact-main .contact-plate { width:50%; height:auto; aspect-ratio:4/5; }
.contact-newsletter { min-height:0; }
.contact-newsletter-inner { column-gap:clamp(32px,5vw,88px); padding-block:32px 56px; }
.contact-newsletter form { min-width:0; }
@media(min-width:768px) and (max-width:1023px) {
  .contact-main .contact-plate { width:40%; }
}
@media(max-width:767px) {
  .page[data-page="contact"] .contact-main { padding-block:32px 48px; }
  .contact-newsletter-inner { padding-block:28px 48px; }
  .contact-links { flex-wrap:wrap; }
}
/* ---- */
/* The same ink, paper and crop marks used throughout the portfolio. */
/* These routes use their grid tracks, not fixed reading-width containers. */
:is(.work-shell,.experience-shell,.writing-shell,.study-shell,.post-shell,.about-shell,.resume-shell) :is(.route-intro,.work-description,.role-claim,.block-prose,.block-media,.block-quote blockquote,.block-form,.page-section h2,.tool-link p,.study-lede,.study-sections,.study-code,.display-study) { max-width:none; min-width:0; }

/* About and the document page use the same fluid tracks and paper frames. */
.about-shell.route-shell { min-height:0; }
.about-shell.route-shell .about-intro { grid-template-columns:minmax(0,7fr) minmax(0,3fr); grid-template-rows:auto 1fr; gap:32px clamp(32px,5vw,88px); min-height:0; }
.about-shell.route-shell .about-intro h1 { grid-column:1; }
.about-shell.route-shell .about-story { grid-column:1; grid-row:2; min-width:0; font:400 clamp(16px,1.4vw,21px)/1.7 var(--font-body); }
.about-shell.route-shell .about-story p + p { margin-top:28px; }
.about-shell.route-shell .about-portrait { width:100%; min-width:0; align-self:start; grid-column:2; grid-row:1 / 3; }
.about-shell.route-shell .about-portrait .plate { height:auto; aspect-ratio:4/5; }
.about-shell.route-shell .about-portrait .plate-body { height:100%; }
.about-shell.route-shell .about-portrait-mat { padding:0; }
.resume-shell.route-shell { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); align-items:start; gap:clamp(32px,5vw,88px); }
.resume-shell.route-shell > * { min-width:0; }
.resume-shell.route-shell .route-heading { margin:0; }
.resume-shell.route-shell .display-page { font-size:clamp(64px,7.5vw,120px); }
.resume-shell.route-shell .resume-document { width:100%; max-width:none; margin:0; }
@media(max-width:767px) {
  .about-shell.route-shell .about-intro { gap:28px; }
  .about-shell.route-shell .about-story { margin:0; }
  .about-shell.route-shell .about-portrait figcaption { display:block; }
  .resume-shell.route-shell { grid-template-columns:minmax(0,1fr); gap:40px; }
}

/* Case studies keep the shared chapter vocabulary, with the opening figure
   beside the introduction and numbered text rows across the full frame. */
.study-shell.route-shell { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); column-gap:clamp(32px,5vw,88px); padding-top:24px; min-height:0; }
.study-shell.route-shell > * { min-width:0; grid-column:1 / -1; }
.study-shell.route-shell .study-head { grid-column:1; grid-row:2; margin-top:40px; }
.study-shell.route-shell .display-study { font-size:clamp(48px,6vw,104px); line-height:1.12; overflow-wrap:break-word; }
.study-shell.route-shell .study-lede { margin-top:24px; font:clamp(16px,1.4vw,21px)/1.65 var(--font-body); }
.study-shell.route-shell .study-hero { grid-column:2; grid-row:2; align-self:start; width:100%; margin:40px 0 0 !important; }
.study-shell.route-shell .study-hero .plate,.study-shell.route-shell .study-hero .plate-body { height:auto; }
.study-shell.route-shell .study-hero .study-media { display:grid; place-items:center; aspect-ratio:var(--frame-landscape); height:auto; }
.study-shell.route-shell .study-hero .study-media img { width:100%; height:100%; min-height:0; object-fit:contain; }
.study-shell.route-shell .study-sections { width:100%; margin-top:clamp(48px,6vw,96px); gap:0; }
.study-shell.route-shell .study-section { grid-template-columns:32px minmax(0,1fr); gap:24px; min-height:0; padding-block:32px; border-top:1px solid var(--hairline); }
.study-shell.route-shell .study-section > div { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:clamp(32px,5vw,88px); min-width:0; }
.study-shell.route-shell .study-section h2 { font-size:clamp(32px,3.5vw,56px); line-height:1.18; }
.study-shell.route-shell .study-section p { margin:0; font:clamp(16px,1.4vw,21px)/1.7 var(--font-body); }
.study-shell.route-shell .study-code { width:100%; margin:48px 0 0; }
.study-shell.route-shell .study-code pre { overflow-x:auto; }
.study-shell.route-shell .study-next { margin-top:clamp(48px,6vw,96px); }
@media(max-width:767px) {
  .study-shell.route-shell { grid-template-columns:minmax(0,1fr); padding-top:22px; }
  .study-shell.route-shell .study-head { grid-column:1; grid-row:auto; margin-top:32px; }
  .study-shell.route-shell .display-study { font-size:clamp(44px,11vw,76px); }
  .study-shell.route-shell .study-hero { grid-column:1; grid-row:auto; margin-top:32px !important; }
  .study-shell.route-shell .study-section { grid-template-columns:24px minmax(0,1fr); gap:16px; padding-block:28px; }
  .study-shell.route-shell .study-section > div { grid-template-columns:minmax(0,1fr); gap:20px; }
  .study-shell.route-shell .study-section h2 { font-size:32px; }
}
.study-evidence { position:relative; padding-top:26px; margin-top:clamp(64px,9vw,140px); }
.short-shelf { margin-block:clamp(64px,9vw,144px); scroll-margin-top:110px; }
.short-shelf-head { position:relative; padding-top:26px; }
.editorial-kicker { color:var(--mute); font:10px/1.6 var(--font-mono); letter-spacing:.09em; text-transform:uppercase; }
.study-evidence h2,.short-shelf h2 { font:400 clamp(42px,6vw,88px)/1.08 var(--font-display); letter-spacing:-.018em; margin-top:18px; }
.editorial-deck { font:clamp(15px,1.35vw,19px)/1.65 var(--font-body); margin-top:18px; }
.evidence-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:40px clamp(24px,3.5vw,56px); margin-top:36px; }
.evidence-item { min-width:0; }
.evidence-item:only-child { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,5fr) minmax(0,3fr); align-items:center; gap:32px clamp(24px,4vw,64px); }
.evidence-media { display:grid; place-items:center; aspect-ratio:var(--frame-landscape); background:var(--mat); }
.evidence-media img { display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
.study-evidence { width:100%; margin-inline:0; }
.study-evidence h2 { font-size:clamp(34px,4vw,56px); }
.study-evidence .evidence-caption h3 { font-size:clamp(26px,2.5vw,34px); }
.evidence-caption { display:grid; justify-items:start; gap:12px; margin-top:22px; }
.evidence-caption h3,.short-copy h3 { font:400 clamp(28px,3vw,46px)/1.15 var(--font-display); }
.evidence-caption > p:not(.editorial-kicker),.short-copy > p { font:15px/1.65 var(--font-body); }
.evidence-caption a { margin-top:3px; font:12px/1.6 var(--font-mono); }
.short-shelf .section-title { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:end; gap:16px 32px; }
.short-shelf .section-title a { font:12px/1.6 var(--font-mono); }
.short-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:48px clamp(24px,3.5vw,56px); margin-top:40px; }
.short-card { min-width:0; }
.short-card .plate-body { padding:7px; }
.short-screen { aspect-ratio:9/14; position:relative; background:var(--mat); }
.short-poster,.short-screen iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.short-poster { display:grid; place-items:center; isolation:isolate; overflow:hidden; color:var(--ink); background:var(--paper); text-decoration:none; }
.short-poster[hidden],.short-controls [hidden] { display:none; }
.short-poster img,.short-poster-art { position:absolute; inset:0; width:100%; height:100%; }
.short-poster img { object-fit:contain; background:var(--mat); }
.short-poster-art { opacity:.48; }
.short-reel,.short-credit { position:absolute; left:16px; padding:6px 8px; color:var(--ink); background:var(--paper); font:10px/1.4 var(--font-mono); text-transform:uppercase; letter-spacing:.06em; }
.short-reel { top:16px; }
.short-credit { bottom:16px; }
.short-play { position:relative; display:grid; place-items:center; border-radius:50%; border:1px solid var(--ink); width:64px; height:64px; background:var(--paper); transition:transform .26s var(--ease-out); }
.short-play svg { width:24px; height:24px; fill:currentColor; }
@media(hover:hover) and (pointer:fine) { .short-poster:hover .short-play { transform:scale(1.12); } }
.short-poster:focus-visible,.short-controls button:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
.short-copy { margin-top:22px; }
.short-copy > p { margin-top:14px; color:var(--mute); }
.short-controls { display:flex; flex-wrap:wrap; gap:12px 20px; align-items:center; margin-top:14px; font:11px/1.5 var(--font-mono); }
.short-controls button { appearance:none; border:0; padding:10px 0; background:none; color:var(--ink); text-decoration:underline; text-underline-offset:4px; cursor:pointer; font:inherit; }
.journal-jumps { display:flex; flex-wrap:wrap; gap:16px 28px; margin-top:24px; font:12px/1.6 var(--font-mono); }
.journal-jumps a { text-underline-offset:4px; }
#writing-notebook-title { scroll-margin-top:110px; }
/* Writing uses the portfolio's fluid frame and chapter grid, without width caps. */
.post-shell.route-shell { max-width:none; }
.post-shell.route-shell { padding-top:24px; }
.post-shell .post-head { display:block; width:100%; margin:48px 0 0; }
.post-heading-meta,.post-heading-copy { min-width:0; }
.post-heading-meta { display:flex; flex-wrap:wrap; align-items:baseline; gap:12px 28px; }
.post-heading-meta .kicker { font:10px/1.7 var(--font-mono); letter-spacing:.04em; }
.post-byline { margin:0; font:13px/1.6 var(--font-body); }
.post-heading-meta .journal-tags { margin:0; gap:8px 14px; }
.post-shell .post-head .display-study { width:100%; max-width:none; margin:24px 0 0; font-size:clamp(56px,7.5vw,120px); line-height:1.1; letter-spacing:-.015em; }
.post-deck { margin-top:24px; font:clamp(17px,1.5vw,22px)/1.6 var(--font-body); }
.post-shell .post-body { display:block; width:100%; margin:56px 0 0; min-height:0; }
.post-opening { display:grid; gap:clamp(32px,5vw,88px); align-items:start; }
.post-opening-media { grid-template-columns:minmax(0,5fr) minmax(0,7fr); }
.post-opening > * { min-width:0; }
.post-shell .block-prose { max-width:none; margin:0; font:400 clamp(16px,1.4vw,21px)/1.7 var(--font-body); }
.post-shell .page-section h2 { max-width:none; scroll-margin-top:120px; }
.post-shell .post-body .page-section:last-child { margin-bottom:0; }
.post-section-number { font:10px/1.6 var(--font-mono); color:var(--mute); }
.post-shell .post-inline-media { width:100%; margin:0; }
.post-shell .journal-article-media { display:grid; place-items:center; aspect-ratio:var(--frame-landscape); }
.post-shell .journal-article-media img { width:100%; height:100%; min-height:0; max-height:none; object-fit:contain; }
.post-inline-media figcaption { margin-top:14px; color:var(--mute); font:11px/1.6 var(--font-mono); }
/* Video occupies the same media cell and frame as an article image. */
.post-video { width:100%; min-width:0; margin:0; }
.post-video .short-screen { width:100%; aspect-ratio:var(--frame-landscape); position:relative; background:var(--mat); }
.post-video .short-screen iframe { display:block; position:absolute; inset:0; width:100%; height:100%; border:0; }
.post-video .short-poster { background:var(--mat); }
.short-start { position:relative; display:grid; justify-items:center; gap:14px; font:11px/1.5 var(--font-mono); }
.short-start svg { width:58px; height:58px; padding:16px; border:1px solid var(--ink); border-radius:50%; fill:currentColor; transition:transform .25s var(--ease-out); }
.short-start .short-icon-pause,.short-toggle .short-icon-pause { display:none; }
.short-playing .short-toggle .short-icon-play { display:none; }
.short-playing .short-toggle .short-icon-pause { display:block; }
.short-control-area { display:flex; align-items:center; gap:10px; min-height:54px; }
.short-toggle { display:inline-flex; align-items:center; gap:8px; padding:9px 12px 9px 8px; min-height:44px; appearance:none; border:0; border-radius:0; color:var(--ink); background:transparent; font:11px/1.5 var(--font-mono); cursor:pointer; transition:opacity .2s ease,transform .2s var(--ease-out); }
.short-toggle svg { width:18px; height:18px; fill:currentColor; }
.short-toggle[hidden],.short-poster[hidden] { display:none; }
.short-controls-idle .short-toggle { opacity:0; transform:translateY(4px); }
.short-toggle:focus-visible,.short-poster:focus-visible { outline:1px solid var(--ink); outline-offset:3px; opacity:1; transform:none; }
.short-message { font:10px/1.6 var(--font-mono); color:var(--mute); }
.post-video figcaption { font:10px/1.6 var(--font-mono); }
@media(hover:hover) and (pointer:fine) { .short-poster:hover .short-start svg { transform:scale(1.08); } }
.post-related { width:100%; margin:80px 0 0; border-top:1px solid var(--hairline); padding-top:28px; }
.post-related-heading { display:flex; justify-content:space-between; align-items:baseline; gap:20px; }
.post-related-heading h2 { font:400 clamp(36px,3.5vw,48px)/1.1 var(--font-display); }
.post-related-heading > a { flex:none; font:13px/1.6 var(--font-body); text-decoration:none; }
.post-related nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:40px; margin-top:28px; }
.post-related-entry { display:grid; grid-template-columns:24px minmax(0,1fr) 18px; align-items:start; gap:16px; padding-top:24px; border-top:1px solid var(--rule); text-decoration:none; }
.post-related-entry h3 { margin-top:14px; font:400 clamp(26px,2.4vw,36px)/1.17 var(--font-display); }
.post-related-entry > div { min-width:0; }
.post-related-arrow { transition:transform .24s var(--ease-out); }
@media(hover:hover) and (pointer:fine) {
  .post-related-entry:hover .post-related-arrow { transform:translate(3px,-3px); }
}
@media(max-width:1023px) {
  .short-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:767px) {
  .evidence-grid,.evidence-item:only-child,.short-grid { grid-template-columns:minmax(0,1fr); }
  .evidence-item:only-child { gap:0; }
  .short-card { width:100%; }
  .short-copy > p,.evidence-caption > p:not(.editorial-kicker) { font-size:14px; }
  .post-opening { grid-template-columns:minmax(0,1fr); gap:32px; }
  .post-shell.route-shell { padding-top:22px; }
  .post-shell .post-head { margin-top:32px; }
  .post-shell .post-head .display-study { font-size:clamp(48px,11vw,76px); }
  .post-deck { margin-top:20px; font-size:17px; }
  .post-shell .post-body { margin-top:32px; }
  .post-related { margin-top:56px; }
  .post-related-heading { align-items:flex-start; }
  .post-related-heading > a { padding-top:6px; font-size:12px; }
  .post-related nav { grid-template-columns:minmax(0,1fr); gap:28px; }
  .post-related-entry h3 { font-size:30px; }
}
@media(prefers-reduced-motion:reduce) { .short-play,.short-toggle,.short-start svg,.post-related-arrow { transition:none; } }
/* ---- */
/* Shared entrance rules; no X-axis translation or center-opening image crop. */
html[data-k2-enter] main { opacity:0; }
.entrance-link-copy { display:inline-block; max-width:100%; vertical-align:top; }
.shell-footer-links a > .entrance-link-copy { font:inherit; text-decoration:inherit; }
.entrance-char-mask, .entrance-line-mask { overflow:clip; }
/* WebKit changes an inline-block's baseline when its mask stops clipping.
   Top alignment keeps line height and following content stable throughout. */
.entrance-char-mask { vertical-align:top; overflow-clip-margin:.14em; }
[data-text-settled] .entrance-char-mask,
[data-text-settled] .entrance-line-mask { overflow:visible !important; }
main h1, main h2, main h3 { scroll-margin-top:calc(var(--shell-height) + 32px); }
/* The portrait participates in the same vertical reveal at mobile sizes. */
.hero-stage .stage-clip img:not([hidden]) { display:block !important; }
@media (prefers-reduced-motion:reduce) {
  html[data-k2-enter] main { opacity:1; }
}
/* ---- */
/* Self-hosted installed Fontsource assets. Zenith 0.8 does not resolve package CSS imports. */
@font-face { font-family:"Instrument Serif"; font-style:normal; font-weight:400; font-display:swap; src:url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family:"Instrument Serif"; font-style:italic; font-weight:400; font-display:swap; src:url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family:"Manrope Variable"; font-style:normal; font-weight:200 800; font-display:swap; src:url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family:"JetBrains Mono"; font-style:normal; font-weight:400; font-display:swap; src:url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family:"JetBrains Mono"; font-style:normal; font-weight:500; font-display:swap; src:url("/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
/* ---- */
/* Existing frames own both the corner trace and the media fill. */
.image-frame-drawing { border-color:transparent !important; background-color:transparent !important; }
.image-frame-stroke { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; z-index:3; }
.image-frame-stroke path { fill:none; stroke:var(--ink); stroke-width:1; }
main .plate, .stage-clip { border-color:var(--ink); }
.page main img { max-width:100%; object-fit:contain; }
.plate-body, .view-frame, .k2-plate-media { min-width:0; }
.plate-body { background:var(--mat); }
/* One mat inset per frame, whether media is a linked card or an inline figure. */
.page main .plate > .plate-body,.catalog-row-preview .plate-body { padding:var(--frame-inset); }
.page main .view-card .plate > .plate-body:has(> .view-frame) { padding:0; }
.page main .view-card:not(.tool-card) .view-frame { padding:var(--frame-inset); }
.page .hero-stage { align-self:start; height:auto; padding:0; border:0; }
.hero-stage .stage-clip { height:auto; aspect-ratio:4/5; padding:0; border:1px solid var(--ink); overflow:visible; }
.hero-stage .stage-clip img:not([hidden]) { display:block !important; position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto; padding:var(--frame-inset); background:var(--mat); object-fit:contain; }
.hero-stage .stage-clip pre { position:absolute; inset:0; aspect-ratio:auto; height:100%; overflow:auto; }
.hero-stage .stage-clip .mobile-stage-label { position:absolute; left:8px; top:8px; }
.hero-stage figcaption { position:static; margin-top:8px; }
.zenith-media img, .wayline-media img, .directus-media img { object-fit:contain; object-position:center; }
.zenith-media, .wayline-media, .directus-media { min-width:0; }
.study-media { height:100%; background:var(--mat); }
.study-media img { display:block; width:100%; height:100%; object-fit:contain; }
.about-portrait-mat { padding:0; }
.about-portrait-mat img { display:block; width:100%; height:100%; object-fit:contain; }
.resume-download { display:inline-block;margin-top:24px; }
.resume-document { width:100%;margin:56px 0 0; }
.resume-document .plate-body { padding:7px; }
.resume-document img { display:block;width:100%;height:auto;object-fit:contain; }
.home-projects .plate-caption { margin-top:calc(20 * var(--k2-unit));display:grid;grid-template-columns:calc(40 * var(--k2-unit)) minmax(0,1fr) auto;gap:calc(16 * var(--k2-unit));align-items:start; }
.home-projects .plate-caption>span { font:400 calc(26 * var(--k2-unit))/1.2 var(--font-display); }
.project-caption-copy { min-width:0; }
.project-caption-copy h3 { font:400 calc(28 * var(--k2-unit))/1.15 var(--font-display); }
.project-caption-copy p { margin-top:calc(8 * var(--k2-unit));font:400 calc(13 * var(--k2-unit))/1.6 var(--font-body); }
.home-projects .plate-caption>small { padding-top:4px;white-space:nowrap; }
.resume-document .plate-body { overflow:clip; }
.resume-document .view-disc { width:128px;height:128px; }
.contact-portrait { height:100%;background:var(--mat); }
.contact-portrait img { display:block;width:100%;height:100%;object-fit:contain; }
@media (max-width:767px) {
  .home-projects .plate-caption { grid-template-columns:24px minmax(0,1fr) auto;gap:12px;margin-top:20px; }
  .home-projects .plate-caption>span { font-size:22px; }
  .project-caption-copy h3 { font-size:26px; }
  .project-caption-copy p { margin-top:8px;font-size:13px; }
  .page .hero-stage { height:auto; padding:0; border:0; }
  /* Keep the actual screenshots visible and complete on small screens. */
  .home-projects .view-frame > .desktop-copy { display:block !important; height:auto; }
  .home-projects .zenith-media .plate-code { display:none; }
  .home-projects .zenith-media > .k2-plate-media { display:block; grid-template-columns:none; }
  .home-projects .zenith-media img, .home-projects .wayline-media img, .home-projects .directus-media img { width:100%; height:auto; }
  .home-projects .view-frame > .mobile-project { height:auto; min-height:132px; }
  .home-projects .mobile-project { padding-top:20px; }
  .home-projects .mobile-project h3 { margin-top:24px; }
}
/* ---- */
/* Fluid page edges at every viewport; K2 supplies the responsive gutters. */

.frame {
  width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
}

.track {
  width: 100%;
  margin-inline: auto;
}

.page {
  min-width: 0;
  width: 100%;
  margin-inline: auto;
}

.stack {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.stack-lg {
  display: grid;
  gap: 48px;
  padding-block: 28px 64px;
}

.hero {
  display: grid;
  gap: 28px;
  align-items: start;
}

.hero-copy,
.hero-index,
.hero-stage {
  min-width: 0;
}

.figure-list,
.ledger,
.writing-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.figure-row,
.ledger-row,
.writing-row {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-block: 14px;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}

.figure-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
}

.plate-split,
.plate-row,
.about-top,
.contact-grid,
.tool-row {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.experience-peek {
  display: block;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 28px 40px;
}

.footer-links,
.closer-links,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  min-height: 64px;
  padding-block: 10px;
  border-bottom: 1px solid var(--rule);
}

.nav-inline,
.nav-hire,
.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.nav-inline {
  display: none;
}

.fig-counter,
.clock {
  display: none;
}

.brand {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

html[data-menu="open"] {
  overflow: hidden;
}

.menu-panel {
  border-bottom: 1px solid var(--rule);
  background: var(--mat);
}

.menu-panel nav {
  display: grid;
  padding: 12px 16px 28px;
}

.menu-panel a {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-decoration: none;
  padding-block: 4px;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .frame {
    padding-inline: 32px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  }

  .hero-index {
    grid-column: 1 / -1;
  }

  .menu-panel a {
    font-size: 5rem;
  }
}

@media (min-width: 900px) and (max-width: 1023px) {
  .menu-panel a {
    font-size: 6.5rem;
  }
}

@media (min-width: 1024px) {
  .frame {
    padding-inline: 48px;
    width: 100%;
    max-width: none;
  }

  .nav-inline {
    display: flex;
    margin-left: auto;
  }

  .nav-hire {
    display: none;
  }

  .fig-counter,
  .clock {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(180px, 280px);
  }

  .hero-index {
    grid-column: auto;
  }

  .plate-split,
  .about-top,
  .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .plate-row,
  .tool-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .experience-peek {
    display: none;
  }

  .ledger-row,
  .writing-row {
    grid-template-columns: 140px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 16px;
  }
}
/* ---- */
/* JUD-108 · Shared link interaction kit (chrome hooks).
   GSAP LinkIX animates scaleX, weight, and press — see motion/stubs.ts contract. */

:root {
  --link-ix-ink-weight: 1.5px;
  --link-ix-duration-in: 180ms;
  --link-ix-duration-out: 160ms;
  --link-ix-ease: var(--ease-out);
  --link-ix-focus-ring: 2px solid var(--focus);
  --link-ix-focus-offset: 2px;
  --link-ix-press-opacity: 0.7;
  --link-ix-press-duration: 80ms;
  --link-ix-sibling-opacity: 0.35;
}

[data-link-ix] {
  text-decoration: none;
  color: inherit;
}

.figure-row, .ledger-row, .writing-row { text-decoration:none; }
.figure-row .link-ix-line, .figure-row .k2-line,
.ledger-row .link-ix-line, .ledger-row .k2-line,
.writing-row .link-ix-line, .writing-row .k2-line { display:none; }

[data-link-ix]:focus {
  outline: none;
}

[data-link-ix]:focus-visible {
  outline: var(--link-ix-focus-ring);
  outline-offset: var(--link-ix-focus-offset);
}

[data-link-ix]:active {
  opacity: var(--link-ix-press-opacity);
  transition: opacity var(--link-ix-press-duration) var(--link-ix-ease);
}

@media (hover: none) {
  [data-link-ix]:active {
    transform: scale(0.98);
    transform-origin: left center;
  }
}

.link-ix-line,
[data-link-ix] > .k2-line,
[data-link-ix] .link-ix-label > .k2-line,
[data-link-ix] .link-ix-label > .link-ix-line {
  display: block;
  height: var(--link-ix-ink-weight);
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* Underline mount targets (GSAP inserts .link-ix-line or .k2-line). */
[data-link-ix] > .link-ix-line,
[data-link-ix] > .k2-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

[data-link-ix] {
  position: relative;
}

.nav-inline [data-link-ix],
.nav-hire [data-link-ix],
.menu-panel .menu-rail [data-link-ix],
.text-link[data-link-ix],
.footer-links [data-link-ix],
.contact-action[data-link-ix],
.copy-address [data-link-ix],
.route-intro [data-link-ix],
.work-link[data-link-ix],
.resume-link[data-link-ix],
.experience-peek > div [data-link-ix] {
  display: inline-block;
}

.menu-panel nav [data-link-ix] > span:last-child,
.menu-panel .menu-rail [data-link-ix] {
  position: relative;
}

.menu-panel nav [data-link-ix] > .link-ix-line,
.menu-panel nav [data-link-ix] > .k2-line {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  bottom: auto;
}

.menu-panel nav [data-link-ix] > .link-ix-line,
.menu-panel nav [data-link-ix] > .k2-line {
  height: 2px;
}

.menu-panel .menu-rail [data-link-ix] > .link-ix-line,
.menu-panel .menu-rail [data-link-ix] > .k2-line {
  top: calc(100% + 2px);
  bottom: auto;
}

.menu-toggle[data-link-ix] .menu-label {
  position: relative;
}

.menu-toggle[data-link-ix] .menu-label > .link-ix-line,
.menu-toggle[data-link-ix] .menu-label > .k2-line {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  bottom: auto;
}

.figure-row[data-link-ix] > span:last-child,
.ledger-row[data-link-ix] h2,
.writing-row[data-link-ix] h2 {
  position: relative;
}

.figure-row[data-link-ix] > span:last-child > .link-ix-line,
.figure-row[data-link-ix] > span:last-child > .k2-line,
.ledger-row[data-link-ix] h2 > .link-ix-line,
.ledger-row[data-link-ix] h2 > .k2-line,
.writing-row[data-link-ix] h2 > .link-ix-line,
.writing-row[data-link-ix] h2 > .k2-line {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.12em);
  bottom: auto;
}

.footer-links [data-link-ix] > .link-ix-line,
.footer-links [data-link-ix] > .k2-line {
  top: auto;
  bottom: 0;
}

/* Sibling dim (chrome-ready; row motion may override when data-motion-ready). */
html:not([data-motion-ready]) [data-link-ix-group]:has([data-link-ix]:hover) [data-link-ix]:not(:hover),
html:not([data-motion-ready]) [data-link-ix-group]:has([data-link-ix]:focus-within) [data-link-ix]:not(:focus-within) {
  opacity: var(--link-ix-sibling-opacity);
}

[data-link-ix][data-selected] > span:last-child,
[data-link-ix][data-selected] h2 {
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .link-ix-line,
  [data-link-ix] > .k2-line,
  [data-link-ix] .link-ix-label > .k2-line,
  [data-link-ix] .link-ix-label > .link-ix-line {
    transition: none;
  }
}
/* ---- */
/* Shared sheet geometry is first-paint critical CSS, also used by GSAP. */
html[data-k2-route-compact] .shell-bar { inset:12px var(--shell-gutter) auto; height:64px; padding:0 20px; background:var(--shell-panel); border-color:var(--rule); }
html[data-k2-route] main,html[data-k2-route] [data-global-footer] { pointer-events:none; }
@media(prefers-reduced-motion:reduce) { .paper-shutter { will-change:opacity; } }
/* Programmatic heading focus must not outline the entrance mask. */
main h1[tabindex='-1']:focus { outline:none; }
/* ---- */
/* The preloader borrows the real hero figure, including its existing frame. */
.preloader { display:block; background:transparent; }
.preloader > .hero-stage { position:absolute; width:min(320px,calc(100vw - 96px),calc(65vh * .8)); height:auto; padding:0; border:0; left:50%; top:50%; margin:0; transform:translate(-50%,-50%); visibility:visible; }
.preloader .hero-stage figcaption { visibility:hidden; }
.preloader-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.preloader-caption { position:absolute; left:24px; right:24px; bottom:max(24px,6svh); height:1.8em; overflow:clip; perspective:600px; font:400 clamp(10px,.85vw,13px)/1.8 var(--font-mono); color:var(--ink); text-align:center; }
.preloader-caption > span { position:absolute; inset:0; display:block; white-space:nowrap; visibility:hidden; backface-visibility:hidden; will-change:transform,opacity; }
/* ---- */
/* Full-size sources: 197:5/134/229/316, 178:5/196.
   Responsive corrections: 299:780/864, 317:140/273, 319:152. */
.route-shell { --route-scale: 1; width: 100%; max-width: none; padding: 68px calc(48 * var(--k2-unit)) 96px; margin: 0 auto; }
.route-shell .display-page { font-size: calc(120px * var(--route-scale)); line-height: 1.3; letter-spacing: 0; }
.route-heading { margin: 0; }
.route-heading-split { display: grid; grid-template-columns: minmax(0, 472fr) minmax(0, 872fr); align-items: start; }
.route-heading-split .route-intro { padding-top: calc(64px * var(--route-scale)); max-width: calc(700px * var(--route-scale)); }
.route-intro { font-size: calc(18px * var(--route-scale)); line-height: 1.55; color: var(--mute); max-width: 900px; }
.route-intro a { text-decoration: none; }
.route-shell .mobile-copy { display: none; }
.route-shell figure { margin: 0; }
.route-shell .plate { background: var(--paper); margin: 0; }
.route-shell .plate-body { padding: calc(11px * var(--route-scale)); }
.work-shell { min-height: 1128px; }
.work-shell .route-heading { min-height: calc(200px * var(--route-scale)); }
.work-projects { display: grid; gap: calc(40px * var(--route-scale)); }
.work-card .plate { height: calc(220px * var(--route-scale)); }
.work-card .plate-body { height: 100%; overflow: clip; }
.work-card .view-frame { position: relative; overflow: clip; height: 100%; }
.work-card-content { position: relative; height: 100%; background: var(--mat); padding: calc(16px * var(--route-scale)) calc(20px * var(--route-scale)); display: grid; grid-template-columns: 31% minmax(0,1fr); grid-template-rows: 28px 1fr auto; align-items: start; gap: 0 0; }
.work-figure { grid-column: 1 / -1; display: flex; gap: 9px; font: calc(10px * var(--route-scale))/1.4 var(--font-mono); color: var(--mute); letter-spacing: .04em; }
.work-figure span + span { font-size: calc(12px * var(--route-scale)); }
.work-card h2 { grid-column: 1; font-size: calc(44px * var(--route-scale)); line-height: 1.3; letter-spacing: 0; }
.work-description { grid-column: 2; font-size: calc(15px * var(--route-scale)); line-height: 1.6; padding-top: calc(16px * var(--route-scale)); max-width: calc(760px * var(--route-scale)); }
.work-link { grid-column: 1 / -1; justify-self: start; font-size: calc(14px * var(--route-scale)); line-height: 1.4; margin-bottom: calc(18px * var(--route-scale)); }
.experience-shell { min-height: 1528px; }
.experience-shell .route-heading .route-intro { margin-top: 4px; }
.experience-ledger { margin-top: 72px; border-bottom: 1px solid var(--hairline); }
.experience-ledger .ledger-row { min-height: 96px; padding: 20px 0; border-top: 1px solid var(--hairline); grid-template-columns: 176px minmax(0,1fr) auto; gap: 16px; align-items: start; }
.experience-ledger h2 { font-size: 32px; line-height: 1.3; letter-spacing: 0; }
.experience-ledger .role-col { grid-column: 2; min-width: 0; }
.experience-ledger .role-claim { font-size: 15px; line-height: 1.5; color: var(--mute); margin-top: 6px; max-width: 42rem; }
.role-year { font: 12px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--mute); padding-top: 14px; }
.role-name { font-size: 15px; line-height: 1.5; color: var(--mute); padding-top: 13px; }
.about-shell { min-height: 2028px; }
.about-intro { min-height: 640px; display: grid; grid-template-columns: minmax(0,900fr) minmax(0,392fr); gap: 24px 52px; grid-template-rows: 156px auto; align-content: start; }
.about-intro h1 { grid-column: 1; }
.about-portrait { grid-column: 2; grid-row: 1 / 3; }
.about-portrait .plate { height: 490px; }
.about-portrait .plate-body { height: 100%; }
.about-portrait .portrait { height: 100%; }
.about-portrait-mat { background: var(--mat); padding: 16px; color: var(--mute); font: 10px/1.4 var(--font-mono); letter-spacing: .04em; }
.about-portrait figcaption { font-size: 10px; letter-spacing: .02em; text-transform: none; margin-top: 14px; }
.about-story { grid-column: 1; font-size: 18px; line-height: 30px; }
.about-story p + p { margin-top: 110px; }
.about-shell h2 { font-size: 40px; line-height: 1.3; letter-spacing: 0; }
.about-how { max-width: 940px; }
.principles { margin-top: 24px; }
.principles .ledger-row { grid-template-columns: 56px 1fr; gap: 16px; min-height: 72px; padding: 0; border-top: 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.principles .role-year { padding-top: 7px; font-size: 11px; }
.principles p { font-size: 18px; line-height: 28px; padding-top: 3px; }
.about-recent { margin-top: 64px; }
.section-title { display: flex; align-items: baseline; gap: 80px; flex-wrap: wrap; }
.section-title > a { font-size: 14px; }
.recent-ledger { margin-top: 18px; border-bottom: 1px solid var(--hairline); }
.recent-ledger .ledger-row { border-top: 1px solid var(--hairline); grid-template-columns: 176px minmax(0,1fr) 260px 12px; min-height: 72px; padding: 16px 0; align-items: center; gap: 16px; }
.recent-ledger .role-year { padding: 0; font-size: 11px; }
.recent-company { font: 28px/1.3 var(--font-display); }
.recent-ledger .role-name { padding: 0; }
.about-tools { margin-top: 34px; }
.about-tools .section-title { gap: 48px; }
.about-tools h2 { font-size: 36px; }
.about-tools .section-title > a { font-size: 11px; }
.about-tools .tool-row { margin-top: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.tool-link { min-height: 96px; background: var(--mat); padding: 16px 12px 8px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.tool-link h3 { font: 32px/1.3 var(--font-display); letter-spacing: 0; }
.tool-link span { font: 11px/1.4 var(--font-mono); }
.about-resume { margin-top: 36px; }
.writing-shell { padding-top: 48px; min-height: 1228px; }
.writing-shell .route-heading { min-height: 160px; }
.writing-shell .filter-row { margin: 0 0 40px; gap: 32px; }
.writing-shell .filter-row button { font-size: 11px; padding: 0; }
.writing-content { display: grid; grid-template-columns: minmax(0,1072fr) minmax(0,224fr); gap: 48px; align-items: start; }
.writing-list { border-bottom: 1px solid var(--hairline); }
.writing-shell .writing-row { min-height: 96px; grid-template-columns: 176px minmax(0,1fr) 120px 32px; gap: 16px; border-top: 1px solid var(--hairline); padding: 24px 0; align-items: center; }
.writing-row[hidden] { display: none; }
.writing-date { font: 28px/1.3 var(--font-display); color: var(--mute); white-space: nowrap; }
.writing-shell .writing-row h2 { font-size: 36px; line-height: 1.2; letter-spacing: -.025em; }
.writing-shell .writing-row .meta { font-size: 11px; text-transform: none; }
.writing-stage .plate { height: 280px; }
.writing-stage .plate-body { height: 100%; }
.writing-preview-mat { height: 100%; background: var(--mat); }
.writing-stage figcaption { font-size: 10px; text-transform: none; letter-spacing: .02em; margin-top: 16px; line-height: 1.4; }
.editorial-status { margin-top: 28px; font: 11px/1.5 var(--font-mono); color: var(--mute); }
.study-shell { padding-top: 24px; min-height: 1800px; }
.study-back { font-size: 14px; text-decoration: none; }
.study-head { margin-top: 56px; }
.study-head .kicker { font-size: 11px; }
.study-shell .display-study { margin-top: 18px; font-size: 120px; line-height: 1.3; letter-spacing: 0; }
.study-shell .study-lede { max-width: 900px; font-size: 18px; line-height: 30px; }
.study-hero { margin-top: 52px !important; }
.study-hero .plate { height: 520px; }
.study-hero .plate-body { height: 100%; }
.study-hero .study-mat { height: 100%; background: var(--mat); padding: 16px; font: 10px/1.4 var(--font-mono); color: var(--mute); }
.study-hero figcaption { font-size: 10px; text-transform: none; margin-top: 14px; }
.study-sections { display: grid; gap: 38px; margin-top: 56px; max-width: 992px; }
.study-section { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 16px; min-height: 102px; }
.study-section > .meta { font-size: 12px; padding-top: 7px; }
.study-section h2 { font-size: 36px; line-height: 1.3; letter-spacing: 0; }
.study-section p { font-size: 18px; line-height: 28px; margin-top: 8px; }
.study-code { max-width: 900px; margin: 42px 0 0 92px; }
.study-code .plate-code { padding: 20px 24px; min-height: 216px; }
.study-code .plate-code pre { font-size: 14px; line-height: 22px; }
.study-next { border-top: 1px solid var(--hairline); padding-top: 24px; margin-top: 80px; }
.study-next > a { display: block; font: 48px/1.3 var(--font-display); text-decoration: none; margin-top: 10px; }
.role-study .display-study { font-size: 72px; line-height: 80px; max-width: 1200px; }
.role-study .study-lede { font-size: 20px; color: var(--mute); margin-top: 80px; }
.role-study .study-hero { margin-top: 32px !important; }
.role-study .study-hero .plate { height: 400px; }
.post-shell { padding-top: 24px; }
.post-head { width: min(100%,900px); margin: 56px 0 0 min(24.7%,332px); }
.post-head .display-study { font-size: 88px; line-height: 88px; margin-top: 18px; letter-spacing: 0; }
.post-shell .study-hero { margin-top: 80px !important; }
.post-shell .study-hero .plate { height: 640px; }
.post-body { width: min(100%,680px); margin: 80px auto 0; font-size: 18px; line-height: 30px; min-height: 240px; }
.post-body h2 { font-size: 44px; line-height: 1.3; }
@media (min-width:1680px) {
  .work-shell { padding-top: 80px; }
}
@media (min-width:768px) and (max-width:1023px) {
  .route-shell { padding: 58px 32px 80px; }
  .route-shell .display-page { font-size: 96px; line-height: 1.3; }
  .route-heading-split { display: block; }
  .route-heading-split .route-intro { padding-top: 5px; max-width: none; }
  .work-shell { padding-top: 48px; min-height: 1198px; }
  .work-shell .route-heading { min-height: 210px; }
  .work-card .plate { height: 260px; }
  .work-card-content { display: flex; flex-direction: column; padding: 16px 20px; }
  .work-card h2 { margin-top: 20px; }
  .work-description { padding-top: 14px; }
  .work-link { margin-top: auto; margin-bottom: 6px; }
  .experience-shell { min-height: 1107px; }
  .experience-ledger { margin-top: 64px; }
  .experience-ledger .ledger-row { grid-template-columns: 112px minmax(0,1fr); grid-template-rows: auto auto; gap: 0 16px; min-height: 104px; padding: 20px 0; }
  .experience-ledger .role-year { grid-column: 1; grid-row: 1 / 3; }
  .experience-ledger h2 { grid-column: 2; }
  .experience-ledger .role-name { grid-column: 2; padding-top: 6px; }
  .about-shell { min-height: 1791px; }
  .about-intro { grid-template-columns: minmax(0,400fr) minmax(0,280fr); grid-template-rows: 125px auto; gap: 24px; min-height: 703px; }
  .about-intro h1 { grid-column: 1 / -1; }
  .about-portrait { grid-row: 2; }
  .about-portrait .plate { height: 350px; }
  .about-story { grid-row: 2; }
  .about-story p + p { margin-top: 24px; }
  .principles .ledger-row { grid-template-columns: 40px minmax(0,1fr); min-height: 76px; padding-bottom: 20px; }
  .principles .ledger-row + .ledger-row { padding-top: 20px; }
  .about-recent { margin-top: 64px; }
  .section-title { gap: 40px; }
  .recent-ledger .ledger-row { grid-template-columns: 92px minmax(0,1fr) auto 12px; }
  .about-tools .section-title { gap: 24px; }
  .about-tools .tool-row { gap: 16px; }
  .tool-link { padding-inline: 0; }
  .writing-content { grid-template-columns: minmax(0,1fr) 160px; gap: 24px; }
  .writing-shell .writing-row { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .writing-date { grid-column: 1 / -1; font-size: 22px; }
  .writing-shell .writing-row h2 { grid-column: 1 / -1; font-size: 28px; }
  .writing-stage .plate { height: 220px; }
  .study-shell .display-study { font-size: 88px; }
  .study-head { margin-top: 40px; }
  .study-hero .plate { height: 400px; }
  .role-study .display-study { font-size: 64px; line-height: 1.1; }
  .role-study .study-lede { margin-top: 40px; }
  .study-code { margin-left: 0; }
  .post-head { margin-left: 0; width: 100%; }
  .post-head .display-study { font-size: 72px; line-height: 1.05; }
  .post-shell .study-hero .plate { height: 440px; }
}
@media (max-width:767px) {
  .route-shell .desktop-copy { display: none; }
  .route-shell .mobile-copy { display: inline; }
  .route-shell { padding: 8px 16px 64px; }
  .route-shell .display-page { font-size: 56px; line-height: 1.3; }
  .route-heading-split { display: block; }
  .route-heading-split .route-intro { padding-top: 4px; }
  .route-intro { font-size: 14px; line-height: 20px; }
  .route-shell .plate-body { padding: 7px; }
  .work-shell { min-height: 836px; }
  .work-shell .route-heading { min-height: 148px; }
  .work-projects { gap: 30px; }
  .work-card .plate { height: 180px; }
  .work-card-content { display: flex; flex-direction: column; padding: 8px 4px; }
  .work-figure { font-size: 9px; line-height: 1.4; padding-left: 4px; }
  .work-figure span + span { display: none; }
  .work-card h2 { font-size: 28px; line-height: 1.3; margin-top: 30px; }
  .work-description { font-size: 13px; line-height: 18px; padding-top: 2px; }
  .work-link { font-size: 12px; margin: auto 0 5px; }
  .experience-shell { min-height: 1536px; }
  .experience-shell .display-page { font-size: 48px; }
  .experience-shell .route-intro { margin-top: 5px !important; }
  .experience-ledger { margin-top: 40px; }
  .experience-ledger .ledger-row { min-height: 88px; padding: 12px 0 10px; display: flex; flex-direction: column; gap: 0; }
  .role-year { font-size: 10px; padding: 0; }
  .experience-ledger h2 { font-size: 22px; line-height: 1.2; margin-top: 3px; }
  .experience-ledger .role-name { font-size: 12px; line-height: 1.4; padding-top: 2px; }
  .about-shell { min-height: 2336px; }
  .about-intro { display: flex; flex-direction: column; gap: 0; min-height: 728px; }
  .about-intro .display-page { margin-bottom: 5px; }
  .about-portrait { width: 100%; }
  .about-portrait .plate { height: 400px; }
  .about-portrait figcaption { display: none; }
  .about-story { font-size: 14px; line-height: 22px; margin-top: 30px; }
  .about-story p + p { margin-top: 76px; }
  .about-shell h2 { font-size: 32px; line-height: 1.3; }
  .principles { margin-top: 12px; }
  .principles .ledger-row { grid-template-columns: 24px minmax(0,1fr); min-height: 56px; gap: 16px; padding: 10px 0; }
  .principles .role-year { font-size: 10px; padding-top: 2px; }
  .principles p { font-size: 13px; line-height: 20px; padding: 0; }
  .about-recent { margin-top: 22px; }
  .section-title { gap: 20px; align-items: baseline; }
  .section-title > a { font-size: 10px; }
  .recent-ledger { margin-top: 10px; }
  .recent-ledger .ledger-row { min-height: 48px; padding: 10px 0; grid-template-columns: 42px minmax(0,1fr) 12px; gap: 16px; }
  .recent-ledger .role-year { font-size: 9px; }
  .recent-company { font-size: 22px; }
  .recent-ledger .role-name { display: none; }
  .about-tools { margin-top: 20px; }
  .about-tools h2 { font-size: 32px; }
  .about-tools .tool-row { margin-top: 12px; grid-template-columns: 1fr; gap: 18px; }
  .tool-link { min-height: 56px; display: flex; flex-direction: row; align-items: center; gap: 5px; padding: 10px 6px; }
  .tool-link h3 { font-size: 22px; line-height: 1.3; }
  .tool-link span { font: 22px/1.3 var(--font-display); }
  .about-resume { margin-top: 52px; font-size: 13px; }
  .writing-shell { padding-top: 8px; min-height: 1000px; }
  .writing-shell .route-heading { min-height: 160px; }
  .writing-shell .filter-row { margin-bottom: 24px; }
  .writing-content { grid-template-columns: 1fr; }
  .writing-stage { display: none; }
  .writing-shell .writing-row { grid-template-columns: 1fr auto; gap: 8px; padding: 16px 0; }
  .writing-date { font-size: 22px; grid-column: 1 / -1; }
  .writing-shell .writing-row h2 { font-size: 28px; grid-column: 1 / -1; }
  .writing-shell .writing-row .meta { font-size: 10px; }
  .study-shell { padding-top: 16px; min-height: 1100px; }
  .study-head { margin-top: 40px; }
  .study-shell .display-study { font-size: 56px; line-height: 1.15; margin: 16px 0 24px; }
  .study-shell .study-lede { font-size: 16px; line-height: 26px; }
  .study-hero { margin-top: 40px !important; }
  .study-hero .plate { height: 300px; }
  .study-sections { margin-top: 40px; gap: 28px; }
  .study-section { grid-template-columns: 24px minmax(0,1fr); gap: 16px; }
  .study-section > .meta { font-size: 10px; }
  .study-section h2 { font-size: 28px; }
  .study-section p { font-size: 16px; line-height: 26px; }
  .study-code { margin: 36px 0 0; }
  .study-code .plate-code { padding: 16px; }
  .study-code .plate-code pre { font-size: 11px; line-height: 18px; }
  .study-next { margin-top: 48px; }
  .study-next > a { font-size: 36px; }
  .role-study .display-study { font-size: 44px; line-height: 1.1; }
  .role-study .study-lede { margin-top: 24px; font-size: 18px; }
  .role-study .study-hero .plate { height: 260px; }
  .post-head { margin: 40px 0 0; width: 100%; }
  .post-head .display-study { font-size: 48px; line-height: 1.05; }
  .post-shell .study-hero .plate { height: 300px; }
  .post-body { margin-top: 40px; font-size: 16px; line-height: 26px; }
}

/* Browser corrections: preserve the GSAP media wrapper's measured content box. */
.route-shell .plate-body > .k2-plate-media { height: 100%; }
.writing-shell .filter-row button { appearance: none; border: 0; border-radius: 0; background: transparent; color: var(--mute); cursor: pointer; font-family: var(--font-mono); }
.writing-shell .filter-row button[aria-pressed="true"] { color: var(--ink); }
.writing-shell .filter-row { margin-bottom: 28px; }
.writing-shell .writing-row .meta { white-space: nowrap; }
@media (min-width: 1024px) {
  .about-story p + p { margin-top: 120px; }
  .principles .ledger-row:first-child { min-height: 52px; }
  .principles .ledger-row + .ledger-row { padding-top: 20px; }
  .principles p { padding-top: 0; }
  .principles .role-year { padding-top: 4px; }
  .about-tools { margin-top: 40px; }
  .about-resume { margin-top: 40px; }
  .writing-shell .display-page { margin-left: -8px; }
  .writing-shell .route-intro { max-width: 600px; }
  .study-hero { margin-top: 54.61px !important; }
  .post-shell .study-hero { margin-top: 73.2px !important; }
  .role-study .study-hero { margin-top: 32px !important; }
}

/* Align internal type and About tablet ledger to the measured source anchors. */
.about-tools .section-title > a { text-transform: none; text-decoration: none; letter-spacing: .02em; }
@media (min-width:1024px) {
  .work-card-content { grid-template-columns: calc(400px * var(--route-scale)) minmax(0,1fr); grid-template-rows: calc(32px * var(--route-scale)) 1fr auto; }
  .work-link { margin-bottom: calc(12px * var(--route-scale)); font-weight: 500; }
}
@media (min-width:768px) and (max-width:1023px) {
  .principles .ledger-row:first-child { min-height: 56px; }
  .principles .ledger-row:nth-child(2) { min-height: 104px; }
  .about-recent .section-title, .about-tools .section-title { display:grid; grid-template-columns:168px minmax(0,1fr); gap:0; }
  .about-tools { margin-top:39px; }
  .about-resume { margin-top:40px; }
}

.writing-preview-mat { padding:16px; font:10px/1.4 var(--font-mono); color:var(--mute); }
.writing-shell .writing-row h2 { letter-spacing:0; }
@media (min-width:768px) and (max-width:1023px) {
  .experience-shell .route-heading .route-intro { margin-top:8.2px; }
  .experience-ledger .ledger-row { padding:15px 0; grid-template-rows:42px auto; }
  .experience-ledger li:first-child .ledger-row { min-height:156px; }
}

@media (max-width:767px) { .about-portrait-mat { padding:8px; font-size:9px; } }
/* ---- */
/* JUD-124: Menu E 326:117/126; trigger 284:49; nav 284:36; footer 288:345.
   Shell names are independent of the archived Menu A / route-specific rules. */
:root { --shell-panel:#ebe7df; --shell-meta:#8a8478; --shell-gutter:calc(48 * var(--k2-unit)); --shell-height:88px; --shell-edge:var(--shell-gutter); }
html { scrollbar-gutter:stable; }
[data-theme="night"] { --shell-panel:#1c1b18; --shell-meta:var(--mute); }
@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) { --shell-panel:#1c1b18; --shell-meta:var(--mute); }
}
.shell-header { height:var(--shell-height); }
.shell-bar { position:fixed; inset:0 0 auto; z-index:70; height:var(--shell-height); display:flex; align-items:center; justify-content:space-between; padding:0 var(--shell-edge); background:var(--paper); border:1px solid transparent; transition:inset .24s ease,height .24s ease,padding .24s ease,background-color .24s ease,border-color .24s ease; }
.shell-header[data-header-compact] .shell-bar { inset:12px var(--shell-edge) auto; height:64px; padding:0 20px; background:var(--shell-panel); border-color:var(--rule); box-shadow:0 6px 24px rgb(0 0 0 / .08); }
.shell-brand { font:400 22px/1.3 var(--font-display); text-decoration:none; white-space:nowrap; }
.shell-controls { position:relative; display:flex; align-items:center; gap:28px; }
.shell-controls .theme-toggle { display:flex !important;position:relative;opacity:1;visibility:visible; }
.shell-toggle { appearance:none; border:0; padding:0 4px; margin-right:-4px; background:none; color:var(--ink); cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:10px; width:110px; height:44px; font:400 12px/1.4 var(--font-mono); letter-spacing:.72px; }
.shell-toggle-words { display:grid; height:1.4em; overflow:clip; perspective:400px; }
.shell-toggle-words > span { grid-area:1/1; display:block; backface-visibility:hidden; transform-origin:50% 50%; }
.shell-close-word { opacity:0; }
.shell-bars { position:relative; display:block; width:30px; height:10px; flex-shrink:0; }
.shell-bars > span { position:absolute; left:0; width:30px; height:2px; transform-origin:center; }
.shell-bars > span:first-child { top:0; }
.shell-bars > span:last-child { top:8px; }
.shell-key { position:absolute; right:calc(100% + 28px); font:400 11px/1.4 var(--font-mono); color:var(--shell-meta); visibility:hidden; }
html[data-menu="open"] .shell-header .shell-bar, html[data-menu-closing] .shell-header .shell-bar { inset:0 0 auto; height:var(--shell-height); padding:0 var(--shell-edge); background:var(--paper); border-color:transparent; box-shadow:none; }
html:not([data-motion-ready])[data-menu="open"] .shell-open-word { opacity:0; transform:translateY(-110%) rotateX(-70deg); }
html:not([data-motion-ready])[data-menu="open"] .shell-close-word { opacity:1; transform:translateY(0) rotateX(0); }
html:not([data-motion-ready])[data-menu="open"] .shell-bars > span:first-child { transform:translateY(4px) rotate(45deg); }
html:not([data-motion-ready])[data-menu="open"] .shell-bars > span:last-child { transform:translateY(-4px) rotate(-45deg); }
html[data-menu="open"] .shell-key { visibility:visible; }
html[data-menu="open"] [data-cms-preview-badge],html[data-menu-closing] [data-cms-preview-badge] { visibility:hidden; }
.shell-menu { position:fixed; z-index:60; inset:0; overflow:auto; overscroll-behavior:contain; background:transparent; }
.shell-menu::before { content:""; position:fixed; inset:0; z-index:0; background:var(--shell-panel); transform:scaleY(var(--menu-mask-scale,1)); transform-origin:50% 0; pointer-events:none; will-change:transform; }
.shell-menu > .shell-menu-content { z-index:1; }
/* The existing frame is anchored to the scrolling content, not the viewport.
   It must still enclose the rail when text or phone orientation changes. */
.shell-aperture { position:absolute; inset:var(--shell-height) 32px 32px; border:1px solid var(--ink); pointer-events:none; }
.shell-menu-content { position:relative; display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:80px; padding:140px 80px 64px 96px; min-height:100svh; width:100%; margin-inline:auto; }
.shell-destinations { display:flex; flex-direction:column; align-items:stretch; gap:33px; min-width:0; }
/* Explicit tracks prevent shrink-to-fit link widths from being recalculated
   differently for the nested character masks on mobile browsers. */
.shell-destinations a { display:grid; grid-template-columns:16px minmax(0,1fr); align-items:start; width:100%; min-width:0; gap:38px; text-decoration:none; color:var(--ink); font-weight:400; }
.shell-number { flex:0 0 16px; padding-top:12px; font:400 12px/1.4 var(--font-mono); color:var(--shell-meta); }
.shell-destination { display:block; justify-self:start; min-width:0; max-width:100%; overflow:clip; position:relative; padding-bottom:5px; font:400 56px/1.25 var(--font-display); }
/* Keep SplitText character masks together when WebKit rounds intrinsic widths. */
.shell-destination-copy { display:inline-block; vertical-align:top; white-space:nowrap; }
.shell-rail-copy { display:inline-block; max-width:100%; vertical-align:top; }
.shell-destination > .link-ix-line { position:absolute; inset:auto 0 0; height:2px; }
.shell-rail { padding-top:12px; min-width:0; }
.shell-rail-label { font:400 11px/1.4 var(--font-mono); color:var(--shell-meta); }
.shell-email { display:block; width:fit-content; margin-top:10px; font:400 14px/1.5 var(--font-body); text-decoration:none; overflow-wrap:anywhere; }
.k2-nav-link { display:block; position:relative; width:fit-content; padding:12px 0; font:500 15px/1.4 var(--font-body); text-decoration:none; }
.k2-nav-link::after { content:""; position:absolute; bottom:9px; left:0; right:0; height:1px; background:var(--ink); opacity:0; }
.k2-nav-link[aria-current="page"]::after { opacity:1; }
@media (hover:hover) and (pointer:fine) { .k2-nav-link:hover::after { opacity:1; } }
.k2-nav-link:focus-visible { outline:2px solid var(--focus); outline-offset:0; }
.shell-meta { padding:8px 0; font:400 12px/1.4 var(--font-body); color:var(--mute); }
.shell-meta::after { bottom:5px; }
.shell-meta[data-link-ix]::after { display:none; }
.shell-theme { display:flex;align-items:center;gap:16px;margin-top:18px;font:400 10px/1.4 var(--font-mono);color:var(--mute); }
.shell-theme .theme-toggle { display:flex !important;position:relative;opacity:1;visibility:visible; }
.shell-email + .shell-meta { margin-top:10px; }
.shell-preview { position:relative; height:auto; border:1px solid var(--ink); padding:var(--frame-inset); margin-top:66px; }
.shell-preview-mat { height:auto; padding:0; background:var(--mat); display:flex; flex-direction:column; gap:12px; overflow:hidden; }
.shell-preview-mat p { flex:none; margin:0; font:400 11px/1.4 var(--font-mono); }
.shell-preview-mat img { display:block; width:100%; height:auto; flex:none; min-height:0; object-fit:contain; object-position:center; }
.shell-menu:focus { outline:none; }
.shell-footer { padding:48px var(--shell-gutter) 29px; }
.shell-footer-inner { border-top:1px solid var(--ink); }
.shell-footer h2 { font:400 clamp(60px,9.722vw,140px)/1.3 var(--font-display); letter-spacing:0; margin:12px 0 -7px -12px; }
.shell-footer-contact { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:32px; }
.shell-footer-links { display:flex; gap:76px; }
.shell-footer-links a { display:inline-block; font:500 22px/30px var(--font-body); text-decoration:none; padding-bottom:5px;white-space:nowrap; }
.shell-footer-links a > .link-ix-line { height:2px; }
.shell-footer-links a span { font-family:var(--font-mono); font-weight:400; }
.shell-availability, .shell-colophon { color:var(--mute); font:400 11px/1.4 var(--font-mono); }
.shell-colophon { display:flex; justify-content:space-between; gap:20px; margin-top:50px; }
.shell-colophon > p:last-child { letter-spacing:.44px; }
.shell-built-with { display:inline-flex;align-items:center;gap:8px;padding-block:6px;white-space:nowrap; }
.shell-built-with img { display:block;width:20px;height:20px;object-fit:contain;flex:none; }
@media (pointer:coarse), (hover:none), (max-width:767px) {
  /* Keep compact-header movement, but switch the mobile palette in one paint. */
  .shell-bar { transition-property:inset,height,padding; }
}
@media (prefers-reduced-motion:reduce) {
  .shell-bar { transition:none; }
  .shell-toggle-words > span,.shell-bars > span { transition:none; }
}
@media (min-width:1680px) {
  .shell-footer { padding:calc(48 * var(--k2-unit)) calc(48 * var(--k2-unit)) calc(29 * var(--k2-unit)); }
  .shell-footer-inner { max-width:none; margin:0; }
  .shell-footer h2 { font-size:calc(140 * var(--k2-unit)); margin:calc(12 * var(--k2-unit)) 0 calc(-7 * var(--k2-unit)) calc(-12 * var(--k2-unit)); }
  .shell-footer-contact { gap:calc(32 * var(--k2-unit)); }
  .shell-footer-links { gap:calc(76 * var(--k2-unit)); }
  .shell-footer-links a { font-size:calc(22 * var(--k2-unit)); line-height:calc(30 * var(--k2-unit)); }
  .shell-availability,.shell-colophon { font-size:calc(11 * var(--k2-unit)); }
  .shell-colophon { margin-top:calc(50 * var(--k2-unit)); }
}
@media (min-width:768px) and (max-width:1199px) {
  .shell-menu-content { grid-template-columns:minmax(0,1fr) 260px; gap:40px; padding-inline:64px; }
  .shell-footer-links { gap:40px; }
}
@media (min-width:768px) and (max-width:1023px) { :root { --shell-gutter:32px; } }
@media (max-width:767px) {
  :root { --shell-gutter:24px; --shell-height:80px; }
  .shell-brand { font-size:18px; }
  .shell-controls { gap:12px; }
  .shell-controls .theme-toggle { width:44px;height:44px; }
  .shell-toggle { width:78px; }
  .shell-header[data-header-compact] .shell-bar { inset:12px 12px auto; padding-inline:12px; }
  html[data-menu="open"] .shell-key { display:none; }
  .shell-key { right:calc(100% + 12px); font-size:9px; }
  .shell-aperture { inset:var(--shell-height) 16px 16px; }
  /* One viewport on phones, including the contact rail and preview. dvh
     follows the browser bars; overflow remains available for enlarged text. */
  .shell-menu-content { display:flex; flex-direction:column; justify-content:space-between; gap:clamp(16px,3svh,28px); min-height:100dvh; height:100dvh; padding:calc(var(--shell-height) + 16px) 32px 32px; }
  .shell-destinations { flex:none; gap:clamp(6px,1.25svh,14px); }
  .shell-destinations a { gap:18px; min-height:44px; }
  .shell-number { font-size:10px; }
  .shell-destination { font-size:clamp(28px,5.2svh,44px); }
  .shell-rail { display:grid; grid-template-columns:minmax(0,1fr) minmax(72px,.7fr); column-gap:20px; padding-top:0; margin-left:34px; flex:none; }
  .shell-rail > :not(.shell-preview) { grid-column:1; }
  .shell-email { font-size:12px; }
  .shell-meta { padding:6px 0; }
  .shell-email + .shell-meta { margin-top:6px; }
  .shell-preview { grid-column:2; grid-row:1 / span 4; align-self:end; margin-top:0; }
  .shell-preview-mat { gap:8px; }
  .shell-preview-mat p { font-size:9px; }
  .shell-footer { padding-block:40px 32px; }
  .shell-footer h2 { font-size:clamp(40px,10.3vw,72px); line-height:1.1; margin:18px 0 28px; }
  .shell-footer-contact { flex-direction:column; align-items:flex-start; gap:32px; }
  .shell-footer-links { flex-direction:column;align-items:flex-start;gap:24px; }
  .shell-footer-links a { font-size:16px; line-height:24px; }
  .shell-availability,.shell-colophon { font-size:10px; }
  .shell-colophon { flex-wrap:wrap; margin-top:32px; gap:12px 24px; }
}
/* Landscape phones keep both columns, with type and imagery fitted to height. */
@media (min-width:768px) and (max-height:600px) {
  html[data-menu="open"],html[data-menu-closing] { --shell-height:64px; }
  .shell-menu-content { min-height:100dvh; padding:80px 48px 24px; gap:40px; }
  .shell-destinations { gap:clamp(4px,1svh,8px); }
  .shell-destination { font-size:clamp(26px,7svh,42px); }
  .shell-rail { padding-top:0; }
  .shell-meta { padding:4px 0; }
  .shell-email + .shell-meta { margin-top:6px; }
  .shell-preview { margin-top:16px; }
  .shell-preview-mat { gap:8px; }
  .shell-preview-mat img { height:clamp(60px,24svh,130px); }
}
/* ---- */
/* K2 Theme. Light is the default. Night is its own palette. */

:root,
[data-theme="light"] {
  --paper: #F0EEE9;
  --ink: #141311;
  --mute: #625E58;
  --mat: #E4E1DA;
  --rule: color-mix(in srgb, var(--ink) 15%, transparent);
  --hairline: var(--ink);
  --focus: #141311;
  --plate-code: #0E0E0E;
  --plate-code-ink: #E8E5DE;
  --plate-code-path: #8C8880;
  --inspect-amber: #F2A842;
  --inspect-amber-ink: #141311;
  --font-display: "Instrument Serif", "Iowan Old Style", Palatino, serif;
  --font-body: "Manrope Variable", Manrope, "Avenir Next", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --frame-inset: clamp(7px, .7vw, 11px);
  --frame-landscape: 8 / 5;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-plate: 360ms;
  --duration-theme: 320ms;
  --duration-theme-fade: 240ms;
  color-scheme: light;
}

[data-theme="night"] {
  --paper: #121110;
  --ink: #F0EEE9;
  --mute: #9A958C;
  --mat: #1C1B18;
  --rule: color-mix(in srgb, var(--ink) 15%, transparent);
  --hairline: var(--ink);
  --focus: #F0EEE9;
  --plate-code: #1C1B18;
  --plate-code-ink: #E8E5DE;
  --plate-code-path: #9A958C;
  --inspect-amber: #F2A842;
  --inspect-amber-ink: #141311;
  color-scheme: dark;
}

/* First visit, before the boot script, follow the system. Explicit Light wins. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121110;
    --ink: #F0EEE9;
    --mute: #9A958C;
    --mat: #1C1B18;
    --rule: color-mix(in srgb, var(--ink) 15%, transparent);
    --hairline: var(--ink);
    --focus: #F0EEE9;
    --plate-code: #1C1B18;
    --plate-code-ink: #E8E5DE;
    --plate-code-path: #9A958C;
    --inspect-amber: #F2A842;
    --inspect-amber-ink: #141311;
    color-scheme: dark;
  }
}
/* ---- */
/* Keep icons independent of text fonts and their emoji fallback. */
.ui-icon { display:inline-block; width:1em; height:1em; flex-shrink:0; vertical-align:-.125em; overflow:visible; color:inherit; }
.contact-action { gap:.35em; }
[data-integration="resend"][data-state="sending"] [data-submit-icon],
[data-integration="resend"][data-state="sent"] [data-submit-icon] { display:none; }
.shell-bars svg { display:block; width:100%; height:100%; fill:currentColor; }
/* ---- */
/* Editorial covers, open type and a compact archive. */
.writing-shell.route-shell { min-height:0; padding-top:40px; }
.writing-masthead { padding-bottom:64px; }
.writing-eyebrow { font:10px/1.6 var(--font-mono); color:var(--mute); letter-spacing:.08em; text-transform:uppercase; }
.writing-masthead .display-page { margin:24px 0 0; font:400 clamp(96px,12.5vw,200px)/1.04 var(--font-display); letter-spacing:-.025em; }
.writing-deck { display:grid; grid-template-columns:minmax(0,2fr) minmax(160px,1fr); gap:40px; align-items:end; margin-top:32px; }
.writing-deck p { font:17px/1.7 var(--font-body); }
.writing-deck > span { text-align:right; color:var(--mute); font:10px/1.6 var(--font-mono); text-transform:uppercase; letter-spacing:.04em; }
.writing-catalog.content-catalog { margin-top:0; }
.writing-catalog > .section-title { padding-top:32px; border-top:1px solid var(--ink); }
.writing-catalog > .section-title h2 { font:400 clamp(32px,3vw,48px)/1.15 var(--font-display); }
.writing-catalog .catalog-result-meta { margin-bottom:0; }
.writing-catalog .catalog-cards { gap:56px 32px; margin-top:40px; }
.journal-card .journal-media,.journal-video-cover { width:100%; aspect-ratio:var(--frame-landscape); }
.journal-video-cover { min-height:0; padding:24px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; background:var(--mat); color:var(--ink); font:11px/1.6 var(--font-mono); }
.journal-video-symbol { display:grid; place-items:center; width:48px; height:48px; border:1px solid var(--ink); border-radius:50%; font-size:16px; padding-left:3px; }
.journal-tags { display:flex; flex-wrap:wrap; gap:8px 16px; list-style:none; padding:0; margin:18px 0 0; color:var(--mute); font:10px/1.6 var(--font-mono); }
.journal-tags li { border-bottom:1px solid var(--rule); padding-bottom:3px; }
.journal-table .journal-tags { margin-top:12px; font-size:9px; }
.post-head .journal-tags { margin-top:24px; }
.journal-article-media { background:var(--mat); }
.journal-article-media img { display:block; width:100%; max-height:340px; object-fit:contain; }
.journal-card .journal-caption { margin-top:28px; padding-bottom:28px; border-bottom:1px solid var(--rule); }
.journal-kicker { margin:0 0 18px; font:10px/1.5 var(--font-mono); text-transform:uppercase; letter-spacing:.05em; }
.journal-kicker span { color:var(--mute); }
.journal-caption h3 { font:400 clamp(30px,2.6vw,40px)/1.12 var(--font-display); letter-spacing:-.01em; }
.journal-summary { margin-top:18px; color:var(--mute); font:15px/1.7 var(--font-body); }
.journal-table-link:focus-visible > span { transform:translate(4px,-4px); }
@media(hover:hover) and (pointer:fine) { .journal-table-link:hover > span { transform:translate(4px,-4px); } }
.writing-catalog .catalog-table { margin-top:32px; }
.writing-catalog .journal-table th:first-child { width:auto; }
.writing-catalog .journal-table th:nth-child(2) { width:100px; }
.writing-catalog .journal-table th:nth-child(3) { width:132px; }
.writing-catalog .journal-table th:nth-child(4) { width:64px; }
.writing-catalog .journal-table tbody th { padding:26px 36px 26px 0; }
.writing-catalog .journal-table td { font:11px/1.7 var(--font-mono); color:var(--mute); }
.journal-table-link { display:flex; align-items:center; justify-content:space-between; gap:24px; color:inherit; text-decoration:none; }
.journal-table-link h3 { font:400 clamp(25px,2.2vw,34px)/1.2 var(--font-display); }
.journal-table-link > span { flex:none; font:17px/1 var(--font-body); transition:transform .24s var(--ease-out); }
.writing-shell .editorial-status { margin-top:24px; color:var(--mute); font:10px/1.7 var(--font-mono); }
.page[data-page="writing"] main > .block-form { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px 64px; max-width:none; margin-block:112px; padding-top:40px; border-top:1px solid var(--ink); }
.page[data-page="writing"] .block-form > h2 { font:400 clamp(42px,5vw,76px)/1.12 var(--font-display); }
.page[data-page="writing"] .block-form > .block-prose { grid-column:1; font:15px/1.7 var(--font-body); margin:0; max-width:none; }
.page[data-page="writing"] .block-form form { grid-column:2; grid-row:1 / span 2; margin-top:0; align-self:center; }
@media(max-width:767px) {
  .writing-shell.route-shell { padding-top:18px; }
  .writing-masthead { padding-bottom:40px; }
  .writing-masthead .display-page { font-size:clamp(76px,22vw,128px); margin:20px 0 0; }
  .writing-deck { display:block; margin-top:24px; }
  .writing-deck p { font-size:15px; }
  .writing-deck > span { display:block; text-align:left; margin-top:24px; }
  .writing-catalog > .section-title { padding-top:24px; }
  .writing-catalog .catalog-cards { grid-template-columns:minmax(0,1fr); gap:40px; margin-top:32px; }
  .journal-card .journal-caption { margin-top:24px; padding-bottom:24px; }
  .journal-caption h3 { font-size:32px; }
  .journal-kicker { font-size:9px; margin-bottom:14px; }
  .journal-summary { font-size:14px; }
  /* Keep each entry fluid: its title owns the row, with metadata beneath it.
     Fixed metadata columns used to leave only 94px for a title at 320px. */
  .writing-catalog .journal-table,.writing-catalog .journal-table tbody { display:block; width:100%; }
  .writing-catalog .journal-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .writing-catalog .journal-table tbody tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding-block:24px; }
  .writing-catalog .journal-table tbody th { grid-column:1/-1; width:auto; min-width:0; padding:0; }
  .writing-catalog .journal-table tbody td { min-width:0; padding:0; font-size:10px; overflow-wrap:anywhere; }
  .journal-table-link { gap:8px; align-items:flex-start; }
  .journal-table-link h3 { font-size:28px; overflow-wrap:break-word; }
  .page[data-page="writing"] main > .block-form { display:block; margin-block:64px; padding-top:32px; }
  .page[data-page="writing"] .block-form > .block-prose { margin-top:24px; }
  .page[data-page="writing"] .block-form form { margin-top:32px; }
}
@media(prefers-reduced-motion:reduce) { .journal-table-link > span { transition:none; transform:none; } }
/* ---- */
/* Approved frames: 155:3; 299:114,356,477; menu 231:42. */
:root { --k2-unit:1px; }
.mobile-copy { display:none; }
[hidden] { display:none !important; }
.frame { width:100%; max-width:none; padding-inline:calc(48 * var(--k2-unit)); }
.track { max-width:none; }
h1,h2,.display { letter-spacing:0; }
.plate { margin:0; }
.plate-body { padding:11px; }
.crop { width:28px; height:28px; border:0; }
.crop::before,.crop::after { content:""; position:absolute; background:var(--ink); }
.crop::before { width:28px; height:1px; left:0; top:14px; background:linear-gradient(to right,var(--ink) 0 10px,transparent 10px 18px,var(--ink) 18px); }
.crop::after { width:1px; height:28px; left:14px; top:0; background:linear-gradient(to bottom,var(--ink) 0 10px,transparent 10px 18px,var(--ink) 18px); }
.crop-nw { top:-15px;left:-15px; }.crop-ne { top:-15px;right:-15px; }.crop-sw { bottom:-15px;left:-15px; }.crop-se { bottom:-15px;right:-15px; }
.site-header { position:relative; height:calc(72 * var(--k2-unit)); }
.header-bar { position:relative; flex-wrap:nowrap; min-height:0; height:calc(72 * var(--k2-unit)); padding-block:0; border:0; gap:calc(16 * var(--k2-unit)); }
.header-bar::after { content:""; position:absolute; bottom:0; left:calc(48 * var(--k2-unit)); right:calc(48 * var(--k2-unit)); height:1px; background:var(--ink); }
.brand { font-size:calc(15 * var(--k2-unit)); font-weight:600; white-space:nowrap; }
.fig-counter,.clock { font-size:calc(11 * var(--k2-unit)); letter-spacing:.04em; text-transform:none; }
.fig-counter { margin-left:0; white-space:nowrap; }
.clock { position:absolute; left:50%; transform:translateX(-50%); text-transform:uppercase; }
.nav-inline { display:flex; gap:24px; margin-left:auto; font-size:14px; }
.nav-hire { display:none; }
.header-tools { flex-wrap:nowrap; gap:calc(35 * var(--k2-unit)); }
.page[data-page="home"] .nav-inline a:not([data-nav="work"]) { display:none; }
.page:not([data-page="home"]) .fig-counter,.page:not([data-page="home"]) .clock { display:none; }
.inspect-toggle { min-height:calc(28 * var(--k2-unit)); height:calc(28 * var(--k2-unit)); width:calc(96 * var(--k2-unit)); border:1px solid var(--ink); border-radius:20px; justify-content:center; font-family:var(--font-body); font-size:calc(13 * var(--k2-unit)); letter-spacing:0; text-transform:none; gap:7px; }
.inspect-toggle kbd { border-radius:4px;font-size:11px; }
.theme-toggle { width:32px;height:32px;flex-shrink:0; }
.theme-glyph { border:0;background:none;width:16px;height:16px; }
.theme-glyph img { display:block;width:auto;height:auto; }
[data-theme="night"] .theme-glyph { filter:none; }
.menu-toggle { display:block; min-height:44px; width:calc(102 * var(--k2-unit)); }
.menu-label { display:flex; justify-content:space-between; width:100%; }
.menu-label::before,.menu-label::after { display:none; }
.menu-bars { width:calc(30 * var(--k2-unit));height:10px;border-top:2px solid var(--ink);border-bottom:2px solid var(--ink); }
.menu-close-word,.menu-close-icon { display:none; }
.hero { display:grid; grid-template-columns:minmax(0,420fr) minmax(0,52fr) minmax(0,600fr) minmax(0,48fr) minmax(0,224fr); gap:0; height:calc(528 * var(--k2-unit)); padding-top:calc(28 * var(--k2-unit)); }
.hero-copy { position:relative;grid-column:1; min-height:calc(448 * var(--k2-unit));border-bottom:1px solid var(--ink); }
.hero .display-hero { font-size:calc(72 * var(--k2-unit));line-height:1.3;white-space:nowrap; }
.hero .lede { font-size:calc(18 * var(--k2-unit));line-height:1.5;margin-top:calc(2 * var(--k2-unit)); }
.hero-current { position:absolute;bottom:calc(20 * var(--k2-unit));left:0;right:0; }
.hero-current .meta { font-size:calc(11 * var(--k2-unit));line-height:1.4;letter-spacing:.04em;text-transform:none; }
.resume-link { display:inline-block;margin-top:calc(6 * var(--k2-unit));font-size:calc(14 * var(--k2-unit));font-weight:500; }
.hero-index { grid-column:3;padding-top:calc(4 * var(--k2-unit)); }
.hero-index .label { font-size:calc(10 * var(--k2-unit));height:calc(24 * var(--k2-unit));letter-spacing:.06em; }
.figure-list { border-bottom:1px solid var(--ink); }
.figure-row { height:calc(84 * var(--k2-unit));padding:0;grid-template-columns:calc(56 * var(--k2-unit)) minmax(0,1fr);gap:0;align-items:center;border-color:var(--ink); }
.figure-row>span:first-child { font-family:var(--font-mono);font-size:calc(12 * var(--k2-unit));color:var(--mute); }
.figure-row>span:last-child { font-family:var(--font-display);font-size:calc(44 * var(--k2-unit));line-height:1.3;white-space:nowrap; }
.hero-stage { grid-column:5;margin:calc(4 * var(--k2-unit)) 0 0;position:relative; }
.stage-clip { position:relative;aspect-ratio:4/5;overflow:hidden;background:var(--mat); }
.stage-clip img { display:block;width:100%;height:100%;object-fit:cover; }
.stage-clip pre { margin:0;padding:calc(20 * var(--k2-unit)) calc(16 * var(--k2-unit));background:var(--plate-code);color:var(--plate-code-ink);height:100%;font-family:var(--font-mono);font-size:calc(11 * var(--k2-unit));line-height:1.45;white-space:pre-wrap; }
.hero-stage figcaption { margin-top:8px;font-size:calc(10 * var(--k2-unit));text-transform:none;letter-spacing:0;line-height:1.3; }
.home-projects { padding-top:calc(76 * var(--k2-unit));padding-bottom:calc(80 * var(--k2-unit)); }
.home-projects .plate-body { padding:calc(11 * var(--k2-unit)); }
.zenith-media { display:grid;grid-template-columns:554fr 766fr;height:calc(456 * var(--k2-unit)); }
.zenith-media img { width:100%;height:100%;object-fit:cover; }
.zenith-media .plate-code { padding:calc(20 * var(--k2-unit)) calc(24 * var(--k2-unit));overflow:hidden; }
.plate-code .path { font-size:calc(11 * var(--k2-unit)); }
.zenith-media pre { font-size:calc(13 * var(--k2-unit));line-height:calc(21 * var(--k2-unit));margin-top:calc(16 * var(--k2-unit));white-space:pre; }
.plate-caption { display:grid;grid-template-columns:calc(56 * var(--k2-unit)) 1fr auto;align-items:baseline;margin-top:0;min-height:calc(40 * var(--k2-unit)); }
.plate-caption>span { font:400 calc(28 * var(--k2-unit))/1.5 var(--font-display); }
.plate-caption p { font-size:calc(13 * var(--k2-unit));font-weight:500; }
.plate-caption small { font:400 calc(11 * var(--k2-unit))/1.4 var(--font-mono);color:var(--mute);text-transform:uppercase; }
.home-project-pair { display:grid;grid-template-columns:1fr 1fr;gap:calc(32 * var(--k2-unit));margin-top:calc(76 * var(--k2-unit)); }
.wayline-media,.directus-media { height:calc(276 * var(--k2-unit)); }
.wayline-media { padding:0; background:var(--plate-code); }
.wayline-media img,.directus-media img { display:block;width:100%;height:100%;object-fit:contain; }
.wayline-media img { object-position:left top; }
.site-footer { border:0;padding:calc(48 * var(--k2-unit)) 0 calc(40 * var(--k2-unit)); }
.footer-closer { border-top:1px solid var(--ink); }
.footer-closer h2 { font:400 calc(140 * var(--k2-unit))/1.3 var(--font-display);margin-top:calc(12 * var(--k2-unit));margin-left:calc(-12 * var(--k2-unit)); }
.footer-contact-row { display:flex;justify-content:space-between;align-items:center; }
.footer-links { display:flex;gap:calc(76 * var(--k2-unit)); }
.footer-links a { font-size:calc(22 * var(--k2-unit));font-weight:500; }
.footer-resume { display:none; }
.footer-availability,.colophon { font:400 calc(11 * var(--k2-unit))/1.4 var(--font-mono);color:var(--mute); }
.colophon { display:flex;justify-content:space-between;gap:20px;margin-top:calc(48 * var(--k2-unit)); }
.page:not([data-page="home"]) .footer-closer { display:none; }
.page:not([data-page="home"]) .site-footer { padding-top:20px; }
.page:not([data-page="home"]) .colophon { margin-top:0;padding-top:24px;border-top:1px solid var(--rule); }
.view-card { display:block; color:inherit; text-decoration:none; }
.view-card .plate-body { padding:0; overflow:clip; }
.view-frame { position:relative; overflow:clip; padding:calc(11 * var(--k2-unit)); }
.view-disc { width:112px; height:112px; transform:translate(-50%, -50%) scale(0); transform-origin:50% 50%; }
.menu-panel[hidden] { display:none; }
html[data-motion-ready] .menu-panel { z-index:50; }
.menu-content { display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:80px;padding:128px 80px 100px 96px;min-height:900px; }
html[data-motion-ready] .menu-panel nav { padding:0;display:flex;flex-direction:column;gap:32px; }
.menu-panel nav a { display:flex;align-items:flex-start;gap:38px;padding:0;font-size:104px;line-height:1;letter-spacing:0; }
.menu-number { width:16px;flex-shrink:0;font:400 12px/1.4 var(--font-mono);color:var(--mute);padding-top:22px; }
.menu-panel .menu-rail { padding-top:24px; }
.menu-panel .menu-rail a { display:block;font:400 12px/1.4 var(--font-mono);letter-spacing:0;padding:0;margin-top:20px; }
.menu-panel .menu-rail .menu-email { font:500 16px/1.5 var(--font-body);margin-top:14px; }
.menu-rail .label { font-size:10px; }
.menu-preview { height:420px;margin-top:76px;padding:7px;background:var(--paper); }
.menu-preview-mat { height:100%;background:var(--mat);padding:12px; }
.menu-aperture { opacity:1;inset:88px 32px 32px;border:1px solid var(--ink); }
.menu-edge { display:none; }
.menu-esc { position:absolute;bottom:48px;left:96px;padding:0;font-size:10px; }
.menu-copyright { position:absolute;right:100px;bottom:48px;font-size:12px;color:var(--mute); }
html[data-menu="open"] .header-bar { position:fixed;inset:0 0 auto;z-index:70;height:88px;background:var(--paper); }
html[data-menu="open"] .header-bar::after,html[data-menu="open"] .header-tools>.inspect-toggle,html[data-menu="open"] .header-tools>.theme-toggle,html[data-menu="open"] .nav-inline,html[data-menu="open"] .fig-counter,html[data-menu="open"] .clock { display:none; }
html[data-menu="open"] .brand { font:400 24px/1.3 var(--font-display); }
html[data-menu="open"] .header-tools { margin-left:auto; }
html[data-menu="open"] .menu-open-word,html[data-menu="open"] .menu-bars { display:none; }
html[data-menu="open"] .menu-close-word,html[data-menu="open"] .menu-close-icon { display:block; }
.menu-close-icon { max-width:none; }
.menu-close-icon { width:24px;height:24px;background:var(--ink);mask:url("/assets/menu-close.svg") center / 24px 24px no-repeat; }
.theme-glyph { background:var(--ink);mask:url("/assets/theme-glyph.svg") center / 16px 16px no-repeat; }
.theme-glyph img { opacity:0; }
.view-disc-label { font-family:var(--font-body);font-size:15px;font-weight:500;letter-spacing:.3px;text-transform:none; }
.preloader-plate { width:min(400px,calc(100vw - 48px));height:auto;aspect-ratio:1;min-height:0;padding:11px;display:block;background:var(--paper); }
.preloader-mat { width:100%;height:100%;background:var(--mat);padding:12px; }
.preloader-mat .meta { font-size:11px; }
.preloader-word { position:absolute;left:0;right:0;top:calc(100% + 20px);padding:0;border:0;text-align:center; }
[data-inspect="on"] .plate::after { content:"K2 · " attr(data-motion);position:absolute;bottom:calc(100% + 4px);left:0;font:10px/1.4 var(--font-mono);color:var(--inspect-amber); }
/* Stop scaling the composition once its shared desktop rail reaches 1680px. */
@media (min-width:1440px) { :root { --k2-unit:clamp(1px, calc(100vw / 1440), 1.166667px); } }
@media (min-width:1024px) and (max-width:1439px) { :root { --k2-unit:calc(100vw / 1440); }.nav-inline { gap:16px; }.header-tools {gap:20px;} }
@media (min-width:768px) and (max-width:1023px) {
  .frame {padding-inline:32px;} .header-bar {height:72px;} .header-bar::after {left:32px;right:32px;}
  .fig-counter,.clock,.nav-inline {display:none;}.header-tools {margin-left:auto;gap:20px;}.menu-toggle {width:78px;}.theme-toggle {width:44px;height:44px;}
  .hero {height:884px;padding-top:28px;grid-template-columns:minmax(0,1fr) 224px;column-gap:40px;grid-template-rows:332px 444px;row-gap:24px;}
  .hero-copy {grid-column:1;min-height:332px;border:0;}
  .hero .display-hero {font-size:72px;}.hero .lede {width:440px;max-width:100%;font-size:18px;}
  .hero-current {bottom:56px;}.hero-stage {grid-column:2;grid-row:1;}
  .hero-index {grid-column:1/-1;grid-row:2;border-top:1px solid var(--ink);padding-top:20px;}
  .home-projects {padding-top:40px;padding-bottom:60px;}
  .zenith-media {display:grid;grid-template-columns:1fr;height:auto;}
  .zenith-media .plate-code {height:424px;}.zenith-media img {height:auto;aspect-ratio:680/405;}
  .home-project-pair {grid-template-columns:1fr;gap:90px;margin-top:90px;}
  .plate-caption {min-height:40px;}.wayline-media,.directus-media {height:276px;}
  .site-footer {padding-top:48px;}
  .footer-closer h2 {font-size:104px;line-height:100px;max-width:716px;margin-left:-8px;margin-bottom:28px;}
  .footer-links {gap:76px;}.footer-availability {font-size:10px;max-width:218px;}.footer-contact-row {gap:30px;}
  .menu-content {grid-template-columns:1fr 240px;gap:30px;padding:120px 48px 100px;min-height:900px;}
  .menu-panel nav a {font-size:64px;gap:18px;}.menu-preview {height:320px;}.menu-panel .menu-rail .menu-email {font-size:12px;overflow-wrap:anywhere;}
  .menu-esc {left:48px;}.menu-copyright {right:48px;}
}
@media (max-width:767px) {
  .desktop-copy {display:none !important;}.mobile-copy {display:block;}
  .frame {padding-inline:16px;}.site-header,.header-bar {height:64px;}.header-bar {gap:8px;align-items:flex-start;padding-top:10px;}
  .header-bar::after,.fig-counter,.clock,.nav-inline,.nav-hire,.inspect-toggle {display:none;}
  .brand {font-size:12px;font-weight:500;padding-top:4px;}.header-tools {margin-left:auto;gap:0;}
  .theme-toggle {width:44px;height:44px;}.menu-toggle {width:44px;min-width:44px;}
  .menu-label {justify-content:center;}.menu-open-word {display:none;}.menu-bars {width:16px;height:12px;border-width:1px;position:relative;}
  .menu-bars::after {content:"";position:absolute;left:0;right:0;top:4px;height:1px;background:var(--ink);}
  .hero {height:auto;display:flex;flex-direction:column;gap:0;padding-top:8px;}
  .hero-copy {min-height:0;width:100%;border:0;display:block;}
  .hero .display-hero {font-size:36px;line-height:40px;white-space:normal;}.hero .lede {font-size:15px;line-height:22px;margin-top:16px;color:var(--mute);}
  .hero-current {position:static;margin-top:28px;}
  .hero-current .meta {font-size:10px;margin-bottom:10px;}.hero-current .mobile-copy>p:last-child {font-size:15px;line-height:22px;}
  .resume-link {font-size:14px;margin-top:30px;}.resume-link .mobile-copy {display:inline;}
  .hero-stage {order:2;margin:38px 0 0;width:100%;padding:7px;border:1px solid var(--ink);height:420px;}
  .stage-clip {height:404px;aspect-ratio:auto;}.stage-clip img,.stage-clip pre {display:none !important;}
  .mobile-stage-label {font:9px/1.4 var(--font-mono);color:var(--mute);padding:8px;}
  .hero-stage figcaption {position:absolute;top:calc(100% + 10px);left:-1px;font-size:9px;margin:0;}
  .hero-index {order:3;width:100%;margin-top:60px;padding:0;}.hero-index>.label {display:none;}
  .figure-row {height:64px;grid-template-columns:48px minmax(0,1fr);}
  .figure-row>span:first-child {font-size:11px;}.figure-row>span:last-child {font-size:22px;}
  .home-projects {padding-top:32px;padding-bottom:0;}.home-projects>h2 {font-size:40px;line-height:52px;margin-bottom:8px;}
  .home-projects .plate-body {padding:7px;}.home-projects .view-card .plate-body {padding:0;}.home-projects .view-frame {padding:7px;}.mobile-project {height:184px;background:var(--mat);padding:8px 4px;}
  .mobile-project .meta {font-size:9px;}.mobile-project h3 {font:400 28px/1.3 var(--font-display);margin-top:52px;letter-spacing:0;}
  .mobile-project>p:last-child {font-size:13px;font-weight:500;margin-top:20px;}
  .home-project-pair {display:grid;grid-template-columns:1fr;gap:30px;margin-top:30px;}
  .experience-peek {margin-top:26px;}.experience-peek>div {display:flex;gap:20px;align-items:center;margin-bottom:16px;}
  .experience-peek h2 {font-size:40px;line-height:48px;}.experience-peek a {text-decoration:none;}
  .experience-peek>div>a {font-size:13px;}.experience-peek>a {display:grid;grid-template-columns:64px 1fr;border-top:1px solid var(--ink);align-items:center;height:52px;}
  .experience-peek>a:last-child {border-bottom:1px solid var(--ink);}.experience-peek>a>span {font:10px/1.4 var(--font-mono);color:var(--mute);}.experience-peek strong {font:400 20px/1.3 var(--font-display);}
  .site-footer {padding-top:40px;padding-bottom:48px;}.footer-closer {border:0;}.footer-closer h2 {font-size:40px;line-height:44px;margin:0 0 56px;max-width:358px;}
  .footer-contact-row,.footer-links {display:flex;flex-direction:column;align-items:flex-start;gap:24px;}.footer-links a {font-size:16px;line-height:24px;}.footer-resume {display:block;}
  .footer-availability {font-size:10px;margin-top:18px;}.colophon {margin-top:24px;font-size:9px;gap:8px;justify-content:flex-start;flex-wrap:wrap;}
  .menu-content {display:block;padding:108px 32px 100px;min-height:100svh;}.menu-aperture {inset:80px 16px 20px;}
  html[data-motion-ready] .menu-panel nav {gap:22px;}.menu-panel nav a {font-size:56px;gap:16px;}.menu-number {font-size:10px;padding-top:10px;}
  .menu-rail {margin:28px 0 0 32px;}.menu-preview {display:none;}.menu-panel .menu-rail a {margin-top:12px;}.menu-panel .menu-rail .menu-email {font-size:13px;}
  .menu-esc {display:none;}.menu-copyright {bottom:38px;right:32px;font-size:10px;}
  html[data-menu="open"] .brand {font-size:20px;padding-top:12px;}html[data-menu="open"] .header-bar {height:80px;padding-inline:24px;}
  html[data-menu="open"] .menu-toggle {width:100px;}html[data-menu="open"] .menu-label {justify-content:space-between;}
  .crop {width:16px;height:16px;}.crop::before {width:16px;top:8px;background:linear-gradient(to right,var(--ink) 0 6px,transparent 6px 10px,var(--ink) 10px);}
  .crop::after {height:16px;left:8px;background:linear-gradient(to bottom,var(--ink) 0 6px,transparent 6px 10px,var(--ink) 10px);}
  .crop-nw {top:-9px;left:-9px;}.crop-ne {top:-9px;right:-9px;}.crop-sw {bottom:-9px;left:-9px;}.crop-se {bottom:-9px;right:-9px;}
}

/* Preserve the layout when GSAP wraps plate media for its independent transform. */
.zenith-media > .k2-plate-media { display:grid;grid-template-columns:554fr 766fr;grid-column:1/-1;height:100%;min-width:0; }
.directus-media > .k2-plate-media,.wayline-media > .k2-plate-media { height:100%; }
@media (min-width:768px) and (max-width:1023px) { .zenith-media > .k2-plate-media { grid-template-columns:1fr; } }

/* Measurements corrected against full-size source screenshots. */
.figure-list { border-bottom:0; }.figure-list > li:last-child .figure-row { border-bottom:1px solid var(--ink); }
.home-project-pair { margin-top:calc(74 * var(--k2-unit)); }
.plate-caption { margin-top:calc(6 * var(--k2-unit));min-height:calc(36 * var(--k2-unit)); }
.plate-caption>span { line-height:calc(36 * var(--k2-unit)); }
.footer-closer h2 { margin-bottom:calc(-7 * var(--k2-unit)); }
.footer-links a { line-height:calc(30 * var(--k2-unit)); }
.colophon { margin-top:calc(50 * var(--k2-unit)); }
.site-footer { padding-bottom:calc(29 * var(--k2-unit)); }
@media (min-width:768px) and (max-width:1023px) {
  .hero-index {border-top:0;padding-top:0;}
  .hero-copy::after {content:"";position:absolute;top:332px;left:0;width:704px;max-width:calc(100vw - 64px);height:1px;background:var(--ink);}
  .home-project-pair {gap:88px;margin-top:88px;}.home-projects {padding-bottom:64px;}
  .footer-closer h2 {margin-top:11px;margin-bottom:28px;}.site-footer {padding-bottom:32px;min-height:416px;}
}
@media (max-width:767px) {
  .hero-current .meta {margin-bottom:6px;}.resume-link {margin-top:14px;}
  .home-projects {padding-top:40px;}.home-project-pair {margin-top:30px;}
  .experience-peek {margin-top:30px;}.experience-peek>div {margin-bottom:12px;}
  .footer-closer h2 {margin:0 0 56px;}.footer-links a {line-height:24px;}
  .footer-availability {margin-top:20px;}.colophon {margin-top:26px;}.site-footer {padding-bottom:48px;}
}

.colophon .desktop-copy,.colophon .mobile-copy {display:inline;}
@media (min-width:768px) {.colophon .mobile-copy {display:none;}}

/* Menu A resting geometry, full-size source231:42. */
.menu-key-hint {display:none;}
.menu-panel nav a {position:relative;}
.menu-panel nav a[aria-current="page"] {text-decoration:none;}
.menu-panel nav a[aria-current="page"] .menu-number::after {content:"NOW";position:absolute;left:0;top:44px;font-size:9px;line-height:1.4;color:var(--ink);letter-spacing:.36px;}
@media (min-width:1024px) {
  .menu-panel .menu-rail > .label {line-height:12px;}
  .menu-panel .menu-rail .menu-meta {line-height:12px;}
  .menu-panel .menu-email + .menu-meta {margin-top:12px;}
  .menu-panel .menu-meta + .menu-meta {margin-top:20px;}
  .menu-preview {margin-top:82px;}
  html[data-menu="open"] .menu-toggle {width:122px;}
  html[data-menu="open"] .menu-label {font:400 12px/1.4 var(--font-mono);letter-spacing:.72px;}
  html[data-menu="open"] .menu-key-hint {display:block;position:absolute;right:194px;top:40px;font:400 10px/1.4 var(--font-mono);color:var(--mute);letter-spacing:.4px;}
}
@media (max-width:1023px) {.menu-panel nav a[aria-current="page"] .menu-number::after {top:30px;font-size:8px;}}

@media (min-width:1024px) {
 .zenith-media,.zenith-media > .k2-plate-media {grid-template-rows:minmax(0,1fr);}
 .zenith-media img {min-height:0;}
}

/* Underline mounts: link-ix.css + GSAP LinkIX (JUD-108). */
.menu-panel nav a>span:last-child,.menu-panel .menu-rail a {position:relative;}
.menu-panel .k2-line,.menu-panel .link-ix-line {position:absolute;left:0;right:0;top:calc(100% + 4px);}
.menu-panel nav .k2-line,.menu-panel nav .link-ix-line {height:2px;}

.menu-toggle>.k2-mag {display:block;width:100%;}

/* FIG.M preview shows the Home Work plate (Zenith). The label stays in the mat. */
.menu-preview-mat { display:flex; flex-direction:column; gap:calc(8 * var(--k2-unit)); overflow:hidden; }
.menu-preview-mat img { display:block; width:100%; min-height:0; flex:1 1 auto; object-fit:cover; }
