:root {
  --forest: #142e21;
  --forest-2: #1d3d2c;
  --pine: #315f42;
  --moss: #6f8b58;
  --parchment: #e8ddb9;
  --paper: #f6eccd;
  --paper-2: #eee2bd;
  --ink: #193324;
  --muted: #486151;
  --gold: #e2ba69;
  --gold-deep: #a77c37;
  --teal: #8bc6b5;
  --line: #8da382;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--forest); color: var(--ink); font-family: 'Space Grotesk', sans-serif; -webkit-font-smoothing: antialiased; }
section, #experience, #internships, #projects, #contact { scroll-margin-top: 158px; }
#top { scroll-margin-top: 230px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #f7ce76; outline-offset: 4px; }
h1, h2, h3, h4, p { margin-top: 0; }
.wrap { width: min(1320px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: fixed; top: -70px; left: 15px; z-index: 100; padding: 12px 18px; background: var(--paper); border: 3px solid var(--gold-deep); }
.skip-link:focus { top: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* A restrained fantasy-game HUD around the actual portfolio. */
.site-header { position: relative; z-index: 20; background: #10291e; border-bottom: 5px solid var(--gold-deep); box-shadow: inset 0 -2px 0 #f0d892; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 15px; color: #f8efcf; font: 13px/1.5 'Press Start 2P', monospace; letter-spacing: -.04em; white-space: nowrap; }
.wordmark-icon { display: grid; place-items: center; width: 43px; height: 43px; background: var(--gold); color: var(--forest); border: 3px solid #fff1bd; box-shadow: 4px 4px 0 #071a12; font: 10px 'Press Start 2P', monospace; }
.site-header nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 34px); }
.site-header nav a { color: #e8e1c0; font: 11px/1.5 'DM Mono', monospace; letter-spacing: .08em; transition: color .2s, background .2s; }
.site-header nav a:hover { color: var(--gold); }
.site-header nav .nav-contact { display: inline-flex; gap: 10px; border: 2px solid var(--gold); padding: 11px 14px; color: var(--gold); box-shadow: 3px 3px 0 #030f0b; }
.site-header nav .nav-contact:hover { background: var(--gold); color: var(--forest); }

/* The map remains visible as the visitor moves between sections. */
.journey-map { position: sticky; top: 0; z-index: 30; background: #102b20; border-bottom: 4px solid #d8b569; box-shadow: 0 5px 0 #092116, 0 10px 20px #0b201c55; }
.journey-map-inner { display: grid; grid-template-columns: 112px minmax(0,1fr) 72px; align-items: center; gap: 16px; padding-block: 9px; }
.map-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; color: #f4db9c; font: 10px/1.45 'Press Start 2P', monospace; }
.map-heading-mark { color: #efc66e; font-size: 21px; line-height: 1; }
.map-heading strong { max-width: 112px; color: #c5dcae; font: 10px/1.5 'DM Mono', monospace; letter-spacing: .03em; overflow-wrap: anywhere; }
.map-board { position: relative; height: 120px; overflow: hidden; border: 3px solid #8ca773; background: linear-gradient(#0e2b20a0,#173828b0),url('hero-overworld.webp') center 64% / cover no-repeat; box-shadow: inset 0 0 0 3px #1c462b, 4px 4px 0 #061b12; }
.map-board::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg,transparent 0 15px,#f2e2a40c 15px 16px),repeating-linear-gradient(0deg,transparent 0 15px,#f2e2a40c 15px 16px); }
.map-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.map-route polyline { fill: none; stroke: #d4c28c; stroke-width: 3; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; opacity: .8; }
.map-route .map-route-complete { stroke: #ffe29a; stroke-width: 4; stroke-dasharray: none; opacity: 1; }
.map-stop { position: absolute; z-index: 2; left: var(--x); top: var(--y); display: flex; flex-direction: column; align-items: center; width: 112px; min-height: 44px; transform: translate(-50%, -6px); color: #f4e6bd; }
.map-stop-pin { display: block; flex: none; width: 12px; height: 12px; border: 2px solid #efe4b6; background: #456b4a; box-shadow: 2px 2px 0 #0c271c; }
.map-stop-label { display: block; max-width: 110px; margin-top: 4px; padding: 3px 5px; border: 1px solid #819469; background: #10291de6; color: #f6e6bc; font: 9px/1.25 'DM Mono', monospace; letter-spacing: .02em; white-space: nowrap; }
.map-stop[aria-current='location'] .map-stop-pin { border-color: #fff0ac; background: #f5d47b; box-shadow: 0 0 0 3px #c69b4566; }
.map-stop[aria-current='location'] .map-stop-label, .map-stop:hover .map-stop-label { background: #dbb569; border-color: #f2dc9a; color: #142e21; }
.map-stop:focus-visible { outline: 3px solid #f7ce76; outline-offset: 2px; }
.map-label-short { display: none; }
.map-character { position: absolute; z-index: 4; left: 7.5%; top: 66%; width: 38px; height: auto; transform: translate(-50%, -90%); image-rendering: pixelated; pointer-events: none; filter: drop-shadow(2px 3px 0 #07190f); }
.map-character.is-traveling { animation: map-step .23s steps(2,end) infinite; }
@keyframes map-step { 50% { transform: translate(-50%, -96%); } }
.map-progress { display: flex; flex-direction: column; align-items: stretch; gap: 11px; color: #f4dfad; font: 10px/1.35 'DM Mono', monospace; white-space: nowrap; }
.map-progress-track { height: 8px; border: 2px solid #a4a278; background: #294b36; }
.map-progress-track span { display: block; height: 100%; width: 0%; background: #eec46e; }

.hero { position: relative; isolation: isolate; min-height: 610px; color: #f7efd4; background: #173625 url('hero-overworld.webp') center 47% / cover no-repeat; }
.hero::before { content: ''; position: absolute; z-index: 0; inset: 0; background: linear-gradient(90deg, #0d271ed9 0%, #0c271cbe 42%, #0d281e82 100%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: repeating-linear-gradient(90deg, #aa853b 0 22px, #e2ba69 22px 44px, #173827 44px 55px); border-top: 3px solid #0d251b; }
.hero-inner { position: relative; z-index: 1; min-height: 610px; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(390px,.92fr); align-items: center; gap: clamp(30px,5vw,86px); padding-block: 46px 56px; }
.hero-copy { position: relative; padding: 16px 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--pine); font: 12px/1.5 'DM Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }
.hero .eyebrow { color: #e8dcae; }
.eyebrow-mark { color: var(--gold); font-size: 21px; line-height: 0; }
.current-role { display: inline-block; margin: 13px 0 0; padding: 8px 12px; background: #193a2dda; color: #f2d990; border: 2px solid #b69a5b; font: 11px/1.4 'DM Mono', monospace; letter-spacing: .055em; }
.hero h1 { margin: 28px 0 22px; color: #fff3cc; font: clamp(28px,4.5vw,62px)/1.33 'Press Start 2P', monospace; letter-spacing: -.06em; white-space: nowrap; text-shadow: 5px 6px 0 #061a14; }
.hero h1 span { color: var(--gold); }
.hero-intro { max-width: 570px; margin: 0; color: #e6e6d2; font-size: 17px; line-height: 1.72; text-shadow: 0 1px 6px #0a1b13; }
.hero-intro strong { display: block; margin-bottom: 10px; color: #fff4d3; font-size: 23px; line-height: 1.38; letter-spacing: -.025em; }
.hero-summary { display: block; text-wrap: balance; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 29px; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 50px; padding: 13px 18px; font: 12px/1.4 'DM Mono', monospace; letter-spacing: .05em; transition: transform .2s, box-shadow .2s, background .2s; }
.button-primary { color: #142e21; background: var(--gold); border: 3px solid #fff0b2; box-shadow: 5px 5px 0 #091d15; font-weight: 700; }
.button-primary:hover { transform: translate(3px,3px); box-shadow: 2px 2px 0 #091d15; background: #f3d489; }
.text-link { color: #f6e8b8; border: 2px solid #bdab78; background: #173326c7; }
.text-link:hover { background: #254f36; }

/* The game is playable and keeps its existing keyboard and touch controls. */
.game-frame { width: 100%; max-width: 540px; justify-self: end; border: 5px solid #d7ae5c; background: #10261c; box-shadow: 0 0 0 4px #1d4631, 11px 11px 0 #061811; }
.game-screen-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 9px 13px; background: #25442e; color: #ffe2a2; border-bottom: 3px solid #a67d3b; font: 11px/1.3 'DM Mono', monospace; letter-spacing: .05em; }
.game-screen-bar.bottom { min-height: 44px; border-bottom: 0; border-top: 3px solid #a67d3b; font-size: 10px; color: #d2dfbd; }
.game-scene { background: #10251c; }
.game-stage { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.game-stage canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.game-instruction { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.tetris-controls { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 5px; padding: 7px; background: #25442e; }
.tetris-controls button { display: grid; place-items: center; min-width: 0; min-height: 42px; padding: 5px; border: 2px solid #a88e52; background: #416746; color: #f4e5ac; box-shadow: inset -3px -3px 0 #27442d; cursor: pointer; font-size: 18px; }
.tetris-controls button:hover { background: #5d8557; }
.tetris-controls button:active { transform: translateY(2px); }
.game-toggle { flex: none; padding: 5px 7px; border: 1px solid #bba15d; background: #1b3728; color: #f4d686; cursor: pointer; font: 10px/1.3 'DM Mono', monospace; }
.game-toggle:hover { background: #385d3c; }

/* Paper-like content area with a clear reading order. */
.work { background-color: var(--parchment); background-image: linear-gradient(#1e3c2410 1px,transparent 1px),linear-gradient(90deg,#1e3c2410 1px,transparent 1px); background-size: 42px 42px; }
.section-pad { padding-block: 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.section-heading h2, .about h2 { margin: 13px 0 0; color: var(--ink); font: clamp(29px,3vw,44px)/1.5 'Press Start 2P', monospace; letter-spacing: -.065em; }
.section-heading h2 { white-space: nowrap; }
.section-heading h2 em, .about h2 em { color: #a16e36; font-style: normal; }
.section-lede { max-width: 340px; margin: 0 0 5px; color: #3e5944; font-size: 17px; line-height: 1.6; }
.work-group + .work-group { margin-top: 58px; }
.work-group-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-bottom: 15px; margin-bottom: 21px; border-bottom: 4px solid var(--pine); }
.work-group-heading h3 { margin: 0; color: #224733; font: 14px/1.6 'Press Start 2P', monospace; letter-spacing: -.035em; }
.work-group-heading span { color: #60765a; font: 11px/1.5 'DM Mono', monospace; letter-spacing: .06em; }
.role-card { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(215px,.45fr); gap: 32px; padding: 31px; background: var(--paper); border: 4px solid #315c3b; box-shadow: 8px 8px 0 #92a077; }
.role-kicker { margin: 0 0 10px; color: #5a7946; font: 11px/1.5 'DM Mono', monospace; letter-spacing: .06em; }
.role-main h4 { margin: 0 0 13px; color: var(--ink); font-size: 24px; line-height: 1.3; letter-spacing: -.04em; }
.role-main > p:not(.role-kicker) { max-width: 780px; margin: 0 0 12px; color: #3b5442; font-size: 17px; line-height: 1.62; }
.role-main ul { margin: 0; padding-left: 21px; color: #3f5845; font-size: 15px; line-height: 1.6; }
.role-main li + li { margin-top: 5px; }
.role-main li::marker { color: #9d6f37; }
.role-stats { display: grid; align-content: center; gap: 11px; border-left: 2px dashed #8ea780; padding-left: 26px; }
.role-stats > div { padding: 14px; background: #e7e9c7; border: 2px solid #a3af83; }
.role-stats strong { display: block; margin-bottom: 6px; color: #285039; font: 23px/1.4 'Press Start 2P', monospace; }
.role-stats span { color: #4e654a; font: 10px/1.4 'DM Mono', monospace; letter-spacing: .06em; }
.client-projects { margin-top: 34px; }
.client-projects > h4 { margin: 0 0 16px; color: #315942; font: 12px/1.6 'Press Start 2P', monospace; }
.client-project-card { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); overflow: hidden; border: 3px solid #315c3b; background: var(--paper); box-shadow: 7px 7px 0 #98a47e; }
.client-project-media { display: grid; align-items: center; min-width: 0; padding: 14px; border-right: 3px solid #769171; background: #e8e8d5; }
.client-project-media img { display: block; width: 100%; height: auto; aspect-ratio: 2048 / 1180; object-fit: contain; box-shadow: 0 0 0 1px #bbc6ac; }
.client-project-media:hover img { box-shadow: 0 0 0 3px #ac813a; }
.client-project-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(24px,3vw,42px); }
.client-project-copy h5 { margin: 0 0 14px; color: #193c2a; font-size: clamp(22px,2.2vw,29px); line-height: 1.25; }
.client-project-copy > p:not(.role-kicker) { margin: 0; color: #466049; font-size: 17px; line-height: 1.65; }
.client-project-links { display: flex; flex-wrap: wrap; gap: 13px 22px; margin-top: 24px; }
.client-project-links a { color: #255941; font: 700 11px/1.5 'DM Mono', monospace; letter-spacing: .05em; text-underline-offset: 4px; }
.client-project-links a:hover { text-decoration: underline; }

.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.project-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--paper); border: 3px solid #315c3b; box-shadow: 7px 7px 0 #98a47e; transition: transform .22s, box-shadow .22s; }
.project-card:hover { transform: translateY(-4px); box-shadow: 8px 11px 0 #81936b; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; }
.project-index { color: #47674b; font: 11px/1.5 'DM Mono', monospace; letter-spacing: .035em; }
.project-symbol { color: #9c773b; font-size: 21px; }
.work-image { display: block; margin: 0 17px; overflow: hidden; background: #d4ddc6; border: 3px solid #769171; }
.work-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; object-position: center; }
.work-image--oasis { background: #495631; }
.work-image--light { background: #f8faf8; }
.work-image--dark { background: #212121; }
.work-image--navy { background: #11213b; }
.work-image::after { content: 'VIEW FULL IMAGE ↗'; display: block; padding: 7px 10px; border-top: 2px solid #769171; color: #315a42; background: #d9e5cf; text-align: right; font: 10px/1.4 'DM Mono', monospace; letter-spacing: .03em; }
.work-image:hover { border-color: #ac813a; }
.card-content { display: flex; flex: 1; flex-direction: column; padding: 18px 21px 23px; }
.card-content h4 { margin: 0 0 9px; color: #1b3a29; font-size: 22px; line-height: 1.3; letter-spacing: -.035em; }
.card-content p { margin: 0 0 15px; color: #49624c; font-size: 16px; line-height: 1.58; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: auto 0 0; padding: 0; }
.tags li { padding: 5px 8px; border: 1px solid #9bad87; color: #31583d; background: #e8ecd8; font: 11px/1.5 'DM Mono', monospace; }
.project-links { margin-top: auto; padding-top: 16px; }
.tags + .project-links { margin-top: 11px; padding-top: 12px; border-top: 1px dashed #a4b394; }
.project-links a { color: #255941; font: 700 11px/1.5 'DM Mono', monospace; letter-spacing: .06em; }
.project-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-note { margin: 32px 0 0; color: #4e684e; font: 12px/1.5 'DM Mono', monospace; }
.work-note a { color: #1d6148; text-decoration: underline; text-underline-offset: 4px; }

/* Same image-led gallery format, now inside the forest palette. */
.project-showcase { padding-top: 27px; border-top: 4px double #6b835d; }
.gallery-heading { margin: 0 auto 26px; text-align: center; }
.gallery-heading h3 { margin: 0 0 12px; color: #204631; font: 18px/1.5 'Press Start 2P', monospace; }
.gallery-heading p { margin: 0; color: #536d54; font-size: 17px; line-height: 1.5; }
.project-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 0 0 30px; }
.project-filter { min-height: 46px; padding: 10px 20px; border: 3px solid #466a49; background: #f0e9c9; color: #29523b; box-shadow: 3px 3px 0 #9eaa85; cursor: pointer; font: 15px/1.2 'Space Grotesk', sans-serif; transition: transform .2s, background .2s; }
.project-filter:hover { transform: translateY(-2px); background: #e4e4bb; }
.project-filter[aria-pressed='true'] { border-color: #193c2a; background: #305e3f; color: #fff1c8; box-shadow: 3px 3px 0 #7c9069; }
.gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.gallery-card { background: #fbf3d6; }
.gallery-card[hidden] { display: none; }
.gallery-card .work-image { margin: 0; border: 0; border-bottom: 3px solid #6d916e; }
.gallery-card .work-image img { aspect-ratio: 16 / 10; }
.gallery-card .work-image--portrait img { aspect-ratio: 4 / 3; }
.gallery-card .work-image::after { padding: 7px 13px; background: #e3eace; border-top: 2px solid #7e9973; }
.gallery-card .card-content { padding: 20px 20px 22px; }
.gallery-category { display: block; margin: 0 0 10px; color: #6a7846; font: 11px/1.4 'DM Mono', monospace; letter-spacing: .06em; }
.gallery-card .card-content h4 { font-size: 21px; }
.gallery-card .card-content p { margin: 0; font-size: 16px; line-height: 1.56; }
.gallery-card .project-links { padding-top: 17px; }

/* Character profile and skills inventory. */
.about, .contact-section { color: #e9e8cb; background-color: #193c2a; background-image: linear-gradient(#f4e5a508 1px,transparent 1px),linear-gradient(90deg,#f4e5a508 1px,transparent 1px); background-size: 32px 32px; border-top: 8px solid #af8949; }
.about { padding-block: 64px 72px; background: #233a2c; }
.about__grid { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: clamp(40px,6vw,96px); }
.about .about__title { margin: 0 0 40px; color: #f4ecce; font: clamp(28px,3.55vw,50px)/1.35 'Press Start 2P', monospace; letter-spacing: -.06em; white-space: nowrap; text-shadow: 4px 4px 0 #13241a; }
.about__title span { color: #e0bb66; }
.hero-card { width: min(100%,352px); margin: 0; }
.hero-card__frame { aspect-ratio: 4 / 5; padding: 10px; border: 4px solid #e0bb66; background: #13241a; box-shadow: inset 0 0 0 4px #13241a, inset 0 0 0 6px #8a7440; clip-path: polygon(0 8px,8px 8px,8px 0,calc(100% - 8px) 0,calc(100% - 8px) 8px,100% 8px,100% calc(100% - 8px),calc(100% - 8px) calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,8px calc(100% - 8px),0 calc(100% - 8px)); }
.hero-card__scene { position: relative; width: 100%; height: 100%; overflow: hidden; background: linear-gradient(#142b22b5,#1e352888),url('hero-overworld.webp') center / cover no-repeat, #2c4634; }
.hero-card__scene img { position: absolute; left: 50%; bottom: 9%; width: min(40%,140px); height: auto; transform: translateX(-50%); image-rendering: pixelated; filter: drop-shadow(5px 8px 0 #102219); }
.hero-card__plate { display: grid; gap: 4px; margin-top: 12px; padding: 13px 16px; border: 2px solid #8a7440; background: #13241a; }
.hero-card__name { color: #e0bb66; font: 17px/1.6 'Press Start 2P', monospace; white-space: nowrap; }
.hero-card__meta { color: #a9b8a4; font: 14px/1.5 'DM Mono', monospace; }
.about__lead { max-width: 30ch; margin: 0 0 24px; color: #f4ecce; font-size: clamp(23px,2.4vw,30px); font-weight: 500; line-height: 1.35; }
.about__body p { max-width: 62ch; margin: 0 0 20px; color: #d9dccb; font-size: 17px; line-height: 1.75; }
.items { margin-top: 40px; padding-top: 28px; border-top: 2px dotted #8a7440; }
.items h3 { margin: 0 0 20px; color: #e0bb66; font: 16px/1.6 'Press Start 2P', monospace; }
.items ul { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.items li { display: flex; align-items: center; gap: 16px; color: #d9dccb; font-size: 17px; line-height: 1.5; }
.items__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid #8a7440; background: #13241a; }
.items__icon svg { width: 28px; height: 28px; }
.inventory { margin-top: 80px; }
.inventory > h3 { margin: 0 0 28px; color: #f4ecce; font: clamp(21px,2.4vw,28px)/1.5 'Press Start 2P', monospace; }
.inventory__groups { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px 28px; }
.inventory__group h4 { margin: 0 0 12px; color: #e0bb66; font: 14px/1.5 'DM Mono', monospace; }
.inventory__slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.inventory__slots li { padding: 7px 11px; border: 2px solid #7f9a5a; background: #2c4634; box-shadow: 3px 3px 0 #13241a; color: #f4ecce; font: 14px/1.45 'DM Mono', monospace; }
.work { padding-top: 72px; }
.contact-section { background-color: #20382b; background-image: none; border-top-color: #d5aa59; }
.contact-title { margin: 0 0 clamp(45px,5vw,72px); color: #e6bd6a; font: clamp(31px,4.4vw,65px)/1.34 'Press Start 2P', monospace; letter-spacing: -.055em; text-shadow: 9px 9px 0 #10241b; }
.contact-title span { white-space: nowrap; }
.contact-menu { position: relative; padding: clamp(34px,5vw,70px) clamp(28px,5.4vw,76px) 47px; border: 7px solid #e3ba68; background: #14261c; box-shadow: inset 0 0 0 9px #294934, 9px 9px 0 #a78442; color: #f5f0d7; font-family: 'DM Mono', monospace; }
.contact-menu-tab { position: absolute; top: -7px; left: clamp(32px,5vw,70px); padding: 0 25px 9px; color: #14261c; background: #e3ba68; font: 13px/1.4 'Press Start 2P', monospace; letter-spacing: -.04em; }
.contact-intro { max-width: 940px; margin: 6px 0 55px; font-size: clamp(18px,2.15vw,30px); line-height: 1.65; letter-spacing: -.025em; }
.contact-intro span { color: #e3ba68; white-space: nowrap; }
.contact-options { display: grid; gap: 3px; margin-bottom: 62px; }
.contact-option { display: flex; align-items: baseline; gap: 24px; width: fit-content; max-width: 100%; min-height: 69px; padding: 10px 8px 10px 58px; position: relative; color: #f5f0d7; font-size: clamp(19px,2vw,29px); line-height: 1.45; transition: color .15s; }
.contact-option-pointer { position: absolute; left: 0; top: 10px; color: #bfe6b2; opacity: 0; font-size: .8em; }
.contact-option-note { color: #b7bfb1; font-size: .74em; overflow-wrap: anywhere; }
.contact-option.is-selected, .contact-option:hover, .contact-option:focus-visible { color: #bfe6b2; }
.contact-option.is-selected .contact-option-pointer, .contact-option:hover .contact-option-pointer, .contact-option:focus-visible .contact-option-pointer { opacity: 1; }
.contact-option:focus-visible { outline-offset: 1px; }
.contact-menu-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 3px dotted #a8874e; padding-top: 30px; color: #bcc5b6; font-size: clamp(14px,1.5vw,21px); line-height: 1.5; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 31px 0 0; color: #c0cda9; font: 11px/1.5 'DM Mono', monospace; letter-spacing: .04em; }
footer a:hover { color: var(--gold); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0,1fr) minmax(355px,.9fr); gap: 35px; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .inventory__groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .journey-map-inner { grid-template-columns: 82px minmax(0,1fr) 58px; gap: 10px; }
  .map-heading { font-size: 8px; }
  .map-heading strong { font-size: 9px; }
  .map-stop { width: 82px; }
  .map-stop-label { font-size: 8px; }
}
@media (max-width: 850px) {
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-block: 50px 62px; }
  .hero-copy { max-width: 660px; }
  .hero h1 { font-size: clamp(34px,7vw,56px); }
  .hero-art { align-self: center; max-width: 570px; margin-top: 9px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 32px; }
  .role-card { grid-template-columns: 1fr; }
  .role-stats { grid-template-columns: repeat(2,minmax(0,1fr)); border-left: 0; border-top: 2px dashed #8ea780; padding: 19px 0 0; }
  .client-project-card { grid-template-columns: 1fr; }
  .client-project-media { border-right: 0; border-bottom: 3px solid #769171; }
  .about__grid { grid-template-columns: 1fr; }
  .hero-card { width: min(100%,288px); }
}
@media (max-width: 680px) {
  section, #experience, #internships, #projects, #contact { scroll-margin-top: 150px; }
  #top { scroll-margin-top: 216px; }
  .journey-map-inner { grid-template-columns: 1fr auto; gap: 7px; padding-block: 7px; }
  .map-heading { grid-column: 1; flex-direction: row; align-items: center; gap: 8px; font-size: 9px; }
  .map-heading-mark { font-size: 13px; }
  .map-heading strong { max-width: none; padding-left: 8px; border-left: 1px solid #668567; font-size: 10px; }
  .map-progress { grid-column: 2; grid-row: 1; flex-direction: row; align-items: center; gap: 7px; }
  .map-progress-track { width: 42px; height: 7px; }
  .map-board { grid-column: 1/-1; grid-row: 2; height: 100px; }
  .map-stop { width: 54px; min-height: 44px; }
  .map-stop-label { max-width: 54px; padding: 2px 3px; font-size: 8px; }
  .map-label-full { display: none; }
  .map-label-short { display: inline; }
  .map-character { width: 29px; }
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 72px; }
  .wordmark > span:last-child { display: none; }
  .site-header nav { gap: 13px; }
  .site-header nav a:nth-child(2) { display: none; }
  .site-header nav .nav-contact { padding: 8px 10px; }
  .hero-inner { padding-block: 42px 49px; }
  .hero h1 { font-size: clamp(38px,9vw,54px); }
  .hero-intro { font-size: 16px; }
  .hero-intro strong { font-size: 21px; }
  .section-pad { padding-block: 71px; }
  .about { padding-block: 50px 58px; }
  .work { padding-top: 58px; }
  .section-heading { display: block; margin-bottom: 38px; }
  .section-heading h2 { font-size: 31px; }
  .section-lede { margin-top: 23px; }
  .work-group + .work-group { margin-top: 47px; }
  .project-grid, .gallery-grid { grid-template-columns: 1fr; gap: 21px; }
  .gallery-card .work-image--portrait img { aspect-ratio: 1 / 1; }
  .about .about__title { font-size: clamp(31px,7vw,42px); }
  .inventory { margin-top: 56px; }
  .inventory__groups { gap: 28px 16px; }
  .contact-title { line-height: 1.6; }
  .contact-title span { display: block; }
  .contact-menu { padding: 44px 24px 28px; border-width: 5px; box-shadow: inset 0 0 0 5px #294934, 6px 6px 0 #a78442; }
  .contact-menu-tab { top: -5px; left: 22px; padding: 0 15px 7px; font-size: 11px; }
  .contact-intro { margin-bottom: 28px; font-size: 18px; }
  .contact-options { margin-bottom: 35px; }
  .contact-option { min-height: 57px; padding-left: 32px; gap: 10px; font-size: 18px; flex-wrap: wrap; }
  .contact-option-pointer { top: 11px; }
  .contact-option-note { font-size: 14px; }
  .contact-menu-footer { padding-top: 18px; font-size: 13px; }
}
@media (max-width: 460px) {
  .site-header nav a { font-size: 10px; }
  .hero h1 { font-size: clamp(28px,7vw,32px); }
  .current-role { font-size: 10px; }
  .game-screen-bar.bottom { font-size: 9px; }
  .tetris-controls button { min-height: 38px; }
  .section-heading h2 { font-size: clamp(20px,5.8vw,26px); }
  .work-group-heading h3 { font-size: 11px; }
  .work-group-heading span { font-size: 10px; }
  .role-card { padding: 23px 20px; }
  .client-project-media { padding: 8px; }
  .client-project-copy { padding: 22px 19px 24px; }
  .role-stats strong { font-size: 17px; }
  .role-stats span { font-size: 9px; }
  .inventory__groups { grid-template-columns: 1fr; }
  .inventory > h3 { font-size: 20px; }
  .contact-title { font-size: clamp(23px,6.7vw,30px); text-shadow: 5px 5px 0 #10241b; }
  .contact-option { font-size: 16px; }
  .contact-option-note { width: 100%; margin-top: -12px; }
  .contact-menu-footer { flex-wrap: wrap; gap: 5px; }
  footer span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
