@font-face {
  font-family: "Silkscreen";
  src: url("../fonts/silkscreen-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --black: #20231f;
  --black-raised: #111;
  --ink: #20231f;
  --paper: #faf9f6;
  --white: #faf9f6;
  --accent: #20231f;
  --action-hover: #333;
  --accent-ink: #20231f;
  --action: #20231f;
  --success: #216e39;
  --link: #174ea6;
  --focus: #005fcc;
  --warning: #8a4b00;
  --danger: #b42318;
  --muted: #62645f;
  --muted-light: #b7b7b7;
  --line: #d6d4cd;
  --line-dark: #d6d4cd;
  --pixel-font: "Silkscreen", ui-monospace, monospace;
  --canvas: 1440px;
  --reading: 72ch;
  --gutter: clamp(20px, 4.5vw, 72px);
  --nav-height: 72px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, p, dd { overflow-wrap: break-word; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px 16px; background: var(--white); color: var(--black); font-weight: 800; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.eyebrow, .section-code, .case-number { margin: 0; color: var(--accent-ink); font-size: .8rem; font-weight: 850; letter-spacing: .04em; text-transform: none; }
.button { display: inline-flex; min-height: 52px; padding: 0 20px; align-items: center; justify-content: center; gap: 22px; border: 1px solid currentColor; border-radius: 1px; font-size: .85rem; font-weight: 850; letter-spacing: .04em; text-decoration: none; text-transform: none; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--action); background: var(--action); color: var(--white); }
.button-primary:hover { border-color: var(--action-hover); background: var(--action-hover); }
.button-secondary { border-color: #767676; color: var(--ink); }
.button-secondary:hover, .button-on-dark:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.button-on-dark { border-color: #767676; color: var(--ink); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 24px; border-bottom: 2px solid var(--accent); font-size: .8rem; font-weight: 850; letter-spacing: .04em; text-decoration: none; text-transform: none; }
.text-link:hover { color: var(--muted); border-bottom-width: 3px; }

/* Navigation */
.site-nav { position: sticky; z-index: 50; top: 0; display: grid; min-height: var(--nav-height); grid-template-columns: auto 1fr auto; padding-left: max(var(--gutter), calc((100vw - var(--canvas)) / 2)); align-items: center; border-bottom: 1px solid var(--line-dark); background: var(--paper); color: var(--ink); }
.site-mark { position: relative; font-size: 1.08rem; font-weight: 950; letter-spacing: -.08em; text-decoration: none; }
.site-mark::after { position: absolute; right: 0; bottom: -8px; width: 12px; height: 3px; background: var(--accent); content: ""; }
.site-mark span { padding-inline: 3px; color: var(--accent); }
.nav-role { margin-left: 28px; color: var(--muted); font-size: .8rem; font-weight: 750; letter-spacing: .04em; text-transform: none; }
.site-nav-links { display: flex; height: 100%; align-items: stretch; }
.site-nav-links a { position: relative; display: inline-flex; min-width: 104px; min-height: 44px; padding: 0 22px; align-items: center; justify-content: center; border-left: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 850; letter-spacing: .04em; text-decoration: none; text-transform: none; transition: background-color .18s ease, color .18s ease; }
.site-nav-links a::before { position: absolute; right: 12px; bottom: 10px; left: 12px; height: 2px; background: var(--ink); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .18s var(--ease); }
.site-nav-links a:hover, .site-nav-links a:focus-visible { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.site-nav-links a:hover::before, .site-nav-links a:focus-visible::before { transform: scaleX(1); }
.site-nav-links a[data-nav-index]::after { position: absolute; top: 9px; left: 12px; color: var(--muted-light); content: attr(data-nav-index); font: 400 .52rem var(--pixel-font); }
.site-nav-links .nav-contact { min-width: clamp(142px, 13vw, 204px); background: var(--action); color: var(--white); }
.site-nav-links .nav-contact:hover { background: var(--action-hover); color: var(--white); }
.site-nav-links .nav-contact::before { background: currentColor; }
.language-switcher { display: flex; min-height: 44px; align-items: center; border-left: 1px solid var(--line); }
.language-switcher a { min-width: 42px; padding: 0 8px; border-left: 0; color: var(--muted); }
.language-switcher a.is-active { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.language-switcher a:hover { background: transparent; color: var(--ink); }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; min-height: calc(100svh - var(--nav-height)); overflow: hidden; background: var(--paper); color: var(--ink); isolation: isolate; }
.communication-section, .work-section, .capabilities-section, .trust-section, .writing-section, .contact-section { content-visibility: auto; contain-intrinsic-block-size: auto 800px; }
.hero-grid { position: absolute; z-index: -2; inset: 0; opacity: .12; background-image: linear-gradient(#252525 1px, transparent 1px), linear-gradient(90deg, #252525 1px, transparent 1px); background-size: clamp(72px, 9vw, 144px) clamp(72px, 9vw, 144px); mask-image: linear-gradient(90deg, #000 0 56%, transparent 88%); }
.hero::before { position: absolute; z-index: -1; top: 8%; right: -7%; width: min(47vw, 690px); aspect-ratio: 1; border: clamp(32px, 4vw, 72px) solid #ededed; content: ""; transform: rotate(45deg); opacity: .92; }
.hero-meta { display: flex; min-height: 58px; padding: 0 max(var(--gutter), calc((100vw - var(--canvas)) / 2)); align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-dark); color: var(--muted); font-size: .8rem; font-weight: 750; letter-spacing: .04em; text-transform: none; }
.hero-meta p { margin: 0; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--success); }
.hero-layout { position: relative; display: grid; width: min(var(--canvas), calc(100% - var(--gutter) * 2)); min-height: 650px; margin: 0 auto; grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr); }
.hero-identity { position: relative; z-index: 3; padding: clamp(46px, 6vw, 88px) 0 58px; }
.section-code { color: var(--muted); }
.hero h1 { margin: 30px 0 0; font-size: clamp(4.6rem, 9.2vw, 9.8rem); font-weight: 900; line-height: .9; letter-spacing: -.092em; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy { display: grid; max-width: 850px; margin-top: clamp(38px, 5vw, 76px); grid-template-columns: minmax(220px, .75fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 64px); }
.hero-statement { margin: 0; font-size: clamp(1.45rem, 2.4vw, 2.45rem); font-weight: 800; line-height: 1.2; letter-spacing: -.045em; }
.hero-description { margin: 0; align-self: end; color: var(--muted); font-size: clamp(1.0625rem, 1.2vw, 1.125rem); }
.hero-actions { display: flex; margin-top: 28px; flex-wrap: wrap; gap: 10px; grid-column: 2; }
.hero-visual { position: relative; z-index: 2; min-width: 0; border-left: 1px solid var(--line-dark); }
.hero-visual img { position: absolute; z-index: 2; right: -5%; bottom: 0; width: min(39vw, 555px); height: min(76vh, 640px); object-fit: contain; object-position: center bottom; }
.signal-corner { position: absolute; top: 42px; right: 0; width: 96px; height: 96px; border-top: 1px solid #777; border-right: 1px solid #777; }
.hero-signals { position: absolute; z-index: 4; right: 0; bottom: 30px; display: grid; width: min(250px, 72%); background: rgb(255 255 255 / 94%); backdrop-filter: blur(4px); }
.hero-signals span { padding: 9px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: none; }
.hero-signals span::before { color: var(--accent); content: "+ "; }
.proof-rail { position: relative; z-index: 4; display: grid; margin: 0; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); background: var(--paper); }
.proof-rail div { min-height: 116px; padding: 22px max(20px, calc((100vw - var(--canvas)) / 8)); border-right: 1px solid var(--line-dark); }
.proof-rail div:last-child { border-right: 0; }
.proof-rail dt { color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: none; }
.proof-rail dd { margin: 8px 0 0; color: var(--accent); font-size: clamp(1.9rem, 3.5vw, 3.4rem); font-weight: 900; line-height: .9; letter-spacing: -.055em; }
.proof-rail dd span { display: block; margin-top: 8px; color: var(--muted); font-size: .8rem; letter-spacing: .04em; text-transform: none; }

/* Team communication story */
.communication-section { padding: clamp(48px, 7vw, 96px) var(--gutter); border-bottom: 2px solid var(--ink); background: #eeede7; }
.communication-inner { display: grid; width: min(var(--canvas), 100%); margin: 0 auto; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.communication-intro h2 { max-width: 14ch; margin: 16px 0; font-family: var(--pixel-font); font-size: clamp(1.45rem, 2.6vw, 2.25rem); font-weight: 400; line-height: 1.5; }
.communication-intro > p:not(.section-code) { max-width: 40ch; color: var(--muted); }
.communication-stage { overflow: hidden; border: 2px solid var(--ink); background: var(--paper); box-shadow: 6px 6px 0 var(--line); }
.communication-art { position: relative; display: grid; height: clamp(210px, 23vw, 280px); grid-template-columns: 1fr 1fr 1fr; align-items: end; padding: 0 8% 18px; isolation: isolate; }
.communication-sky { position: absolute; z-index: -2; inset: 0 0 24px; background: repeating-linear-gradient(0deg, transparent 0 31px, rgb(32 35 31 / 5%) 31px 32px), linear-gradient(#faf9f6, #eeede7); }
.communication-ground { position: absolute; z-index: -1; right: 0; bottom: 0; left: 0; height: 26px; border-top: 2px solid var(--ink); background: repeating-linear-gradient(90deg, var(--line) 0 14px, var(--paper) 14px 28px); }
.pixel-character { position: relative; z-index: 2; display: grid; justify-items: center; color: var(--ink); font: .75rem var(--pixel-font); }
.pixel-character span { margin-bottom: 8px; padding: 4px 7px; border: 1px solid var(--ink); background: var(--paper); }
.pixel-character i { display: block; width: 46px; height: 66px; border: 4px solid var(--ink); background: repeating-linear-gradient(0deg, #62645f 0 12px, #d6d4cd 12px 16px); box-shadow: 4px 4px 0 var(--line); image-rendering: pixelated; }
.character-user i { height: 58px; background: repeating-linear-gradient(0deg, #d6d4cd 0 10px, #faf9f6 10px 15px); }
.character-pm::before, .character-pm::after { position: absolute; z-index: 3; bottom: 28px; left: 50%; width: 7px; height: 7px; background: #d6d4cd; content: ""; opacity: 0; pointer-events: none; transform: translateX(-50%); }
.character-pm::before { box-shadow: -22px -8px 0 #62645f, 17px -15px 0 #d6d4cd, -13px -31px 0 #faf9f6, 23px -38px 0 #62645f; }
.character-pm::after { box-shadow: 24px 4px 0 #faf9f6, -25px -21px 0 #d6d4cd, 7px -42px 0 #62645f, -18px -49px 0 #faf9f6; }
.communication-section.is-story-active .character-pm span, .communication-section.is-story-active .character-pm i { animation: pm-pixel-vanish 720ms steps(5, end) 520ms forwards; }
.communication-section.is-story-active .character-pm::before { animation: pm-smoke-left 760ms steps(5, end) 600ms both; }
.communication-section.is-story-active .character-pm::after { animation: pm-smoke-right 680ms steps(4, end) 680ms both; }
.communication-section.is-replay-story .character-pm span,
.communication-section.is-replay-story .character-pm i { animation: none; opacity: 1; transform: none; }
.communication-section.is-replay-story .character-pm::before,
.communication-section.is-replay-story .character-pm::after { animation: none; opacity: 0; }
.communication-section.is-replay-story.is-pm-vanishing .character-pm span,
.communication-section.is-replay-story.is-pm-vanishing .character-pm i { animation: pm-pixel-vanish 430ms steps(5, end) 20ms forwards; }
.communication-section.is-replay-story.is-pm-vanishing .character-pm::before { animation: pm-smoke-left 440ms steps(5, end) 35ms both; }
.communication-section.is-replay-story.is-pm-vanishing .character-pm::after { animation: pm-smoke-right 420ms steps(4, end) 50ms both; }
.communication-section.is-replay-story.is-pm-vanishing .communication-stage { animation: communication-impact 280ms steps(2, end); }
.communication-section.is-replay-story.is-pm-vanishing .communication-object { animation: communication-object-flash 320ms steps(2, end); }
@keyframes communication-impact { 30% { transform: translateX(3px); } 65% { transform: translateX(-2px); } }
@keyframes communication-object-flash { 45% { background: var(--ink); color: var(--paper); border-color: var(--ink); } }
.communication-section.is-story-resolved .character-pm span,
.communication-section.is-story-resolved .character-pm i { opacity: 0; transform: translateY(-11px) scale(.72); }
.communication-section.is-story-resolved .character-pm::before,
.communication-section.is-story-resolved .character-pm::after { opacity: 0; }
.character-dev i { height: 74px; background: repeating-linear-gradient(0deg, #62645f 0 14px, #20231f 14px 20px); }
.communication-object { position: absolute; z-index: 1; top: 40%; left: 50%; display: grid; width: 48px; aspect-ratio: 1; place-items: center; border: 2px dashed var(--muted); background: var(--paper); color: var(--muted); font: 1.2rem var(--pixel-font); transform: translate(-50%, -50%); }
.communication-object.is-resolved { border-style: solid; background: var(--ink); color: var(--paper); }
.communication-details { width: min(var(--canvas), 100%); margin: 26px auto 0; }
.communication-details > summary { width: fit-content; min-height: 48px; padding: 10px 16px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font: .8rem/1.5 var(--pixel-font); cursor: pointer; list-style: none; }
.communication-details > summary::-webkit-details-marker { display: none; }
.communication-details > summary span { display: inline-block; margin-left: 12px; transition: transform .2s ease; }
.communication-details[open] > summary span { transform: rotate(90deg); }
.communication-details > summary:hover { background: var(--paper); color: var(--ink); }
.communication-details > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.communication-comics { display: grid; width: min(var(--canvas), 100%); margin: 26px auto 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.communication-comic { min-width: 0; padding: 12px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 var(--line); }
.comic-heading { display: flex; min-height: 34px; margin-bottom: 10px; align-items: center; justify-content: space-between; gap: 8px; }
.communication-comic h3 { margin: 0; }
.comic-caption { display: flex; margin: 0 0 10px; align-items: center; gap: 9px; font: .75rem var(--pixel-font); }
.comic-caption span { display: inline-grid; width: 25px; height: 25px; place-items: center; background: var(--ink); color: var(--paper); }
.comic-help { display: inline-flex; min-width: 90px; min-height: 38px; padding: 5px 8px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: .75rem var(--pixel-font); cursor: pointer; }
.comic-help > span:first-child { display: inline-grid; width: 20px; aspect-ratio: 1; place-items: center; border: 1px solid currentColor; font-size: .85rem; }
.comic-help:hover, .comic-help[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.comic-help[aria-expanded="true"] .comic-help-label::after { content: " −"; }
.comic-help[aria-expanded="false"] .comic-help-label::after { content: " +"; }
.comic-explanation { margin: 12px 0 0; padding: 10px 12px; border: 1px dashed var(--muted); background: #f4f3ee; color: var(--ink); font-size: .9rem; line-height: 1.55; }
.comic-frame { display: grid; min-height: 230px; align-content: start; gap: 8px; padding: 10px; border: 1px solid var(--line); background: #f4f3ee; }
.comic-dialogue { margin: 0; font-size: .82rem; line-height: 1.45; }
.comic-dialogue b { margin-right: 4px; font: .75rem var(--pixel-font); }
.comic-pixels { display: flex; min-height: 62px; padding: 5px 8px; align-items: center; justify-content: space-around; border-block: 1px dashed var(--line); }
.mini-character { display: block; width: 19px; height: 34px; border: 3px solid var(--ink); background: repeating-linear-gradient(0deg, #62645f 0 7px, #d6d4cd 7px 10px); box-shadow: 3px 3px 0 var(--line); image-rendering: pixelated; }
.mini-user { height: 29px; background: repeating-linear-gradient(0deg, #d6d4cd 0 6px, #faf9f6 6px 9px); }
.mini-pm { height: 37px; background: repeating-linear-gradient(0deg, #62645f 0 7px, #faf9f6 7px 10px); }
.mini-dev { height: 40px; background: repeating-linear-gradient(0deg, #62645f 0 7px, #20231f 7px 10px); }
.comic-arrow { color: var(--muted); font: 1rem var(--pixel-font); }
.comic-object { padding: 4px 6px; border: 1px solid var(--ink); background: var(--paper); font: .75rem var(--pixel-font); }
.comic-takeaway { margin: 10px 0 0; color: var(--muted); font-size: .78rem; font-weight: 700; line-height: 1.4; }
.communication-comic:nth-child(1) .mini-user { animation: comic-user-step 1.8s steps(2, end) infinite alternate; }
.communication-comic:nth-child(1) .mini-dev { animation: comic-dev-step 1.8s steps(2, end) infinite alternate; }
.communication-comic:nth-child(2) .comic-arrow { animation: comic-question 1.2s steps(2, end) infinite; }
.communication-comic:nth-child(2) .mini-pm { animation: comic-think 1.6s steps(2, end) infinite alternate; }
.communication-comic:nth-child(3) .mini-dev { animation: comic-alert 1.1s steps(2, end) infinite alternate; }
.communication-comic:nth-child(3) .comic-arrow { animation: comic-alert-mark 1.1s steps(2, end) infinite alternate; }
@keyframes comic-user-step { to { translate: 0 -3px; } }
@keyframes comic-dev-step { 50% { translate: 0 -3px; } }
@keyframes comic-question { 50% { color: var(--ink); scale: 1.15; } }
@keyframes comic-think { to { translate: 0 -3px; } }
@keyframes comic-alert { 50% { box-shadow: 4px 4px 0 var(--ink); } }
@keyframes comic-alert-mark { 50% { scale: 1.2; color: var(--ink); } }
@keyframes pm-pixel-vanish {
  0%, 35% { opacity: 1; transform: translate(0); }
  55% { opacity: .7; transform: translate(-3px, -3px); }
  75% { opacity: .35; transform: translate(3px, -7px) scale(.9); }
  100% { opacity: 0; transform: translate(0, -11px) scale(.72); }
}
@keyframes pm-smoke-left {
  0% { opacity: 0; transform: translate(-50%, 4px) scale(.7); }
  18%, 54% { opacity: 1; }
  100% { opacity: 0; transform: translate(-78%, -25px) scale(1.35); }
}
@keyframes pm-smoke-right {
  0% { opacity: 0; transform: translate(-50%, 2px) scale(.65); }
  18%, 48% { opacity: .9; }
  100% { opacity: 0; transform: translate(-20%, -31px) scale(1.45); }
}
@keyframes pm-fade { to { opacity: 0; } }
@media (max-width: 760px) {
  .communication-inner { grid-template-columns: 1fr; gap: 28px; }
  .communication-intro h2 { max-width: 22ch; }
  .communication-stage { width: 100%; min-width: 0; }
  .communication-art { height: 204px; padding-inline: 5%; }
  .communication-object { top: 34%; }
  .pixel-character { min-width: 0; font-size: .58rem; }
  .pixel-character i { width: 38px; height: 60px; }
  .character-user i { height: 54px; }
  .character-dev i { height: 66px; }
  .communication-comics { grid-template-columns: 1fr; gap: 12px; }
  .communication-comic { padding: 10px; }
  .comic-heading { min-height: 40px; }
  .comic-help { min-width: 104px; min-height: 44px; }
  .comic-frame { min-height: 0; }
}
@media (max-width: 380px) {
  .communication-section { padding-inline: 14px; }
  .communication-art { height: 188px; padding-inline: 3%; }
  .pixel-character i { width: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .communication-comic *, .communication-comic *::before, .communication-comic *::after { animation: none !important; }
  .communication-section.is-story-active .character-pm span, .communication-section.is-story-active .character-pm i { animation: pm-fade 160ms linear 200ms forwards; }
  .communication-section.is-replay-story.is-pm-vanishing .character-pm span,
  .communication-section.is-replay-story.is-pm-vanishing .character-pm i { animation: none; opacity: 0; transform: none; }
  .character-pm::before, .character-pm::after { display: none; }
}

/* Main presentation */
.work-section, .trust-section, .writing-section { width: min(var(--canvas), calc(100% - var(--gutter) * 2)); margin: 0 auto; padding: clamp(84px, 10vw, 150px) 0; }
.section-intro { display: grid; margin-bottom: clamp(42px, 6vw, 86px); grid-template-columns: minmax(0, 1fr) minmax(260px, 410px); align-items: end; gap: 44px; }
.section-intro h2 { max-width: 11ch; margin: 14px 0 0; font-size: clamp(3.4rem, 7.3vw, 7.5rem); font-weight: 920; line-height: .95; letter-spacing: -.078em; }
.section-intro h2 span { color: var(--accent); }
.section-intro > p { max-width: 42ch; margin: 0; color: var(--muted); }

.case-study { display: grid; min-height: 660px; margin-top: 28px; grid-template-columns: minmax(340px, .72fr) minmax(0, 1.28fr); border: 1px solid var(--line); }
.case-copy { display: flex; min-width: 0; padding: clamp(34px, 5vw, 72px); flex-direction: column; justify-content: center; }
.case-copy h3 { margin: 20px 0 22px; overflow-wrap: normal; font-size: clamp(2.8rem, 4vw, 4.6rem); font-weight: 900; line-height: 1; letter-spacing: -.065em; text-wrap: balance; word-break: normal; hyphens: none; }
.case-lede { max-width: 28ch; margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.55rem); font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
.star-facts { margin-top: 24px; }
.star-facts div { grid-template-columns: 90px minmax(0, 1fr); }
.star-facts dt, .project-star dt { font-weight: 800; }
.star-facts div:last-child dd, .project-star div:last-child dd { color: var(--ink); font-weight: 700; }
.mobile-result, .mobile-star, .project-mobile-result, .project-mobile-star { display: none; }
.case-facts { margin: 42px 0 24px; }
.case-facts div { display: grid; padding: 14px 0; grid-template-columns: 95px 1fr; border-top: 1px solid currentColor; border-color: rgb(127 127 127 / 34%); gap: 18px; }
.case-facts dt { font-size: .8rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.case-facts dd { margin: 0; color: var(--muted); font-size: 1rem; }
.case-media { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #f2f2f2; }
.case-media img, .case-media video { width: 100%; height: 100%; object-fit: cover; }
.case-media figcaption { position: absolute; right: 0; bottom: 0; padding: 9px 12px; background: var(--black); color: var(--white); font-size: .8rem; font-weight: 750; letter-spacing: .04em; text-transform: none; }
.case-dark { border-color: var(--line); background: var(--paper); color: var(--ink); }
.case-dark .case-number { color: var(--accent-ink); }
.case-dark .case-copy { grid-column: 2; grid-row: 1; }
.case-dark .case-media { grid-column: 1; grid-row: 1; }
.case-dark .case-facts dd { color: var(--muted); }
.case-red { border-color: var(--line); background: var(--paper); color: var(--ink); }
.case-red .case-number, .case-red .text-link { color: var(--muted); }
.case-red .case-facts dd { color: var(--muted); }
.case-red .case-media { background: #111; }
.case-video video { object-fit: contain; }
.case-media-switcher { display: grid; grid-template-rows: auto minmax(0, 1fr); isolation: isolate; background: #080808; }
.case-media-tabs { display: flex; min-width: 0; overflow-x: auto; border-bottom: 1px solid #343434; background: #080808; scrollbar-width: thin; }
.case-media-tabs button { position: relative; display: inline-flex; min-height: 70px; padding: 14px clamp(16px, 2.1vw, 30px); flex: 1 0 auto; align-items: center; justify-content: flex-start; gap: 14px; border: 0; border-right: 1px solid #292929; background: transparent; color: #999; font: inherit; font-size: .85rem; font-weight: 800; letter-spacing: .045em; text-align: left; text-transform: none; cursor: pointer; transition: color .18s ease, background-color .18s ease; }
.case-media-tabs button::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: transparent; content: ""; }
.case-media-tabs button[aria-selected="true"] { background: #111; color: var(--white); }
.case-media-tabs button[aria-selected="true"]::after { background: var(--white); }
.case-media-tabs button:hover { background: #151515; color: var(--white); }
.case-media-tabs button:focus-visible { z-index: 1; outline: 3px solid var(--white); outline-offset: -5px; }
.media-tab-index { color: #707070; font-size: .8rem; font-weight: 900; letter-spacing: .04em; }
.case-media-tabs button[aria-selected="true"] .media-tab-index { color: var(--white); }
.case-media-panel { position: relative; display: grid; min-width: 0; min-height: 0; margin: 0; grid-template-rows: minmax(0, 1fr) auto; }
.case-media-panel[hidden] { display: none; }
.case-media-panel video { display: block; min-width: 0; min-height: 0; background: #101010; color: #faf9f6; object-fit: contain; }
.case-media-panel .case-media-caption { position: static; min-height: 42px; margin: 0; padding: 13px 20px; border-top: 1px solid #343434; background: #080808; color: #aaa; font-size: .8rem; font-weight: 800; letter-spacing: .04em; }
.confidential-label { margin: auto 0 0; color: var(--muted); font-size: .8rem; font-weight: 750; letter-spacing: .04em; text-transform: none; }
.archive-trigger { display: flex; width: 100%; min-height: 132px; padding: 26px clamp(24px, 4vw, 56px); align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.archive-trigger span { font-size: clamp(1.5rem, 3.2vw, 3.25rem); font-weight: 850; line-height: 1; letter-spacing: -.045em; }
.archive-trigger small { display: block; margin-bottom: 9px; color: var(--accent-ink); font-size: .8rem; letter-spacing: .04em; text-transform: none; }
.archive-trigger b { color: var(--accent); font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 400; transition: transform .18s ease; }
.archive-trigger:hover { background: #f5f5f5; }
.archive-trigger:hover b { transform: translate(5px, -5px); }
.noscript-note { padding: 24px; border: 1px solid var(--line); }

/* Capabilities */
.capabilities-section { display: grid; grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr); background: var(--paper); color: var(--ink); }
.capability-lead { position: relative; display: flex; min-height: 760px; padding: clamp(54px, 6vw, 94px) max(var(--gutter), calc((100vw - var(--canvas)) / 2)); padding-right: clamp(34px, 5vw, 78px); flex-direction: column; justify-content: center; overflow: hidden; border-right: 1px solid var(--line-dark); }
.capability-lead .eyebrow { color: var(--accent-ink); }
.capability-lead::after { position: absolute; right: -28%; bottom: -22%; width: 68%; aspect-ratio: 1; border: 42px solid #ededed; content: ""; transform: rotate(45deg); }
.capability-lead h2 { position: relative; z-index: 1; margin: 26px 0; font-size: clamp(3.2rem, 5.3vw, 6.2rem); font-weight: 900; line-height: .95; letter-spacing: -.075em; }
.capability-lead h2 span { display: block; }
.capability-lead h2 span:nth-child(2) { color: var(--accent); }
.capability-lead > p:last-child { position: relative; z-index: 1; max-width: 38ch; color: var(--muted); }
.capability-list { margin: 0; padding: clamp(42px, 6vw, 92px) max(var(--gutter), calc((100vw - var(--canvas)) / 2)) clamp(120px, 12vw, 180px) clamp(34px, 5vw, 78px); list-style: none; }
.capability-list li { display: grid; padding: 32px 0; grid-template-columns: 70px 1fr; border-top: 1px solid var(--line-dark); gap: 18px; transition: border-color .18s ease, transform .18s ease; }
.capability-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.capability-list li:hover, .capability-list li:focus-within { border-color: var(--accent); transform: translateX(5px); }
.capability-number { color: var(--accent-ink); font-size: .78rem; font-weight: 850; }
.capability-list h3 { margin: 0; font-size: clamp(1.6rem, 2.8vw, 3.2rem); line-height: 1; letter-spacing: -.045em; }
.capability-list p { margin: 10px 0 15px; color: var(--muted); }
.capability-list a, .capability-list button { min-height: 34px; padding: 0; border: 0; border-bottom: 1px solid #555; background: none; color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: none; cursor: pointer; }
.stack-line { grid-column: 2; margin: -95px max(var(--gutter), calc((100vw - var(--canvas)) / 2)) 0 clamp(34px, 5vw, 78px); padding: 20px 0; border-top: 1px solid var(--line-dark); color: var(--muted); font-size: .8rem; letter-spacing: .05em; text-transform: none; }
.stack-line span { margin-right: 18px; color: var(--accent-ink); font-weight: 850; }

/* Trust */
.compact-intro h2 { max-width: 9ch; }
.credential-primary { display: grid; grid-template-columns: 1.4fr .8fr .8fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.credential-primary > div { min-height: 205px; padding: 32px; border-right: 1px solid var(--line); }
.credential-primary > div:last-child { border-right: 0; }
.credential-primary span { color: var(--accent-ink); font-size: .8rem; font-weight: 850; letter-spacing: .04em; text-transform: none; }
.credential-primary strong { display: block; margin-top: 28px; font-size: clamp(1.65rem, 3.1vw, 3.4rem); line-height: .95; letter-spacing: -.05em; }
.credential-primary p { margin: 10px 0 0; color: var(--muted); }
.credential-grid { display: grid; margin-top: 28px; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.credential-grid article { display: flex; min-height: 190px; padding: 26px; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); text-align: center; }
.credential-grid img { width: auto; height: 56px; max-width: 75%; object-fit: contain; filter: grayscale(1); }
.credential-grid p { margin: 22px 0 0; color: var(--muted); font-size: .8rem; font-weight: 750; letter-spacing: .04em; text-transform: none; }
.credential-grid .wordmark strong { font-size: clamp(1.7rem, 3vw, 3rem); letter-spacing: -.05em; }

/* Writing and contact */
.writing-section { padding-top: 0; }
.writing-grid { display: grid; grid-template-columns: 1.15fr .85fr; border: 1px solid var(--line); }
.writing-featured { min-height: 480px; padding: clamp(36px, 5vw, 72px); border-right: 1px solid var(--line); background: var(--white); }
.writing-featured > p:first-child, .writing-compact article > p:first-child { display: flex; margin: 0; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: none; }
.writing-featured > p:first-child span, .writing-compact span { color: var(--accent-ink); }
.writing-featured h3 { max-width: 15ch; margin: 66px 0 24px; font-size: clamp(2.3rem, 4.8vw, 5.1rem); line-height: .9; letter-spacing: -.065em; }
.writing-featured h3 a, .writing-compact h3 a { text-decoration: none; }
.writing-featured h3 a:hover, .writing-compact h3 a:hover { color: var(--accent); }
.writing-featured > p:not(:first-child) { max-width: 50ch; color: var(--muted); }
.writing-featured .text-link { margin-top: 30px; }
.writing-compact { display: grid; grid-template-rows: 1fr 1fr; }
.writing-compact article { padding: clamp(30px, 4vw, 58px); border-bottom: 1px solid var(--line); }
.writing-compact article:last-child { border-bottom: 0; }
.writing-compact h3 { margin: 58px 0 0; font-size: clamp(1.6rem, 3vw, 3rem); line-height: 1; letter-spacing: -.05em; }
.contact-section { position: relative; display: flex; min-height: 700px; padding: clamp(72px, 9vw, 138px) max(var(--gutter), calc((100vw - var(--canvas)) / 2)) 32px; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; background: var(--paper); color: var(--ink); }
.contact-section .eyebrow { color: var(--accent-ink); }
.contact-main { position: relative; z-index: 2; width: min(56%, 720px); margin: auto 0; }
.contact-section h2 { max-width: 10ch; margin: 25px 0 44px; font-size: clamp(3.5rem, 7.4vw, 8rem); font-weight: 900; line-height: .95; letter-spacing: -.08em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.official-profiles { position: relative; z-index: 2; display: flex; width: 100%; margin-top: auto; padding-top: 22px; flex-wrap: wrap; gap: 16px 34px; border-top: 1px solid var(--line-dark); font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: none; }
.official-profiles > span { margin-right: auto; color: var(--muted); }
.official-profiles a { text-decoration: none; }
.official-profiles a:hover { color: var(--accent); }
.site-footer { display: grid; padding: 42px max(var(--gutter), calc((100vw - var(--canvas)) / 2)); grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 32px; background: var(--paper); color: var(--ink); border-top: 1px solid var(--line-dark); }
.site-footer strong { font-size: 1.15rem; }
.site-footer strong span { color: var(--accent); }
.site-footer p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.site-footer .usage-note { max-width: 68ch; margin: 0; }
.site-footer > a { font-size: .8rem; font-weight: 800; text-decoration: none; text-transform: none; }

/* Work archive */
.showcase { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.showcase .eyebrow { color: var(--accent-ink); }
.showcase::backdrop { background: rgb(0 0 0 / 76%); }
.showcase-shell { min-height: 100%; padding: 0 max(var(--gutter), calc((100vw - var(--canvas)) / 2)) 90px; }
.showcase-header { position: sticky; z-index: 4; top: 0; display: flex; min-height: 150px; padding: 30px 0; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line-dark); background: var(--paper); }
.showcase-header h2 { max-width: 16ch; margin: 8px 0 0; font-size: clamp(2.2rem, 5vw, 5.4rem); line-height: 1; letter-spacing: -.065em; }
.close-button { min-height: 48px; padding: 0 16px; border: 1px solid #555; background: transparent; color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: none; cursor: pointer; }
.close-button span { margin-left: 16px; color: var(--accent); font-size: 1.2rem; }
.showcase-tabs { position: sticky; z-index: 3; top: 150px; display: flex; background: var(--paper); border-bottom: 1px solid var(--line-dark); }
.tab-button { min-height: 58px; padding: 0 clamp(18px, 3vw, 40px); border: 0; border-right: 1px solid var(--line-dark); background: transparent; color: var(--muted); font-size: .8rem; font-weight: 850; letter-spacing: .04em; text-transform: none; cursor: pointer; }
.tab-button.is-active { background: var(--action); color: var(--white); }
.showcase-panel { padding-top: 48px; }
.project-group { display: grid; padding: 36px 0 52px; grid-template-columns: minmax(190px, .28fr) 1fr; border-top: 1px solid var(--line-dark); gap: 36px; }
.project-group-title { margin: 0; color: var(--accent-ink); font-size: .8rem; letter-spacing: .04em; text-transform: none; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark); }
.project-card { display: flex; min-width: 0; min-height: 380px; flex-direction: column; background: var(--paper); }
.project-card > img, .project-card > video, .project-card > .project-visual { width: 100%; height: 240px; object-fit: cover; }
.project-card .project-copy { padding: 28px; }
.project-card h3 { margin: 0 0 12px; font-size: clamp(1.5rem, 2.5vw, 2.6rem); line-height: 1; letter-spacing: -.045em; }
.project-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.project-star { margin: 16px 0 20px; }
.project-star div { display: grid; grid-template-columns: 76px minmax(0, 1fr); padding: 8px 0; border-top: 1px solid var(--line); gap: 10px; }
.project-star dt { font-size: .75rem; }
.project-star dd { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.project-impact { margin-top: 18px !important; color: var(--accent-ink) !important; font-size: .8rem !important; font-weight: 800; letter-spacing: .04em; text-transform: none; }
.project-stack { display: flex; margin: 18px 0 0; padding: 0; flex-wrap: wrap; gap: 7px; list-style: none; }
.project-stack li { padding: 5px 8px; border: 1px solid #404040; color: var(--muted); font-size: .8rem; }
.project-link { display: inline-flex; min-height: 42px; margin-top: 18px; align-items: center; color: var(--muted); font-size: .8rem; font-weight: 850; text-decoration: none; text-transform: none; }
.project-visual { display: flex; padding: 26px; flex-direction: column; justify-content: center; overflow: hidden; background: #0a0a0a; color: var(--white); }
.project-visual strong { font-size: 2.8rem; line-height: .88; letter-spacing: -.06em; }
.project-visual span { color: #999; font-size: .85rem; }
.project-visual .visual-kicker { color: var(--white); font-weight: 850; text-transform: none; }
.visual-input { margin-top: 18px; padding: 10px; border: 1px solid #444; }
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.client-card { display: flex; min-height: 190px; padding: 28px; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8; background: var(--white); color: var(--ink); }
.client-card img { width: auto; height: 64px; max-width: 75%; object-fit: contain; filter: none; }
.client-card span { margin-top: 20px; color: #595959; font-size: .8rem; font-weight: 750; text-align: center; text-transform: none; }
.source-list { border-top: 1px solid var(--line-dark); }
.source-card { display: grid; min-height: 130px; padding: 26px 0; grid-template-columns: 1fr 1fr auto; align-items: center; border-bottom: 1px solid var(--line-dark); gap: 32px; text-decoration: none; }
.source-card:hover { color: var(--accent); }
.source-heading h3 { margin: 0; font-size: clamp(1.25rem, 2.5vw, 2.5rem); letter-spacing: -.04em; }
.source-kind { color: var(--accent); font-size: .8rem; font-weight: 800; text-transform: none; }
.source-card p { color: var(--muted); }
.source-external { font-size: 2rem; }

/* Writing index and articles */
.blog-body { background: var(--paper); }
.blog-page { min-height: 100vh; }
.blog-masthead { display: grid; min-height: var(--nav-height); padding: 0 max(var(--gutter), calc((100vw - var(--canvas)) / 2)); grid-template-columns: auto 1fr auto; align-items: center; border-bottom: 1px solid var(--line-dark); background: var(--paper); color: var(--ink); }
.blog-masthead .site-mark { justify-self: start; }
.blog-masthead > span { justify-self: center; color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: none; }
.back-link { min-height: 44px; display: inline-flex; align-items: center; font-size: .8rem; font-weight: 800; text-decoration: none; text-transform: none; }
.writing-header { padding: clamp(70px, 10vw, 150px) max(var(--gutter), calc((100vw - var(--canvas)) / 2)); background: var(--paper); color: var(--ink); }
.writing-header h1 { max-width: 12ch; margin: 20px 0; font-size: clamp(4.8rem, 12vw, 12rem); font-weight: 920; line-height: .9; letter-spacing: -.09em; }
.writing-header h1 span { color: var(--accent); }
.writing-header .eyebrow { color: var(--accent-ink); }
.writing-header .intro { max-width: 48ch; margin: 38px 0 0; color: var(--muted); font-size: 1.08rem; }
.writing-index { width: min(var(--canvas), calc(100% - var(--gutter) * 2)); margin: 0 auto; padding: 64px 0 120px; }
.writing-item { display: grid; min-height: 170px; padding: 30px 0; grid-template-columns: 150px 1fr minmax(240px, .65fr); align-items: center; border-top: 1px solid var(--line); gap: 34px; }
.writing-item:last-child { border-bottom: 1px solid var(--line); }
.writing-item time, .writing-item .article-topic { color: var(--accent-ink); font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: none; }
.writing-item h2 { margin: 0; font-size: clamp(1.55rem, 3.1vw, 3.2rem); line-height: 1; letter-spacing: -.05em; }
.writing-item h2 a { text-decoration: none; }
.writing-item h2 a:hover { color: var(--accent); }
.writing-item > p { color: var(--muted); }
.article-shell { width: min(var(--canvas), calc(100% - var(--gutter) * 2)); margin: 0 auto; padding: clamp(64px, 9vw, 130px) 0; }
.post-header { display: grid; padding-bottom: clamp(48px, 7vw, 96px); grid-template-columns: minmax(0, 1fr) minmax(240px, .35fr); align-items: end; border-bottom: 1px solid var(--ink); gap: 50px; }
.post-header h1 { max-width: 17ch; margin: 18px 0 0; font-size: clamp(3rem, 7vw, 7.6rem); font-weight: 900; line-height: 1; letter-spacing: -.075em; }
.post-summary { margin: 0; color: var(--muted); font-size: 1.04rem; }
.post-content { width: min(var(--reading), 100%); margin: clamp(56px, 8vw, 110px) auto 0; font-size: clamp(1.0625rem, 1.2vw, 1.125rem); }
.post-content h1, .post-content h2, .post-content h3, .post-content h4 { margin: 2.2em 0 .7em; line-height: 1.06; letter-spacing: -.04em; }
.post-content h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.post-content h3 { font-size: clamp(1.45rem, 2.7vw, 2.3rem); }
.post-content p, .post-content li { color: #292929; }
.post-content a { color: var(--link); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.post-content img { height: auto; margin: 36px auto; }
.post-content pre { max-width: 100%; padding: 24px; overflow-x: auto; background: var(--black); color: #f5f5f5; font-size: .86rem; }
.post-content code { padding: .12em .3em; background: #eee; font-size: .9em; }
.post-content pre code { padding: 0; background: none; }
.post-content blockquote { margin: 36px 0; padding: 14px 0 14px 24px; border-left: 1px solid var(--accent); font-size: 1.15em; }
.post-content table { width: 100%; border-collapse: collapse; }
.post-content th, .post-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.table-wrap { max-width: 100%; overflow-x: auto; }
.post-footer { display: flex; width: min(var(--reading), 100%); margin: 80px auto 0; padding-top: 24px; justify-content: space-between; border-top: 1px solid var(--line); }

@keyframes enter { from { opacity: 0; transform: translateY(18px); } }
.hero-meta, .hero-identity, .hero-visual, .proof-rail { animation: enter .42s var(--ease) both; }
.hero-identity { animation-delay: .05s; }
.hero-visual { animation-delay: .11s; }
.proof-rail { animation-delay: .17s; }

@media (max-width: 1040px) {
  :root { --nav-height: 64px; }
  .nav-role { display: none; }
  .site-nav { grid-template-columns: auto 1fr; }
  .site-nav-links a { min-width: 88px; padding-inline: 16px; }
  .hero-layout { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); }
  .hero h1 { font-size: clamp(4.4rem, 9.5vw, 7rem); }
  .hero-copy { grid-template-columns: 1fr; max-width: 510px; }
  .hero-actions { grid-column: 1; }
  .case-study { min-height: 560px; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); }
  .capabilities-section { grid-template-columns: .8fr 1.2fr; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .site-nav { display: flex; padding: 0 var(--gutter); justify-content: space-between; }
  .menu-toggle { display: inline-flex; min-width: 78px; min-height: 44px; padding: 0; align-items: center; justify-content: flex-end; gap: 10px; border: 0; background: none; color: var(--ink); font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: none; }
  .menu-toggle i, .menu-toggle i::after { display: block; width: 18px; height: 1px; background: var(--accent); content: ""; transition: transform .18s ease; }
  .menu-toggle i::after { transform: translateY(6px); }
  .menu-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i::after { transform: rotate(-90deg); }
  .site-nav-links { position: fixed; z-index: -1; top: var(--nav-height); right: 0; left: 0; display: none; height: auto; padding: 12px var(--gutter) 24px; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line-dark); }
  .site-nav-links.is-open { display: flex; }
  .site-nav-links a, .site-nav-links .nav-contact { min-height: 58px; padding: 0 14px 0 34px; justify-content: flex-start; border: 0; border-bottom: 1px solid var(--line-dark); background: none; }
  .site-nav-links a::before { right: 0; bottom: -1px; left: 0; }
  .site-nav-links a[data-nav-index]::after { top: 21px; left: 0; }
  .site-nav-links .nav-contact { color: var(--accent); }
  .hero-meta { padding-inline: var(--gutter); }
  .hero-layout { display: block; width: calc(100% - var(--gutter) * 2); min-height: 0; }
  .hero-identity { padding-bottom: 54px; }
  .hero h1 { font-size: clamp(4rem, 15vw, 7rem); }
  .hero-copy { max-width: 620px; }
  .hero-visual { position: relative; right: auto; bottom: auto; left: auto; width: 65%; height: 470px; margin-left: 35%; border-left: 1px solid var(--line-dark); }
  .hero-visual img { width: 100%; height: 100%; right: 0; }
  .proof-rail { grid-template-columns: repeat(2, 1fr); }
  .proof-rail div:nth-child(2) { border-right: 0; }
  .proof-rail div:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .section-intro { grid-template-columns: 1fr; align-items: start; }
  .section-intro h2 { max-width: 12ch; }
  .case-study, .case-dark { grid-template-columns: 1fr; }
  .case-copy, .case-dark .case-copy { grid-column: 1; grid-row: 1; }
  .case-media, .case-dark .case-media { min-height: 420px; grid-column: 1; grid-row: 2; }
  .capabilities-section { grid-template-columns: 1fr; }
  .capability-lead { min-height: 560px; padding-inline: var(--gutter); border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .capability-list { padding: 54px var(--gutter) 120px; }
  .stack-line { grid-column: 1; margin: -92px var(--gutter) 0; }
  .credential-primary { grid-template-columns: 1fr 1fr; }
  .credential-primary > div:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .credential-grid { grid-template-columns: repeat(2, 1fr); }
  .writing-grid { grid-template-columns: 1fr; }
  .writing-featured { border-right: 0; border-bottom: 1px solid var(--line); }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer .usage-note { grid-column: 1 / -1; grid-row: 2; }
  .contact-section { min-height: 0; padding-top: 76px; }
  .contact-main { width: min(100%, 680px); margin: 0; padding-bottom: 0; }
  .contact-section h2 { max-width: 11ch; }

  .official-profiles { margin-top: 52px; }
  .project-group { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .writing-item { grid-template-columns: 110px 1fr; }
  .writing-item > p { grid-column: 2; margin-top: -12px; }
  .post-header { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .case-copy > .star-facts, .project-copy > .project-star { display: none; }
  .mobile-result, .mobile-star, .project-mobile-result, .project-mobile-star { display: block; }
  .mobile-result, .project-mobile-result { margin: 16px 0 8px; line-height: 1.5; }
  .mobile-result strong, .project-mobile-result strong { display: block; font-size: .8125rem; }
  .mobile-star summary, .project-mobile-star summary { display: list-item; width: fit-content; min-height: 44px; padding: 10px 0; color: var(--ink); font-size: .875rem; font-weight: 800; cursor: pointer; }
  .mobile-star dl, .project-mobile-star dl { margin: 8px 0 16px; }
  .mobile-star dl div, .project-mobile-star dl div { padding: 10px 0; border-top: 1px solid var(--line); }
  .mobile-star dt, .project-mobile-star dt { font-size: .75rem; font-weight: 800; }
  .mobile-star dd, .project-mobile-star dd { margin: 3px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
  .project-card > img, .project-card > video, .project-card > .project-visual { height: 150px; }
  .project-card .project-copy { padding: 18px; }
  .project-card h3 { margin-bottom: 6px; }
  .project-impact, .project-stack { margin-top: 10px; }
  .hero-meta p:first-child { max-width: 18ch; }
  .hero-meta p:last-child { text-align: right; }
  .hero-identity { padding-top: 38px; padding-bottom: 42px; }
  .hero h1 { margin-top: 22px; font-size: clamp(3.6rem, 18vw, 5.5rem); line-height: .95; }
  .hero h1 span { white-space: normal; }
  .hero-copy { margin-top: 34px; }
  .hero-statement { font-size: 1.4rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-visual { left: auto; width: 86%; height: 390px; margin-left: 14%; }
  .hero-signals { bottom: 12px; }
  .proof-rail div { min-height: 100px; padding: 18px var(--gutter); }
  .work-section, .trust-section, .writing-section { width: calc(100% - var(--gutter) * 2); }
  .section-intro h2 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .case-study { margin-inline: calc(-1 * var(--gutter)); border-right: 0; border-left: 0; }
  .case-copy { padding: 38px var(--gutter); }
  .case-copy h3 { font-size: 3rem; }
  .case-facts div { grid-template-columns: 78px 1fr; }
  .case-facts dt { font-size: .75rem; }
  .case-media { min-height: 300px; }
  .case-media-tabs button { min-height: 60px; padding: 12px 15px; gap: 10px; font-size: .8rem; }
  .case-media-panel figcaption { padding-inline: 14px; font-size: .8rem; }
  .archive-trigger { padding-inline: 0; }
  .capability-lead h2 { font-size: 3.8rem; }
  .capability-list li { grid-template-columns: 42px 1fr; }
  .credential-primary { grid-template-columns: 1fr; }
  .credential-primary > div, .credential-primary > div:first-child { min-height: 170px; grid-column: 1; border-right: 0; border-bottom: 1px solid var(--line); }
  .credential-primary > div:last-child { border-bottom: 0; }
  .credential-grid { display: flex; margin-inline: calc(-1 * var(--gutter)); padding-left: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; }
  .credential-grid article { min-width: 78vw; scroll-snap-align: start; }
  .writing-grid { margin-inline: calc(-1 * var(--gutter)); border-right: 0; border-left: 0; }
  .writing-featured { min-height: 440px; padding: 36px var(--gutter); }
  .writing-featured h3 { font-size: 2.55rem; }
  .writing-compact article { padding-inline: var(--gutter); }
  .contact-section h2 { font-size: clamp(3.3rem, 14vw, 5rem); }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .official-profiles { flex-direction: column; }
  .official-profiles > span { margin: 0 0 12px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer .usage-note { grid-column: 1; grid-row: auto; }
  .showcase-shell { padding-inline: var(--gutter); }
  .showcase-header { min-height: 128px; }
  .showcase-header h2 { font-size: 2rem; }
  .showcase-tabs { top: 128px; overflow-x: auto; }
  .tab-button { flex: 1 0 auto; }
  .project-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr 1fr; }
  .source-card { grid-template-columns: 1fr auto; }
  .source-card p { grid-column: 1 / -1; }
  .blog-masthead > span { display: none; }
  .blog-masthead { grid-template-columns: auto 1fr; }
  .blog-masthead .back-link { justify-self: end; }
  .writing-header h1 { font-size: 5.2rem; }
  .writing-item { min-height: 0; grid-template-columns: 1fr; gap: 14px; }
  .writing-item > p { grid-column: 1; margin: 0; }
  .article-shell { width: calc(100% - var(--gutter) * 2); }
  .post-header h1 { font-size: 3.3rem; }
  .post-content { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .status-dot, .hero::before, .capability-lead::after { forced-color-adjust: none; background: Highlight; border-color: Highlight; }
}

/* Monochrome interaction cues remain visible without color changes. */
.writing-featured h3 a:hover, .writing-compact h3 a:hover, .writing-item h2 a:hover, .official-profiles a, .project-link, .site-footer > a, .back-link { text-decoration: underline; text-underline-offset: .2em; }
.source-card:hover .source-heading h3 { text-decoration: underline; }

/* Minimal handheld RPG theme: quiet reading surfaces, pixel details. */
.site-mark, .section-code, .eyebrow, .case-number, .capability-number,
.project-group-title, .status-label {
  font-family: var(--pixel-font);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
}
.site-mark { font-size: 1.1rem; }
.site-nav, .blog-masthead { border-bottom: 2px solid var(--ink); }
.hero-meta { border-bottom-style: dashed; }
.status-dot { width: 8px; height: 8px; box-shadow: 4px 0 var(--ink), 0 -4px var(--ink); }
.hero-grid {
  opacity: .35;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 16px 16px;
}
.hero::before {
  top: 16%; right: 3%; width: min(36vw, 520px);
  border: 2px solid var(--line); transform: none; opacity: 1;
  box-shadow: 8px 8px 0 var(--line), 16px 16px 0 var(--paper), 18px 18px 0 var(--line);
}
.hero-visual img { image-rendering: auto; }
.signal-corner { width: 56px; height: 56px; border-width: 4px; border-color: var(--ink); }
.hero-signals {
  border: 2px solid var(--ink); background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink); backdrop-filter: none;
}
.hero-signals span { font-family: var(--pixel-font); font-weight: 400; font-size: .75rem; letter-spacing: 0; }
.hero-signals span::before { content: "\25B8  "; }
.hero-signals span:first-child { border-top: 0; }
.button, .close-button {
  border: 2px solid var(--ink); border-radius: 0;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform .12s steps(2), box-shadow .12s steps(2), background-color .12s;
}
.button:hover, .close-button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.button:active, .close-button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px dashed var(--focus); outline-offset: 5px; }
.proof-rail { border-block: 2px solid var(--ink); }
.proof-rail dt { font-family: var(--pixel-font); font-size: .75rem; font-weight: 400; letter-spacing: 0; }
.case-study, .writing-grid { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--line); }
.case-number { padding-bottom: 12px; border-bottom: 2px dotted var(--line); }
.case-media-tabs button[aria-selected="true"]::after { height: 4px; }
.capabilities-section { border-block: 2px solid var(--ink); }
.capability-lead::after { transform: none; border: 12px double var(--line); }
.capability-list li { border-top-style: dashed; }
.credential-primary { border-block-width: 2px; }
.credential-grid { border-color: var(--ink); }
.credential-grid article { border-color: var(--ink); }
.contact-section { border-top: 2px solid var(--ink); }
.official-profiles { border-top: 2px dotted var(--line); }
.showcase-header { border-bottom: 2px solid var(--ink); }
.tab-button.is-active { box-shadow: inset 0 -4px var(--muted); }
.project-card { border: 1px solid var(--line); }
.project-stack li { border-color: var(--line); background: var(--paper); }
.writing-header { border-bottom: 2px solid var(--ink); }
.post-content blockquote { border-left: 4px double var(--ink); }
.post-content pre { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--line); }
@media (max-width: 560px) {
  .case-study, .writing-grid { border-inline: 0; box-shadow: none; }
  .hero::before { width: 65%; top: auto; bottom: 240px; }
  .hero-signals span { font-size: .6875rem; }
  .eyebrow, .section-code, .case-number { font-size: .75rem; }
  .proof-rail dt { font-size: .6875rem; }
}
@media (forced-colors: active) {
  .button, .close-button, .hero-signals, .case-study, .writing-grid { box-shadow: none; }
  .tab-button.is-active { outline: 2px solid Highlight; outline-offset: -4px; }
}

/* Full RPG reading experience: compact panels and a consistent type scale. */
:root { --canvas: 1160px; --reading: 65ch; --gutter: clamp(20px, 4vw, 48px); }
body { line-height: 1.75; }
.hero h1, .section-intro h2, .capability-lead h2, .contact-section h2,
.writing-header h1, .showcase-header h2 {
  font-family: var(--pixel-font); font-weight: 400; letter-spacing: -.04em; line-height: 1.25;
}
.site-nav { padding-inline: max(var(--gutter), calc((100vw - var(--canvas)) / 2)); }
.site-nav-links a { min-width: 80px; padding-inline: 18px; }
.nav-role { font-weight: 500; letter-spacing: 0; }
.hero { min-height: 0; overflow: visible; }
.hero-grid, .hero::before, .signal-corner { display: none; }
.hero-meta { min-height: 56px; font-size: .8rem; letter-spacing: 0; }
.hero-layout { min-height: 0; padding-block: 56px; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.hero-identity { padding: 0; }
.hero h1 { margin-top: 20px; font-size: clamp(2.4rem, 4.6vw, 4rem); }
.hero h1 span { white-space: normal; }
.hero-copy { display: block; margin-top: 24px; max-width: 52ch; }
.hero-statement { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.5; letter-spacing: -.02em; font-weight: 650; }
.hero-description { margin-top: 18px; font-size: 1.0625rem; }
.hero-actions { margin-top: 28px; gap: 16px; }
.hero-visual { width: 100%; height: auto; margin: 0; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--line); background: #eeede7; }
.avatar-label { margin: 0; padding: 12px 16px; border-bottom: 2px solid var(--ink); font-family: var(--pixel-font); font-size: .75rem; background: var(--paper); }
.hero-visual img { position: static; width: 100%; height: 320px; object-fit: contain; object-position: center bottom; }
.hero-signals { position: static; width: 100%; display: grid; grid-template-columns: 1fr 1fr; border: 0; border-top: 2px solid var(--ink); box-shadow: none; }
.hero-signals span { padding: 10px 12px; font-size: .7rem; border: 0; }
.proof-rail { width: min(var(--canvas), calc(100% - var(--gutter) * 2)); margin: 0 auto; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--line); }
.proof-rail div { min-height: 0; padding: 20px; }
.proof-rail dd { font-size: 2rem; line-height: 1.2; }
.proof-rail dd span { font-size: .8rem; letter-spacing: 0; font-weight: 500; }
.work-section, .trust-section, .writing-section { padding-block: 80px; }
.section-intro { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
.section-intro h2, .compact-intro h2 { max-width: 24ch; font-size: clamp(1.75rem, 3.3vw, 2.6rem); margin-top: 12px; }
.section-intro > p { max-width: 65ch; }
.case-study { min-height: 0; margin-top: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.case-copy { padding: 32px; }
.case-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.2; letter-spacing: -.035em; margin: 20px 0 16px; }
.case-lede { max-width: 40ch; font-size: 1.0625rem; line-height: 1.65; font-weight: 550; letter-spacing: 0; }
.case-facts { margin: 24px 0; }
.case-facts div { grid-template-columns: 100px minmax(0, 1fr); gap: 16px; }
.case-facts dt { font-size: .8125rem; }
.case-facts dd { font-size: 1rem; }
.case-dark .case-copy { grid-column: 1; grid-row: 1; }
.case-dark .case-media { grid-column: 2; grid-row: 1; }
.case-media { min-height: 0; display: flex; flex-direction: column; justify-content: center; background: #eeede7; }
.case-media img, .case-media video { height: auto; max-height: 460px; object-fit: contain; }
.case-media .case-media-caption { position: static; line-height: 1.6; font-weight: 500; letter-spacing: 0; }
.case-media-switcher { display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--paper); }
.case-media-tabs { background: var(--paper); border-bottom: 2px solid var(--ink); }
.case-media-tabs button { min-height: 64px; min-width: 0; flex: 1 1 50%; padding: 12px; gap: 8px; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: 0; }
.case-media-tabs button[aria-selected="true"], .case-media-tabs button:hover { background: var(--ink); color: var(--paper); }
.case-media-panel { align-content: center; }
.case-media-panel img, .case-media-panel video { height: 100%; }
.case-media-panel .case-media-caption { padding: 12px; }
.archive-trigger { min-height: 100px; margin-top: 24px; padding: 24px; border: 2px dashed var(--ink); gap: 24px; }
.archive-trigger span { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.4; letter-spacing: 0; }
.archive-trigger small { font-family: var(--pixel-font); font-size: .75rem; }
.archive-trigger b { font-size: 2rem; }
.capabilities-section { display: block; width: min(var(--canvas), calc(100% - var(--gutter) * 2)); margin: 0 auto; padding: 32px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--line); }
.capability-lead { min-height: 0; display: block; padding: 0; border: 0; overflow: visible; }
.capability-lead::after { display: none; }
.capability-lead h2 { margin: 12px 0 16px; font-size: clamp(1.75rem, 3.3vw, 2.6rem); }
.capability-lead h2 span { display: inline; }
.capability-lead > p:last-child { max-width: 65ch; }
.capability-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 0; }
.capability-list li { grid-template-columns: 28px minmax(0, 1fr); padding: 24px 0; gap: 12px; border-top: 2px dotted var(--line); }
.capability-list li:last-child { border-bottom: 0; }
.capability-list h3 { font-size: 1.3rem; line-height: 1.4; letter-spacing: -.02em; }
.capability-list a, .capability-list button { font-size: .875rem; min-height: 44px; letter-spacing: 0; }
.stack-line { margin: 0; padding: 20px 0 0; font-size: .875rem; letter-spacing: 0; line-height: 1.8; }
.credential-primary > div { padding: 24px; min-height: 0; }
.credential-primary strong { font-size: 1.5rem; line-height: 1.4; margin-top: 16px; letter-spacing: -.025em; }
.credential-grid article { min-height: 150px; }
.credential-grid .wordmark strong { font-size: 1.5rem; }
.writing-section { padding-top: 0; }
.writing-grid { grid-template-columns: 1fr 1fr; }
.writing-featured { min-height: 0; padding: 32px; }
.writing-featured h3 { margin: 28px 0 20px; max-width: 25ch; font-size: 1.8rem; line-height: 1.35; letter-spacing: -.03em; }
.writing-compact article { padding: 24px; }
.writing-compact h3 { margin-top: 20px; font-size: 1.35rem; line-height: 1.4; letter-spacing: -.02em; }
.contact-section { width: min(var(--canvas), calc(100% - var(--gutter) * 2)); min-height: 0; margin: 0 auto 80px; padding: 40px; border: 4px double var(--ink); box-shadow: 8px 8px 0 var(--line); }
.contact-main { width: 100%; max-width: 760px; margin: 0; }
.contact-section h2 { max-width: 24ch; font-size: clamp(1.75rem, 3.3vw, 2.6rem); margin: 16px 0 24px; }
.contact-description { max-width: 60ch; color: var(--muted); margin-bottom: 28px; }
.contact-actions { gap: 16px; }
.official-profiles { margin-top: 40px; font-size: .875rem; letter-spacing: 0; gap: 20px; }
.site-footer { padding-block: 32px; }
.site-footer p { font-size: .8125rem; }
.showcase-header { min-height: 128px; }
.showcase-header h2 { font-size: clamp(1.25rem, 3vw, 2rem); max-width: 30ch; }
.showcase-tabs { top: 128px; }
.project-card h3 { font-size: 1.5rem; line-height: 1.35; }
.project-group { grid-template-columns: 180px minmax(0, 1fr); }
.writing-header { padding-block: 64px; }
.writing-header h1 { font-size: clamp(2.25rem, 5vw, 4rem); max-width: 24ch; }
.writing-item h2 { font-size: 1.5rem; line-height: 1.4; }
.post-header { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; }
.post-header h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.2; letter-spacing: -.04em; max-width: 26ch; }
.post-summary { max-width: 65ch; }
.post-content { line-height: 1.85; margin-top: 48px; }
.post-content h2 { font-size: 1.8rem; line-height: 1.4; }
.post-content h3 { font-size: 1.4rem; line-height: 1.4; }
@media (max-width: 820px) {
  .hero-layout { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-visual img { height: 280px; }
  .case-study { grid-template-columns: 1fr; }
  .case-copy, .case-dark .case-copy { grid-column: 1; grid-row: 1; }
  .case-media, .case-dark .case-media { grid-column: 1; grid-row: 2; }
  .case-media img, .case-media video { max-height: 420px; }
  .project-group { grid-template-columns: 1fr; }
  .site-nav-links a:hover { background: var(--ink); color: var(--paper); }
}
@media (max-width: 560px) {
  .hero-layout { display: grid; grid-template-columns: 1fr; padding-block: 24px; gap: 20px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .hero-visual { max-width: 340px; justify-self: center; }
  .hero-visual img { height: 200px; }
  .hero-signals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-signals span { min-width: 0; padding: 9px 4px; font-size: clamp(.48rem, 2.25vw, .62rem); text-align: center; white-space: nowrap; }
  .hero-signals span::before { content: ""; }
  .hero-actions { flex-direction: row; }
  .button { padding-inline: 16px; font-size: .8125rem; gap: 10px; }
  .proof-rail div { padding: 14px 16px; }
  .proof-rail dt { font-size: .8125rem; }
  .proof-rail dd { font-size: 1.65rem; }
  .proof-rail dd span { font-size: .75rem; }
  .work-section, .trust-section, .writing-section { padding-block: 56px; }
  .case-study, .writing-grid { margin-inline: 0; border-inline: 2px solid var(--ink); }
  .case-copy { padding: 24px 20px; }
  .case-facts div { grid-template-columns: 1fr; gap: 4px; }
  .case-facts dt { font-size: .875rem; }
  .case-media-tabs button { font-size: .75rem; }
  .media-tab-index { display: none; }
  .capabilities-section { padding: 24px 20px; }
  .capability-list { grid-template-columns: 1fr; gap: 0; }
  .credential-grid { display: grid; grid-template-columns: 1fr 1fr; margin-inline: 0; padding: 0; overflow: visible; }
  .credential-grid article { min-width: 0; padding: 16px 12px; }
  .credential-grid img { max-width: 100%; height: 40px; }
  .credential-grid .wordmark strong { font-size: 1.1rem; }
  .writing-section { padding-top: 0; }
  .writing-grid { grid-template-columns: 1fr; }
  .writing-featured { padding: 24px 20px; }
  .writing-featured h3 { font-size: 1.5rem; }
  .writing-compact article { padding: 24px 20px; }
  .contact-section { padding: 28px 20px; margin-bottom: 56px; }
  .official-profiles { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .official-profiles > span { width: 100%; margin: 0; }
  .showcase-header { min-height: 150px; align-items: start; gap: 12px; }
  .showcase-header h2 { font-size: 1.1rem; }
  .showcase-tabs { top: 150px; }
  .close-button { padding-inline: 10px; flex-shrink: 0; }
  .writing-header h1 { font-size: 2rem; }
  .post-header h1 { font-size: 2rem; }
}

/* Native CSS cursors: no tracking script, animation, or touch interference. */
@media (hover: hover) and (pointer: fine) {
  html { cursor: url("../cursors/pixel-arrow.svg") 3 3, default; }
  a, button, [role="button"], [role="tab"], summary {
    cursor: url("../cursors/pixel-hand.svg") 12 3, pointer;
  }
  p, h1, h2, h3, h4, dt, dd, blockquote, pre, code,
  input, textarea, [contenteditable="true"] { cursor: url("../cursors/pixel-text.svg") 16 16, text; }
  p, h1, h2, h3, h4, dt, dd, blockquote, pre, code { cursor: url("../cursors/pixel-text.svg") 16 16, text; }
  a *, button *, [role="button"] *, [role="tab"] *, summary * { cursor: inherit; }
  button:disabled, [aria-disabled="true"] { cursor: not-allowed; }
}

.scroll-progress { position: fixed; z-index: 45; bottom: 0; width: 29px; height: 29px; color: var(--ink); pointer-events: none; }
.scroll-dino { display: block; width: 29px; height: 29px; }
.scroll-cacti { position: fixed; z-index: 44; inset: auto 0 0; height: 22px; color: var(--ink); pointer-events: none; }
.scroll-cactus { position: absolute; bottom: 0; width: 17px; height: 22px; }
.scroll-cactus:nth-child(1) { left: 26%; }
.scroll-cactus:nth-child(2) { left: 53%; }
.scroll-cactus:nth-child(3) { left: 79%; }
.dino-leg-b { display: none; }
.scroll-progress.is-moving .dino-leg-a { animation: dino-leg-a .2s steps(1) infinite; }
.scroll-progress.is-moving .dino-leg-b { display: block; animation: dino-leg-b .2s steps(1) infinite; }
@keyframes dino-leg-a { 50% { opacity: 0; } }
@keyframes dino-leg-b { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-progress.is-moving .dino-leg-a, .scroll-progress.is-moving .dino-leg-b { animation: none; } .scroll-progress.is-moving .dino-leg-b { display: none; } .scroll-cacti { display: none; } }
/* Match native scroll surfaces throughout the page and its independent dialogs. */
@supports (-moz-appearance: none) { * { scrollbar-color: var(--ink) var(--line); scrollbar-width: thin; } }
*::-webkit-scrollbar { width: 14px; height: 14px; }
*::-webkit-scrollbar-track { background: repeating-linear-gradient(to bottom, var(--paper) 0 6px, var(--line) 6px 8px); border-left: 1px solid var(--ink); }
*::-webkit-scrollbar-thumb { border: 3px solid var(--paper); border-radius: 0; background: repeating-linear-gradient(to bottom, var(--ink) 0 7px, #50534e 7px 10px); }
*::-webkit-scrollbar-thumb:hover { background: var(--ink); }
@media (forced-colors: active) {
  html { cursor: auto; }
  a, button, [role="button"], [role="tab"], summary { cursor: pointer; }
}

/* Work Journey: static hero first, interaction only after explicit activation. */
.hero { isolation: isolate; position: relative; }
.journey-background { position: absolute; inset: 56px 0 0; z-index: 0; pointer-events: none; background: url('../journey/world.svg') center 45% / max(1100px, 100%) auto no-repeat; opacity: .55; mask-image: linear-gradient(90deg, transparent 3%, #000 75%); }
.journey-background { overflow: hidden; }

.journey-flight { position: absolute; top: 12%; left: 4%; width: min(58vw, 820px); height: auto; overflow: visible; opacity: .52; }
.journey-flight-route { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 9; opacity: .7; }
.journey-flight-stop { fill: var(--paper); stroke: var(--accent); stroke-width: 3; }
.journey-plane { fill: var(--accent); stroke: var(--ink); stroke-width: 2; offset-path: path('M170 154 C275 78 374 105 448 190 S632 330 748 215 S850 125 914 168'); offset-rotate: auto; }
.journey-plane--small { opacity: .58; transform: scale(.72); transform-origin: center; }
.journey-flight { animation: journey-flight-beacon 1.8s steps(2, end) infinite; }
@keyframes journey-flight-beacon { 0%, 58% { opacity: .86; } 59%, 100% { opacity: .58; } }
:root[data-theme='dark'] .journey-flight-route { filter: drop-shadow(0 0 3px #9bb59a); opacity: .9; }
:root[data-theme='dark'] .journey-plane { filter: drop-shadow(0 0 3px #b6d3ad) drop-shadow(0 0 8px rgb(182 211 173 / 72%)); stroke-width: 3; }
@media (prefers-reduced-motion: reduce) { .journey-flight-route { stroke-dasharray: none; } .journey-plane { offset-path: none; transform: translate(158px, 142px); } }
@media (max-width: 820px) { .journey-background { inset: 56px 0 0; opacity: .42; background-size: max(760px, 165%); background-position: 72% 38%; } .journey-flight { top: 8%; left: -8%; width: 108vw; opacity: .8; } .journey-flight-route { stroke-width: 3; } }
.journey-entry { display: flex; align-items: flex-start; flex-direction: column; margin-top: 24px; gap: 3px; }
.journey-launch { display: inline-flex; align-items: center; gap: 22px; min-height: 44px; padding: 6px 0; border: 0; border-bottom: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 700; font-size: .9rem; cursor: pointer; }
.journey-entry > span { font-size: .75rem; color: var(--muted); }
.journey-spotlight { position: fixed; z-index: 100; inset: 0; pointer-events: none; }
.journey-spotlight-frame { position: fixed; left: var(--spot-x); top: var(--spot-y); width: var(--spot-w); height: var(--spot-h); border: 2px solid var(--paper); box-shadow: 0 0 0 2px var(--ink), 0 0 0 100vmax rgb(12 16 14 / 72%); animation: journey-spotlight-arrive .7s cubic-bezier(.2,.75,.25,1) both; }
.journey-spotlight-note { position: fixed; left: clamp(10px, var(--spot-x), calc(100vw - 370px)); top: calc(var(--spot-y) + var(--spot-h) + 14px); display: grid; width: min(360px, calc(100vw - 20px)); grid-template-columns: 68px 1fr; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 5px 6px 14px #10141066; pointer-events: auto; animation: journey-spotlight-arrive .7s .18s cubic-bezier(.2,.75,.25,1) both; }
.journey-spotlight.is-above .journey-spotlight-note { top: auto; bottom: calc(100dvh - var(--spot-y) + 14px); }
.journey-spotlight.is-side .journey-spotlight-note { left: calc(var(--spot-x) + var(--spot-w) + 18px); top: calc(var(--spot-y) - 16px); bottom: auto; }
.journey-spotlight-note img { width: 68px; height: 100%; object-fit: cover; object-position: center 15%; image-rendering: pixelated; background: var(--ink); }
.journey-spotlight-note > div { padding: 10px 12px; }
.journey-spotlight-note p { margin: 0 0 6px; font: .65rem var(--pixel-font); }
.journey-spotlight-note span { display: block; font-size: .8rem; line-height: 1.45; }
.journey-spotlight-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.journey-spotlight-note button { min-height: 36px; margin-top: 8px; padding: 5px 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: .7rem; font-weight: 700; cursor: pointer; }
.journey-spotlight-note [data-spotlight="never"] { background: var(--paper); color: var(--ink); }
.journey-spotlight-note button:focus-visible { outline-color: var(--ink); }
@keyframes journey-spotlight-arrive { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .journey-spotlight-frame, .journey-spotlight-note { animation: none; } }
@media (max-width: 500px) { .journey-spotlight-note, .journey-spotlight.is-side .journey-spotlight-note { left: 10px; width: min(340px, calc(100vw - 20px)); } }
.journey-dialog { width: min(1280px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 8px 8px 0 #20231f44; overflow: auto; }
.journey-dialog::backdrop { background: #20231fc9; }
.journey-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 24px; border-bottom: 2px solid var(--ink); }
.journey-header h2 { font: 400 clamp(1.25rem, 3vw, 2rem)/1.3 var(--pixel-font); margin: 8px 0; }
.journey-header p { margin: 0; font-size: .85rem; }
.journey-dialog button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: .8rem; font-weight: 700; cursor: pointer; }
.journey-dialog button:hover { background: var(--line); }
.journey-dialog button:disabled { opacity: .4; cursor: default; }
.journey-dialog .journey-close { flex-shrink: 0; border: 1px solid var(--ink); }
.journey-body { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); }
.journey-map-wrap { position: relative; min-width: 0; background: #eeede7; border-right: 1px solid var(--ink); }
.journey-map { display: block; width: 100%; height: 440px; touch-action: none; cursor: grab; }
.journey-map:active { cursor: grabbing; }
.journey-map-caption { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 12px; font: .6rem var(--pixel-font); pointer-events: none; }
.journey-zoom { position: absolute; bottom: 20px; left: 16px; display: flex; gap: 4px; }
.journey-zoom button { box-shadow: 2px 2px 0 var(--line); }
.journey-map-hint { position: absolute; bottom: 18px; right: 12px; margin: 0; max-width: 220px; text-align: right; font-size: .65rem; line-height: 1.5; pointer-events: none; }
.journey-guide { position: absolute; z-index: 1; left: 16px; bottom: 74px; display: grid; width: min(430px, calc(100% - 32px)); grid-template-columns: 88px 1fr; border: 2px solid var(--ink); background: var(--paper); box-shadow: 5px 6px 14px #20231f35; }
.journey-guide img { width: 88px; height: 100%; min-height: 170px; object-fit: cover; object-position: center 15%; image-rendering: pixelated; background: var(--ink); }
.journey-guide-content { padding: 14px; }
.journey-guide-progress { margin: 0 0 8px; color: var(--muted); font: .65rem var(--pixel-font); }
.journey-guide-message { min-height: 66px; margin: 0 0 12px; font-size: .875rem; line-height: 1.45; }
.journey-guide-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.journey-dialog .journey-guide-actions button { min-height: 38px; padding: 6px 9px; font-size: .72rem; }
.journey-dialog .journey-guide-actions [data-guide="next"], .journey-dialog .journey-guide-actions [data-guide="start"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.journey-dialog .journey-guide-actions [data-guide="next"]:hover, .journey-dialog .journey-guide-actions [data-guide="start"]:hover { background: var(--muted); color: var(--paper); }
.journey-story { padding: 28px; max-height: 440px; overflow: auto; }
.journey-count { font: .65rem var(--pixel-font); margin: 0 0 26px; color: var(--muted); }
.journey-type { font-size: .75rem; margin: 0 0 6px; color: var(--muted); }
.journey-story h3 { font: 400 clamp(1.4rem, 2.7vw, 2rem)/1.3 var(--pixel-font); margin: 0 0 20px; }
.journey-story h4 { font-size: 1.1rem; line-height: 1.4; margin: 0 0 12px; }
.journey-copy { margin: 0; font-size: 1.0625rem; }
.journey-note { font-size: .75rem; color: var(--muted); margin: 20px 0 12px; }
.journey-project { display: inline-flex; min-height: 44px; align-items: center; font-size: .85rem; font-weight: 700; }
.journey-stops { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.journey-stops button { text-align: left; display: flex; flex-direction: column; gap: 5px; }
.journey-stops button span { font: .6rem var(--pixel-font); opacity: .7; }
.journey-stops button[aria-current] { background: var(--ink); color: var(--paper); }
.journey-footer { padding: 16px 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; border-top: 1px solid var(--ink); }
.journey-playback { display: flex; flex-wrap: wrap; gap: 6px; }
.journey-playback [data-action="play"] { background: var(--ink); color: var(--paper); }
.journey-dialog .journey-playback [data-action="play"]:hover { background: var(--muted); color: var(--paper); }
.journey-state { font-size: .75rem; }
.journey-progress { display: flex; width: min(190px, 100%); flex-direction: column; gap: 5px; }
.journey-progress-label { color: var(--muted); font: .55rem var(--pixel-font); }
.journey-progress-track { display: block; height: 6px; overflow: hidden; border: 1px solid var(--ink); background: var(--line); }
.journey-progress-fill { display: block; width: 100%; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left center; }
.journey-footer > a { margin-left: auto; font-size: .65rem; }
.journey-loading, .journey-retry { margin: 24px; }
.journey-story:focus-visible { outline: 3px solid var(--ink); outline-offset: -5px; }
@media(max-width: 760px) {
  .journey-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .journey-header { padding: 14px; position: sticky; top: 0; z-index: 2; background: var(--paper); }
  .journey-body { grid-template-columns: 1fr; }
  .journey-map-wrap { border-right: 0; border-bottom: 1px solid var(--ink); }
  .journey-map { height: 280px; }
  .journey-map-hint { display: none; }
  .journey-guide { position: relative; left: auto; bottom: auto; width: 100%; grid-template-columns: 72px 1fr; border-width: 1px 0 0; box-shadow: none; }
  .journey-guide img { width: 72px; min-height: 150px; }
  .journey-guide-content { padding: 12px; }
  .journey-guide-message { min-height: 0; }
  .journey-story { padding: 20px; max-height: 290px; }
  .journey-count { margin-bottom: 12px; }
  .journey-stops { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .journey-dialog .journey-stops button { padding: 8px; font-size: .7rem; }
  .journey-footer { position: sticky; bottom: 0; z-index: 2; padding: 10px; gap: 6px; background: var(--paper); }
  .journey-playback { gap: 4px; }
  .journey-dialog .journey-playback button { padding: 6px 9px; font-size: .7rem; }
  .journey-background { opacity: .35; background-position: 60% 50%; }
}
@media(forced-colors: active) { .journey-background { display: none; } .journey-stops button[aria-current] { outline: 3px solid Highlight; outline-offset: -4px; } }
/* Keep the default hero still; motion belongs to the explicitly opened journey. */
.hero-meta, .hero-identity, .hero-visual, .proof-rail { animation: none; }

/* The optional build sequence uses real page sections, with a persistent launch control. */
.pixel-replay-launch { position: fixed; z-index: 60; right: max(16px, var(--gutter)); bottom: 42px; display: inline-flex; min-height: 48px; padding: 8px 14px; align-items: center; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 #20231f44; font: 400 .75rem var(--pixel-font); cursor: pointer; }
.pixel-replay-launch:hover { background: var(--paper); color: var(--ink); }
.pixel-replay-overlay { position: fixed; z-index: 90; inset: 0; pointer-events: none; }
.pixel-replay-controls { position: absolute; top: 84px; right: max(16px, var(--gutter)); left: max(16px, var(--gutter)); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; pointer-events: none; }
.pixel-replay-caption { position: relative; display: grid; width: min(340px, 38vw); min-height: 54px; padding: 8px 10px; align-content: center; gap: 3px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 #20231f44; }
.pixel-replay-phase { color: var(--muted); font: 400 .6875rem/1.2 var(--pixel-font); letter-spacing: .04em; }
.pixel-replay-status { overflow: hidden; font: 400 .75rem/1.35 var(--pixel-font); text-overflow: ellipsis; white-space: nowrap; }
.pixel-replay-track { position: absolute; top: calc(100% + 6px); left: 0; padding: 4px 7px; border: 1px solid var(--ink); background: var(--paper); color: var(--muted); font-size: .7rem; white-space: nowrap; opacity: 0; clip-path: inset(0 100% 0 0); transition: clip-path .45s steps(12, end), opacity .12s linear; }
.pixel-replay-overlay.is-credit-visible .pixel-replay-track { opacity: 1; clip-path: inset(0); }
.pixel-replay-actions { display: flex; padding: 5px; gap: 5px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 #20231f44; pointer-events: auto; }
.pixel-replay-sound { min-height: 44px; padding: 7px 10px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: 400 .75rem var(--pixel-font); cursor: pointer; }
.pixel-replay-sound:hover { background: var(--line); }
.pixel-replay-sound:disabled { opacity: .55; cursor: default; }
.pixel-replay-skip { min-height: 44px; padding: 7px 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 400 .7rem var(--pixel-font); cursor: pointer; }
.pixel-replay-skip:hover { background: var(--paper); color: var(--ink); }
.pixel-replay-sound:focus-visible, .pixel-replay-skip:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.pixel-replay-frame { position: absolute; top: var(--frame-y, 0px); left: var(--frame-x, 0px); width: var(--frame-w, 100px); height: var(--frame-h, 70px); border: 2px solid var(--ink); background: rgb(250 249 246 / 18%); opacity: 0; transform: scale(.12, .18); transform-origin: var(--frame-origin, 0 0); transition: transform var(--frame-duration, 480ms) cubic-bezier(.16,1,.3,1), opacity .12s linear; box-shadow: 0 0 0 1px var(--paper); }
.pixel-replay-frame.is-visible { opacity: 1; }
.pixel-replay-frame.is-dragging { transform: scale(1); }
.pixel-replay-frame-label { position: absolute; bottom: calc(100% + 5px); left: -2px; padding: 2px 5px; background: var(--ink); color: var(--paper); font: 400 .62rem var(--pixel-font); white-space: nowrap; }
.pixel-replay-frame i { position: absolute; width: 9px; height: 9px; border: 2px solid var(--ink); background: var(--paper); }
.pixel-replay-frame i:nth-of-type(1) { top: -6px; left: -6px; }
.pixel-replay-frame i:nth-of-type(2) { top: -6px; right: -6px; }
.pixel-replay-frame i:nth-of-type(3) { right: -6px; bottom: -6px; }
.pixel-replay-frame i:nth-of-type(4) { bottom: -6px; left: -6px; }
.pixel-replay-clipboard { position: absolute; top: 0; left: 0; display: grid; width: min(180px, 38vw); min-height: 54px; padding: 6px 8px; gap: 4px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 #20231f44; opacity: 0; transform: translate3d(var(--copy-x, 0px), var(--copy-y, 0px), 0) scale(.84); transition: transform .62s cubic-bezier(.16,1,.3,1), opacity .12s ease; }
.pixel-replay-clipboard.is-visible { opacity: 1; transform: translate3d(var(--copy-x, 0px), var(--copy-y, 0px), 0) scale(1); }
.pixel-replay-clipboard span { font: 400 .6rem var(--pixel-font); color: var(--muted); }
.pixel-replay-clipboard strong { overflow: hidden; font: 700 .75rem/1.25 ui-sans-serif, system-ui, sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.pixel-replay-media-proxy { position: absolute; top: 0; left: 0; display: grid; width: 124px; padding: 5px; gap: 4px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 var(--line); opacity: 0; transform: translate3d(var(--media-x, 0px), var(--media-y, 0px), 0) scale(.88); transition: transform 410ms cubic-bezier(.16,.82,.22,1), opacity 140ms ease; }
.pixel-replay-media-proxy.is-visible { opacity: 1; transform: translate3d(var(--media-x, 0px), var(--media-y, 0px), 0) scale(1); }
.pixel-replay-media-proxy.is-placed { opacity: 0; transform: translate3d(var(--media-x, 0px), var(--media-y, 0px), 0) scale(.96); }
.pixel-replay-media-proxy img { display: block; width: 100%; height: 72px; object-fit: cover; background: var(--line); }
.pixel-replay-media-proxy span { font: 400 .58rem var(--pixel-font); color: var(--ink); white-space: nowrap; }
.pixel-replay-guide { position: absolute; top: var(--guide-y, 0px); left: var(--guide-x, 0px); width: var(--guide-w, 0px); height: 1px; border-top: 1px dashed var(--ink); opacity: 0; transform: scaleX(.15); transform-origin: var(--guide-origin, left); transition: transform .55s cubic-bezier(.16,1,.3,1), opacity .12s ease; }
.pixel-replay-overlay.is-high-tempo .pixel-replay-guide { transition-duration: .25s, .1s; }
.pixel-replay-guide.is-visible { opacity: .8; transform: scaleX(1); }
.pixel-replay-guide span { position: absolute; bottom: 3px; right: 0; padding: 1px 3px; background: var(--paper); font: 400 .55rem var(--pixel-font); }
.pixel-replay-card-token { position: absolute; top: 0; left: 0; display: grid; width: 164px; min-height: 44px; padding: 7px 9px; place-items: center; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--line); font: 400 .65rem/1.4 var(--pixel-font); text-align: center; opacity: 0; transform: translate3d(var(--card-x, 0px), var(--card-y, 0px), 0); transition: transform 340ms cubic-bezier(.16,.82,.22,1), opacity 100ms ease; }
.pixel-replay-card-token.is-visible { opacity: 1; }
.pixel-replay-thank-you { position: absolute; top: 50%; left: 50%; display: grid; width: min(720px, calc(100vw - 32px)); padding: clamp(14px, 3vw, 28px); gap: clamp(8px, 2vw, 18px); border: 2px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 6px 6px 0 var(--line); font: 400 clamp(.9rem, 4.2vw, 2.4rem)/1.3 var(--pixel-font); letter-spacing: .04em; text-align: center; white-space: nowrap; opacity: 0; clip-path: inset(0 100% 0 0); pointer-events: none; transform: translate(-50%, -50%) scale(.96); transition: clip-path .9s steps(18, end), opacity .22s ease, transform .3s cubic-bezier(.2,.75,.25,1); }
.pixel-replay-thank-you.is-writing { opacity: .82; transform: translate(-50%, -50%) scale(1); }
.pixel-replay-thank-you.is-written { opacity: 1; clip-path: inset(0); transform: translate(-50%, -50%) scale(1); }
.pixel-replay-thank-you span { display: block; }
.pixel-replay-aircraft { position: absolute; top: 0; left: 0; display: grid; width: 80px; height: 80px; place-items: center; color: var(--ink); opacity: 0; pointer-events: none; transform: translate3d(var(--aircraft-x, 0px), var(--aircraft-y, 0px), 0) translate(-50%, -50%) rotate(-38deg) scale(.72); transition: opacity .16s ease, transform .3s cubic-bezier(.2,.75,.25,1); filter: drop-shadow(4px 4px 0 #20231f44); }
.pixel-replay-aircraft svg { display: block; width: 100%; height: 100%; }
.pixel-replay-aircraft svg rect { fill: currentColor; }
.pixel-replay-aircraft svg .aircraft-stripe { fill: var(--muted); }
.pixel-replay-aircraft.is-visible { opacity: 1; transform: translate3d(var(--aircraft-x, 0px), var(--aircraft-y, 0px), 0) translate(-50%, -50%) rotate(-38deg) scale(1); }
.pixel-replay-aircraft.is-flying { transition: opacity .38s ease, transform 0s linear; }
.pixel-replay-agent { position: absolute; top: 0; left: 0; display: flex; align-items: flex-start; gap: 3px; opacity: 0; transform: translate3d(var(--x, 0px), var(--y, 0px), 0); transition: transform var(--travel-duration, 520ms) cubic-bezier(.22,.72,.2,1), opacity .16s ease; will-change: transform; }
.pixel-replay-agent.is-visible { opacity: 1; }
.pixel-replay-agent.is-morphing { opacity: 1; transition: transform var(--travel-duration, 520ms) cubic-bezier(.22,.72,.2,1), opacity .36s ease; }
.pixel-replay-agent.is-morphing.is-merged { opacity: 0; }
.pixel-replay-agent.is-lettering b, .pixel-replay-agent.is-scattering b { opacity: 0; }
.pixel-replay-agent.is-dragging { transition-duration: var(--travel-duration, 480ms), .16s; }
.pixel-replay-pointer { display: block; width: 22px; height: 26px; background: var(--ink); clip-path: polygon(0 0, 0 100%, 27% 75%, 43% 100%, 58% 94%, 43% 68%, 82% 68%); filter: drop-shadow(1px 1px 0 var(--paper)); transition: clip-path .36s ease, transform .36s ease, filter .36s ease; }
.pixel-replay-agent.is-morphing .pixel-replay-pointer { clip-path: polygon(0 0, 0 100%, 32% 100%, 64% 100%, 100% 100%, 100% 64%, 100% 0); filter: none; transform: rotate(45deg) scale(.38); }
.pixel-replay-agent.is-lettering .pixel-replay-pointer { clip-path: polygon(0 0, 0 100%, 32% 100%, 64% 100%, 100% 100%, 100% 64%, 100% 0); filter: none; transform: scale(.38,.38); }
.pixel-replay-agent b { padding: 4px 6px; border: 1px solid var(--paper); background: var(--ink); color: var(--paper); font: 400 .65rem var(--pixel-font); white-space: nowrap; }
.pixel-replay-overlay.is-building-comics .pixel-replay-agent b { display: none; }
.agent-b .pixel-replay-pointer, .agent-b b { background: #62645f; }
.agent-c .pixel-replay-pointer, .agent-c b { background: #414943; }
.agent-extra b { display: none; }
.agent-extra.is-working b { display: block; font-size: .58rem; }
.agent-extra .pixel-replay-pointer { width: 17px; height: 21px; background: #62645f; }
.pixel-replay-sword { position: absolute; top: 0; left: 0; width: 92px; height: 92px; opacity: 0; transform: translate3d(var(--x, 0px), var(--y, 0px), 0) translate(-50%, -50%) scale(.7) rotate(-12deg); transition: opacity .22s ease, transform .35s cubic-bezier(.2,.75,.25,1); filter: drop-shadow(4px 4px 0 #62645f); }
.pixel-replay-sword.is-visible { opacity: 1; transform: translate3d(var(--x, 0px), var(--y, 0px), 0) translate(-50%, -50%) scale(1) rotate(0); }
.pixel-replay-sword svg { display: block; width: 100%; height: 100%; }
body.is-pixel-replaying .site-nav, body.is-pixel-replaying .hero-meta, body.is-pixel-replaying .hero-identity > .section-code, body.is-pixel-replaying .hero h1, body.is-pixel-replaying .hero-statement, body.is-pixel-replaying .hero-description, body.is-pixel-replaying .hero-actions, body.is-pixel-replaying .hero-visual, body.is-pixel-replaying .proof-rail, body.is-pixel-replaying main > section, body.is-pixel-replaying .site-footer { opacity: 0; }
body.is-pixel-replaying [data-replay-visible] { opacity: 1; animation: pixel-build-in .5s cubic-bezier(.2,.75,.25,1) both; }
body.is-pixel-replaying [data-replay-piece] { opacity: 0; }
body.is-pixel-replaying .case-media[data-replay-piece]:not([data-replay-visible]) { pointer-events: none; }
body.is-pixel-replaying [data-replay-piece][data-replay-visible] { opacity: 1; animation: pixel-build-in .32s cubic-bezier(.2,.75,.25,1) both; }
body.is-pixel-replaying .contact-section.is-contact-building h2[data-replay-visible] { animation: contact-title-build .58s steps(8, end) both; }
@keyframes contact-title-build { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-12px); } to { opacity: 1; clip-path: inset(0); transform: translateX(0); } }
body.is-pixel-replaying [data-replay-direction='right'] { --replay-start: inset(0 0 0 100%); }
body.is-pixel-replaying [data-replay-direction='top'] { --replay-start: inset(100% 0 0 0); }
body.is-pixel-replaying [data-replay-direction='bottom'] { --replay-start: inset(0 0 100% 0); }
body.is-pixel-replaying .site-nav { z-index: 50; }
@keyframes pixel-build-in { from { opacity: 0; clip-path: var(--replay-start, inset(0 100% 0 0)); transform: translateY(8px); } to { opacity: 1; clip-path: inset(0); transform: translateY(0); } }
@media (max-width: 650px) { .pixel-replay-launch { right: 14px; bottom: 36px; min-height: 44px; font-size: .72rem; } .pixel-replay-controls { top: 72px; right: 10px; left: 10px; gap: 6px; } .pixel-replay-caption { width: calc(100% - 102px); min-height: 44px; padding: 5px 7px; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; box-shadow: 3px 3px 0 #20231f44; } .pixel-replay-phase { font-size: .6875rem; white-space: nowrap; } .pixel-replay-status { font-size: .6875rem; } .pixel-replay-track { top: calc(100% + 4px); max-width: min(74vw, 280px); overflow: hidden; font-size: .6875rem; text-overflow: ellipsis; } .pixel-replay-actions { padding: 3px; gap: 3px; box-shadow: 3px 3px 0 #20231f44; } .pixel-replay-sound, .pixel-replay-skip { width: 44px; min-height: 44px; padding: 0; font-size: 0; } .pixel-replay-sound::before { content: "♪"; font: 400 1rem var(--pixel-font); } .pixel-replay-skip::before { content: "×"; font: 400 1rem var(--pixel-font); } .pixel-replay-agent b, .agent-extra.is-working b { display: none; } .pixel-replay-clipboard { width: min(140px, 38vw); } .pixel-replay-aircraft { width: 68px; height: 68px; } .pixel-replay-thank-you { font-size: clamp(.9rem, 5vw, 1.8rem); letter-spacing: 0; } }
@media (prefers-reduced-motion: reduce) { .pixel-replay-agent, .pixel-replay-sword, .pixel-replay-frame, .pixel-replay-clipboard, .pixel-replay-media-proxy, .pixel-replay-guide, .pixel-replay-card-token, .pixel-replay-aircraft, .pixel-replay-thank-you, .pixel-replay-pointer { transition: none; } body.is-pixel-replaying [data-replay-visible] { animation: none; } }
@media (prefers-reduced-motion: reduce) { body.is-pixel-replaying .contact-section.is-contact-building h2[data-replay-visible] { animation: none; } }
@media (prefers-reduced-motion: reduce) { .communication-section.is-replay-story.is-pm-vanishing .communication-stage, .communication-section.is-replay-story.is-pm-vanishing .communication-object { animation: none; } }
/* Container sizing also handles browser/text zoom inside the modal. */
.journey-dialog { container-type: inline-size; }
@container (max-width: 760px) {
  .journey-body { grid-template-columns: 1fr; }
  .journey-map-wrap { border-right: 0; border-bottom: 1px solid var(--ink); }
  .journey-map { height: 280px; }
  .journey-map-hint { display: none; }
  .journey-story { padding: 20px; max-height: 290px; }
  .journey-stops { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .journey-dialog .journey-stops button { padding: 8px; font-size: .7rem; }
}

/* Persistent light/dark choice, shared by the portfolio and Writing pages. */
.site-nav { grid-template-columns: auto 1fr auto auto; }
.theme-toggle { display: inline-grid; min-width: 132px; min-height: 44px; padding: 3px; grid-template-columns: 1fr 1fr; align-items: stretch; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 400 .65rem var(--pixel-font); cursor: pointer; white-space: nowrap; }
.theme-toggle-option { display: grid; min-width: 0; padding: 0 5px; place-items: center; color: var(--muted); transition: background .18s ease, color .18s ease; }
.theme-toggle[data-active-theme='light'] .theme-toggle-light,
.theme-toggle[data-active-theme='dark'] .theme-toggle-dark { background: var(--ink); color: var(--paper); }
.theme-toggle:hover .theme-toggle-option { color: var(--ink); }
.theme-toggle:hover[data-active-theme='light'] .theme-toggle-light,
.theme-toggle:hover[data-active-theme='dark'] .theme-toggle-dark { color: var(--paper); }
.theme-toggle:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
:root.is-theme-switching *, :root.is-theme-switching *::before, :root.is-theme-switching *::after { transition-duration: 0s !important; }
.blog-masthead { grid-template-columns: auto 1fr auto auto; gap: 12px; }
@media (min-width: 821px) and (max-width: 1040px) { .site-nav { grid-template-columns: auto 1fr auto; } .theme-toggle { justify-self: end; } }
@media (max-width: 820px) { .site-nav { display: flex; gap: 12px; } .site-nav .theme-toggle { margin-left: auto; } }
@media (max-width: 560px) { .blog-masthead { display: flex; justify-content: space-between; gap: 8px; padding-inline: 16px; } .blog-masthead > span { display: none; } .theme-toggle { min-width: 116px; font-size: .58rem; } }

:root[data-theme='dark'] {
  color-scheme: dark;
  --black: #0c0f0c;
  --black-raised: #1b211b;
  --ink: #e8eee4;
  --paper: #151915;
  --accent: #e8eee4;
  --action: #e5ede0;
  --action-hover: #cad8c3;
  --accent-ink: #e8eee4;
  --muted: #b3bdb0;
  --muted-light: #899386;
  --line: #404a3f;
  --line-dark: #404a3f;
}
:root[data-theme='dark'] .button-primary,
:root[data-theme='dark'] .site-nav-links .nav-contact,
:root[data-theme='dark'] .tab-button.is-active { color: #151915; }
:root[data-theme='dark'] .button-secondary:hover,
:root[data-theme='dark'] .button-on-dark:hover,
:root[data-theme='dark'] .site-nav-links a:hover { background: #e8eee4; color: #151915; }
:root[data-theme='dark'] .hero-signals,
:root[data-theme='dark'] .writing-featured { background: #202620; }
:root[data-theme='dark'] .hero-visual { background: #777f74; }
:root[data-theme='dark'] .communication-section,
:root[data-theme='dark'] .comic-explanation,
:root[data-theme='dark'] .comic-frame,
:root[data-theme='dark'] .case-media,
:root[data-theme='dark'] .journey-map-wrap { background: #222922; }
:root[data-theme='dark'] .communication-sky { background: repeating-linear-gradient(0deg, transparent 0 31px, rgb(232 238 228 / 6%) 31px 32px), linear-gradient(#252c25, #1b211b); }
:root[data-theme='dark'] .character-user i { background: repeating-linear-gradient(0deg, #737d71 0 10px, #a8b2a3 10px 15px); }
:root[data-theme='dark'] .comic-object { background: var(--paper); }
:root[data-theme='dark'] .archive-trigger:hover { background: #222922; }
:root[data-theme='dark'] .credential-grid article,
:root[data-theme='dark'] .client-card { background: #e9ebe4; color: #20231f; }
:root[data-theme='dark'] .credential-grid article p,
:root[data-theme='dark'] .client-card span { color: #454d43; }
:root[data-theme='dark'] .post-content p,
:root[data-theme='dark'] .post-content li { color: var(--ink); }
:root[data-theme='dark'] .post-content code { background: #303830; color: var(--ink); }
:root[data-theme='dark'] .post-content pre code { background: none; color: inherit; }
:root[data-theme='dark'] .journey-background { filter: none; opacity: .46; }
:root[data-theme='dark'] .journey-flight-route { stroke: #9bb59a; }
:root[data-theme='dark'] .journey-flight-stop { fill: #151915; stroke: #b6d3ad; }
:root[data-theme='dark'] .journey-plane { fill: #b6d3ad; stroke: #151915; }
:root[data-theme='dark'] .journey-dialog::backdrop { background: rgb(0 0 0 / 82%); }
:root[data-theme='dark'] .pixel-replay-frame { background: rgb(232 238 228 / 8%); }
:root[data-theme='dark'] .pixel-replay-sword path:first-child { fill: #e8eee4; }
:root[data-theme='dark'] .pixel-replay-sword path:last-child { fill: #151915; }
:root[data-theme='dark'] .media-tab-index { color: #aab5a6; }
:root[data-theme='dark'] .agent-b .pixel-replay-pointer,
:root[data-theme='dark'] .agent-b b,
:root[data-theme='dark'] .agent-extra .pixel-replay-pointer { background: #aab5a6; }
:root[data-theme='dark'] .agent-c .pixel-replay-pointer,
:root[data-theme='dark'] .agent-c b { background: #d3ddce; }
:root[data-theme='dark'] .agent-b b,
:root[data-theme='dark'] .agent-c b { color: #151915; }
