@font-face {
  font-family: "Permanent Marker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/permanent-marker-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
}

@font-face {
  font-family: "VT323";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/vt323-latin.woff2") format("woff2");
}

:root {
  --orange: #ff6500;
  --acid: #5ce1ff;
  --ink: #101210;
  --paper: #e9e7dd;
  --desktop: #c8c9c1;
  --muted: #62655e;
  --white: #fffdf6;
  --border: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
}

* { box-sizing: border-box; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset, 96px); }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 18, 16, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 18, 16, .055) 1px, transparent 1px),
    var(--desktop);
  background-size: 32px 32px;
  font-family: "Space Grotesk", sans-serif;
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--acid); outline-offset: 3px; }
main:focus { outline: none; }

.skip-link { position: fixed; left: 12px; top: -80px; z-index: 20; padding: 10px 14px; background: var(--acid); border: var(--border); }
.skip-link:focus { top: 12px; }
.shell { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }

.prototype-switcher {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 18px;
  color: var(--paper);
  background: var(--ink);
  font-family: "VT323", monospace;
  font-size: 20px;
}
.prototype-switcher span { color: #a8aaa4; margin-right: 8px; }
.prototype-switcher a { padding: 2px 8px; text-decoration: none; border: 1px solid #777a74; }
.prototype-switcher a[aria-current="page"] { color: var(--ink); background: var(--acid); border-color: var(--acid); }

.site-header { padding: 26px 0; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 25px "VT323", monospace; }
.brand [data-logo] { width: 50px; height: 50px; }
.nav-links { display: flex; gap: 18px; font: 20px "VT323", monospace; }
.nav-links a { text-decoration-thickness: 2px; text-underline-offset: 4px; }

.nb-logo { display: block; width: 100%; height: 100%; overflow: visible; color: #fff; }
.nb-frame { fill: none; stroke: var(--orange); stroke-width: 10px; }
.nb-letters { fill: currentColor; stroke: #000; stroke-width: 14px; paint-order: stroke fill; stroke-linejoin: round; }
.nb-cutout { fill: var(--paper); stroke: #000; stroke-width: 14px; paint-order: stroke fill; stroke-linejoin: round; }

.os-window { margin: 22px auto 54px; border: var(--border); background: var(--paper); box-shadow: var(--shadow); }
.window-bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 6px 12px; color: var(--paper); background: var(--ink); font: 21px "VT323", monospace; letter-spacing: .04em; }
.window-controls { display: flex; gap: 7px; }
.window-controls i { display: block; width: 13px; height: 13px; background: var(--paper); border: 1px solid var(--paper); }
.window-controls i:first-child { background: var(--orange); }
.window-content { padding: clamp(24px, 5vw, 64px); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, .6fr); gap: 48px; align-items: center; }
.eyebrow, .priority-label, .detail-kicker { margin: 0 0 12px; color: var(--muted); font: 20px "VT323", monospace; text-transform: uppercase; letter-spacing: .08em; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(54px, 9vw, 118px); line-height: .78; letter-spacing: -.075em; }
.hero h1 span { display: block; margin: .18em 0 .1em; color: var(--orange); font-family: "Permanent Marker", cursive; font-size: .84em; font-weight: 400; letter-spacing: -.045em; transform: rotate(-2deg); }
.hero-copy { max-width: 700px; margin: 34px 0 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.4; }
.hero-side { display: grid; place-items: center; gap: 18px; }
.hero-side [data-logo] { width: min(250px, 80%); aspect-ratio: 1; }
.hero-side .nb-cutout { fill: var(--paper); }
.status-stamp { padding: 8px 13px; background: var(--acid); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 20px "VT323", monospace; transform: rotate(2deg); }

.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 34px; }
.section-intro h2, .career-intro h2 { margin: 0; max-width: 760px; font-size: clamp(42px, 7vw, 84px); line-height: .9; letter-spacing: -.06em; }
.section-intro p:last-child { margin: 0; font-size: 18px; line-height: 1.55; }
.note-tape { display: inline-block; margin: 0 0 16px; padding: 5px 12px; background: var(--acid); font: 20px "VT323", monospace; transform: rotate(-1.5deg); }

.inline-project { border-top: 2px solid var(--ink); }
.inline-project:last-child { border-bottom: 2px solid var(--ink); }
.inline-project__trigger { display: grid; grid-template-columns: 58px 1.1fr 1.6fr 100px; width: 100%; gap: 20px; align-items: center; padding: 20px 4px; text-align: left; border: 0; background: transparent; cursor: pointer; }
.inline-project__trigger:hover { background: var(--acid); }
.inline-project.is-featured .inline-project__trigger { background: var(--orange); }
.inline-project.is-featured .inline-project__trigger:hover { background: #ff7b24; }
.project-index { font: 26px "VT323", monospace; }
.inline-project__name { display: grid; font-size: 21px; font-weight: 700; }
.inline-project__name small { color: var(--muted); font: 17px "VT323", monospace; text-transform: uppercase; }
.is-featured .inline-project__name small { color: var(--ink); }
.inline-project__summary { color: #353832; line-height: 1.4; }
.open-label { justify-self: end; font: 20px "VT323", monospace; white-space: nowrap; }
.open-label b { font-size: 25px; }
.inline-project__panel { padding: 28px; border-top: 2px solid var(--ink); background: var(--white); }
.panel-meta, .dialog-meta, .project-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.panel-meta span, .dialog-meta span, .dialog-meta button, .project-card__meta span { padding: 4px 9px; border: 1px solid var(--ink); font: 17px "VT323", monospace; }
.dsmu-status-trigger, .wags-paw-trigger, .wip-status-trigger { color: var(--ink); background: transparent; cursor: pointer; transition: transform 140ms ease, background-color 140ms ease; }
.dsmu-status-trigger:hover, .dsmu-status-trigger:focus-visible, .wags-paw-trigger:hover, .wags-paw-trigger:focus-visible, .wip-status-trigger:hover, .wip-status-trigger:focus-visible { background: var(--white); }
.dsmu-status-trigger:focus-visible, .wags-paw-trigger:focus-visible, .wip-status-trigger:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
.dsmu-status-trigger.is-tapped { background: var(--orange); transform: rotate(-1.5deg) scale(1.04); }
.dsmu-status-trigger.is-unlocked { background: var(--acid); font-weight: 700; }
.wags-paw-trigger.is-pawing { background: var(--acid); transform: rotate(1.5deg) scale(1.04); }
.wip-status-trigger { max-width: min(100%, 560px); white-space: normal; text-align: left; }
.wip-status-trigger.is-updating { background: var(--acid); transform: rotate(-1deg) scale(1.02); }
.dialog-inner { position: relative; }
.wags-paw-trail { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.wags-paw { position: absolute; width: 46px; height: 46px; opacity: 0; transform: rotate(var(--paw-rotate)); animation: wags-paw-stamp 2.5s ease forwards; animation-delay: var(--paw-delay); }
.wags-paw:nth-child(1) { left: 4%; top: 80%; --paw-rotate: -18deg; --paw-delay: 0ms; }
.wags-paw:nth-child(2) { left: 20%; top: 68%; --paw-rotate: 14deg; --paw-delay: 130ms; }
.wags-paw:nth-child(3) { left: 36%; top: 58%; --paw-rotate: -16deg; --paw-delay: 260ms; }
.wags-paw:nth-child(4) { left: 53%; top: 43%; --paw-rotate: 17deg; --paw-delay: 390ms; }
.wags-paw:nth-child(5) { left: 69%; top: 31%; --paw-rotate: -14deg; --paw-delay: 520ms; }
.wags-paw:nth-child(6) { left: 85%; top: 16%; --paw-rotate: 16deg; --paw-delay: 650ms; }
.wags-paw i, .wags-paw b { position: absolute; display: block; background: var(--orange); border: 2px solid var(--ink); }
.wags-paw i { width: 10px; height: 12px; border-radius: 50%; }
.wags-paw i:nth-child(1) { left: 2px; top: 11px; transform: rotate(-24deg); }
.wags-paw i:nth-child(2) { left: 12px; top: 2px; transform: rotate(-9deg); }
.wags-paw i:nth-child(3) { left: 25px; top: 2px; transform: rotate(9deg); }
.wags-paw i:nth-child(4) { left: 35px; top: 11px; transform: rotate(24deg); }
.wags-paw b { left: 10px; top: 18px; width: 27px; height: 24px; border-radius: 52% 52% 45% 45%; }
.wags-paw:nth-child(even) i, .wags-paw:nth-child(even) b { background: var(--acid); }
.wags-logo-stamp { position: absolute; top: 7%; right: 4%; display: grid; justify-items: center; gap: 12px; width: min(210px, 34vw); opacity: 0; transform: rotate(-3deg) scale(.68); animation: wags-stamp-arrive 3.4s .8s ease forwards; }
.wags-logo-stamp__diamond { display: grid; place-items: center; width: 112px; aspect-ratio: 1; background: var(--orange); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transform: rotate(45deg); }
.wags-logo-stamp__diamond img { display: block; width: 78%; height: 78%; object-fit: contain; transform: rotate(-45deg); }
.wags-logo-stamp strong { margin-top: 20px; padding: 5px 8px; color: var(--ink); background: var(--acid); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 20px "VT323", monospace; text-align: center; }
@keyframes wags-paw-stamp { 0% { opacity: 0; scale: .72; } 14%, 72% { opacity: .82; scale: 1; } 100% { opacity: 0; translate: 0 -8px; } }
@keyframes wags-stamp-arrive { 0% { opacity: 0; transform: rotate(-8deg) scale(.68); } 14%, 78% { opacity: .96; transform: rotate(-3deg) scale(1); } 88% { opacity: .96; transform: rotate(1deg) scale(1.04); } 100% { opacity: 0; transform: rotate(-2deg) scale(.94); } }
@media (max-width: 620px) { .wags-paw { width: 38px; height: 38px; scale: .78; } .wags-logo-stamp { top: 9%; right: 3%; width: 150px; } .wags-logo-stamp__diamond { width: 78px; box-shadow: 4px 4px 0 var(--ink); } .wags-logo-stamp strong { margin-top: 14px; font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .dsmu-status-trigger, .wags-paw-trigger, .wip-status-trigger { transition: none; } .dsmu-status-trigger.is-tapped, .wags-paw-trigger.is-pawing, .wip-status-trigger.is-updating { transform: none; } .wags-paw { animation: none; opacity: .58; } .wags-logo-stamp { animation: none; opacity: .96; transform: rotate(-3deg); } }

.project-detail-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 30px; }
.story-copy { margin: 0 0 24px; font-size: 19px; line-height: 1.6; }
.technical-notes { padding: 14px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.technical-notes summary { cursor: pointer; font: 22px "VT323", monospace; }
.technical-notes p { line-height: 1.55; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; list-style: none; }
.tag-list li { padding: 4px 8px; background: var(--acid); border: 1px solid var(--ink); font: 17px "VT323", monospace; }
.project-links { margin-top: 22px; }
.text-link { display: inline-block; margin-right: 14px; font-weight: 700; text-underline-offset: 4px; }
.text-link:hover, .text-link:focus-visible { color: var(--orange); }
.no-link { display: inline-block; max-width: 420px; color: var(--muted); font: 18px "VT323", monospace; line-height: 1.25; }

.project-media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; }
.project-media--single { grid-template-columns: 1fr; }
.project-media figure { min-height: 170px; margin: 0; overflow: hidden; border: 2px solid var(--ink); background: var(--desktop); }
.project-media figure:first-child:nth-last-child(3) { grid-column: 1 / -1; min-height: 230px; }
.project-media img { display: block; width: 100%; height: 100%; min-height: 170px; object-fit: cover; }
.project-media figcaption { padding: 4px 8px; color: var(--paper); background: var(--ink); font: 16px "VT323", monospace; }
.media-placeholder, .project-media--empty { display: grid; place-content: center; gap: 8px; min-height: 170px; padding: 24px; text-align: center; background: repeating-linear-gradient(135deg, var(--desktop), var(--desktop) 14px, #d7d8d0 14px, #d7d8d0 28px) !important; }
.media-placeholder span, .project-media--empty span { font: 24px "VT323", monospace; }
.media-placeholder small, .project-media--empty small { max-width: 250px; color: var(--muted); }

.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.project-card { grid-column: span 4; display: flex; min-height: 470px; padding: 0; flex-direction: column; text-align: left; border: 2px solid var(--ink); background: var(--white); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.project-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.project-card--featured { grid-column: span 8; }
.project-card__top { display: flex; justify-content: space-between; padding: 6px 10px; color: var(--paper); background: var(--ink); font: 17px "VT323", monospace; text-transform: uppercase; }
.project-card--featured .project-card__top { color: var(--ink); background: var(--orange); }
.project-card__visual { display: block; }
.card-media { height: 180px; border-bottom: 2px solid var(--ink); }
.project-card--featured .card-media { height: 220px; }
.card-media figure { height: 100%; margin: 0; border: 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .media-placeholder { height: 100%; }
.card-media figcaption { display: none; }
.project-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.project-card__title { font-size: 27px; font-weight: 700; line-height: 1; }
.project-card__summary { margin-top: 12px; color: #44473f; line-height: 1.45; }
.project-card__meta { margin: auto 0 0; padding-top: 18px; }
.project-card__action { display: flex; justify-content: space-between; padding: 10px 18px; border-top: 2px solid var(--ink); font: 19px "VT323", monospace; }
.is-placeholder { position: relative; }
.is-placeholder::after { content: "WIP"; position: absolute; top: 12px; right: -8px; z-index: 2; padding: 3px 8px; color: var(--ink); background: var(--acid); border: 1px solid var(--ink); font: 15px "VT323", monospace; transform: rotate(3deg); }
.inline-project.is-placeholder::after { top: 4px; }

.tiered-library { display: grid; gap: 46px; }
.library-label { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 21px "VT323", monospace; }
.library-label::after { content: ""; height: 2px; flex: 1; background: var(--ink); }
.featured-project { display: grid; grid-template-columns: 1fr 1.15fr; min-height: 410px; border: var(--border); background: var(--orange); box-shadow: var(--shadow); }
.featured-project__copy { display: flex; align-items: flex-start; flex-direction: column; justify-content: center; padding: clamp(26px, 5vw, 54px); }
.featured-project h3 { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: .9; letter-spacing: -.05em; }
.featured-project__showcase { display: grid; grid-template-rows: auto 1fr; min-width: 0; border-left: var(--border); }
.featured-media { min-height: 0; overflow: hidden; border-bottom: var(--border); }
.featured-media figure { margin: 0; overflow: hidden; }
.featured-media img { display: block; width: 100%; height: auto; object-fit: contain; }
.featured-media .media-placeholder { min-height: 280px; }
.featured-media figcaption { display: none; }
.featured-project__support { display: flex; align-items: flex-start; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 46px); }
.featured-project__support .priority-label { margin: 0 0 10px; }
.featured-project__support > p:last-child { max-width: 620px; margin: 0; font-size: 19px; line-height: 1.55; }
.os-button { margin-top: 12px; padding: 10px 14px; color: var(--paper); background: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--paper); font: 20px "VT323", monospace; cursor: pointer; }
.os-button:hover { color: var(--ink); background: var(--acid); }
.standard-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.standard-project { display: flex; min-height: 270px; padding: 22px; flex-direction: column; text-align: left; border: 2px solid var(--ink); background: var(--white); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; }
.standard-project:hover { background: var(--acid); }
.standard-project__label { color: var(--muted); font: 17px "VT323", monospace; text-transform: uppercase; }
.standard-project__title { margin-top: 18px; font-size: 28px; font-weight: 700; line-height: 1; }
.standard-project__summary { margin-top: 12px; color: #464940; line-height: 1.45; }
.standard-project__bottom { display: flex; justify-content: space-between; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ink); font: 17px "VT323", monospace; }
.archive-projects { border-top: 2px solid var(--ink); }
.archive-project { position: relative; display: grid; grid-template-columns: 50px 1.1fr 2fr 100px 24px; width: 100%; gap: 16px; align-items: center; padding: 14px 8px; text-align: left; border: 0; border-bottom: 2px solid var(--ink); background: transparent; cursor: pointer; }
.archive-project:hover { background: var(--acid); }
.archive-project > span:first-child, .archive-project > span:nth-last-child(2) { font: 17px "VT323", monospace; }
.archive-project::after { top: 8px; right: 30px; }

.project-dialog { width: min(1050px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; border: var(--border); background: var(--paper); box-shadow: 10px 10px 0 var(--ink); }
.project-dialog::backdrop { background: rgba(16, 18, 16, .76); backdrop-filter: blur(3px); }
.dialog-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding-left: 13px; color: var(--paper); background: var(--ink); font: 20px "VT323", monospace; }
.dialog-close { align-self: stretch; width: 48px; color: var(--ink); background: var(--orange); border: 0; border-left: 2px solid var(--paper); font-size: 28px; cursor: pointer; }
.dialog-inner { padding: clamp(24px, 5vw, 52px); }
.dialog-priority { display: inline-block; padding: 4px 9px; background: var(--acid); border: 1px solid var(--ink); font: 18px "VT323", monospace; text-transform: uppercase; }
.project-dialog h2 { margin: 18px 0 12px; font-size: clamp(40px, 7vw, 76px); line-height: .9; letter-spacing: -.055em; }
.dialog-summary { max-width: 750px; margin: 0 0 24px; font-size: 20px; line-height: 1.5; }

.career-content { padding-bottom: 0; }
.career-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end; margin-bottom: 46px; }
.career-intro > p { margin: 0; font-size: 20px; line-height: 1.55; }
.career-facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); }
.career-fact { padding: 20px; background: var(--white); }
.career-fact + .career-fact { border-left: 2px solid var(--ink); }
.career-fact strong { display: block; color: var(--orange); font-size: 38px; line-height: 1; }
.career-fact span { font: 18px "VT323", monospace; }
.experience-list { margin-top: 46px; }
.experience-row { display: grid; grid-template-columns: 150px 1fr 1.4fr; gap: 30px; padding: 24px 0; border-top: 2px solid var(--ink); }
.experience-row time { font: 21px "VT323", monospace; }
.experience-row h3 { margin: 0; font-size: 23px; }
.experience-row p { margin: 0; line-height: 1.55; }

.contact-band { margin-top: 70px; padding: 70px 0 54px; background: var(--orange); border-top: var(--border); border-bottom: var(--border); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 45px; align-items: end; }
.contact-band h2 { margin: 0; font-size: clamp(70px, 14vw, 170px); line-height: .68; letter-spacing: -.08em; }
.contact-band h2 span { display: block; color: var(--white); font: .48em "Permanent Marker", cursive; letter-spacing: -.03em; transform: rotate(-2deg); }
.contact-copy { font-size: 20px; line-height: 1.5; }
.social-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.social-links a { padding: 9px 13px; color: var(--paper); background: var(--ink); border: 2px solid var(--ink); text-decoration: none; font: 20px "VT323", monospace; }
.social-links a:hover { color: var(--ink); background: var(--acid); }
.site-footer { padding: 38px 0 48px; background: var(--paper); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-mark { display: flex; align-items: center; gap: 20px; }
.footer-mark [data-logo] { width: 74px; height: 74px; }
.footer-mark .nb-cutout { fill: var(--paper); }
.footer-project { margin: 0; color: var(--orange); font: 24px "VT323", monospace; }
.footer-note { margin: 3px 0 0; color: var(--muted); }
.footer-signature { color: var(--orange); font: 30px "Permanent Marker", cursive; transform: rotate(-2deg); }

@media (max-width: 900px) {
  .hero-grid, .career-intro, .contact-grid, .project-detail-grid, .featured-project { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .section-intro { grid-template-columns: 1fr; }
  .inline-project__trigger { grid-template-columns: 46px 1fr 90px; }
  .inline-project__summary { grid-column: 2 / -1; }
  .project-card, .project-card--featured { grid-column: span 6; }
  .featured-project__showcase { border-top: var(--border); border-left: 0; }
  .featured-media { min-height: 0; height: auto; }

  .standard-projects { grid-template-columns: repeat(2, 1fr); }
  .experience-row { grid-template-columns: 130px 1fr; }
  .experience-row p { grid-column: 2; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 22px, 1180px); }
  .site-header { padding: 16px 0; }
  .nav-links { gap: 10px; font-size: 17px; }
  .brand { font-size: 19px; }
  .brand [data-logo] { width: 42px; height: 42px; }
  .window-content { padding: 22px 17px; }
  .hero h1 { font-size: clamp(48px, 18vw, 78px); }
  .project-card, .project-card--featured { grid-column: 1 / -1; }
  .standard-projects { grid-template-columns: 1fr; }
  .inline-project__trigger { grid-template-columns: 36px 1fr 70px; gap: 10px; }
  .inline-project__summary { font-size: 14px; }
  .inline-project__panel { padding: 20px 12px; }
  .archive-project { grid-template-columns: 35px 1fr 24px; }
  .archive-project > span:nth-child(3), .archive-project > span:nth-child(4) { display: none; }
  .career-facts { grid-template-columns: 1fr; }
  .career-fact + .career-fact { border-top: 2px solid var(--ink); border-left: 0; }
  .experience-row { grid-template-columns: 1fr; gap: 8px; }
  .experience-row p { grid-column: 1; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .prototype-switcher span { width: 100%; text-align: center; }
}

/* Stage-two comparison: wide-screen treatments */
body.margin-treatment-clean .os-window { width: min(1480px, calc(100% - 72px)); }
body.margin-treatment-clean .site-header.shell { width: min(1480px, calc(100% - 72px)); }

body.margin-treatment-ambient { position: relative; }
body.margin-treatment-ambient::before,
body.margin-treatment-ambient::after {
  position: fixed;
  z-index: -1;
  color: rgba(16, 18, 16, .24);
  font: 24px "VT323", monospace;
  line-height: 1.9;
  white-space: pre;
  pointer-events: none;
}
body.margin-treatment-ambient::before {
  content: "C:\PROJECTS\0A  DSMU.EXE\0A  PSDESK.PS1\0A  WAGS.HTML\0A\0A[ IDEAS ]\0A  BUILD\0A  BREAK\0A  LEARN";
  top: 190px;
  left: max(26px, calc(50vw - 820px));
  transform: rotate(-2deg);
}
body.margin-treatment-ambient::after {
  content: "STATUS.LOG\0A\0A● ONLINE\0A● CURIOUS\0A● INCOMPLETE\0A\0A// KEEP\0A// TINKERING";
  top: 330px;
  right: max(26px, calc(50vw - 820px));
  text-align: right;
  transform: rotate(2deg);
}
body.margin-treatment-ambient .os-window,
body.margin-treatment-ambient .site-header.shell { width: min(1240px, calc(100% - 260px)); }

/* Modal gallery and expanded screenshot viewer */
.modal-gallery { min-width: 0; }
.gallery-main {
  display: grid;
  width: 100%;
  min-height: 360px;
  padding: 0;
  place-items: stretch;
  border: 2px solid var(--ink);
  background: var(--desktop);
  cursor: zoom-in;
}
.gallery-frame {
  position: relative;
  display: grid;
  min-height: inherit;
  place-items: center;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--desktop), var(--desktop) 14px, #d7d8d0 14px, #d7d8d0 28px);
}
.gallery-frame img { display: block; width: 100%; height: 100%; max-height: 560px; object-fit: contain; object-position: center; background: #20221f; }
.gallery-main .gallery-frame img { width: auto; height: auto; max-width: 100%; max-height: 560px; }
.media-frame--trimmed-wide img,
.gallery-frame--trimmed-wide img { clip-path: inset(1.4% .8%); transform: scale(1.018, 1.028); transform-origin: center; }
.media-frame--trimmed-square img,
.gallery-frame--trimmed-square img { clip-path: inset(1.4% 1.2%); transform: scale(1.026, 1.028); transform-origin: center; }
.gallery-frame__placeholder { display: grid; gap: 8px; padding: 30px; place-items: center; text-align: center; }
.gallery-frame__placeholder strong { font: 28px "VT323", monospace; }
.gallery-frame__placeholder small { color: var(--muted); }
.gallery-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  color: var(--paper);
  background: var(--ink);
  font: 17px "VT323", monospace;
}
.gallery-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(70px, 1fr)); gap: 8px; margin-top: 9px; }
.gallery-thumb { min-width: 0; padding: 0; border: 2px solid var(--ink); background: var(--desktop); cursor: pointer; }
.gallery-thumb[aria-current="true"] { outline: 4px solid var(--orange); outline-offset: -4px; }
.gallery-thumb .gallery-frame { min-height: 84px; }
.gallery-thumb .gallery-frame img { height: 84px; object-fit: cover; }
.gallery-thumb .gallery-frame__placeholder { min-height: 84px; padding: 8px; }
.gallery-thumb .gallery-frame__placeholder strong { font-size: 15px; }
.gallery-thumb .gallery-frame__placeholder small,
.gallery-thumb .gallery-zoom-hint { display: none; }

.image-lightbox {
  width: min(1500px, calc(100% - 28px));
  height: min(920px, calc(100vh - 28px));
  padding: 0;
  color: var(--paper);
  border: 3px solid var(--paper);
  background: #0d0f0d;
}
.image-lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding-left: 14px; border-bottom: 2px solid var(--paper); font: 20px "VT323", monospace; }
.lightbox-close { align-self: stretch; width: 52px; color: var(--ink); background: var(--orange); border: 0; border-left: 2px solid var(--paper); font-size: 30px; cursor: pointer; }
.lightbox-stage { position: relative; display: grid; height: calc(100% - 98px); padding: 22px 76px; place-items: center; }
.lightbox-stage [data-lightbox-image] { width: 100%; height: 100%; min-width: 0; min-height: 0; }
.lightbox-stage .gallery-frame { width: 100%; height: 100%; min-height: 0; background: #171a17; }
.lightbox-stage .gallery-frame img { width: auto; height: auto; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.lightbox-stage .gallery-frame__placeholder small { color: #bbbdb7; }
.lightbox-nav { position: absolute; top: 50%; width: 48px; height: 64px; color: var(--paper); background: var(--ink); border: 2px solid var(--paper); font-size: 30px; transform: translateY(-50%); cursor: pointer; }
.lightbox-nav:disabled { opacity: .24; cursor: not-allowed; }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-caption { display: flex; justify-content: space-between; min-height: 48px; padding: 11px 16px; border-top: 2px solid var(--paper); font: 19px "VT323", monospace; }
.gallery-end-card { position: relative; display: grid; width: 100%; height: 100%; min-height: 260px; padding: clamp(24px, 7vw, 72px); place-content: center; place-items: center; overflow: hidden; border: 2px solid var(--paper); background: repeating-linear-gradient(135deg, #111411, #111411 18px, #171a17 18px, #171a17 36px); text-align: center; }
.gallery-end-card::before { content: ""; position: absolute; inset: 18px; border: 1px solid #555950; pointer-events: none; }
.gallery-end-card span { z-index: 1; margin-bottom: 22px; padding: 5px 9px; color: var(--ink); background: var(--acid); border: 2px solid var(--paper); font: 20px "VT323", monospace; }
.gallery-end-card strong { z-index: 1; max-width: 900px; color: var(--paper); font-size: clamp(48px, 9vw, 118px); line-height: .86; letter-spacing: -.06em; }
.gallery-end-card em { z-index: 1; margin-top: 18px; color: var(--orange); font: clamp(34px, 6vw, 76px) "Permanent Marker", cursive; transform: rotate(-3deg); }
.gallery-end-actions { z-index: 1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.gallery-end-actions button { padding: 6px 10px; color: #b8bbb4; background: transparent; border: 1px solid #6e7269; font: 18px "VT323", monospace; cursor: pointer; }
.gallery-end-actions button:hover, .gallery-end-actions button:focus-visible { color: var(--ink); background: var(--acid); border-color: var(--paper); }
.gallery-end-actions i { color: #6e7269; font: 18px "VT323", monospace; }

/* Career comparison patterns */
.career-chapter {
  display: grid;
  grid-template-columns: 150px minmax(220px, .8fr) minmax(300px, 1.3fr);
  gap: 28px;
  padding: 30px 0;
  border-top: 2px solid var(--ink);
}
.career-chapter time { font: 21px "VT323", monospace; }
.career-chapter h3 { margin: 0 0 7px; font-size: 26px; }
.career-role { margin: 0; color: var(--muted); font: 18px "VT323", monospace; }
.career-chapter__story > p { margin-top: 0; line-height: 1.55; }
.career-subroles { display: grid; gap: 16px; margin-top: 22px; }
.career-subrole { padding-top: 14px; border-top: 1px solid var(--ink); }
.career-subrole h4 { margin: 0; font-size: 19px; line-height: 1.3; }
.career-subrole p { margin: 7px 0 0; line-height: 1.5; }
.career-subrole .career-subrole__meta { color: var(--muted); font: 17px "VT323", monospace; }

.skill-evidence { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.skill-evidence span { padding: 5px 9px; background: var(--acid); border: 1px solid var(--ink); font: 17px "VT323", monospace; }
.chapter-quote { grid-column: 2 / -1; margin: -8px 0 0; padding: 18px 22px; background: var(--white); border-left: 7px solid var(--orange); }
.chapter-quote p { margin: 0; font-size: 18px; line-height: 1.5; }
.chapter-quote cite { display: block; margin-top: 9px; color: var(--muted); font: 17px "VT323", monospace; font-style: normal; }
.chapter-quote__details { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--ink); }
.chapter-quote__details summary { width: fit-content; padding: 6px 9px; color: var(--ink); background: var(--acid); border: 1px solid var(--ink); font: 18px "VT323", monospace; list-style: none; cursor: pointer; }
.chapter-quote__details summary::-webkit-details-marker { display: none; }
.chapter-quote__details summary:hover { background: var(--orange); }
.chapter-quote__details summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.chapter-quote__details p { margin-top: 14px; padding-right: 10px; font-size: 17px; }


.testimonial-section { margin-top: 48px; padding-top: 34px; border-top: 3px solid var(--ink); }
.testimonial-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin-bottom: 24px; }
.testimonial-heading h3 { margin: 0; font-size: clamp(36px, 5vw, 62px); line-height: .95; }
.testimonial-heading p { margin: 0; line-height: 1.55; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial-card { display: flex; min-height: 260px; padding: 22px; flex-direction: column; background: var(--white); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.testimonial-card::before { content: "“"; color: var(--orange); font: 60px/0.7 Georgia, serif; }
.testimonial-card blockquote { margin: 18px 0; line-height: 1.55; }
.testimonial-card cite { margin-top: auto; color: var(--muted); font: 17px "VT323", monospace; font-style: normal; }

.review-roadmap { margin: 0 auto 54px; padding: 18px 22px; color: var(--paper); background: var(--ink); border: var(--border); box-shadow: var(--shadow); }
.review-roadmap strong { color: var(--acid); font: 20px "VT323", monospace; }
.review-roadmap span { color: #bfc1ba; }

@media (max-width: 1500px) {
  body.margin-treatment-ambient::before,
  body.margin-treatment-ambient::after { display: none; }
  body.margin-treatment-ambient .os-window,
  body.margin-treatment-ambient .site-header.shell { width: min(1180px, calc(100% - 36px)); }
}
@media (max-width: 900px) {
  body.margin-treatment-clean .os-window,
  body.margin-treatment-clean .site-header.shell { width: min(1180px, calc(100% - 36px)); }
  .career-chapter { grid-template-columns: 120px 1fr; }
  .career-chapter__story { grid-column: 2; }
  .chapter-quote { grid-column: 2; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-card { min-height: 0; }
  .gallery-thumbnails { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .career-chapter { grid-template-columns: 1fr; gap: 9px; }
  .career-chapter__story,
  .chapter-quote { grid-column: 1; }
  .testimonial-heading { grid-template-columns: 1fr; }
  .gallery-main { min-height: 250px; }
  .gallery-thumbnails { grid-template-columns: repeat(2, 1fr); }
  .lightbox-stage { padding: 16px 52px; }
  .lightbox-nav { width: 38px; }
}
.margin-switch { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-left: 18px; }
.margin-switch b { color: var(--paper); font: 18px "VT323", monospace; }
.margin-switch button { padding: 4px 8px; color: var(--paper); background: transparent; border: 1px solid #777a74; font: 17px "VT323", monospace; cursor: pointer; }
.margin-switch button[aria-pressed="true"] { color: var(--ink); background: var(--acid); border-color: var(--acid); }
/* Stage three: introduction and navigation comparisons */
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.intro-actions a { padding: 9px 13px; border: 2px solid var(--ink); text-decoration: none; font: 20px "VT323", monospace; }
.intro-actions a:first-child { color: var(--paper); background: var(--ink); box-shadow: 4px 4px 0 var(--orange); }
.intro-actions a:last-child { background: var(--acid); box-shadow: 4px 4px 0 var(--ink); }
.intro-actions a.intro-action-utility { color: var(--ink); background: var(--acid); box-shadow: 4px 4px 0 var(--ink); }
.intro-practical-line { display: flex; flex-wrap: wrap; margin-top: 24px; padding-top: 13px; border-top: 2px solid var(--ink); font: 17px "VT323", monospace; }
.intro-practical-line span + span::before { content: " / "; padding: 0 9px; color: var(--orange); }
@media (max-width: 620px) {
  .intro-practical-line { flex-direction: column; gap: 5px; }
  .intro-practical-line span + span::before { content: ""; padding: 0; }
}

.intro-role-line { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; padding: 0; list-style: none; }
.intro-role-line li { padding: 4px 8px; border: 1px solid var(--ink); font: 17px "VT323", monospace; }
.intro-role-line [data-rubber-duck] {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.intro-role-line [data-rubber-duck]:focus-visible { outline: 3px solid var(--acid); outline-offset: 5px; }
.intro-role-line [data-rubber-duck].is-duck-tapped { color: var(--acid); animation: duck-trigger-nudge 180ms steps(2, end); }
@keyframes duck-trigger-nudge { 50% { transform: translateY(-3px) rotate(-1deg); } }

/* Easter egg 10: rubber-duck debugging assistant */
.rubber-duck-debugger {
  position: fixed;
  z-index: 1300;
  bottom: 22px;
  left: 22px;
  width: min(390px, calc(100% - 44px));
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--acid);
  opacity: 0;
  transform: translateY(18px) rotate(-1deg);
  transition: opacity 180ms ease, transform 180ms ease;
}
.rubber-duck-debugger.is-visible { opacity: 1; transform: translateY(0) rotate(-1deg); }
.rubber-duck-debugger__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 5px 7px 5px 12px;
  color: var(--ink);
  background: var(--acid);
  font: 18px "VT323", monospace;
}
.rubber-duck-debugger__close {
  width: 26px;
  height: 24px;
  padding: 0;
  color: var(--white);
  background: var(--ink);
  border: 0;
  font: 22px/1 "VT323", monospace;
  cursor: pointer;
}
.rubber-duck-debugger__close:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.rubber-duck-debugger__body {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 15px 16px 17px;
}
.rubber-duck-debugger__copy strong { display: block; color: var(--orange); font: 30px/0.95 "VT323", monospace; }
.rubber-duck-debugger__copy span { display: block; margin-top: 8px; color: var(--white); font: 17px "VT323", monospace; }
.rubber-duck {
  position: relative;
  width: 92px;
  height: 78px;
  transform: rotate(-4deg);
}
.rubber-duck__body {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 70px;
  height: 48px;
  background: #ffd83d;
  border: 3px solid var(--white);
  border-radius: 52% 56% 48% 48%;
}
.rubber-duck__body::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 14px;
  width: 31px;
  height: 20px;
  border: 3px solid var(--ink);
  border-radius: 55%;
  transform: rotate(-12deg);
}
.rubber-duck__head {
  position: absolute;
  left: 8px;
  top: 2px;
  width: 46px;
  height: 46px;
  background: #ffd83d;
  border: 3px solid var(--white);
  border-radius: 50%;
  z-index: 2;
}
.rubber-duck__head::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
}
.rubber-duck__head::after {
  content: "";
  position: absolute;
  left: -15px;
  top: 23px;
  width: 24px;
  height: 12px;
  background: var(--orange);
  border: 2px solid var(--white);
  border-radius: 65% 20% 30% 65%;
}
@media (max-width: 620px) {
  .rubber-duck-debugger { bottom: 12px; left: 11px; width: calc(100% - 22px); box-shadow: 5px 5px 0 var(--acid); }
  .rubber-duck-debugger__body { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding-inline: 12px; }
  .rubber-duck { transform: scale(.86) rotate(-4deg); transform-origin: left center; }
  .rubber-duck-debugger__copy strong { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-role-line [data-rubber-duck].is-duck-tapped { animation: none; }
  .rubber-duck-debugger { transition: none; }
}

/* Easter egg 11: NATHAN_OS terminal */
.nathan-terminal {
  width: min(900px, calc(100% - 30px));
  height: min(650px, calc(100dvh - 30px));
  padding: 0;
  color: var(--white);
  background: var(--ink);
  border: 3px solid var(--white);
  box-shadow: 11px 11px 0 var(--orange);
}
.nathan-terminal::backdrop { background: rgba(0, 0, 0, .88); backdrop-filter: blur(4px); }
.nathan-terminal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding-left: 14px;
  color: var(--ink);
  background: var(--orange);
  border-bottom: 3px solid var(--white);
  font: 21px "VT323", monospace;
}
.nathan-terminal__bar button {
  align-self: stretch;
  width: 48px;
  padding: 0;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-left: 3px solid var(--white);
  font: 30px/1 "VT323", monospace;
  cursor: pointer;
}
.nathan-terminal__bar button:focus-visible { outline: 4px solid var(--acid); outline-offset: -7px; }
.nathan-terminal__screen {
  display: flex;
  flex-direction: column;
  height: calc(100% - 78px);
  min-height: 0;
  padding: clamp(18px, 4vw, 34px);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 1px, transparent 1px, transparent 4px);
}
.nathan-terminal__output {
  flex: 1 1 auto;
  overflow: auto;
  padding-right: 8px;
  scrollbar-color: var(--acid) #191c19;
  scrollbar-width: thin;
}
.nathan-terminal__line { white-space: pre-wrap; overflow-wrap: anywhere; font: 20px/1.3 "VT323", monospace; }
.nathan-terminal__line + .nathan-terminal__line { margin-top: 5px; }
.nathan-terminal__line.is-ascii { color: var(--acid); font: 22px/1.05 monospace; }
.nathan-terminal__line.is-acid { color: var(--acid); }
.nathan-terminal__line.is-orange { color: var(--orange); }
.nathan-terminal__line.is-muted { color: #aeb5ae; }
.nathan-terminal__line.is-command { margin-top: 18px; color: var(--orange); }
.nathan-terminal__line.is-error { color: #ff7c7c; }
.nathan-terminal__form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 10px;
  gap: 9px;
  align-items: center;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid #5c625c;
  font: 21px "VT323", monospace;
}
.nathan-terminal__form label { color: var(--acid); }
.nathan-terminal__form input {
  width: 100%;
  min-width: 0;
  padding: 2px 0;
  color: var(--white);
  caret-color: var(--acid);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}
.nathan-terminal__cursor { width: 9px; height: 20px; background: var(--acid); animation: terminal-cursor 900ms steps(1, end) infinite; }
.nathan-terminal__hint {
  position: absolute;
  right: 12px;
  bottom: 5px;
  margin: 0;
  color: #aeb5ae;
  font: 15px "VT323", monospace;
}
@keyframes terminal-cursor { 50% { opacity: 0; } }
@media (max-width: 620px) {
  .nathan-terminal { width: calc(100% - 12px); height: calc(100dvh - 12px); box-shadow: 5px 5px 0 var(--orange); }
  .nathan-terminal__screen { padding: 16px 12px 28px; }
  .nathan-terminal__line { font-size: 18px; }
  .nathan-terminal__line.is-ascii { font-size: 17px; }
  .nathan-terminal__form { grid-template-columns: auto minmax(0, 1fr); gap: 6px; font-size: 18px; }
  .nathan-terminal__cursor { display: none; }
  .nathan-terminal__hint { right: 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .nathan-terminal__cursor { animation: none; } }

/* A: familiar Personal OS window with a friendly profile card */
.intro-profile-window .window-content { padding: 0; }
.intro-profile-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); min-height: 590px; }
.intro-profile-copy { display: flex; justify-content: center; flex-direction: column; padding: clamp(32px, 6vw, 78px); }
.intro-profile-copy h1 { margin: 0; max-width: 820px; font-size: clamp(55px, 8vw, 105px); line-height: .82; letter-spacing: -.07em; }
.intro-profile-copy h1 span { display: block; color: var(--orange); font-family: "Permanent Marker", cursive; font-size: .78em; font-weight: 400; letter-spacing: -.04em; transform: rotate(-1.5deg); }
.intro-profile-copy h1.profile-headline-v2 { font-size: clamp(50px, 6.3vw, 90px); line-height: .84; letter-spacing: -.055em; }
.intro-profile-copy h1.profile-headline-v2 span { margin: .23em 0 .2em; font-size: .53em; line-height: 1; letter-spacing: 0; }
.intro-profile-copy > p:not(.eyebrow) { max-width: 710px; margin: 26px 0 0; font-size: 20px; line-height: 1.55; }
.profile-photo-panel { position: relative; display: grid; min-height: 590px; place-items: end center; overflow: hidden; border-left: var(--border); background: var(--orange); }
.profile-photo-panel img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 42%; filter: saturate(.92) contrast(1.04); }
.profile-human-status { z-index: 2; padding: 5px 8px; color: var(--ink); background: var(--acid); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 18px "VT323", monospace; text-align: left; cursor: pointer; transition: transform 140ms ease, background-color 140ms ease; }
.profile-human-status:hover, .profile-human-status:focus-visible { background: var(--orange); }
.profile-human-status--desktop { position: absolute; top: 18px; left: 18px; max-width: 250px; transform: rotate(2deg); }
.profile-human-status--mobile { display: none; }
.profile-human-status.is-cycling { background: var(--orange); transform: rotate(-2deg) scale(1.04); }
@media (prefers-reduced-motion: reduce) { .profile-human-status { transition: none; } }
.profile-photo-note { position: absolute; right: 18px; bottom: 18px; max-width: 250px; margin: 0; padding: 8px 11px; background: var(--acid); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 18px "VT323", monospace; transform: rotate(-2deg); }

/* B: a support dossier with a compact, sticky application bar */
.site-header--taskbar { position: sticky; top: 0; z-index: 10; padding: 0; color: var(--paper); background: var(--ink); border-bottom: 3px solid var(--orange); }
.dossier-nav { display: flex; min-height: 68px; align-items: stretch; justify-content: space-between; }
.dossier-brand { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 0; text-decoration: none; font: 23px "VT323", monospace; }
.dossier-brand [data-logo] { width: 46px; height: 46px; }
.dossier-brand .nb-cutout { fill: var(--ink); stroke: #fff; }
.dossier-brand .nb-letters { stroke: #fff; }
.dossier-menu { display: flex; align-items: stretch; }
.dossier-menu a { display: grid; padding: 0 18px; place-items: center; border-left: 1px solid #5d605a; text-decoration: none; font: 19px "VT323", monospace; }
.dossier-menu a:hover { color: var(--ink); background: var(--acid); }
.dossier-hero { display: grid; grid-template-columns: 340px minmax(0, 1fr); margin: 22px auto 54px; border: var(--border); background: var(--paper); box-shadow: var(--shadow); }
.dossier-card { position: relative; padding: 28px; color: var(--paper); background: var(--ink); border-right: var(--border); }
.dossier-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 52% 37%; border: 3px solid var(--paper); filter: grayscale(.15) contrast(1.04); }
.dossier-id { display: grid; gap: 3px; margin-top: 18px; font: 18px "VT323", monospace; }
.dossier-id strong { color: var(--orange); font-size: 30px; }
.dossier-id span:last-child { color: #aeb1aa; }
.dossier-stamp { position: absolute; right: 14px; bottom: 19px; padding: 5px 9px; color: var(--ink); background: var(--acid); border: 2px solid var(--paper); font: 16px "VT323", monospace; transform: rotate(-5deg); }
.dossier-copy { display: flex; justify-content: center; flex-direction: column; padding: clamp(34px, 7vw, 86px); }
.dossier-copy h1 { margin: 0; max-width: 900px; font-size: clamp(62px, 9vw, 126px); line-height: .78; letter-spacing: -.075em; }
.dossier-copy h1 span { display: block; color: var(--orange); }
.dossier-lede { max-width: 760px; margin: 30px 0 0; font-size: 22px; line-height: 1.5; }
.dossier-aside { max-width: 650px; margin: 18px 0 0; color: var(--muted); font: 19px "VT323", monospace; }

/* C: editorial split, treating the portrait as a major piece of the introduction */
.site-header--editorial { padding: 0; background: var(--orange); border-bottom: var(--border); }
.editorial-nav { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 24px; }
.editorial-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.editorial-brand [data-logo] { width: 54px; height: 54px; }
.editorial-brand strong { color: var(--white); font: 29px "Permanent Marker", cursive; transform: rotate(-2deg); }
.editorial-menu { display: flex; flex-wrap: wrap; gap: 9px; }
.editorial-menu a { padding: 8px 11px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); text-decoration: none; font: 19px "VT323", monospace; }
.editorial-intro { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); min-height: 720px; margin: 22px auto 54px; overflow: hidden; border: var(--border); background: var(--paper); box-shadow: var(--shadow); }
.editorial-copy { position: relative; z-index: 2; display: flex; justify-content: center; flex-direction: column; padding: clamp(38px, 7vw, 90px); }
.editorial-copy h1 { margin: 0; max-width: 820px; font-size: clamp(62px, 8vw, 116px); line-height: .8; letter-spacing: -.075em; }
.editorial-copy h1 em { display: block; color: var(--orange); font-family: "Permanent Marker", cursive; font-size: .72em; font-style: normal; font-weight: 400; letter-spacing: -.04em; transform: rotate(-2deg); }
.editorial-copy > p:not(.eyebrow) { max-width: 720px; margin: 28px 0 0; font-size: 21px; line-height: 1.55; }
.editorial-photo { position: relative; min-height: 720px; border-left: var(--border); }
.editorial-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 53% 42%; }
.editorial-caption { position: absolute; left: -55px; bottom: 44px; width: 290px; padding: 16px 20px; color: var(--paper); background: var(--ink); border: 3px solid var(--paper); box-shadow: 6px 6px 0 var(--orange); font: 21px "VT323", monospace; transform: rotate(2deg); }
.editorial-caption strong { display: block; color: var(--acid); font-size: 25px; }
.editorial-mini-logo { position: absolute; top: 26px; right: 24px; width: 82px; height: 82px; padding: 11px; background: var(--paper); border: 2px solid var(--ink); transform: rotate(4deg); }

@media (max-width: 960px) {
  .intro-profile-grid,
  .dossier-hero,
  .editorial-intro { grid-template-columns: 1fr; }
  .profile-photo-panel { min-height: 520px; border-top: var(--border); border-left: 0; }
  .dossier-card { display: grid; grid-template-columns: 180px 1fr; gap: 20px; border-right: 0; border-bottom: var(--border); }
  .dossier-photo { aspect-ratio: 1; }
  .dossier-stamp { bottom: 12px; }
  .editorial-photo { min-height: 600px; border-top: var(--border); border-left: 0; }
  .editorial-caption { left: 24px; }
}
@media (max-width: 700px) {
  .dossier-nav,
  .editorial-nav { align-items: flex-start; flex-direction: column; padding: 10px 0; }
  .dossier-menu,
  .editorial-menu { width: 100%; overflow-x: auto; }
  .dossier-menu a { min-height: 44px; flex: 1; padding: 0 10px; border: 1px solid #5d605a; }
  .dossier-card { grid-template-columns: 1fr; }
  .dossier-photo { aspect-ratio: 4 / 3; }
  .profile-photo-panel,
  .editorial-photo { min-height: 440px; }
  .intro-profile-grid { min-height: 0; }
  .intro-profile-copy h1,
  .dossier-copy h1,
  .editorial-copy h1 { font-size: clamp(50px, 16vw, 80px); }
  .editorial-caption { left: 12px; bottom: 18px; width: calc(100% - 24px); }
}
/* Consolidated selected introduction */
.site-header--selected {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0;
  color: var(--ink);
  background: var(--orange);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 4px 0 rgba(16, 18, 16, .18);
}
.selected-nav { min-height: 76px; }
.selected-brand { color: var(--ink); font-weight: 700; }
.selected-brand [data-logo] {
  width: 52px;
  height: 52px;
}
.selected-brand .nb-frame { stroke: #fff; }
.selected-brand .nb-letters { color: #fff; stroke: #000; }
.selected-brand .nb-cutout { fill: var(--orange); stroke: #000; }
.selected-menu a {
  color: var(--ink);
  border-left: 2px solid var(--ink);
  font-weight: 700;
}
.selected-menu a:last-child { border-right: 2px solid var(--ink); }
.selected-menu a:hover,
.selected-menu a:focus-visible { color: var(--ink); background: var(--acid); }
.profile-mobile-id { display: none; }

@media (max-width: 960px) {
  .selected-nav {
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }
  .selected-brand { padding: 0; }
  .selected-menu { width: 100%; }
  .selected-menu a {
    min-width: max-content;
    min-height: 42px;
    padding: 0 11px;
    flex: 1;
    border: 1px solid var(--ink);
  }
  .selected-menu a:last-child { border-right: 1px solid var(--ink); }

  .intro-profile-window .intro-profile-grid { display: flex; flex-direction: column; }
  .intro-profile-window .profile-photo-panel {
    order: -1;
    display: grid;
    grid-template-columns: minmax(125px, 42%) 1fr;
    width: 100%;
    min-height: 220px;
    place-items: stretch;
    border-top: 0;
    border-right: 0;
    border-bottom: var(--border);
    border-left: 0;
    background: var(--ink);
  }
  .intro-profile-window .profile-photo-panel img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: 52% 36%;
    border-right: var(--border);
  }
  .intro-profile-window .profile-photo-note { display: none; }
  .profile-mobile-id {
    display: flex;
    min-width: 0;
    padding: 22px 16px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    color: var(--paper);
    font: 17px "VT323", monospace;
  }
  .profile-mobile-id strong {
    margin: 5px 0;
    color: var(--orange);
    font-size: clamp(23px, 7vw, 34px);
    line-height: .9;
  }
  .profile-mobile-id .profile-human-status--mobile {
    display: block;
    margin-top: 15px;
    padding: 4px 7px;
    color: var(--ink);
    background: var(--acid);
    border: 1px solid var(--paper);
    box-shadow: none;
    font: 17px "VT323", monospace;
    transform: rotate(-2deg);
  }
  .profile-human-status--desktop { display: none; }
  .intro-profile-copy { padding: 30px 20px 36px; }
}
/* Stage four: contact and footer comparisons */
.contact-option { margin-top: 72px; border-top: var(--border); }
.contact-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-socials a { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 150px; padding: 11px 14px; text-decoration: none; border: 2px solid var(--ink); font: 20px "VT323", monospace; }
.contact-socials a:hover { background: var(--acid); }
.contact-actions-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 1fr); gap: 14px; align-items: stretch; max-width: 820px; }
.contact-actions-grid .contact-socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-actions-grid .contact-socials a { min-width: 0; }
.monster-support { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; gap: 4px 18px; min-width: 0; min-height: 100%; padding: 16px 18px; color: var(--paper); background: var(--ink); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--orange); overflow: hidden; text-decoration: none; transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
.monster-support > span { color: var(--acid); font: 18px/1 "VT323", monospace; letter-spacing: .04em; }
.monster-support > strong { color: var(--orange); font: 27px/1 "Permanent Marker", cursive; transform: rotate(-1deg); transform-origin: left center; }
.monster-support > small { align-self: end; color: #c8cbc3; font-size: 13px; line-height: 1.35; }
.monster-support > b { grid-column: 2; grid-row: 1 / -1; align-self: center; color: var(--acid); font: 42px/1 "VT323", monospace; }
.monster-support:hover, .monster-support:focus-visible { color: var(--ink); background: var(--acid); box-shadow: 5px 5px 0 var(--orange); transform: translate(-2px, -2px); }
.monster-support:hover > span, .monster-support:focus-visible > span,
.monster-support:hover > b, .monster-support:focus-visible > b { color: var(--ink); }
.monster-support:hover > small, .monster-support:focus-visible > small { color: var(--ink); }

/* A: bold orange invitation and confident black sign-off */
.contact-invitation { padding: clamp(60px, 9vw, 118px) 0 70px; background: var(--orange); }
.invitation-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: clamp(35px, 7vw, 90px); align-items: end; }
.invitation-heading { margin: 0; max-width: 900px; font-size: clamp(72px, 12vw, 165px); line-height: .72; letter-spacing: -.085em; }
.invitation-heading span { display: block; color: var(--white); font: .43em "Permanent Marker", cursive; letter-spacing: -.04em; transform: rotate(-2deg); }
.invitation-copy { font-size: 20px; line-height: 1.55; }
.invitation-copy strong { display: block; margin-bottom: 13px; font-size: 27px; line-height: 1.2; }
.contact-invitation .contact-socials { margin-top: 26px; }
.contact-invitation .contact-socials a { color: var(--paper); background: var(--ink); box-shadow: 4px 4px 0 var(--paper); }
.contact-invitation .contact-socials a:hover { color: var(--ink); background: var(--acid); }
.invitation-footer { padding: 34px 0; color: var(--paper); background: var(--ink); }
.invitation-footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.invitation-footer-brand { display: flex; align-items: center; gap: 16px; }
.invitation-footer-brand [data-logo] { width: 68px; height: 68px; }
.invitation-footer-brand .nb-cutout { fill: var(--ink); stroke: #fff; }
.invitation-footer-brand .nb-letters { stroke: #fff; }
.invitation-footer-title { margin: 0; color: var(--orange); font: 24px "VT323", monospace; }
.invitation-footer-note { margin: 4px 0 0; color: #b7bab3; }
.invitation-footer-signature { color: var(--orange); font: 29px "Permanent Marker", cursive; transform: rotate(-2deg); }

/* B: contact console */
.contact-console-section { padding: 70px 0 80px; }
.contact-console { border: var(--border); background: var(--paper); box-shadow: var(--shadow); }
.contact-console-body { display: grid; grid-template-columns: .8fr 1.2fr; }
.console-intro { padding: clamp(30px, 6vw, 70px); color: var(--paper); background: var(--ink); }
.console-prompt { margin: 0 0 24px; color: var(--acid); font: 21px "VT323", monospace; }
.console-intro h2 { margin: 0; color: var(--orange); font-size: clamp(60px, 9vw, 118px); line-height: .78; letter-spacing: -.075em; }
.console-intro p:last-child { margin: 28px 0 0; font-size: 19px; line-height: 1.55; }
.console-channels { padding: clamp(30px, 6vw, 70px); }
.console-channels h3 { margin: 0 0 11px; font-size: 31px; }
.console-channels > p { margin: 0 0 25px; color: var(--muted); line-height: 1.55; }
.console-role-list { display: grid; gap: 8px; padding: 0; margin: 0 0 32px; list-style: none; }
.console-role-list li { display: flex; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.console-role-list li::before { content: "✓"; color: var(--orange); font-weight: 700; }
.console-links { display: grid; gap: 9px; }
.console-links a { display: grid; grid-template-columns: 30px 1fr auto; padding: 13px; align-items: center; border: 2px solid var(--ink); text-decoration: none; font: 20px "VT323", monospace; }
.console-links a:hover { background: var(--acid); }
.console-links b { color: var(--orange); }
.console-footer { padding: 21px 0 34px; background: var(--paper); border-top: 2px solid var(--ink); }
.console-footer-grid { display: flex; justify-content: space-between; gap: 20px; font: 18px "VT323", monospace; }
.console-footer-grid span:last-child { color: var(--muted); }

/* C: personal sign-off */
.personal-signoff { padding: 76px 0; color: var(--paper); background: var(--ink); }
.signoff-card { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(30px, 6vw, 74px); align-items: center; padding: clamp(28px, 6vw, 68px); color: var(--ink); background: var(--paper); border: 3px solid var(--paper); box-shadow: 10px 10px 0 var(--orange); }
.signoff-photo { width: 220px; height: 220px; object-fit: cover; object-position: 52% 34%; border: 3px solid var(--ink); border-radius: 50%; filter: grayscale(.08); }
.signoff-copy h2 { margin: 0; font-size: clamp(55px, 8vw, 105px); line-height: .8; letter-spacing: -.07em; }
.signoff-copy h2 span { display: block; color: var(--orange); font: .54em "Permanent Marker", cursive; letter-spacing: -.04em; transform: rotate(-2deg); }
.signoff-copy > p { max-width: 760px; margin: 28px 0; font-size: 20px; line-height: 1.55; }
.personal-signoff .contact-socials a { background: var(--white); box-shadow: 4px 4px 0 var(--ink); }
.personal-signoff .contact-socials a:hover { background: var(--acid); }
.signoff-stamp { position: absolute; top: 20px; right: 22px; padding: 5px 9px; background: var(--acid); border: 2px solid var(--ink); font: 17px "VT323", monospace; transform: rotate(3deg); }
.personal-footer { padding: 32px 0 42px; background: var(--orange); border-top: var(--border); }
.personal-footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.personal-footer-grid [data-logo] { width: 76px; height: 76px; justify-self: center; }
.personal-footer-grid .nb-frame { stroke: #fff; }
.personal-footer-grid .nb-cutout { fill: var(--orange); }
.personal-footer-left { font: 20px "VT323", monospace; }
.personal-footer-left strong { display: block; font-size: 25px; }
.footer-logo-image { display: block; width: 76px; height: 76px; justify-self: center; }

/* Privacy and local-storage notice */
.privacy-page .site-header { padding-bottom: 10px; }
.privacy-brand-logo { display: inline-flex; width: 46px; height: 46px; flex: 0 0 auto; }
.privacy-brand-logo img { display: block; width: 100%; height: 100%; }
.privacy-page .selected-menu { display: flex; }
.privacy-page .selected-menu a { min-width: 150px; justify-content: center; }
.privacy-window { margin-top: 22px; }
.privacy-content { padding: clamp(25px, 5vw, 64px); }
.privacy-heading { max-width: 900px; margin: 12px 0 24px; font-size: clamp(58px, 9vw, 118px); line-height: .78; letter-spacing: -.07em; }
.privacy-heading span { display: block; margin-top: .2em; color: var(--orange); font: .52em "Permanent Marker", cursive; letter-spacing: -.035em; transform: rotate(-1.5deg); }
.privacy-lead { max-width: 850px; margin: 0 0 30px; font-size: clamp(19px, 2vw, 24px); line-height: 1.55; }
.privacy-summary { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin: 0 0 42px; padding: 20px 22px; background: var(--acid); border: var(--border); box-shadow: 6px 6px 0 var(--ink); }
.privacy-summary strong { font: 24px "VT323", monospace; white-space: nowrap; }
.privacy-summary p { margin: 0; line-height: 1.5; }
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.privacy-section { min-width: 0; padding: clamp(22px, 4vw, 38px); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.privacy-section--wide { grid-column: 1 / -1; }
.privacy-section h2 { margin: 0 0 16px; font: 31px "VT323", monospace; letter-spacing: .025em; }
.privacy-section h2 span { color: var(--orange); }
.privacy-section h3 { margin: 24px 0 8px; font-size: 18px; }
.privacy-section p, .privacy-section li { line-height: 1.6; }
.privacy-section p:last-child { margin-bottom: 0; }
.privacy-section ul { margin: 12px 0 0; padding-left: 22px; }
.privacy-section code { padding: 2px 5px; background: rgba(92, 225, 255, .24); overflow-wrap: anywhere; font-family: "VT323", monospace; font-size: 1.1em; }
.privacy-section a, .privacy-updated a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.privacy-section a:hover, .privacy-updated a:hover { color: var(--orange); }
.privacy-updated { display: flex; justify-content: space-between; gap: 20px; margin: 28px 0 0; color: var(--muted); font: 18px "VT323", monospace; }
.scope-counter { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 11px; align-items: center; max-width: 390px; margin-top: 15px; padding: 10px 12px; color: var(--paper); background: var(--ink); border: 2px solid var(--paper); box-shadow: 4px 4px 0 var(--ink); text-align: left; cursor: pointer; transform: rotate(-1deg); transition: transform 140ms ease, border-color 140ms ease; }
.scope-counter:hover, .scope-counter:focus-visible { border-color: var(--acid); transform: rotate(0deg) scale(1.015); }
.scope-counter b { grid-row: 1 / span 2; color: var(--acid); font: 56px/0.8 "VT323", monospace; }
.scope-counter > span { font: 19px/1 "VT323", monospace; }
.scope-counter small { color: #b8bbb4; font: 15px "VT323", monospace; }
.scope-counter.is-attempting b { color: var(--orange); }
.scope-counter.is-resetting { border-color: var(--acid); }
@media (prefers-reduced-motion: reduce) { .scope-counter { transition: none; } }
.discovery-dock { padding: 0 0 32px; background: var(--ink); }
.selected-signoff { padding-bottom: 32px; }
.discovery-dock__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 22px; align-items: stretch; }
.discovery-privacy { grid-column: 1 / -1; text-align: center; font: 17px "VT323", monospace; letter-spacing: .04em; }
.discovery-privacy a { color: var(--paper); text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: color 140ms ease, text-decoration-color 140ms ease; }
.discovery-privacy a:hover, .discovery-privacy a:focus-visible { color: var(--acid); text-decoration-color: var(--acid); }
.discovery-tracker {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--acid);
  box-shadow: 5px 5px 0 var(--orange);
  text-align: left;
  cursor: pointer;
  transform: rotate(.5deg);
  transition: transform 140ms ease, background-color 140ms ease;
}
.discovery-tracker:hover, .discovery-tracker:focus-visible { color: var(--ink); background: var(--acid); transform: rotate(0deg) scale(1.015); }
.discovery-tracker > span { font: 17px "VT323", monospace; }
.discovery-tracker > strong { display: block; justify-self: end; font: 23px/1 "VT323", monospace; }
.discovery-tracker strong b { color: var(--orange); font: inherit; }
.discovery-tracker:hover strong b, .discovery-tracker:focus-visible strong b { color: var(--ink); }
.discovery-tracker small { grid-column: 1 / -1; color: #b8bbb4; font: 14px "VT323", monospace; }
.discovery-tracker:hover small, .discovery-tracker:focus-visible small { color: var(--ink); }
.discovery-dock .scope-counter { width: 100%; max-width: none; min-height: 100%; margin: 0; box-shadow: 5px 5px 0 var(--orange); transform: rotate(-.35deg); }
.discovery-dock .scope-counter:hover,
.discovery-dock .scope-counter:focus-visible { transform: rotate(0deg) scale(1.01); }

.discovery-log {
  width: min(680px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 9px 9px 0 var(--acid);
}
.discovery-log::backdrop { background: rgba(0, 0, 0, .82); backdrop-filter: blur(3px); }
.discovery-log__bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding-left: 12px; color: var(--ink); background: var(--acid); border-bottom: 3px solid var(--ink); font: 20px "VT323", monospace; }
.discovery-log__bar button { align-self: stretch; width: 46px; padding: 0; color: var(--white); background: var(--ink); border: 0; font: 28px/1 "VT323", monospace; cursor: pointer; }
.discovery-log__body { padding: clamp(22px, 5vw, 40px); }
.discovery-log__body > p { margin: 0 0 7px; color: #555b55; font: 17px "VT323", monospace; }
.discovery-log__body h2 { margin: 0 0 25px; font-size: clamp(32px, 7vw, 52px); line-height: .9; }
.discovery-log__body h2 b { color: var(--orange); }
.discovery-log__body ol { margin: 0 0 18px; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.discovery-log__body li { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 11px 5px; border-bottom: 2px solid var(--ink); }
.discovery-log__body li span, .discovery-log__body li em { font: 16px "VT323", monospace; font-style: normal; }
.discovery-log__body li strong { font-size: 16px; }
.discovery-log__body li em { color: #3d6c38; }
.discovery-log__body li.is-classified { color: #777c76; background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(0,0,0,.045) 8px 16px); }
.discovery-log__body li.is-classified em { color: #777c76; }
.discovery-log__body li.is-empty { display: block; color: #777c76; font: 17px "VT323", monospace; }
.discovery-log__body > small { font: 15px "VT323", monospace; }
.discovery-log__reset { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 2px solid var(--ink); }
.discovery-log__reset button { min-width: 190px; min-height: 44px; padding: 8px 13px; color: var(--paper); background: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--orange); font: 19px/1 "VT323", monospace; cursor: pointer; }
.discovery-log__reset button:hover, .discovery-log__reset button:focus-visible { color: var(--ink); background: var(--acid); }
.discovery-log__reset button[data-confirm="true"] { color: var(--ink); background: var(--orange); }
.discovery-log__reset span { color: #555b55; font: 15px/1 "VT323", monospace; text-align: right; }
@media (max-width: 620px) {
  .discovery-log { width: calc(100% - 12px); box-shadow: 5px 5px 0 var(--acid); }
  .discovery-dock { padding-bottom: 24px; }
  .discovery-dock__inner { grid-template-columns: 1fr; gap: 18px; }
  .selected-signoff { padding-bottom: 24px; }
  .discovery-tracker { box-shadow: 4px 4px 0 var(--orange); }
  .discovery-dock .scope-counter { min-height: 76px; box-shadow: 4px 4px 0 var(--orange); }
  .discovery-tracker > strong { justify-self: start; grid-column: 1 / -1; }
  .discovery-log__body li { grid-template-columns: 30px 1fr; }
  .discovery-log__body li em { grid-column: 2; }
  .discovery-log__reset { align-items: stretch; flex-direction: column; }
  .discovery-log__reset button { width: 100%; }
  .discovery-log__reset span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .discovery-tracker { transition: none; } }
.scroll-achievement { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(430px, calc(100% - 40px)); color: var(--paper); background: var(--ink); border: 3px solid var(--paper); box-shadow: 8px 8px 0 var(--orange); opacity: 0; pointer-events: none; transform: translateY(calc(100% + 40px)); transition: opacity 220ms ease, transform 220ms ease; }
.scroll-achievement.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-achievement__bar { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding-left: 10px; color: var(--ink); background: var(--acid); border-bottom: 2px solid var(--paper); font: 18px "VT323", monospace; }
.scroll-achievement__close { align-self: stretch; width: 40px; color: var(--ink); background: var(--orange); border: 0; border-left: 2px solid var(--ink); font-size: 24px; cursor: pointer; }
.scroll-achievement__body { padding: 18px 20px 20px; }
.scroll-achievement__body strong { display: block; color: var(--orange); font: 34px/0.95 "VT323", monospace; }
.scroll-achievement__body span { display: block; margin-top: 8px; color: #c8cbc3; font-size: 15px; }
@media (max-width: 620px) { .scroll-achievement { right: 10px; bottom: 10px; width: calc(100% - 20px); box-shadow: 5px 5px 0 var(--orange); } }
@media (prefers-reduced-motion: reduce) { .scroll-achievement { transition: none; } }
body.monster-powered { --acid: #8cff32; }
.contact-socials a.is-monster-fuelled, .monster-support.is-monster-fuelled { color: var(--ink); background: var(--acid); border-color: var(--ink); }
.monster-support.is-monster-fuelled { display: flex; align-items: center; justify-content: center; min-height: 88px; font: 28px "VT323", monospace; text-align: center; }
.monster-powerup { position: fixed; top: 20px; left: 50%; z-index: 65; width: min(560px, calc(100% - 32px)); color: var(--paper); background: var(--ink); border: 3px solid var(--paper); box-shadow: 8px 8px 0 var(--acid); opacity: 0; pointer-events: none; transform: translate(-50%, calc(-100% - 40px)) rotate(-1deg); transition: opacity 220ms ease, transform 220ms ease; }
.monster-powerup.is-visible { opacity: 1; transform: translate(-50%, 0) rotate(-1deg); }
.monster-powerup span { display: block; padding: 5px 10px; color: var(--ink); background: var(--acid); border-bottom: 2px solid var(--paper); font: 18px "VT323", monospace; }
.monster-powerup strong { display: block; padding: 15px 18px 2px; color: var(--acid); font: 35px/0.95 "VT323", monospace; }
.monster-powerup em { display: block; padding: 0 18px 16px; color: var(--orange); font: 24px "Permanent Marker", cursive; }
@media (max-width: 620px) { .monster-powerup { top: 10px; box-shadow: 5px 5px 0 var(--acid); } .monster-powerup strong { font-size: 29px; } .monster-powerup em { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .monster-powerup { transition: none; } }
body.papaya-mode {
  --orange: #ff8700;
  --acid: #00d2be;
  --desktop: #bfc2bd;
}
body.papaya-mode.monster-powered { --acid: #8cff32; }
body.papaya-mode::after {
  content: "";
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  height: 10px;
  background: conic-gradient(from 90deg, #fff 25%, #101210 0 50%, #fff 0 75%, #101210 0) 0 / 20px 20px;
  pointer-events: none;
}
body.papaya-mode .site-header--selected { box-shadow: 0 5px 0 var(--acid); }
.papaya-mode-banner {
  position: fixed;
  top: 96px;
  right: 20px;
  z-index: 65;
  width: min(390px, calc(100% - 40px));
  color: var(--white);
  background: var(--ink);
  border: 3px solid var(--white);
  box-shadow: 8px 8px 0 var(--orange);
  opacity: 0;
  transform: translateX(calc(100% + 40px)) rotate(1deg);
  transition: opacity 220ms ease, transform 220ms ease;
}
.papaya-mode-banner.is-visible { opacity: 1; transform: translateX(0) rotate(1deg); }
.papaya-mode-banner > div { display: flex; justify-content: space-between; align-items: stretch; color: var(--ink); background: var(--orange); border-bottom: 2px solid var(--white); font: 18px "VT323", monospace; }
.papaya-mode-banner > div span { padding: 6px 10px; }
.papaya-mode-banner button { padding: 5px 10px; color: var(--white); background: var(--ink); border: 0; border-left: 2px solid var(--white); font: inherit; cursor: pointer; }
.papaya-mode-banner strong { display: block; padding: 15px 16px 0; color: var(--acid); font: 32px/1 "VT323", monospace; }
.papaya-mode-banner em { display: block; padding: 1px 16px 5px; color: var(--orange); font: 22px "Permanent Marker", cursive; }
.papaya-mode-banner small { display: block; padding: 0 16px 15px; color: #bec4bd; font: 14px "VT323", monospace; }
@media (max-width: 620px) {
  .papaya-mode-banner { top: 150px; right: 10px; width: calc(100% - 20px); box-shadow: 5px 5px 0 var(--orange); }
  .papaya-mode-banner strong { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .papaya-mode-banner { transition: none; } }
.print-easter-egg { display: none; }
.print-return { position: fixed; right: 20px; bottom: 20px; z-index: 75; width: min(390px, calc(100% - 40px)); color: var(--white); background: var(--ink); border: 3px solid var(--white); box-shadow: 8px 8px 0 var(--acid); opacity: 0; transform: translateY(calc(100% + 40px)) rotate(-1deg); transition: opacity 220ms ease, transform 220ms ease; }
.print-return.is-visible { opacity: 1; transform: translateY(0) rotate(-1deg); }
.print-return span { display: block; padding: 5px 10px; color: var(--ink); background: var(--acid); border-bottom: 2px solid var(--white); font: 18px "VT323", monospace; }
.print-return strong { display: block; padding: 15px 16px 0; color: var(--orange); font: 30px/1 "VT323", monospace; }
.print-return em { display: block; padding: 2px 16px 15px; color: var(--white); font: 19px "VT323", monospace; font-style: normal; }
@media (max-width: 620px) { .print-return { right: 10px; bottom: 16px; width: calc(100% - 20px); box-shadow: 5px 5px 0 var(--acid); } }
@media (prefers-reduced-motion: reduce) { .print-return { transition: none; } }

@media print {
  @page { margin: 12mm; }
  *, *::before, *::after { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  html, body { color: #000 !important; background: #fff !important; }
  body::after,
  .skip-link,
  .site-header,
  .discovery-dock,
  .scope-counter,
  .scroll-achievement,
  .monster-powerup,
  .rubber-duck-debugger,
  .papaya-mode-banner,
  .print-return { display: none !important; }
  .print-easter-egg {
    display: block;
    margin: 0 0 12mm;
    padding: 8mm;
    color: #000;
    background: #fff;
    border: 3px solid #000;
    break-inside: avoid;
  }
  .print-easter-egg span { display: block; margin-bottom: 3mm; color: #555; font: 14pt "VT323", monospace; }
  .print-easter-egg strong { display: block; color: #000; font-size: 28pt; line-height: .9; }
  .print-easter-egg em { display: block; margin: 2mm 0 5mm; color: #d75300; font: 20pt "Permanent Marker", cursive; }
  .print-easter-egg small { font: 11pt "VT323", monospace; }
  .shell { width: 100% !important; }
  .os-window,
  .signoff-card { box-shadow: none !important; }
  .experience-row,
  .featured-project,
  .standard-project,
  .signoff-card { break-inside: avoid; }
  .personal-signoff,
  .personal-footer { color: #000 !important; background: #fff !important; }
}
.personal-footer-right { justify-self: end; text-align: right; }
.personal-footer-right strong { display: block; color: var(--white); font: 27px "Permanent Marker", cursive; transform: rotate(-2deg); }

@media (max-width: 900px) {
  .invitation-grid,
  .contact-console-body { grid-template-columns: 1fr; }
  .personal-signoff .signoff-card { grid-template-columns: 150px 1fr; }
  .signoff-photo { width: 150px; height: 150px; }
  .contact-actions-grid { grid-template-columns: 1fr; max-width: none; }
}
@media (max-width: 620px) {
  .invitation-footer-grid,
  .console-footer-grid { align-items: flex-start; flex-direction: column; }
  .personal-signoff .signoff-card { grid-template-columns: 1fr; }
  .signoff-photo { width: 140px; height: 140px; }
  .signoff-stamp { top: 14px; right: 12px; }
  .personal-footer-grid { grid-template-columns: 1fr auto; }
  .personal-footer-grid [data-logo] { grid-column: 2; grid-row: 1 / span 2; }
  .personal-footer-right { justify-self: start; text-align: left; }
  .footer-logo-image { grid-column: 2; grid-row: 1 / span 2; }
  .contact-socials a { flex: 1 1 100%; }
  .privacy-page .selected-nav { position: static; }
  .privacy-page .selected-menu { width: auto; }
  .privacy-page .selected-menu a { min-width: 0; border-left: 2px solid var(--ink); }
  .privacy-heading { font-size: 54px; }
  .privacy-summary, .privacy-grid { grid-template-columns: 1fr; }
  .privacy-summary { gap: 8px; }
  .privacy-section--wide { grid-column: auto; }
  .privacy-updated { flex-direction: column; gap: 5px; }
}
/* Contact comparison refinements and selected ending */
.invitation-grid > * { min-width: 0; }
.invitation-heading { font-size: clamp(60px, 6.5vw, 115px); overflow-wrap: break-word; }

body.margin-treatment-clean .contact-invitation > .shell,
body.margin-treatment-clean .contact-console-section > .shell,
body.margin-treatment-clean .personal-signoff > .shell,
body.margin-treatment-clean .invitation-footer > .shell,
body.margin-treatment-clean .console-footer > .shell,
body.margin-treatment-clean .personal-footer > .shell {
  width: min(1480px, calc(100% - 72px));
}

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

.selected-signoff .signoff-card { grid-template-columns: 290px minmax(0, 1fr); }
.selected-signoff .signoff-photo { width: 290px; height: 290px; }
.selected-signoff .signoff-copy h2 { max-width: 950px; }
.selected-signoff .signoff-copy > p { max-width: 900px; }

@media (max-width: 900px) {
  body.margin-treatment-clean .contact-invitation > .shell,
  body.margin-treatment-clean .contact-console-section > .shell,
  body.margin-treatment-clean .personal-signoff > .shell,
  body.margin-treatment-clean .invitation-footer > .shell,
  body.margin-treatment-clean .console-footer > .shell,
  body.margin-treatment-clean .personal-footer > .shell {
    width: min(1180px, calc(100% - 36px));
  }
  .selected-signoff .signoff-card { grid-template-columns: 190px minmax(0, 1fr); }
  .selected-signoff .signoff-photo { width: 190px; height: 190px; }
}
@media (max-width: 620px) {
  body.margin-treatment-clean .contact-invitation > .shell,
  body.margin-treatment-clean .contact-console-section > .shell,
  body.margin-treatment-clean .personal-signoff > .shell,
  body.margin-treatment-clean .invitation-footer > .shell,
  body.margin-treatment-clean .console-footer > .shell,
  body.margin-treatment-clean .personal-footer > .shell {
    width: min(100% - 22px, 1180px);
  }
  .selected-signoff .signoff-card { grid-template-columns: 1fr; }
  .selected-signoff .signoff-photo { width: 165px; height: 165px; }
}
/* Stage 2: final-candidate responsive hardening */
html { scroll-padding-top: 110px; }
#top, #projects, #career, #contact { scroll-margin-top: 110px; }

body.margin-treatment-clean .selected-nav {
  width: min(1480px, calc(100% - 72px));
}

.project-dialog {
  overflow: auto;
  overscroll-behavior: contain;
}
.image-lightbox { overscroll-behavior: contain; }

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

@media (max-width: 960px) {
  html { scroll-padding-top: 145px; }
  #top, #projects, #career, #contact { scroll-margin-top: 145px; }
  body.margin-treatment-clean .selected-nav {
    width: min(1180px, calc(100% - 36px));
  }
  .selected-menu a { min-height: 44px; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 150px; }
  #top, #projects, #career, #contact { scroll-margin-top: 150px; }

  body.margin-treatment-clean .selected-nav {
    width: min(100% - 22px, 1180px);
  }
  .selected-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }
  .selected-menu a {
    min-width: 0;
    padding: 0 5px;
    font-size: 16px;
    text-align: center;
  }

  .os-window { margin-bottom: 38px; }
  .window-bar { min-height: 42px; font-size: 18px; }
  .window-controls i { width: 11px; height: 11px; }

  .project-dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
    box-shadow: 5px 5px 0 var(--ink);
  }
  .dialog-inner { padding: 22px 14px; }
  .project-dialog h2 { font-size: clamp(38px, 13vw, 58px); }
  .dialog-summary { font-size: 18px; }

  .image-lightbox {
    width: calc(100% - 10px);
    height: calc(100dvh - 10px);
  }
  .lightbox-stage { padding: 12px 42px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-caption { gap: 12px; font-size: 16px; }

  .contact-option { margin-top: 48px; }
  .personal-signoff { padding: 48px 0; }
  .selected-signoff .signoff-card { padding: 26px 18px; }
  .personal-footer { padding-bottom: 30px; }
}

@media (max-width: 390px) {
  .selected-menu { grid-template-columns: repeat(2, 1fr); }
  html { scroll-padding-top: 195px; }
  #top, #projects, #career, #contact { scroll-margin-top: 195px; }
  .profile-mobile-id { padding-inline: 11px; font-size: 15px; }
  .profile-mobile-id strong { font-size: 24px; }
  .intro-profile-copy { padding-inline: 16px; }
  .intro-profile-copy h1 { font-size: 50px; }
  .intro-actions a { width: 100%; text-align: center; }
  .archive-project { grid-template-columns: 28px 1fr 20px; }
}
/* Project work-in-progress status */
.archive-project {
  grid-template-columns: 50px 1.1fr 2fr 100px 72px 24px;
}
.archive-project.is-placeholder::after { display: none; }
.archive-project__status {
  justify-self: end;
  padding: 3px 8px;
  color: var(--ink);
  background: var(--acid);
  border: 1px solid var(--ink);
  font: 16px "VT323", monospace;
  line-height: 1;
  transform: rotate(2deg);
}
.archive-project > span:nth-child(4) { font: 17px "VT323", monospace; }

@media (max-width: 620px) {
  .archive-project { grid-template-columns: 35px 1fr auto 24px; }
}
@media (max-width: 390px) {
  .archive-project { grid-template-columns: 28px 1fr auto 20px; }
  .archive-project__status { padding-inline: 6px; font-size: 14px; }
}
