@font-face { font-family: 'Source Code Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url('SourceCodePro-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Source Code Pro'; font-style: normal; font-weight: 300; font-display: swap; src: url('SourceCodePro-300.woff') format('woff'); }
:root {
  --site-font: 'Source Code Pro', monospace;
  color-scheme: dark;
  --bg: #000;
  --text: #d5ddd3;
  --muted: #b3beb0;
  --green: #80ef45;
  --bright: #b5ffa4;
  --phosphor: #99ff00;
  --line: #253024;
  --glow: #99ff0070;
  --dim: #92b589;
}
* { box-sizing: border-box; }
.typing-character { visibility: hidden; }
.typing-character.is-typed { visibility: visible; }
.intro-note:has(.typing-character) > .cursor { visibility: hidden; }
.intro-greeting { margin: 0 0 12px; color: var(--text); font-size: clamp(18px, 1.5vw, 23px); }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 18px/1.75 var(--site-font); }
body[data-theme=amber] { --green: #e2b96b; --bright: #ffe6b5; --phosphor: #ffd079; --glow: #ffd07959; --dim: #a2936a; }
body[data-theme=cyan] { --green: #78cbd7; --bright: #c2faff; --phosphor: #70eaff; --glow: #70eaff59; --dim: #69979d; }
body[data-theme=violet] { --green: #bd9fe3; --bright: #ead7ff; --phosphor: #cea8ff; --glow: #cea8ff59; --dim: #92839f; }
body[data-theme=rose] { --green: #e4a0bb; --bright: #ffe0ed; --phosphor: #ffa4ca; --glow: #ffa4ca59; --dim: #a28391; }
a { color: var(--green); text-decoration: none; }
a:hover, button:hover { color: var(--bright); }
button, input { font: inherit; }
button { background: transparent; border: 0; padding: 0; color: var(--green); cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, [role=tabpanel]:focus-visible { outline: 1px dashed var(--green); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: 100%; max-width: 1600px; min-height: 100svh; margin: auto; padding: 32px clamp(24px, 5vw, 96px) 24px; display: flex; flex-direction: column; }
.topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-size: 30px; letter-spacing: -.6px; color: var(--phosphor); text-shadow: 0 0 3px var(--glow), 0 0 15px var(--glow); }
.theme-picker { width: 160px; max-width: 100%; }
#theme { width: 100%; min-height: 44px; padding: 0 9px; border: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--green); font: inherit; font-size: 15px; cursor: pointer; }
#theme:focus-visible { outline: 1px dashed var(--phosphor); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 4px; font-size: 17px; }
nav a[aria-selected=false] { color: var(--dim); text-shadow: none; }
nav a:hover, nav a:focus-visible { color: var(--bright); }
nav a[aria-selected=true] { color: var(--phosphor); text-shadow: 0 0 3px var(--glow), 0 0 14px var(--glow); text-decoration: underline; text-underline-offset: 7px; }
.layout { flex: 1; min-width: 0; }
main { min-width: 0; }
main:focus, [role=tabpanel]:focus { outline: none; }
[role=tabpanel]:focus-visible { outline: 1px dashed var(--green); }
.panel-path { color: var(--muted); font-size: 17px; margin: 22px 0 0; }
#current-path { color: var(--green); }
.code-dim { color: var(--muted); }
.panel-path .cursor { font-size: 9px; margin-left: 5px; }
section { margin: 0 0 36px; padding-top: 28px; }
section[role=tabpanel] { min-height: 270px; }
.eyebrow { font-size: 17px; letter-spacing: 1.3px; color: var(--muted); margin: 0 0 16px; }
h1 { margin: 0 0 20px; font-size: clamp(44px, 4.6vw, 72px); font-weight: 400; line-height: 1.18; letter-spacing: -1.5px; color: var(--phosphor); text-shadow: 0 0 3px var(--glow), 0 0 18px var(--glow), 0 0 40px var(--glow); }
.lead { font-size: clamp(20px, 1.7vw, 26px); margin: 0 0 18px; }
.muted { color: var(--muted); }
.accent { color: var(--green); }
.intro-note { max-width: 54ch; font-size: 17px; margin: 0; }
.intro-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 23px 0; font-size: 16px; }
.intro-links a { display: inline-flex; align-items: center; min-height: 44px; }
.draft { padding-left: 13px; border-left: 1px solid var(--line); font-size: 15px; line-height: 1.9; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
h2 { color: var(--phosphor); text-shadow: 0 0 12px var(--glow); font-size: 24px; font-weight: 300; margin: 0; line-height: 1.6; }
h2 .muted { text-shadow: none; font-size: 15px; margin-right: 6px; }
.section-heading > span { color: var(--muted); font-size: 17px; }
.section-note { font-size: 16px; color: var(--muted); margin: 16px 0 20px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 15px; margin-bottom: 6px; }
.filters button { min-height: 44px; }
.filters button[aria-pressed=true] { color: var(--phosphor); text-decoration: underline; text-underline-offset: 5px; }
.project { padding: 17px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
.project summary { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: baseline; gap: 12px; }
.project details[open] .project-title { color: var(--phosphor); text-shadow: 0 0 12px var(--glow); }
.project-id { color: var(--muted); font-size: 17px; }
.project-title { color: var(--green); font-size: 20px; overflow-wrap: anywhere; }
.arrow { font-size: 15px; }
.tag { color: var(--muted); font-size: 16px; }
.project-desc { font-size: 16px; margin: 2px 0 0 40px; }
.project-body { font-size: 16px; max-width: 65ch; margin: 12px 0 12px 40px; }
.project-body p { margin: 12px 0; }
.hint { color: var(--muted); font-size: 17px; margin-top: 16px; }
.skills-list { margin: 0; font-size: 16px; }
.skills-list > div { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.skills-list dt { color: var(--text); }
.skills-list dd { margin: 0; color: var(--muted); }
h3 { color: var(--text); font-size: 17px; font-weight: 400; margin: 6px 0; }
.resume-entry { border-left: 1px solid var(--line); padding-left: 16px; margin-bottom: 28px; font-size: 16px; }
.resume-entry > span { font-size: 17px; }
.resume-entry p { margin: 8px 0; }
.earlier-experience { font-size: 16px; margin-bottom: 24px; }
.earlier-experience > summary { display: flex; align-items: center; color: var(--green); }
.earlier-experience .project-body { margin-left: 16px; }
.education p { margin: 16px 0; }
#resume > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
#beyond > p { font-size: 17px; max-width: 55ch; }
.email { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; color: var(--phosphor); text-shadow: 0 0 12px var(--glow); }
.terminal { margin: 12px 0 28px; border-top: 1px solid var(--line); padding-top: 8px; font-size: 15px; }
.terminal > summary { display: flex; align-items: center; color: var(--muted); }
.terminal[open] > summary { color: var(--green); }
.terminal-content { padding: 0 0 12px; }
.terminal-content > p { color: var(--muted); }
.terminal form { display: flex; align-items: center; gap: 8px; }
.terminal input { min-width: 0; width: 100%; flex: 1; min-height: 44px; border: 0; background: transparent; color: var(--text); }
.terminal input::placeholder { color: var(--muted); }
.terminal button { min-width: 44px; min-height: 44px; }
#terminal-output p { white-space: pre-wrap; overflow-wrap: anywhere; }
.cursor { color: var(--green); animation: blink 1.3s steps(1) infinite; }
.skip { position: absolute; top: -70px; padding: 10px; background: var(--bg); z-index: 2; }
.skip:focus { top: 0; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 600px) {
  .shell { padding: 18px max(18px,env(safe-area-inset-right)) 20px max(18px,env(safe-area-inset-left)); }
  .brand { font-size: 21px; }
  #theme { font-size: 16px; }
  .theme-picker { width: 174px; }
  nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2px 8px; margin-top: 8px; padding-bottom: 12px; }
  nav a { justify-content: flex-start; padding: 0; font-size: 16px; }
  .panel-path { margin-top: 18px; }
  section { padding-top: 24px; margin-bottom: 28px; }
  section[role=tabpanel] { min-height: 230px; }
  h1 { font-size: clamp(34px,10vw,44px); }
  .lead { font-size: 15px; }
  .desktop { display: none; }
  .intro-note { font-size: 17px; }
  .intro-links { gap: 0 18px; margin: 18px 0; }
  .section-heading { flex-wrap: wrap; gap: 2px 16px; }
  h2 { color: var(--phosphor); text-shadow: 0 0 12px var(--glow); font-size: 17px; }
  .skills-list > div { grid-template-columns: minmax(0,1fr); gap: 4px; padding: 13px 0; }
  .project summary { grid-template-columns: 24px minmax(0,1fr); gap: 0 10px; }
  .project-title { font-size: 17px; }
  .tag { grid-column: 2; margin-bottom: 8px; }
  .project-desc, .project-body { margin-left: 34px; }
  .resume-entry { padding-left: 12px; }
  .terminal input { font-size: 16px; }
  .terminal form { flex-wrap: wrap; }
  .terminal form label { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cursor { animation: none; } }
@media (prefers-contrast: more) { :root { --muted: #b0b9ad; --green: #a4df8c; } .brand,h1,h2,.email,.project details[open] .project-title,nav a[aria-selected=true] { text-shadow: none; } nav a[aria-selected=false] { color: var(--muted); } }

h1 { font-weight: 300; text-shadow: 0 0 18px var(--glow), 0 0 38px var(--glow); }
.lead { color:var(--phosphor); text-shadow:0 0 3px var(--glow),0 0 13px var(--glow),0 0 30px var(--glow); }
h2,h3 { font-weight:300; }
@media(prefers-contrast:more){h1,.lead{text-shadow:none;}}

/* C++ syntax accents follow the selected phosphor palette. */
.cpp-meta { margin: 2px 0 6px; font-size: 16px; }
.cpp-keyword { color: var(--dim); }
.cpp-type { color: var(--green); }
.cpp-literal { color: var(--phosphor); text-shadow: 0 0 10px var(--glow); }
.cpp-punctuation { color: var(--dim); }
.cpp-namespace { display: block; margin-top: 16px; letter-spacing: 0; font-size: 16px; }
.cpp-close { margin: 25px 0 0; color: var(--green); font-size: 16px; }
@media (max-width:600px) { nav { grid-template-columns: repeat(2,minmax(0,1fr)); } nav a { font-size: 16px; } .cpp-meta { font-size: 15px; } }

/* Light phosphor strokes keep large type crisp. */
h1, .lead { font-weight: 300; }
.cpp-meta { overflow-wrap: anywhere; }
.cpp-string { color: var(--dim); }
.intro-links a { color: var(--dim); text-shadow: none; }
.intro-links a:hover, .intro-links a:focus-visible { color: var(--green); }

/* A wide terminal surface with readable columns instead of stretched paragraphs. */
.intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 100px); align-items: center; }
.intro > .eyebrow, .intro > .cpp-close { grid-column: 1 / -1; }
.intro-identity, .intro-details { min-width: 0; }
.intro-details { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 48px); }
.intro-details .intro-note { font-size: 18px; }
.brand { text-shadow: 0 0 8px var(--glow), 0 0 24px var(--glow); }
.brand .cpp-punctuation { color: var(--green); }
h1 { overflow-wrap: anywhere; }
.lead { margin-bottom: 0; text-shadow: 0 0 12px var(--glow); }
.resume-entry { max-width: 90ch; }
.terminal { margin-top: 32px; }
nav a, .intro-links a { transition: color 160ms ease, text-shadow 160ms ease; }
nav a:hover, .intro-links a:hover { text-shadow: 0 0 12px var(--glow); }
@media (max-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro-details { margin-top: 28px; padding-left: 0; border-left: 0; }
  .intro-details .intro-note { max-width: 65ch; }
  .lead { font-size: 21px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .brand { font-size: 26px; }
  .theme-picker { width: 155px; }
  h1 { font-size: clamp(38px, 10vw, 58px); letter-spacing: -1px; }
  .lead { font-size: 20px; }
  .intro-details .intro-note { font-size: 17px; }
  .eyebrow, .panel-path, .cpp-meta, .cpp-namespace, .cpp-close { font-size: 14px; }
  nav a { font-size: 15px; }
  .email { max-width: 100%; display: inline-block; padding-block: 8px; }
}
@media (prefers-reduced-motion: reduce) { nav a, .intro-links a { transition: none; } }
@media (prefers-contrast: more) { .brand, h1, .lead, nav a:hover, .intro-links a:hover { text-shadow: none; } }

.profile-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.profile-links a { display: inline-flex; align-items: center; min-height: 44px; }
/* Wider gamut adds saturation; it does not itself increase HDR luminance. */
@supports (color: color(display-p3 0 1 0)) {
  @media (color-gamut: p3) {
    body[data-theme=matrix] { --phosphor: color(display-p3 .6 1 0); }
    body[data-theme=amber] { --phosphor: color(display-p3 1 .82 .47); }
    body[data-theme=cyan] { --phosphor: color(display-p3 .44 .92 1); }
    body[data-theme=violet] { --phosphor: color(display-p3 .81 .66 1); }
    body[data-theme=rose] { --phosphor: color(display-p3 1 .64 .79); }
  }
}
/* Experimental HDR text activates only when both syntax and output support it. */
@supports (color: color-mix(in rec2100-linear, red, color(rec2100-linear 2 2 2))) {
  @media (dynamic-range: high) and (prefers-contrast: no-preference) {
    body:is([data-appearance=dark], [data-appearance=navy]) :is(.brand, h1, .lead) {
      color: color-mix(in rec2100-linear, var(--phosphor) 80%, color(rec2100-linear 2 2 2));
      dynamic-range-limit: no-limit;
    }
  }
}

/* The terminal fills the window; reading columns constrain prose, not the canvas. */
.shell { max-width: none; padding: 26px clamp(20px, 2.5vw, 48px) 20px; }
body { font-size: 20px; }
header { padding-bottom: 4px; }
.brand { font-size: 28px; font-weight: 500; letter-spacing: -.8px; text-shadow: 0 0 5px var(--glow), 0 0 20px var(--glow); }
.display-controls { display: flex; flex-wrap: wrap; gap: 10px; max-width: 100%; }
.appearance-picker { width: 178px; max-width: 100%; }
#appearance { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 0; padding: 0 9px; background: var(--bg); color: var(--green); font: 300 16px var(--site-font); }
#appearance:focus-visible { outline: 1px dashed var(--green); outline-offset: 4px; }
#theme { font-size: 16px; }
nav { gap: 6px 28px; }
nav a { font-size: 19px; }
.intro { column-gap: clamp(32px, 4vw, 72px); padding-block: 36px 12px; }
h1 { font-size: clamp(42px, 4.2vw, 64px); font-weight: 500; text-shadow: 0 0 5px var(--glow), 0 0 24px var(--glow); }
.lead { font-size: clamp(20px, 1.5vw, 24px); font-weight: 500; line-height: 1.65; text-shadow: 0 0 5px var(--glow), 0 0 18px var(--glow); }
.intro-details .intro-note { font-size: 21px; max-width: 65ch; }
.intro-links, .skills-list, .project-body, .project-desc, .resume-entry, .earlier-experience, .section-note, #resume > a, #beyond > p { font-size: 19px; }
.draft, .filters, .terminal { font-size: 17px; }
h2 { font-size: 28px; font-weight: 500; }
h3 { font-size: 21px; font-weight: 500; }
.skills-list > div { grid-template-columns: minmax(180px, 20%) minmax(0, 1fr); }
.resume-entry { max-width: 110ch; }
body[data-appearance=light] { color-scheme: light; --bg: #eee4d2; --text: #202b25; --muted: #4b5a50; --line: #c9bfae; }
body[data-appearance=light][data-theme=matrix] { --green: #235e16; --phosphor: #245c12; --bright: #123d0a; --dim: #47643c; --glow: #4a8a282b; }
body[data-appearance=light][data-theme=amber] { --green: #80500b; --phosphor: #754400; --bright: #593000; --dim: #715c37; --glow: #b278242b; }
body[data-appearance=light][data-theme=cyan] { --green: #08616f; --phosphor: #005869; --bright: #003e4c; --dim: #3d6268; --glow: #16869a2b; }
body[data-appearance=light][data-theme=violet] { --green: #68418b; --phosphor: #603185; --bright: #451567; --dim: #665775; --glow: #9166b82b; }
body[data-appearance=light][data-theme=rose] { --green: #93405f; --phosphor: #872c51; --bright: #661335; --dim: #795563; --glow: #bc5e832b; }
@media (max-width: 900px) {
  .intro { padding-top: 28px; }
  .intro-details .intro-note { max-width: 70ch; }
  .skills-list > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 600px) {
  .shell { padding: 20px max(18px, env(safe-area-inset-right)) 20px max(18px, env(safe-area-inset-left)); }
  body { font-size: 18px; }
  .display-controls { width: 100%; }
  .appearance-picker, .theme-picker { flex: 1; width: auto; min-width: 0; }
  nav { gap: 4px 12px; }
  nav a { font-size: 16px; }
  h1 { font-size: clamp(36px, 9.5vw, 54px); }
  .lead { font-size: 20px; }
  .intro-details .intro-note { font-size: 19px; }
  .intro-links, .skills-list, .project-body, .project-desc, .resume-entry, .earlier-experience, .section-note, #resume > a, #beyond > p { font-size: 18px; }
  h2 { font-size: 23px; }
  h3 { font-size: 19px; }
}
@media (prefers-contrast: more) { .brand, h1, .lead, h2, h3 { text-shadow: none; } body { background-image: none; } }

/* Tight phosphor halos preserve the letter shapes at every display brightness. */
body:is([data-appearance=dark], [data-appearance=navy]) :is(.brand, h1) {
  color: var(--green);
  text-shadow: 0 0 2px var(--green), 0 0 5px var(--glow), 0 0 12px var(--glow);
}
body:is([data-appearance=dark], [data-appearance=navy]) .lead {
  text-shadow: 0 0 2px var(--glow), 0 0 5px var(--glow);
}
@media (prefers-contrast: more) {
  body:is([data-appearance=dark], [data-appearance=navy]) :is(.brand, h1, .lead) { text-shadow: none; }
}

/* Each dark palette carries the same bright phosphor energy. */
body:is([data-appearance=dark], [data-appearance=navy])[data-theme=amber] { --green: #ffd15c; --phosphor: #ffe49a; --bright: #fff2c7; --dim: #dbbd78; --glow: #ffcb5470; }
body:is([data-appearance=dark], [data-appearance=navy])[data-theme=cyan] { --green: #49eaff; --phosphor: #9cf6ff; --bright: #d5fbff; --dim: #83cbd4; --glow: #49eaff70; }
body:is([data-appearance=dark], [data-appearance=navy])[data-theme=violet] { --green: #ca9aff; --phosphor: #e3c8ff; --bright: #f2e5ff; --dim: #b8a0d4; --glow: #ca9aff70; }
body:is([data-appearance=dark], [data-appearance=navy])[data-theme=rose] { --green: #ff8cbd; --phosphor: #ffc1dd; --bright: #ffe4ef; --dim: #d6a0b8; --glow: #ff8cbd70; }
h1 { font-size: clamp(52px, 5.4vw, 100px); line-height: 1.12; }
.brand, #home h1 { font-family: var(--site-font); font-weight: 500; letter-spacing: -.028em; }
#home h1 { color: #fff; font-weight: 300; text-shadow: 0 0 2px #ffffffd9, 0 0 10px #ffffffb3, 0 0 28px #ffffff80, 0 0 54px #ffffff40; }
#home .lead { font-weight: 300; text-shadow: 0 0 3px var(--glow), 0 0 10px var(--glow), 0 0 24px var(--glow); }
#home h1 .accent { color: inherit; }
body[data-appearance=light] #home .lead { text-shadow: none; }
body[data-appearance=light] #home h1 { color: var(--text); text-shadow: none; }
@media (prefers-contrast: more) { #home h1, #home .lead { text-shadow: none; } }
.intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.intro-identity { align-self: center; }
.terminal-content { height: 28svh; min-height: 180px; overflow: hidden; resize: none; display: flex; flex-direction: column; padding: 12px 16px; border: 1px solid var(--line); background: var(--bg); scrollbar-color: var(--dim) var(--bg); }
.terminal-content > p { margin: 0 0 16px; }
#terminal-output p { border-left: 1px solid var(--line); padding-left: 12px; }
.terminal input { color: var(--text); }
.terminal[open] > summary { color: var(--phosphor); }
@media (prefers-reduced-motion: no-preference) {
  section[role=tabpanel]:not([hidden]) { animation: terminal-reveal 220ms ease-out; }
  .brand { transition: text-shadow 180ms ease; }
  .brand:hover { text-shadow: 0 0 3px var(--green), 0 0 18px var(--glow); }
}
@keyframes terminal-reveal { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) { .intro { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  h1 { font-size: clamp(40px, 12vw, 68px); }
  .terminal-content { padding: 12px; }
}

.resume-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 20px;
  color: var(--text);
  font-weight: 500;
  text-shadow: none;
}
.resume-link:hover { color: var(--bright); text-decoration: underline; text-underline-offset: 5px; }
body[data-appearance=light] .resume-link { color: var(--text); text-shadow: none; }
@media (prefers-contrast: more) {
  .resume-link, body[data-appearance=light] .resume-link { text-shadow: none; }
}

/* Solid surfaces keep the terminal calm in every display mode. */
body { background-image: none; }
body[data-appearance=navy] { --bg: #0f0f23; }

.terminal-content > p { flex: none; font-size: 15px; }
#terminal-output { flex: 1; min-height: 0; overflow-y: auto; overflow-wrap: anywhere; }
.terminal form { flex: none; flex-wrap: nowrap; }
.terminal form label { flex-basis: auto; white-space: nowrap; }

:root {
  --terminal-default-height: clamp(180px, 25svh, 320px);
  --terminal-minimum-height: min(160px, 55svh);
  --terminal-maximum-height: 75svh;
  --terminal-dock-height: clamp(var(--terminal-minimum-height), var(--terminal-preferred-height, var(--terminal-default-height)), var(--terminal-maximum-height));
  --terminal-collapsed-height: 100px;
}
html { scroll-padding-bottom: calc(var(--terminal-dock-height) + 24px); }
body { padding-bottom: var(--terminal-dock-height); }
.shell { min-height: calc(100svh - var(--terminal-dock-height)); }
.shell > .terminal { position: fixed; z-index: 10; inset: auto 0 0; display: flex; flex-direction: column;
  height: var(--terminal-dock-height); margin: 0; padding: 0 clamp(18px, 2.4vw, 48px) max(8px, env(safe-area-inset-bottom));
  border: 0; border-top: 1px solid var(--line); background: var(--bg); }
body[data-terminal-expanded=true] .shell > .terminal { min-height: var(--terminal-minimum-height); max-height: var(--terminal-maximum-height); }
.terminal-heading { display: flex; justify-content: space-between; align-items: center; flex: none; gap: 8px; margin: 0; font-size: 13px; min-height: 44px; }
.terminal-heading button { font-size: 13px; }
#terminal-resize {
  position: absolute; inset: 0 auto auto 50%; transform: translateX(-50%);
  display: grid; place-items: center; width: 64px; height: 44px;
  cursor: ns-resize; touch-action: none; user-select: none;
}
#terminal-resize span { width: 30px; height: 6px; border-block: 1px solid var(--muted); }
#terminal-resize:hover span, #terminal-resize:focus-visible span { border-color: var(--green); }
#terminal-resize:focus-visible { outline: 1px solid var(--green); outline-offset: -4px; }
html[data-terminal-resizing] { cursor: ns-resize; user-select: none; }
.terminal-content { height: auto; min-height: 0; max-height: none; padding: 0; border: 0; background: transparent; gap: 4px; cursor: text; }
.terminal .terminal-content { flex: 1; }
.terminal-content > p { margin: 0; font-size: 14px; }
#terminal-output { flex: 1; max-height: none; position: relative; overscroll-behavior: contain; }
#terminal-output:empty { display: block; }
#terminal-output p { border: 0; padding-left: 0; margin: 8px 0 14px; }
.terminal form { gap: 10px; }
.terminal form label { color: var(--muted); }
#terminal-location { color: var(--green); }
.terminal-entry { position: relative; flex: 1; min-width: 44px; }
.terminal-entry input { display: block; width: 100%; padding: 0; border-radius: 0; caret-color: var(--green); }
.terminal-entry input:focus-visible { outline: none; }
.terminal-entry:focus-within { box-shadow: 0 1px 0 var(--dim); }
.terminal-entry:has(input:placeholder-shown)::after { content: '_'; position: absolute; top: 0; left: 0; line-height: 44px; color: var(--green); pointer-events: none; }
.terminal-entry:has(input:placeholder-shown) input { caret-color: transparent; }
.terminal form:focus-within label { color: var(--bright); text-shadow: 0 0 5px var(--glow); }
.skills-list dt, .section-heading > span, .resume-entry h3, .resume-entry > .accent, .project-title { color: var(--bright); text-shadow: 0 0 5px var(--glow); }
.section-heading h2 { text-shadow: 0 0 3px var(--glow), 0 0 12px var(--glow); }
@media (prefers-reduced-motion: no-preference) { .terminal-entry:focus-within:has(input:placeholder-shown)::after { animation: blink 1.3s steps(1) infinite; } }
html:has(body[data-terminal-expanded=false]) { --terminal-dock-height: var(--terminal-collapsed-height); }
body[data-terminal-expanded=false] #terminal-resize,
body[data-terminal-expanded=false] #terminal-output,
body[data-terminal-expanded=false] #terminal-hint { display: none; }
@media (max-width: 700px) {
  :root { --terminal-default-height: clamp(220px, 35svh, 300px); }
  .terminal form { flex-wrap: nowrap; gap: 6px; font-size: 14px; }
  .terminal form label { flex-basis: auto; font-size: 13px; }
  .terminal-content > p { font-size: 13px; }
  .terminal-subtitle { display: none; }
  .terminal-entry { min-width: 24px; }
}
@media (prefers-contrast: more) {
  .skills-list dt, .section-heading > span, .resume-entry h3, .resume-entry > .accent, .project-title, .section-heading h2, .terminal form:focus-within label { text-shadow: none; }
}

.interests-list { max-width: 80ch; padding-left: 1.4em; font-size: 19px; }
.interests-list li { padding-left: 8px; margin-bottom: 20px; }
.interests-list li::marker { color: var(--green); }
.interest-title { display: block; color: var(--bright); font-weight: 500; text-shadow: 0 0 5px var(--glow); }
.interests-list a { display: inline-block; min-height: 44px; align-content: center; }
@media (max-width: 600px) { .interests-list { font-size: 18px; } }
@media (prefers-contrast: more) { .interest-title { text-shadow: none; } }

.ascii-doodle { width: min(100%, 400px); margin: 20px 0 0; container-type: inline-size; }
.ascii-doodle[data-ascii-vignette=grinning-cat] { width: min(100%, 320px); }
.ascii-doodle[data-ascii-vignette=coffee] { width: min(100%, 300px); }
.ascii-doodle pre { position: relative; width: 100%; height: 81.49cqw; margin: 0; overflow: hidden;
  color: var(--green); font: 500 calc(100cqw / 144 / .6)/1.1 'Source Code Pro', monospace; white-space: pre; text-shadow: none; }
.ascii-doodle[data-ascii-vignette=grinning-cat] pre {
  --portrait-font-size: calc(100cqw / 75 / .72);
  font: 400 var(--portrait-font-size)/1 monospace;
  height: calc(var(--portrait-font-size) * 44);
}
.ascii-doodle figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.ascii-doodle button { flex: none; min-height: 44px; }
.vignette-tone { position: absolute; inset: 0; display: block; pointer-events: none; }
.vignette-tone-0 { color: color-mix(in srgb, var(--bg) 65%, var(--green)); }
.vignette-tone-1 { color: color-mix(in srgb, var(--bg) 40%, var(--green)); }
.vignette-tone-2 { color: var(--dim); }
.vignette-tone-3 { color: var(--green); }
.vignette-tone-4 { color: var(--bright); }
.vignette-tone-5 { color: color-mix(in srgb, var(--bright) 35%, white); text-shadow: 0 0 3px var(--glow); }
body[data-appearance=light] .vignette-tone-0 { color: var(--muted); }
body[data-appearance=light] .vignette-tone-5 { color: var(--bright); text-shadow: none; }
@media (prefers-contrast: more) { .vignette-tone { color: var(--text); text-shadow: none; } }

#beyond { padding-top: 16px; }
#beyond .section-heading { padding-bottom: 8px; }
#beyond h2 { line-height: 1.35; }
#beyond .section-note { margin: 12px 0 16px; }
.beyond-interests { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.beyond-interests .interests-list { margin: 0; font-size: 18px; line-height: 1.5; }
.beyond-interests .interests-list li { margin-bottom: 16px; }
.beyond-interests .interests-list li:last-child { margin-bottom: 0; }
.beyond-aside { min-width: 0; display: grid; gap: 12px; }
.beyond-contact { font-size: 17px; line-height: 1.5; }
.beyond-contact p { margin: 0; }
.contact-invitation {
  color: var(--bright);
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.3;
  letter-spacing: -.025em;
  text-wrap: pretty;
  text-shadow: 0 0 5px var(--glow), 0 0 18px var(--glow);
}
body[data-appearance=light] .contact-invitation { color: var(--text); text-shadow: none; }
@media (prefers-contrast: more) { .contact-invitation { text-shadow: none; } }
.beyond-contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; padding-top: 8px; }
.beyond-contact-links a { display: inline-flex; align-items: center; min-height: 44px; }
.ascii-sculpture { min-width: 0; margin: 0; container-type: inline-size; }
.ascii-sculpture pre {
  --sculpture-height: min(56.25cqw, clamp(140px, 100svh - 550px, 320px));
  position: relative;
  height: var(--sculpture-height);
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--green);
  font: 500 calc(100cqw / var(--sculpture-columns, 136) / .6)/1.08 'Source Code Pro', monospace;
  white-space: pre;
  text-shadow: none;
}
.ascii-sculpture figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; }
.ascii-sculpture button { min-height: 44px; }
@media (max-width: 900px) {
  .beyond-interests { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .beyond-aside { display: contents; }
  .beyond-contact { grid-row: 1; }
  .beyond-interests .interests-list { grid-row: 2; }
  .ascii-sculpture { grid-row: 3; }
  .ascii-sculpture { width: 100%; max-width: 540px; justify-self: center; }
  .ascii-sculpture pre { --sculpture-height: min(56.25cqw, 280px); }
}
@media (max-width: 600px) {
  #beyond .section-note { margin: 8px 0 12px; font-size: 17px; line-height: 1.5; }
  .beyond-contact { font-size: 16px; }
}
@media (max-width: 360px) {
  #beyond { padding-top: 6px; }
  #beyond .section-heading { gap: 4px; }
  #beyond h2 { font-size: 22px; }
  #beyond .section-heading > span { font-size: 14px; }
  #beyond .section-note { margin: 4px 0 8px; }
  .beyond-contact-links { padding-top: 4px; }
}
@media (prefers-contrast: more) { .ascii-sculpture pre { text-shadow: none; } }
.sculpture-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.sculpture-tone { display: block; position: absolute; top: 50%; left: 50%; width: max-content; transform: translate(-50%, -50%); pointer-events: none; }
.sculpture-tone-0 { color: color-mix(in srgb, var(--bg) 58%, var(--green)); }
.sculpture-tone-1 { color: color-mix(in srgb, var(--bg) 30%, var(--green)); }
.sculpture-tone-2 { color: color-mix(in srgb, var(--bg) 10%, var(--green)); }
.sculpture-tone-3 { color: var(--green); }
.sculpture-tone-4 { color: var(--bright); }
.sculpture-tone-5 { color: color-mix(in srgb, var(--green) 40%, var(--bright)); }
.sculpture-tone-6 { color: color-mix(in srgb, var(--bright) 25%, white); text-shadow: 0 0 var(--sculpture-glow, 2px) var(--glow); }
body[data-appearance=light] .sculpture-tone-5, body[data-appearance=light] .sculpture-tone-6 { color: var(--bright); text-shadow: none; }
@media (prefers-contrast: more) { .sculpture-tone { color: var(--text); text-shadow: none; } }


#ascii-sculpture[data-pattern="Classic fusion"] .sculpture-tone-0 { color: color-mix(in srgb, var(--bg) 78%, var(--green)); }
#ascii-sculpture[data-pattern="Classic fusion"] .sculpture-tone-1 { color: color-mix(in srgb, var(--bg) 52%, var(--green)); }
#ascii-sculpture[data-pattern="Classic fusion"] .sculpture-tone-2 { color: color-mix(in srgb, var(--bg) 22%, var(--green)); }
@media (prefers-contrast: more) { #ascii-sculpture .sculpture-tone { color: var(--text); text-shadow: none; } }
