@font-face {
    font-family: "Oswald";
    src: url("assets/fonts/Oswald-VariableFont_wght.woff") format("woff");
    font-weight: 200 700;
    font-display: swap;
}

:root {
    --bg: #08090b;
    --bg-soft: #0d0e11;
    --panel: #111216;
    --panel-2: #18191d;
    --text: #f3f3f3;
    --muted: #a9abb0;
    --line: rgba(255, 255, 255, 0.11);
    --line-strong: rgba(255, 255, 255, 0.2);
    --accent: #f3f3f3;
    --accent-soft: #ffffff;
    --button-text: #08090b;
    --sidebar: 220px;
    --content: 1240px;
    --sans: "Segoe UI Variable", Aptos, "Segoe UI", Arial, sans-serif;
    --display: "Oswald", "Arial Narrow", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html[data-theme="light"] {
    --bg: #ffffff;
    --bg-soft: #f7f7f7;
    --panel: #f1f1f1;
    --panel-2: #e9e9e9;
    --text: #111111;
    --muted: #575757;
    --line: rgba(0, 0, 0, 0.12);
    --line-strong: rgba(0, 0, 0, 0.22);
    --accent: #111111;
    --accent-soft: #111111;
    --button-text: #ffffff;
}

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--line-strong) var(--bg); }
html { scroll-behavior: smooth; scroll-padding-top: 24px; color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { display: none; }
body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
input, textarea { caret-color: var(--text); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
svg { width: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 10px 14px; color: var(--bg); background: var(--text); font: 600 12px/1 var(--mono); text-transform: uppercase; text-decoration: none; transform: translateY(-160%); transition: transform .2s; z-index: 5000; }
.skip-link:focus { transform: translateY(0); }
.noscript-nav { position: relative; z-index: 1000; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text); background: var(--bg); border-bottom: 1px solid var(--line); font: 600 12px/1.4 var(--mono); text-transform: uppercase; }
.noscript-nav a { color: inherit; text-decoration: none; }
.noscript-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 28px 22px 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg); z-index: 100; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-name { font: 400 18px/1 var(--display); letter-spacing: .015em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 42px; aspect-ratio: 1; border: 1px solid var(--line-strong); font: 600 17px/1 var(--display); letter-spacing: .04em; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: 14px; letter-spacing: .02em; }
.brand-copy small { color: var(--muted); font: 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .11em; }
.nav-links { display: flex; flex-direction: column; gap: 3px; margin: 70px 0 auto; }
.nav-links a { position: relative; display: flex; align-items: center; padding: 10px 12px; color: var(--muted); text-decoration: none; font-size: 13px; transition: color .25s, background .25s, transform .25s; }
.nav-links a::before { content: ""; position: absolute; left: -22px; width: 2px; height: 0; background: var(--accent); transition: height .25s; }
.nav-links a:hover { color: var(--text); transform: translateX(3px); }
.nav-links a.active { color: var(--text); background: var(--panel); }
.nav-links a.active::before { height: 20px; }
.sidebar-footer { display: grid; gap: 17px; }
.theme-toggle { width: 100%; padding: 10px 0; display: flex; align-items: center; gap: 9px; color: var(--muted); background: transparent; border: 0; border-top: 1px solid var(--line); cursor: pointer; font: 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.theme-toggle:hover { color: var(--text); }
.theme-toggle .theme-icon { width: 14px; }
.theme-icon-moon { display: none; }
html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: block; }
.sidebar-note { padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sidebar-note small { display: block; margin-bottom: 5px; color: var(--muted); font: 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.sidebar-note strong { display: block; color: var(--text); font-size: 12px; line-height: 1.45; }
.availability { color: var(--muted); font: 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.availability span { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--text); }
.contact-trigger { width: 100%; padding: 13px 0; display: flex; justify-content: space-between; align-items: center; color: var(--text); background: none; border: 0; border-block: 1px solid var(--line); cursor: pointer; font-size: 12px; text-align: left; transition: color .2s; }
.contact-trigger:hover { color: var(--accent); }
.social-links { display: flex; gap: 8px; }
.social-links a { display: grid; place-items: center; width: 30px; aspect-ratio: 1; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; text-decoration: none; font: 10px/1 var(--mono); transition: .2s; }
.social-links a:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }
.sidebar-links { display: flex; gap: 15px; }
.sidebar-links a { color: var(--muted); font: 12px/1 var(--mono); text-transform: uppercase; text-decoration: none; letter-spacing: .04em; transition: color .2s; }
.sidebar-links a:hover { color: var(--accent); }
.menu-toggle { display: none; }

main { margin-left: var(--sidebar); }
.not-found { min-height: calc(100svh - 90px); max-width: 820px; padding: clamp(110px, 16vh, 180px) 64px 90px; display: flex; flex-direction: column; justify-content: center; }
.not-found h1 { margin-bottom: 28px; font-size: clamp(52px, 6vw, 82px); }
.not-found h1 span { color: var(--accent-soft); }
.not-found > p:not(.section-label) { max-width: 58ch; margin-bottom: 34px; color: var(--muted); font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.hero, .section, .closing, footer { max-width: var(--content); margin-inline: auto; }
.hero-copy, .portrait-wrap, .featured-preview-copy, .system-project-content, .about-story, .stack-heading, .stack-groups { min-width: 0; }
.hero { position: relative; min-height: 100svh; padding: 8vh 64px 85px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr); align-items: center; gap: clamp(42px, 6vw, 90px); }
.hero::before { display: none; }
.section-label { margin: 0 0 18px; color: var(--muted); font: 500 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.015em; text-wrap: balance; }
h1 { margin-bottom: 27px; font-size: clamp(46px, 3.7vw, 60px); line-height: 1.02; }
h1 em, h2 em, blockquote em { color: var(--accent-soft); font-style: normal; }
.hero-intro { max-width: 580px; margin-bottom: 35px; color: var(--muted); font-size: clamp(15px, 1.35vw, 18px); line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { min-height: 48px; padding: 0 21px; display: inline-flex; justify-content: center; align-items: center; gap: 24px; border: 1px solid transparent; border-radius: 1px; cursor: pointer; text-decoration: none; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .055em; transition: transform .2s, background .2s, border-color .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { color: var(--button-text); background: var(--accent); }
.button-primary:hover { opacity: .82; }
.button-ghost { color: var(--text); background: transparent; border-color: var(--line-strong); }
.button-ghost:hover { color: var(--accent); border-color: var(--accent); }
.portrait-wrap { position: relative; width: min(100%, 430px); justify-self: end; }
.portrait-frame { position: relative; width: 100%; aspect-ratio: 1; padding: 9px; border: 1px solid var(--line-strong); background: var(--bg-soft); }
.portrait-frame::before, .portrait-frame::after { content: ""; position: absolute; width: 16px; height: 16px; z-index: 2; }
.portrait-frame::before { inset: -1px auto auto -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.portrait-frame::after { inset: auto -1px -1px auto; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% center; filter: saturate(.72) contrast(1.05); }
.portrait-frame::after { box-shadow: none; }
.portrait-tag { position: absolute; left: -35px; bottom: 6px; padding: 12px 16px; background: var(--text); color: var(--bg); font: 600 11px/1.35 var(--mono); box-shadow: 0 16px 35px rgba(0,0,0,.18); }
.portrait-tag span { display: block; margin-bottom: 3px; color: inherit; opacity: .68; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.portrait-index { margin: 12px 0 0; text-align: right; color: var(--muted); font: 11px/1 var(--mono); letter-spacing: .09em; }
.scroll-cue { position: absolute; left: 64px; bottom: 30px; display: flex; align-items: center; gap: 13px; color: var(--muted); text-decoration: none; font: 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.scroll-cue svg { color: var(--accent); }
.hero-stack { margin: 27px 0 0; color: var(--muted); font: 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.hero-stack span { margin-inline: 7px; color: var(--accent); }

.featured-preview { width: min(calc(100% - 80px), 900px); margin: 0 auto; padding: 50px 0; display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 46px; border-top: 1px solid var(--line); }
.featured-preview-image { aspect-ratio: 1; padding: 24px; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line); }
.featured-preview-image img { width: 100%; height: 100%; object-fit: contain; }
.featured-preview-copy h2 { margin: 0 0 12px; font: 400 34px/1.1 var(--display); text-transform: uppercase; }
.featured-preview-copy > p { max-width: 500px; margin-bottom: 20px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.featured-preview-copy .project-tech { margin-top: 0; }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--text); font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }

.code-signature { width: min(calc(100% - 80px), 900px); margin: 0 auto; padding: 58px 0 82px; border-top: 1px solid var(--line); }
.code-window { width: min(100%, 650px); overflow: hidden; border: 1px solid #303038; border-radius: 8px; background: #1e1e1e; box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.code-titlebar { height: 38px; padding: 0 13px; display: flex; align-items: center; gap: 7px; background: #181818; border-bottom: 1px solid #303038; }
.code-titlebar > span { width: 9px; height: 9px; border-radius: 50%; background: #686868; }
.code-titlebar p { margin: 0 0 0 9px; color: #bcbcbc; font: 11px/1 var(--mono); }
.code-window pre { margin: 0; padding: 27px 30px 30px; overflow-x: auto; color: #d4d4d4; font: 14px/1.75 Consolas, "Courier New", monospace; text-align: left; }
.code-purple { color: #c586c0; }
.code-blue { color: #9cdcfe; }
.code-light { color: #dcdcaa; }
.code-yellow { color: #dcdcaa; }
.code-orange { color: #ce9178; }


.section { padding: 120px 64px; border-top: 1px solid var(--line); }
.page-section { min-height: calc(100svh - 90px); padding-top: 88px; border-top: 0; }
.page-section .section-heading { margin-bottom: 62px; }
.section-heading { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(280px, 1.15fr); gap: 28px 70px; margin-bottom: 72px; }
.section-heading h1, .section-heading h2, .about-sticky h1, .about-sticky h2 { margin: 0; font-size: clamp(36px, 3.4vw, 52px); line-height: 1.07; }
.section-heading > p:last-child { max-width: 440px; margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.skill-list { border-top: 1px solid var(--line); }
.skill-row { display: grid; grid-template-columns: 35px 48px minmax(260px, 1fr) 150px; align-items: center; gap: 24px; padding: 30px 12px; border-bottom: 1px solid var(--line); transition: background .3s, padding .3s; }
.skill-row:hover { padding-inline: 20px; background: var(--panel); }
.skill-number, .skill-meta { color: var(--muted); font: 11px/1.4 var(--mono); letter-spacing: .06em; }
.skill-icon { display: grid; place-items: center; width: 42px; aspect-ratio: 1; color: var(--accent); border: 1px solid var(--line-strong); }
.skill-icon svg { width: 21px; }
.skill-row h2, .skill-row h3 { margin: 0 0 7px; font: 400 25px/1.2 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.skill-row p { max-width: 610px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.skill-meta { justify-self: end; text-align: right; }

.about { display: grid; grid-template-columns: minmax(320px, .92fr) minmax(340px, 1.08fr); gap: clamp(60px, 9vw, 130px); background: var(--bg); }
.about-sticky { align-self: start; position: sticky; top: 54px; }
.about-stat { margin-top: 75px; display: flex; align-items: center; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.about-stat strong { color: var(--accent); font: 400 42px/1 var(--display); }
.about-stat span { color: var(--muted); font: 11px/1.65 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.about-story .lead { margin: 0 0 38px; color: var(--text); font: 300 clamp(24px, 2.2vw, 34px)/1.42 var(--display); }
.about-story > p:not(.lead) { color: var(--muted); font-size: 14px; line-height: 1.9; }
.principles { margin-top: 55px; }
.principles h2, .principles h3 { margin-bottom: 20px; color: var(--muted); font: 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.principles ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.principles li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.principles li span { display: inline-block; width: 42px; color: var(--accent); font: 11px/1 var(--mono); }

.system-project { display: grid; grid-template-columns: minmax(320px, .92fr) minmax(400px, 1.08fr); border: 1px solid var(--line); background: var(--bg); }
.system-project-media { min-height: 610px; padding: clamp(34px, 5vw, 70px); display: grid; place-items: center; overflow: hidden; background: var(--bg-soft); border-right: 1px solid var(--line); }
.system-project-media img { width: min(100%, 440px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 30px 45px rgba(0, 0, 0, .34)); transition: transform .5s ease; }
.system-project:hover .system-project-media img { transform: scale(1.025); }
.system-project-content { padding: clamp(38px, 5vw, 70px); }
.project-compact { max-width: 980px; margin-inline: auto; grid-template-columns: 330px 1fr; }
.project-compact .system-project-media { min-height: 0; padding: 38px; }
.project-compact .system-project-media img { width: min(100%, 250px); }
.project-compact .system-project-content { padding: 36px 40px; }
.project-compact .project-kicker { margin-bottom: 22px; }
.project-compact .project-lead { margin-bottom: 24px; }
.project-compact .project-details { padding-block: 22px; }
.project-compact .feature-list { padding-top: 21px; }
.project-compact .project-tech { margin-top: 23px; }
.work .project-note { max-width: 980px; margin-inline: auto; }
.work .system-project + .system-project { margin-top: 24px; }
.tukib-system-media { position: relative; padding: 28px; }
.tukib-system-media::before { content: ""; position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(circle, var(--line-strong) .7px, transparent .8px); background-size: 17px 17px; }
.tukib-system-media .workflow-track { width: 100%; grid-template-columns: 1fr; }
.tukib-system-media .workflow-track::before { left: 50%; right: auto; top: 8%; bottom: 8%; width: 1px; height: auto; }
.tukib-system-media .workflow-track span { min-height: 42px; }
.project-kicker { margin-bottom: 35px; color: var(--muted); font: 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.system-project-content > h2, .system-project-content > h3 { margin: 0 0 20px; font: 400 clamp(34px, 3vw, 48px)/1.05 var(--display); text-transform: uppercase; }
.project-lead { margin-bottom: 35px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.project-details { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-block: 28px; border-block: 1px solid var(--line); }
.project-details h3, .project-details h4, .feature-list h3, .feature-list h4 { margin: 0 0 9px; color: var(--accent); font: 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.project-details p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.feature-list { padding-top: 27px; }
.feature-list ul { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 20px; margin: 0; padding: 0; list-style: none; }
.feature-list li { color: var(--muted); font-size: 12px; }
.feature-list li::before { content: "↳"; margin-right: 8px; color: var(--accent); }
.project-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; }
.project-tech span { padding: 7px 10px; color: var(--muted); border: 1px solid var(--line); font: 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.project-stack-block { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.project-stack-block > h3 { margin: 0 0 16px; color: var(--accent); font: 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.project-stack-list { margin: 0; }
.project-stack-list div { padding: 11px 0; display: grid; grid-template-columns: 135px 1fr; gap: 18px; border-bottom: 1px solid var(--line); }
.project-stack-list div:last-child { border-bottom: 0; }
.project-stack-list dt { color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.55; }
.project-stack-list dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.project-game-note { margin: 22px 0 0; padding: 17px 18px; color: var(--text); border: 1px solid var(--line); font-size: 12px; line-height: 1.7; }
.lights-out-system-media { padding: 28px; background: #050607; }
.lights-out-panel { width: 100%; min-height: 330px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; color: #f3f3f3; border: 1px solid rgba(255,255,255,.2); background: #090a0c; }
.lights-out-panel .power-state { color: #a7adb6; font: 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.lights-out-panel strong { max-width: 220px; font: 400 54px/.94 var(--display); text-transform: uppercase; }
.lights-out-panel > div { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.lights-out-panel > div span { padding: 10px 0; color: #b9bec6; border-bottom: 1px solid rgba(255,255,255,.1); font: 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.project-note { margin-top: 18px; padding: 18px 22px; display: flex; align-items: center; gap: 22px; border: 1px solid var(--line); }
.project-note span { color: var(--accent); font: 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.project-note p { margin: 0; color: var(--muted); font-size: 12px; }

.stack { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(480px, 1.28fr); gap: clamp(50px, 8vw, 110px); background: var(--bg); }
.stack-heading h1, .stack-heading h2 { margin: 0 0 25px; font-size: clamp(36px, 3.4vw, 52px); line-height: 1.07; }
.stack-heading > p:last-child { max-width: 430px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.stack-groups { border-top: 1px solid var(--line); }
.stack-group { padding: 26px 0; display: grid; grid-template-columns: 145px 1fr; gap: 24px; border-bottom: 1px solid var(--line); }
.stack-group > div { display: flex; gap: 13px; }
.stack-group > div span { padding-top: 5px; color: var(--accent); font: 10px/1 var(--mono); }
.stack-group h2, .stack-group h3 { margin: 0; font: 400 22px/1.25 var(--display); text-transform: uppercase; }
.stack-group ul { margin: 0; padding: 0; list-style: none; }
.stack-group li { min-height: 31px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.05); }
.stack-group li:last-child { border-bottom: 0; }
.stack-group strong { font-size: 12px; font-weight: 500; }
.stack-group small { color: var(--muted); font: 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; text-align: right; }

.stack.page-section { display: block; }
.stack-page-heading { max-width: 760px; margin-bottom: 58px; }
.stack-page-heading > p:last-child { max-width: 570px; }
.stack-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stack-card { min-height: 170px; padding: 22px 24px 25px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.stack-card h2 { margin: 0 0 18px; padding-bottom: 13px; border-bottom: 1px solid var(--line); color: var(--muted); font: 500 11px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .04em; }
.tech-badges { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; }
.tech-badge { min-height: 37px; padding: 7px 11px 7px 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); font: 500 12px/1 var(--mono); white-space: nowrap; transition: background .2s, border-color .2s, transform .2s; }
.tech-badge:hover { background: var(--panel); border-color: var(--text); transform: translateY(-1px); }
.tech-mark { min-width: 29px; height: 29px; padding-inline: 4px; display: inline-grid; place-items: center; color: var(--bg); background: var(--text); border-radius: 5px; font: 700 11px/1 var(--mono); letter-spacing: -.02em; }

.education-card { display: grid; grid-template-columns: .6fr 1.15fr 1.25fr; gap: 40px; align-items: start; padding: 36px 0; border-block: 1px solid var(--line); }
.education-year, .education-type { color: var(--accent); font: 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.education-card h2, .education-card h3 { margin: 8px 0 6px; font: 400 29px/1.2 var(--display); text-transform: uppercase; }
.education-card div:nth-child(2) > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.education-topics { display: flex; flex-wrap: wrap; gap: 7px; }
.education-topics span { padding: 8px 10px; color: var(--muted); border: 1px solid var(--line); font: 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.education-timeline { border-top: 1px solid var(--line); }
.education-timeline .education-card { border-top: 0; border-bottom: 1px solid var(--line); }
.education-status { justify-self: end; max-width: 180px; color: var(--muted); font: 11px/1.55 var(--mono); text-transform: uppercase; letter-spacing: .05em; text-align: right; }
.education-focus { max-width: 680px; margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line); }
.education-focus > p:nth-child(2) { margin-bottom: 28px; color: var(--muted); font-size: 14px; line-height: 1.85; }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 26px; }
.project-featured { grid-column: 1 / -1; }
.project-media { position: relative; overflow: hidden; aspect-ratio: 1.2 / 1; background: var(--panel); border: 1px solid var(--line); }
.project-featured .project-media { aspect-ratio: 16 / 7; }
.project-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(255,255,255,.08); }
.project-media img, .project-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .5s; }
.project-media img { padding: 7%; object-fit: contain; background: var(--bg-soft); }
.project-card:nth-child(3) .project-media img { padding: 0; object-fit: cover; }
.video-media video { object-position: center; }
.project-card:hover .project-media img { transform: scale(1.025); filter: brightness(1.08); }
.project-info { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 18px; }
.project-info span { color: var(--accent); font: 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.project-info h3 { margin: 7px 0 0; font: 400 26px/1.2 var(--display); text-transform: uppercase; }
.project-info p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.journal { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(400px, 1.35fr); gap: 70px; }
.journal .section-heading { display: block; margin: 0; }
.journal-list { border-top: 1px solid var(--line); }
.journal-entry { display: grid; grid-template-columns: 36px 1fr; gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.entry-number { padding-top: 3px; color: var(--accent); font: 10px/1 var(--mono); }
.entry-meta { margin-bottom: 9px; color: #697483; font: 11px/1 var(--mono); letter-spacing: .07em; }
.journal-entry h3 { margin-bottom: 12px; font: 400 25px/1.25 var(--display); text-transform: uppercase; }
.journal-entry div > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.closing { padding: 110px 64px; border-top: 1px solid var(--line); background: var(--bg); }
.closing blockquote { max-width: 870px; margin: 0 0 42px; font: 300 clamp(34px, 4vw, 56px)/1.15 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
footer { min-height: 90px; padding: 28px 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font: 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
footer p { margin: 0; }
footer a { color: var(--muted); text-decoration: none; }
footer a span { margin-left: 7px; color: var(--accent); }

.contact-modal { width: min(680px, calc(100% - 40px)); max-height: calc(100svh - 40px); padding: 0; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); overflow: auto; }
.contact-modal[open] { display: block; animation: modal-in .28s ease both; }
.contact-modal::backdrop { background: rgba(2,4,8,.84); backdrop-filter: blur(8px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal-close { position: absolute; top: 16px; right: 18px; width: 36px; height: 36px; color: var(--muted); background: transparent; border: 1px solid var(--line); cursor: pointer; font-size: 22px; z-index: 2; }
.modal-close:hover { color: var(--text); border-color: var(--accent); }
.contact-intro { padding: 62px 48px 50px; background: var(--bg-soft); }
.contact-intro h2 { margin-bottom: 25px; font-size: 44px; line-height: 1.07; }
.contact-intro > p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.contact-details { display: grid; gap: 13px; margin-top: 45px; }
.contact-details a { color: var(--text); font: 12px/1.5 var(--mono); text-decoration: none; overflow-wrap: anywhere; }
.contact-details small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.contact-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; width: 42px; height: 42px; display: grid; place-items: center; color: var(--text); background: var(--panel-2); border: 1px solid var(--line-strong); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s; z-index: 90; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal, .reveal.reveal-ready { opacity: 1; transform: none; transition: none; } .contact-modal[open] { animation: none; } }

@media (max-width: 1050px) {
    :root { --sidebar: 205px; }
    .sidebar { padding-inline: 19px; }
    .nav-links a::before { left: -19px; }
    .hero, .section, .closing { padding-inline: 42px; }
    .hero { grid-template-columns: 1.12fr .88fr; gap: 38px; }
    .scroll-cue { left: 42px; }
    .section-heading { gap: 40px; }
    .skill-row { grid-template-columns: 28px 44px 1fr; }
    .skill-meta { display: none; }
    .about { gap: 55px; }
    .journal { grid-template-columns: 1fr; }
    .journal .section-heading { margin-bottom: 50px; }
    .system-project { grid-template-columns: .85fr 1.15fr; }
    .system-project-media { min-height: 540px; }
    .stack { gap: 50px; }
    .stack-group { grid-template-columns: 120px 1fr; }
    footer { padding-inline: 42px; }
}

@media (max-width: 780px) {
    :root { --sidebar: 0px; }
    html { scroll-padding-top: 80px; }
    .sidebar { inset: 0 0 auto; width: 100%; height: 72px; padding: 14px 20px; flex-direction: row; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); }
    .brand-mark { width: 38px; }
    .sidebar-footer { display: contents; }
    .sidebar-note, .availability, .contact-trigger, .sidebar-links { display: none; }
    .theme-toggle { position: absolute; top: 14px; right: 72px; width: 42px; height: 42px; padding: 0; justify-content: center; border: 1px solid var(--line); }
    .theme-toggle span { display: none; }
    .menu-toggle { width: 42px; height: 42px; display: grid; place-content: center; gap: 6px; color: var(--text); background: transparent; border: 1px solid var(--line); cursor: pointer; }
    .menu-toggle span { display: block; width: 18px; height: 1px; background: currentColor; transition: transform .25s; }
    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
    .nav-links { position: fixed; inset: 72px 0 auto; margin: 0; padding: 18px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s; }
    .nav-links.open { opacity: 1; visibility: visible; transform: none; }
    .nav-links a { padding: 12px; }
    .nav-links a::before { left: -20px; }
    .hero { min-height: auto; padding: 125px 24px 90px; grid-template-columns: 1fr; }
    .not-found { min-height: calc(100svh - 72px); padding: 120px 20px 72px; }
    .featured-preview { width: calc(100% - 48px); grid-template-columns: 190px 1fr; gap: 30px; }
    .code-signature { width: calc(100% - 48px); }
    .hero-copy { order: 2; }
    .portrait-wrap { order: 1; width: min(88%, 430px); justify-self: center; }
    h1 { font-size: clamp(44px, 10vw, 58px); }
    .portrait-frame { height: auto; }
    .scroll-cue { display: none; }
    .section, .closing { padding: 90px 24px; }
    .page-section { padding-top: 120px; }
    .section-heading { grid-template-columns: 1fr; margin-bottom: 50px; }
    .skill-row { grid-template-columns: 30px 42px 1fr; gap: 15px; padding-inline: 0; }
    .skill-row:hover { padding-inline: 0; }
    .about { grid-template-columns: 1fr; }
    .about-sticky { position: static; }
    .about-stat { margin-top: 45px; }
    .project-grid { gap: 42px 18px; }
    .project-featured .project-media { aspect-ratio: 4 / 3; }
    .project-info { grid-template-columns: 1fr; gap: 10px; }
    .system-project { grid-template-columns: 1fr; }
    .system-project-media { min-height: 0; aspect-ratio: 1.15 / 1; border-right: 0; border-bottom: 1px solid var(--line); }
    .lights-out-system-media { aspect-ratio: auto; }
    .project-compact .system-project-media { padding: 30px; }
    .stack { grid-template-columns: 1fr; }
    .stack.page-section { display: block; }
    .stack-board { grid-template-columns: 1fr; }
    .education-card { grid-template-columns: 1fr 1.5fr; }
    .education-topics { grid-column: 1 / -1; }
    .education-status { grid-column: 2; justify-self: start; text-align: left; }
    footer { padding: 28px 24px; }
    .contact-modal[open] { grid-template-columns: 1fr; }
    .contact-intro { padding: 48px 30px 38px; }
}

@media (max-width: 520px) {
    .brand-copy { display: none; }
    .hero { padding-inline: 20px; }
    .featured-preview { width: calc(100% - 40px); padding: 42px 0; grid-template-columns: 1fr; }
    .featured-preview-image { width: min(100%, 250px); }
    .code-signature { width: calc(100% - 40px); padding-block: 46px 65px; }
    .code-window pre { padding: 23px 20px 25px; font-size: 12px; }
    h1 { font-size: 43px; }
    .hero-intro { font-size: 14px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .button { width: 100%; }
    .portrait-wrap { width: 92%; }
    .portrait-tag {
    left: -10px;
    bottom: 10px;
    padding: 8px 10px;
    font-size: 11px;
}

.portrait-tag span {
    font-size: 10px;
    margin-bottom: 3px;
}
    .section, .closing { padding: 76px 20px; }
    .section-heading h1, .section-heading h2, .about-sticky h1, .about-sticky h2, .stack-heading h1, .stack-heading h2 { font-size: 36px; }
    .skill-row { grid-template-columns: 25px 1fr; align-items: start; }
    .skill-icon { display: none; }
    .skill-row h3 { font-size: 22px; }
    .project-grid { grid-template-columns: 1fr; }
    .project-featured { grid-column: auto; }
    .project-featured .project-media, .project-media { aspect-ratio: 1 / 1; }
    .project-details, .feature-list ul { grid-template-columns: 1fr; }
    .system-project-content { padding: 32px 22px; }
    .project-compact .system-project-content { padding: 30px 22px; }
    .project-note { align-items: flex-start; }
    .stack-group { grid-template-columns: 1fr; }
    .stack-card { min-height: 0; padding: 20px; }
    .education-card { grid-template-columns: 1fr; gap: 20px; }
    .education-topics { grid-column: auto; }
    .education-status { grid-column: auto; }
    .journal-entry { grid-template-columns: 26px 1fr; gap: 10px; }
    .closing blockquote { font-size: 34px; }
    footer { flex-direction: column; align-items: flex-start; }
    .contact-modal { width: calc(100% - 20px); max-height: calc(100svh - 20px); }
    .contact-intro { padding-inline: 23px; }
    .contact-intro h2 { font-size: 38px; }
}

/* Homepage experience */
:root {
    --success: #74d99f;
    --home-max: 1140px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html[data-theme="light"] { --success: #16784a; }

body[data-page="home"] main { position: relative; }
body[data-page="home"] .hero,
body[data-page="home"] .home-section,
body[data-page="home"] .code-signature,
body[data-page="home"] .home-cta { max-width: var(--home-max); }

.scroll-progress { position: fixed; top: 0; right: 0; width: 3px; height: 100svh; background: transparent; z-index: 120; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--text); transform: scaleY(0); transform-origin: top; }

body[data-page="home"] .hero { min-height: 100svh; padding-top: 10vh; overflow: hidden; isolation: isolate; }
body[data-page="home"] .hero::after { content: ""; position: absolute; width: min(48vw, 650px); aspect-ratio: 1; right: -5%; top: 5%; background: radial-gradient(circle, rgba(120, 145, 180, .13) 0, rgba(120, 145, 180, .045) 36%, transparent 70%); filter: blur(14px); pointer-events: none; z-index: -1; }
html[data-theme="light"] body[data-page="home"] .hero::after { background: radial-gradient(circle, rgba(45, 78, 118, .1) 0, transparent 68%); }

.hero-availability { width: fit-content; margin: 0 0 30px; display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 12px; }
.hero-availability span { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
body[data-page="home"] .hero h1 { max-width: 650px; font-size: clamp(48px, 4.4vw, 68px); letter-spacing: -.025em; }
body[data-page="home"] .hero-intro { max-width: 620px; }
body[data-page="home"] .button:hover { transform: none; }
body[data-page="home"] .button svg { transition: transform .25s var(--ease-out); }
body[data-page="home"] .button:hover svg { transform: translateX(4px); }
body[data-page="home"] .portrait-wrap { z-index: 1; }
body[data-page="home"] .portrait-frame { padding: 11px; box-shadow: 0 28px 70px rgba(0, 0, 0, .26); }
body[data-page="home"] .portrait-frame::before { width: 22px; height: 22px; }
body[data-page="home"] .portrait-frame::after { width: 22px; height: 22px; }
body[data-page="home"] .portrait-frame img { transition: filter .45s ease, transform .7s var(--ease-out); }
body[data-page="home"] .portrait-wrap:hover .portrait-frame img { transform: scale(1.015); filter: saturate(.88) contrast(1.04); }
.hero-scroll { position: absolute; left: 64px; bottom: 30px; display: flex; align-items: center; gap: 12px; color: var(--muted); text-decoration: none; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.hero-scroll span { width: 30px; height: 1px; background: var(--line-strong); overflow: hidden; }
.hero-scroll span::after { content: ""; display: block; width: 12px; height: 1px; background: var(--text); animation: scroll-track 2.2s var(--ease-out) infinite; }
@keyframes scroll-track { from { transform: translateX(-14px); } 65%, 100% { transform: translateX(32px); } }

.home-section { margin-inline: auto; padding: 112px 64px; border-top: 1px solid var(--line); }
.home-section-heading { margin-bottom: 50px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(270px, .85fr); align-items: end; gap: 60px; }
.home-section-heading h2 { max-width: 680px; margin: 0; font-size: clamp(40px, 4vw, 58px); line-height: 1.02; letter-spacing: -.025em; }
.home-section-heading p { max-width: 470px; margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.8; }

.spotlight-card { position: relative; isolation: isolate; overflow: hidden; }
.spotlight-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mouse-x, -300px) var(--mouse-y, -300px), rgba(255, 255, 255, .075), transparent 58%); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: -1; }
.spotlight-card:hover::after { opacity: 1; }
html[data-theme="light"] .spotlight-card::after { background: radial-gradient(260px circle at var(--mouse-x, -300px) var(--mouse-y, -300px), rgba(0, 0, 0, .055), transparent 58%); }

.technology-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.technology-item { min-height: 126px; padding: 24px; display: flex; align-items: flex-start; gap: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s, border-color .25s; }
.technology-item:hover { background: var(--bg-soft); border-color: var(--line-strong); }
.technology-item svg { width: 30px; flex: 0 0 30px; color: var(--text); stroke-width: 1.35; }
.technology-item h3 { margin: 1px 0 5px; font: 500 15px/1.3 var(--sans); }
.technology-item p { margin: 0; color: var(--muted); font-size: 12px; }

.selected-work-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(330px, .78fr); gap: 18px; }
.work-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color .25s, box-shadow .35s; }
.work-card:hover { border-color: var(--line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .2); }
.work-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); }
.work-card-wide .work-preview { height: auto; min-height: 330px; border-right: 1px solid var(--line); border-bottom: 0; border-radius: 13px 0 0 13px; }
.work-preview { height: 300px; overflow: hidden; border-bottom: 1px solid var(--line); border-radius: 13px 13px 0 0; background: var(--bg-soft); }
.campus-preview { padding: 48px; display: grid; place-items: center; }
.campus-preview img { width: min(100%, 240px); aspect-ratio: 1; object-fit: contain; transition: transform .6s var(--ease-out); }
.work-card:hover .campus-preview img { transform: scale(1.035); }
.lights-out-preview { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; color: #f3f3f3; background: #08090b; }
.lights-out-title { display: grid; gap: 30px; }
.lights-out-title span { color: #9ca2ac; font: 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.lights-out-title strong { max-width: 250px; font: 400 clamp(48px, 5vw, 72px)/.9 var(--display); text-transform: uppercase; }
.lights-out-objectives { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.2); }
.lights-out-objectives span { padding: 13px 12px 0 0; color: #bac0c8; font-size: 12px; line-height: 1.45; }
.tukib-preview { position: relative; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; background: var(--bg-soft); }
.tukib-preview::before { content: ""; position: absolute; inset: 0; opacity: .45; background-image: radial-gradient(circle, var(--line-strong) .7px, transparent .8px); background-size: 17px 17px; pointer-events: none; }
.tukib-preview > p { position: relative; margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.workflow-track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; gap: 8px; }
.workflow-track::before { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 1px; background: var(--line-strong); }
.workflow-track span { position: relative; min-height: 64px; padding: 12px 8px; display: grid; place-items: center; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 9px; font-size: 12px; line-height: 1.35; text-align: center; }
.work-card-body { padding: 30px; display: flex; flex: 1; flex-direction: column; }
.work-card-meta { margin-bottom: 21px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.work-card h3 { margin: 0 0 14px; font: 400 clamp(30px, 3vw, 43px)/1.05 var(--display); text-transform: uppercase; }
.work-card-body > p { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.work-card .project-tech { margin: auto 0 26px; }
.work-card .text-link { align-self: flex-start; }
.view-all-link { width: fit-content; margin: 30px 0 0 auto; display: flex; align-items: center; gap: 13px; color: var(--text); text-decoration: none; font-size: 12px; }
.view-all-link span, .text-link span { transition: transform .25s var(--ease-out); }
.view-all-link:hover span, .text-link:hover span { transform: translateX(4px); }

.about-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento-card { min-height: 220px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); transition: border-color .25s, transform .35s var(--ease-out); }
.bento-card:hover { border-color: var(--line-strong); }
.bento-card > svg { width: 30px; color: var(--muted); }
.bento-card h3 { margin: 28px 0 7px; font: 400 28px/1.15 var(--display); text-transform: uppercase; }
.bento-card p { max-width: 46ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.bento-card strong, .bento-card time { display: block; margin-top: 17px; color: var(--text); font: 500 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.bento-card ul { margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.bento-card li { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 12px; }
.bento-education { grid-column: span 7; min-height: 280px; }
.bento-location { grid-column: span 5; }
.bento-focus { grid-column: span 5; }
.bento-interests { grid-column: span 7; }

.github-empty { min-height: 190px; padding: 38px; display: flex; align-items: center; gap: 30px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--bg-soft); }
.github-empty svg { width: 42px; flex: 0 0 42px; color: var(--muted); stroke-width: 1.3; }
.github-empty h3 { margin: 0 0 8px; font-size: 17px; }
.github-empty p { max-width: 620px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

body[data-page="home"] .code-signature { padding: 112px 64px; }
body[data-page="home"] .code-window { border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .22); }
.code-editor { margin: 0; padding: 34px 28px 38px !important; overflow-x: auto; }
.code-editor code { display: grid; gap: 7px; width: max-content; min-width: 100%; }
.code-row { display: grid; grid-template-columns: 32px 1fr; align-items: baseline; }
.line-number { color: var(--muted); opacity: .82; user-select: none; }
.typed-line { position: relative; display: inline-block; width: max-content; min-width: 1ch; white-space: pre; overflow: hidden; }
.code-window.is-typing .line-one { width: 0; animation: type-line-one .34s steps(34, end) .08s forwards; }
.code-window.is-typing .line-two { width: 0; animation: type-line-two .48s steps(46, end) .45s forwards; }
.code-window.is-typing .line-three { width: 0; animation: type-line-three .1s steps(1, end) .95s forwards; }
@keyframes type-line-one { to { width: 35ch; } }
@keyframes type-line-two { to { width: 48ch; } }
@keyframes type-line-three { to { width: 2ch; } }
.code-cursor { display: inline-block; width: 1px; height: 1.15em; margin-left: 2px; background: var(--text); vertical-align: -.17em; animation: cursor-blink .85s steps(1) 1.1s infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }

.home-cta { margin-inline: auto; padding: 100px 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 70px; border-top: 1px solid var(--line); }
.home-cta h2 { max-width: 760px; margin: 0 0 20px; font-size: clamp(42px, 5vw, 66px); line-height: 1; letter-spacing: -.025em; }
.home-cta p { max-width: 660px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.home-cta-actions { min-width: 180px; display: grid; gap: 18px; justify-items: start; }

.reveal { opacity: 1; transform: none; }
.reveal.reveal-ready { opacity: .92; transform: translateY(10px); }
.reveal.reveal-ready.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
    .home-section, body[data-page="home"] .code-signature, .home-cta { padding-inline: 42px; }
    .hero-scroll { left: 42px; }
    .technology-grid { grid-template-columns: repeat(2, 1fr); }
    .selected-work-grid { grid-template-columns: 1fr; }
    .work-card-large { display: grid; grid-template-columns: 1.05fr .95fr; }
    .work-card-large .work-preview { height: auto; min-height: 380px; border-right: 1px solid var(--line); border-bottom: 0; border-radius: 13px 0 0 13px; }
    .home-cta { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 780px) {
    .scroll-progress { top: 72px; height: calc(100svh - 72px); }
    body[data-page="home"] .hero { padding-top: 130px; padding-bottom: 105px; }
    body[data-page="home"] .hero::after { width: 110vw; right: -48%; top: 43%; }
    .hero-scroll { display: none; }
    .home-section, body[data-page="home"] .code-signature, .home-cta { padding: 88px 24px; }
    .home-section-heading { margin-bottom: 38px; grid-template-columns: 1fr; gap: 18px; }
    .home-section-heading h2 { font-size: 42px; }
    .work-card-large { display: flex; }
    .work-card-large .work-preview { height: 320px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 13px 13px 0 0; }
    .work-card-wide { display: flex; }
    .work-card-wide .work-preview { height: 300px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 13px 13px 0 0; }
    .about-bento { grid-template-columns: 1fr 1fr; }
    .bento-education, .bento-location, .bento-focus, .bento-interests { grid-column: span 1; }
    .bento-education { grid-column: 1 / -1; }
    .home-cta { gap: 38px; }
}

@media (max-width: 520px) {
    .hero-availability { margin-bottom: 23px; font-size: 11px; }
    body[data-page="home"] .hero h1 { font-size: 43px; }
    .home-section, body[data-page="home"] .code-signature, .home-cta { padding: 76px 20px; }
    .home-section-heading h2 { font-size: 38px; }
    .technology-grid { grid-template-columns: 1fr; }
    .technology-item { min-height: 104px; padding: 21px; }
    .work-preview, .work-card-large .work-preview { height: 270px; }
    .work-card-wide .work-preview { height: 260px; }
    .lights-out-objectives { grid-template-columns: 1fr; }
    .lights-out-objectives span { padding-top: 7px; }
    .tukib-preview { padding: 22px; }
    .workflow-track { grid-template-columns: 1fr; gap: 6px; }
    .workflow-track::before { left: 50%; right: auto; top: 8%; bottom: 8%; width: 1px; height: auto; }
    .workflow-track span { min-height: 35px; padding: 7px 10px; }
    .work-card-body { padding: 24px; }
    .work-card-meta { flex-direction: column; gap: 5px; }
    .about-bento { grid-template-columns: 1fr; }
    .bento-education, .bento-location, .bento-focus, .bento-interests { grid-column: auto; min-height: 220px; }
    .github-empty { padding: 28px 24px; align-items: flex-start; flex-direction: column; }
    .code-editor { padding: 26px 18px 30px !important; font-size: 12px !important; }
    .code-editor { overflow-x: hidden; }
    .code-editor code { width: 100%; min-width: 0; }
    .code-row { grid-template-columns: 24px minmax(0, 1fr); }
    .typed-line, .code-window.is-typing .typed-line { width: auto; max-width: 100%; white-space: pre-wrap; overflow: visible; overflow-wrap: anywhere; animation: none; }
    .home-cta h2 { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-availability span, .hero-scroll span::after, .code-cursor { animation: none; }
    .code-window.is-typing .typed-line { width: auto; animation: none; }
    .portrait-frame img, .campus-preview img, .button svg, .text-link span, .view-all-link span { transition: none; }
}

.motion-test .hero-availability span,
.motion-test .hero-scroll span::after,
.motion-test .code-cursor { animation: none; }



#manila-clock {
    font-variant-numeric: tabular-nums;
}
