@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #101518; --panel: #171e22; --panel-deep: #12191d;
  --text: #eeeae2; --muted: #a2b1ba; --cyan: #82cbd0; --amber: #e5b879; --line: #303c43;
  --display: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", sans-serif;
  --body: "Avenir Next", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --rail-width: 330px; --page-width: 1460px; --gutter: clamp(24px, 4.5vw, 76px);
  --section-space: 110px; --radius: 3px; --motion: 650ms; --parallax: 0px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 44px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 8; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:hover { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; }
[hidden] { display: none !important; }
::selection { background: var(--cyan); color: var(--bg); }
p { margin: 0 0 20px; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
h2 { font: 600 clamp(36px, 3.8vw, 58px)/1.1 var(--display); letter-spacing: -.045em; }
h3 { font-size: 23px; font-weight: 500; letter-spacing: -.025em; }
img, video { display: block; max-width: 100%; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: -100px; padding: 12px 20px; background: var(--amber); color: var(--bg); }
.skip-link:focus { top: 15px; }
.ambient-grid { position: fixed; inset: -100px 0; z-index: -1; background-image: linear-gradient(#82cbd008 1px, transparent 1px), linear-gradient(90deg, #82cbd008 1px, transparent 1px); background-size: 64px 64px; transform: translateY(var(--parallax)); mask-image: linear-gradient(90deg, #000, #0003); }
.topbar { max-width: var(--page-width); height: 94px; margin: auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.wordmark-suffix { font: 12px var(--mono); color: var(--muted); }
.brand-symbol { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--cyan); color: var(--cyan); font: 600 23px var(--display); letter-spacing: -3px; padding-right: 3px; }
.topbar-location { margin-left: auto; font: 11px var(--mono); color: var(--muted); }
.topbar-location span { color: var(--cyan); margin-left: 12px; }
.topbar-contact { font-size: 13px; padding-left: 30px; border-left: 1px solid var(--line); }
.topbar-contact span { margin-left: 16px; color: var(--amber); }
.layout { max-width: var(--page-width); margin: auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) var(--rail-width); column-gap: clamp(45px, 6vw, 100px); }
main { min-width: 0; }
.hero { min-height: min(880px, calc(100svh - 94px)); padding: 62px 0 38px; position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.section-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: 11px/1.6 var(--mono); color: var(--cyan); margin-bottom: 25px; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px #e5b87930; }
.muted { color: var(--muted); }
h1 { font: 700 clamp(94px, 11.7vw, 168px)/.81 var(--display); letter-spacing: -.055em; margin: 6px 0 29px -6px; }
.name-period { color: var(--cyan); }
.hero-role { font-size: clamp(16px, 1.6vw, 22px); margin-bottom: 23px; letter-spacing: -.02em; }
.hero-role span { color: var(--muted); margin: 0 5px; }
.hero-lede { font-size: 28px; line-height: 1.28; letter-spacing: -.02em; margin-bottom: 16px; }
.hero-body { max-width: 490px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 19px; font-size: 12px; font-weight: 600; }
.button:hover { border-color: var(--cyan); }
.button.primary { background: var(--cyan); border-color: var(--cyan); color: var(--bg); }
.button.primary:hover { background: var(--text); border-color: var(--text); }
.hero-bottom { display: flex; width: 100%; align-items: center; gap: 23px; padding-top: 36px; margin-top: auto; font: 11px var(--mono); color: var(--muted); }
.scroll-cue { margin-left: auto; font-size: 10px; }
.scroll-cue span { color: var(--amber); padding-left: 14px; }
.hero-coordinate { position: absolute; right: 0; top: 145px; writing-mode: vertical-rl; font: 9px var(--mono); letter-spacing: .08em; color: #84959e; }
.content-section { padding: var(--section-space) 0; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 40px; }
.section-heading h2 { margin-bottom: 20px; }
.section-heading > p:last-child:not(.section-kicker) { color: var(--muted); font-size: 14px; max-width: 510px; }
.education-entry { padding: 30px 0; border-top: 1px solid var(--line); }
.entry-meta { font: 10px/1.6 var(--mono); color: var(--muted); }
.education-entry .entry-meta { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; }
.badge { color: var(--amber); border: 1px solid #e5b87945; padding: 4px 8px; }
.education-entry h3 { margin-bottom: 9px; }
.entry-subtitle { font-size: 15px; margin-bottom: 8px; }
.organization { color: var(--cyan); font-size: 13px; margin-bottom: 12px; }
.education-entry > p:not(.organization):not(.entry-subtitle), .work-entry p:not(.organization):not(.entry-meta) { color: var(--muted); font-size: 14px; }
.inline-link { font-size: 12px; color: var(--cyan); border-bottom: 1px solid #82cbd050; padding-bottom: 4px; }
.inline-link:hover { color: var(--text); }
.work-entry { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 25px; padding: 30px 0; border-top: 1px solid var(--line); }
.work-entry > .entry-meta { padding-top: 2px; }
.work-entry .organization { margin-bottom: 8px; }
.work-entry h3 { margin-bottom: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { color: var(--muted); font: 10px var(--mono); padding: 6px 8px; border: 1px solid var(--line); border-radius: 2px; }
.skill-list { margin: 0; }
.skill-list > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.skill-list dt { font-size: 13px; color: var(--cyan); }
.skill-list dd { margin: 0; color: var(--muted); font-size: 14px; }
.certification { display: flex; gap: 18px; align-items: center; padding: 25px; margin-top: 25px; border: 1px solid var(--line); background: #171e2280; }
.cert-icon { color: var(--amber); font-size: 24px; }
.certification h3 { font-size: 16px; margin: 7px 0; }
.certification p { color: var(--muted); font-size: 12px; margin: 0; }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.project { position: relative; min-width: 0; background: var(--panel-deep); border: 1px solid var(--line); border-radius: var(--radius); }
.project.featured { grid-column: 1 / -1; }
.project summary { list-style: none; cursor: pointer; }
.project summary::-webkit-details-marker { display: none; }
.project summary:focus-visible { outline-offset: 3px; }
.project:hover, .project[open] { border-color: #82cbd070; }
.project-image { display: block; background: #0b1013; padding: 12px; border-bottom: 1px solid var(--line); }
.project-image img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; }
.featured .project-image { padding: 20px; }
.featured .project-image img { aspect-ratio: 16 / 8; }
.project-summary { display: flex; flex-direction: column; gap: 9px; padding: 22px 42px 23px 20px; }
.project-summary .entry-meta { font-size: 9px; }
.project-summary strong { font-size: 18px; font-weight: 500; line-height: 1.25; }
.featured .project-summary strong { font-size: 24px; }
.project-stack { font: 10px/1.7 var(--mono); color: var(--muted); }
.project-toggle { position: absolute; right: 18px; top: 18px; background: var(--panel); border: 1px solid var(--line); width: 28px; height: 28px; display: grid; place-items: center; color: var(--cyan); font-size: 20px; line-height: 1; }
.project[open] .project-toggle { transform: rotate(45deg); color: var(--amber); }
.project-detail { border-top: 1px solid var(--line); padding: 22px 20px; font-size: 13px; color: var(--muted); }
.project-detail video { width: 100%; max-height: 450px; margin: 20px 0 10px; background: #080d10; }
.media-description { font-size: 11px; }
.data-flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--cyan); font: 10px var(--mono); }
.outside-layout { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 30px; align-items: center; }
.portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.5); border: 1px solid var(--line); }
.outside-copy { color: var(--muted); font-size: 14px; }
.outside-copy > p:first-child { color: var(--text); font-size: 21px; line-height: 1.4; }
.contact-section h2 { font-size: clamp(45px, 4.7vw, 68px); margin-bottom: 30px; }
.contact-email { display: inline-block; font-size: clamp(16px, 2vw, 26px); margin-bottom: 30px; border-bottom: 1px solid var(--cyan); padding-bottom: 10px; overflow-wrap: anywhere; }
.contact-email span { color: var(--cyan); }
.contact-section .actions { gap: 25px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 25px; margin-top: 90px; display: flex; flex-wrap: wrap; gap: 15px; color: var(--muted); font: 10px var(--mono); }
.footer-bottom a { margin-left: auto; }
.control-rail { position: sticky; top: 25px; align-self: start; padding-top: 36px; padding-bottom: 22px; max-height: calc(100svh - 25px); overflow-y: auto; scrollbar-width: thin; }
.rail-heading { display: flex; justify-content: space-between; align-items: center; font: 10px var(--mono); margin-bottom: 18px; color: var(--muted); }
.rail-heading .status-dot { margin-right: 7px; }
.terminal { border: 1px solid #40515a; border-radius: var(--radius); background: var(--panel); box-shadow: 0 12px 40px #0002; }
.terminal-title { display: flex; justify-content: space-between; align-items: center; min-height: 47px; padding: 0 17px; border-bottom: 1px solid var(--line); font: 11px var(--mono); }
.terminal-icon { color: var(--cyan); margin-right: 8px; }
.icon-button { display: none; border: 0; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; width: 38px; height: 38px; }
.terminal-body { padding: 20px 18px 17px; }
.terminal-command { color: var(--amber); font: 10px/1.5 var(--mono); margin-bottom: 22px; }
.chat-message { display: flex; align-items: flex-start; gap: 12px; min-height: 150px; }
.chat-avatar { width: 26px; height: 26px; flex: 0 0 26px; border: 1px solid #82cbd060; background: #82cbd00b; color: var(--cyan); font: 10px/24px var(--mono); text-align: center; }
.chat-author { display: block; color: var(--text); font-size: 11px; margin-bottom: 7px; }
#terminal-message { margin-bottom: 19px; color: #c0cbd0; font-size: 12px; line-height: 1.8; }
.instrument { height: 105px; position: relative; overflow: hidden; background: #10171b; border: 1px solid #29373e; }
.instrument-grid { position: absolute; inset: 0; background-image: linear-gradient(90deg, #82cbd00a 1px, transparent 1px); background-size: 25px 100%; }
.instrument svg { width: 100%; height: 100%; }
.instrument-baseline { stroke: #82cbd015; stroke-width: 1; }
.instrument-path { stroke: var(--cyan); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 650; stroke-dashoffset: 0; }
.instrument.changed .instrument-path { animation: draw-line 1.1s ease both; }
.scanner { position: absolute; top: 0; bottom: 0; width: 20%; border-right: 1px solid #82cbd055; background: linear-gradient(90deg, transparent, #82cbd00b); animation: scan 8s linear infinite; }
.instrument-caption { font: 9px/1.6 var(--mono); color: var(--muted); margin: 10px 0 0; }
.terminal-footer { display: flex; gap: 9px; align-items: center; border-top: 1px solid var(--line); padding: 10px 16px; font: 9px var(--mono); color: var(--muted); }
.terminal-footer > :last-child { margin-left: auto; }
.terminal-cursor { color: var(--amber); }
.section-nav { margin-top: 22px; padding: 0 0 0 4px; }
.section-nav a { display: flex; align-items: center; gap: 14px; font-size: 12px; min-height: 35px; padding: 0 10px 0 14px; border-left: 1px solid var(--line); color: var(--muted); }
.nav-index { color: #85969f; font: 9px var(--mono); }
.nav-marker { margin-left: auto; opacity: 0; }
.section-nav a[aria-current] { color: var(--text); border-left: 2px solid var(--amber); padding-left: 13px; background: linear-gradient(90deg, #e5b87909, transparent); }
.section-nav a[aria-current] .nav-index, .section-nav a[aria-current] .nav-marker { color: var(--amber); opacity: 1; }
.section-nav a:hover { color: var(--cyan); }
.reading-progress { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 9px; color: var(--muted); font: 9px var(--mono); }
progress { appearance: none; width: 100%; height: 2px; border: 0; background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--amber); }
progress::-moz-progress-bar { background: var(--amber); }
.reopen-terminal { position: fixed; bottom: 14px; right: 14px; z-index: 20; padding: 12px 16px; background: var(--panel); border: 1px solid var(--cyan); color: var(--text); border-radius: var(--radius); font: 11px var(--mono); cursor: pointer; }
.reopen-terminal span { color: var(--cyan); margin-right: 8px; }
.reveal.is-visible { animation: reveal var(--motion) ease both; }
@keyframes reveal { from { opacity: .3; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(600%); } }
@keyframes draw-line { from { stroke-dashoffset: 650; } to { stroke-dashoffset: 0; } }
@media (min-width: 981px) and (max-height: 820px) {
  .control-rail { top: 12px; padding-top: 18px; max-height: calc(100svh - 12px); }
  .rail-heading { margin-bottom: 12px; }
  .terminal-body { padding: 14px 16px; }
  .terminal-command { margin-bottom: 14px; }
  .chat-message { min-height: 132px; }
  .instrument { height: 72px; }
  .section-nav { margin-top: 14px; }
  .section-nav a { min-height: 30px; }
  .reading-progress { margin-top: 14px; }
}
@media (max-width: 1150px) and (min-width: 981px) {
  :root { --rail-width: 295px; --gutter: 36px; }
  .layout { column-gap: 40px; }
  .hero-coordinate { display: none; }
  .work-entry { grid-template-columns: 1fr; gap: 4px; }
  .projects-grid { gap: 14px; }
  .project-summary { padding-left: 15px; }
}
@media (max-width: 980px) {
  :root { --section-space: 80px; }
  html { scroll-padding-top: 80px; }
  body { padding-bottom: 190px; }
  body.companion-closed { padding-bottom: 65px; }
  .topbar { height: 76px; }
  .topbar-location { display: none; }
  .topbar-contact { margin-left: auto; }
  .layout { display: flex; flex-direction: column; }
  main { order: 1; }
  .hero { min-height: 760px; padding-top: 48px; }
  h1 { font-size: clamp(110px, 20vw, 174px); }
  .hero-body { max-width: 510px; }
  .control-rail { position: sticky; top: 0; z-index: 15; max-height: none; overflow: visible; padding: 0; margin: 0 calc(-1 * var(--gutter)); background: var(--bg); align-self: stretch; }
  .rail-heading, .reading-progress { display: none; }
  .section-nav { display: flex; overflow-x: auto; margin: 0; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); scrollbar-width: thin; }
  .section-nav a { white-space: nowrap; min-height: 48px; gap: 7px; padding: 0 13px; border-left: 0; border-bottom: 2px solid transparent; font-size: 11px; }
  .section-nav a[aria-current] { padding-left: 13px; border-left: 0; border-bottom-color: var(--amber); }
  .nav-marker { display: none; }
  .terminal { position: fixed; left: 14px; right: 14px; bottom: max(12px, env(safe-area-inset-bottom)); background: #171e22fa; z-index: 20; }
  .terminal-title { min-height: 36px; padding: 0 13px; }
  .icon-button { display: block; }
  .terminal-body { padding: 10px 13px 12px; }
  .terminal-command { margin-bottom: 7px; font-size: 9px; }
  .chat-message { min-height: 0; gap: 10px; }
  .chat-author, .instrument, .instrument-caption, .terminal-footer { display: none; }
  #terminal-message { font-size: 11px; line-height: 1.65; margin: 0; }
  .chat-avatar { width: 22px; flex-basis: 22px; height: 22px; line-height: 20px; font-size: 8px; }
  .contact-section { padding-bottom: 35px; }
}
@media (max-width: 560px) {
  :root { --gutter: 22px; --section-space: 65px; }
  .wordmark-suffix { display: none; }
  .topbar { height: 68px; gap: 10px; }
  .topbar-contact { padding-left: 13px; font-size: 12px; }
  .hero { min-height: 730px; padding-top: 35px; }
  .hero .section-kicker { font-size: 9px; gap: 8px; }
  .hero .section-kicker .muted { flex-basis: 100%; margin-left: 14px; }
  h1 { font-size: clamp(98px, 23vw, 135px); margin-left: -3px; }
  .hero-role { font-size: 16px; }
  .hero-lede { font-size: 27px; }
  .hero-body { font-size: 13px; }
  .hero-coordinate { display: none; }
  .button { gap: 18px; padding: 12px 14px; font-size: 11px; }
  .hero-bottom { gap: 17px; font-size: 10px; }
  .scroll-cue { font-size: 8px; }
  .scroll-cue span { padding-left: 5px; }
  .education-entry .entry-meta { flex-wrap: wrap; }
  .work-entry { grid-template-columns: 1fr; gap: 3px; }
  .skill-list > div { grid-template-columns: 1fr; gap: 8px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-summary strong { font-size: 20px; }
  .featured .project-summary strong { font-size: 22px; }
  .featured .project-image img { aspect-ratio: 16 / 10; }
  .outside-layout { grid-template-columns: 1fr; }
  .portrait { max-height: 360px; object-position: center 35%; }
  .footer-bottom { margin-top: 60px; }
  .footer-bottom a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ambient-grid { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .scanner { display: none; }
  .instrument-path { stroke-dashoffset: 0; }
}
@media print {
  body { background: white; color: black; padding: 0; }
  .topbar, .control-rail, .ambient-grid, .reopen-terminal, .skip-link, .hero-coordinate, body::after { display: none !important; }
  .layout { display: block; padding: 0; }
  .hero { min-height: 0; }
  .content-section { padding: 30px 0; }
  .project { break-inside: avoid; }
  :root { --text: #111; --muted: #444; --cyan: #235c60; --panel-deep: #fff; }
}
