@font-face {
  font-family: Geist;
  src: url("./assets/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f4f5f2;
  --text: #333a35;
  --muted: #737872;
  --faint: #969b94;
  --accent: #424b43;
  --accent-soft: #e7eae4;
  --on-accent: #fff;
  --glass: rgba(255, 255, 255, .66);
  --surface-solid: #fafbf8;
  --glass-border: rgba(255, 255, 255, .94);
  --line: rgba(66, 75, 67, .15);
  --soft-line: rgba(66, 75, 67, .09);
  --shadow: 0 12px 40px rgba(44, 52, 42, .045);
  --particle: #535d52;
  --glow: #dfe5db;
  --icon-cutout: #fafbf8;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --reveal-distance: clamp(60px, 12vw, 168px);
  --assemble-ease: cubic-bezier(.18, 1.1, .25, 1);
}

:root[data-palette="mono"] {
  --bg: #f4f4f2;
  --text: #353735;
  --muted: #737672;
  --faint: #949791;
  --accent: #434642;
  --accent-soft: #e7e8e3;
  --particle: #555853;
  --glow: #e0e1db;
}

:root[data-palette="green"] {
  --bg: #eff4f0;
  --text: #2c4437;
  --muted: #738279;
  --faint: #92a396;
  --accent: #4b7c61;
  --accent-soft: #e0ece3;
  --particle: #4f7e60;
  --glow: #d0e3d6;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1e211f;
  --text: #e3e6df;
  --muted: #a2a79e;
  --faint: #797f75;
  --accent: #c6cebf;
  --accent-soft: #343a31;
  --on-accent: #252b22;
  --glass: rgba(44, 49, 41, .76);
  --surface-solid: #30362d;
  --glass-border: rgba(222, 232, 213, .10);
  --line: rgba(202, 214, 190, .17);
  --soft-line: rgba(202, 214, 190, .09);
  --shadow: 0 16px 45px rgba(0, 0, 0, .08);
  --particle: #c1cabc;
  --glow: #333b2d;
  --icon-cutout: #30362d;
}

:root[data-theme="dark"][data-palette="mono"] {
  --bg: #0e0e0e;
  --text: #f5f5f5;
  --muted: #b4b4b4;
  --faint: #858585;
  --accent: #efefef;
  --accent-soft: #282828;
  --on-accent: #111;
  --glass: rgba(31, 31, 31, .78);
  --surface-solid: #242424;
  --glass-border: rgba(255, 255, 255, .14);
  --line: rgba(255, 255, 255, .16);
  --soft-line: rgba(255, 255, 255, .08);
  --shadow: 0 20px 50px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .04);
  --particle: #f7f7f7;
  --glow: #333;
  --icon-cutout: #282828;
}

:root[data-theme="dark"][data-palette="green"] {
  --bg: #1c2520;
  --text: #dce9df;
  --accent: #a6cbb3;
  --accent-soft: #2e4234;
  --on-accent: #25392c;
  --glass: rgba(38, 54, 43, .77);
  --surface-solid: #2d3d32;
  --particle: #a9c9b1;
  --glow: #2b4331;
  --icon-cutout: #2d3d32;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; scrollbar-gutter: stable; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font-family: Geist, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
button, input { font-family: inherit; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { color: var(--text); background: var(--accent-soft); }
.icon { width: 19px; height: 19px; flex: 0 0 auto; }
.icon.small { width: 15px; height: 15px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon-cutout { stroke: var(--icon-cutout); }
.icon-cutout-fill { fill: var(--icon-cutout); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 12px 20px; border-radius: 10px; background: var(--surface-solid); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.glass { background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
:root[data-theme="dark"][data-palette="mono"] .glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, .045), transparent 58%), var(--glass);
}
.page-viewport { overflow-x: clip; }
.page-shell { width: min(1130px, calc(100% - 88px)); margin: auto; }
.ambient { position: absolute; inset: 0 0 auto; height: 1100px; overflow: hidden; pointer-events: none; z-index: -1; }
.ambient span { position: absolute; width: 740px; height: 640px; background: radial-gradient(ellipse, var(--glow), transparent 65%); opacity: .75; }
.ambient span:first-child { top: -310px; left: -120px; }
.ambient span:last-child { top: 140px; right: -360px; opacity: .5; }
.site-header { position: relative; margin-top: 25px; padding: 15px 22px; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand > span { font-size: 25px; letter-spacing: -1.1px; font-weight: 650; }
.brand-dot { color: var(--muted); }
.brand-wordmark { --i-throw-x: 42px; display: inline-flex; align-items: baseline; line-height: 1.2; white-space: nowrap; }
.brand-letter { display: block; transform-origin: 50% 75%; pointer-events: none; }
.brand-letter:nth-child(1) { --letter-x: -9px; --letter-y: -3px; --letter-turn: -6deg; --letter-delay: 80ms; --gather-delay: 350ms; }
.brand-letter:nth-child(2) { --letter-x: -4px; --letter-y: 4px; --letter-turn: 4deg; --letter-delay: 150ms; --gather-delay: 430ms; }
.brand-letter:nth-child(3) { --letter-x: 7px; --letter-y: -4px; --letter-turn: 5deg; --letter-delay: 220ms; --gather-delay: 510ms; }
.brand-letter:nth-child(5) { --letter-x: 12px; --letter-y: 3px; --letter-turn: -4deg; --letter-delay: 290ms; --gather-delay: 590ms; }
.brand-letter:nth-child(6) { --letter-x: 17px; --letter-y: -4px; --letter-turn: 8deg; --letter-delay: 360ms; --gather-delay: 670ms; --letter-scale: 1.1; }
#header-brand { position: relative; }
#header-brand::after { content: ""; position: absolute; left: var(--brand-event-x, 50%); top: var(--brand-event-y, 50%); width: 12px; height: 12px; border: 1px solid var(--accent); border-radius: 50%; opacity: 0; pointer-events: none; }
[data-palette="mono"] .brand img { filter: grayscale(1); }
.site-header nav { display: flex; align-items: center; gap: 30px; padding-left: 45px; }
.site-header nav a { color: var(--muted); font-size: 12px; transition: color .2s; }
.site-header nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 13px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; padding: 0; border: 0; background: transparent; border-radius: 10px; color: var(--muted); transition: background .2s, color .2s; }
.icon-button:hover { color: var(--text); background: var(--soft-line); }
.palette-switch { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--soft-line); border-radius: 11px; }
.palette-button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; background: transparent; border: 1px solid transparent; border-radius: 7px; }
.palette-button.selected { border-color: var(--line); background: var(--surface-solid); }
.swatch { width: 10px; height: 10px; border-radius: 50%; }
.swatch-mono { background: #777b72; }
.swatch-green { background: #84aa8b; }
.header-github { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; }
.header-github > .icon:first-child { width: 16px; height: 16px; }
.header-github > .icon:last-child { width: 12px; height: 12px; color: var(--faint); }

.hero { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 54px; padding: 79px 16px 72px; }
.hero-copy { position: relative; padding-bottom: 20px; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; letter-spacing: .6px; margin-bottom: 25px; }
.small-spark { font-size: 19px; color: var(--accent); }
.hero h1 { font-size: clamp(48px, 5.65vw, 73px); font-weight: 580; line-height: 1.27; letter-spacing: -3.5px; white-space: nowrap; }
.hero h1 > span { color: var(--accent); }
.hero-description { margin-top: 28px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-description > span { display: block; margin-top: 10px; font-size: 12px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 13px; padding: 14px 19px; border: 1px solid var(--line); border-radius: 13px; font-size: 12px; font-weight: 500; transition: background .2s, box-shadow .2s, translate .25s var(--ease); }
.button.primary { color: var(--on-accent); background: var(--accent); border-color: var(--accent); box-shadow: 0 5px 12px rgba(45, 61, 43, .08); }
.button.primary:hover { box-shadow: 0 7px 18px rgba(45, 61, 43, .14); }
.button.secondary { background: var(--glass); }
.text-button { display: inline-flex; align-items: center; gap: 9px; padding: 10px 0; color: var(--muted); font-size: 12px; border: 0; background: transparent; }
.text-button:hover { color: var(--text); }
.hero-footnote { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 10px; margin-top: 26px; }
.tiny-dot { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.hero-visual { position: relative; height: 490px; min-width: 0; }
.orbit { position: absolute; border: 1px dashed var(--line); border-radius: 50%; pointer-events: none; opacity: .45; }
.orbit-outer { width: 440px; height: 440px; top: -17px; left: 1px; }
.orbit-inner { width: 340px; height: 340px; top: 35px; left: 54px; border-style: solid; opacity: .18; }
.scene-parallax { position: absolute; left: 24px; right: 34px; top: 30px; transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .8s var(--ease); }
.scene-window { border-radius: 23px; overflow: hidden; transform: rotate(-6deg); }
.window-bar { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px 7px 18px; font-size: 10px; color: var(--muted); }
.window-bar .icon-button { width: 28px; height: 28px; }
.window-tools { display: flex; align-items: center; gap: 9px; flex: 0 0 62px; }
.window-tools-spacer { flex: 0 0 62px; }
.window-dots { display: inline-flex; align-items: center; gap: 4px; }
.window-dots i { width: 5px; height: 5px; background: var(--line); border-radius: 50%; }
.particle-stage { height: 253px; position: relative; display: grid; place-items: center; }
.stage-guide { position: absolute; width: 205px; height: 205px; border: 1px solid var(--soft-line); border-radius: 54px; transform: rotate(10deg); opacity: .7; }
.stage-guide::after { content: ""; position: absolute; inset: 12px; border: 1px solid var(--soft-line); border-radius: 45px; opacity: .5; }
.particle-fallback { width: 148px; height: 148px; opacity: .55; color: var(--accent); position: absolute; }
#particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s; }
.canvas-ready #particle-canvas { opacity: 1; }
.canvas-ready .particle-fallback { opacity: 0; }
.window-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px 14px; font-size: 8px; color: var(--faint); border-top: 1px solid var(--soft-line); }
.window-caption > span:first-child { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; letter-spacing: 1px; }
.caption-line { width: 14px; height: 1px; background: var(--line); }
.floating-badge { position: absolute; right: 1px; top: 18px; display: flex; align-items: center; gap: 10px; padding: 15px; border-radius: 17px; transform: rotate(8deg); font-size: 10px; color: var(--muted); line-height: 1.7; pointer-events: none; }
.floating-badge strong { font-weight: 500; color: var(--text); }
.badge-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.project-peek { position: absolute; right: 4px; bottom: 76px; width: 312px; padding: 17px 20px 21px; border-radius: 20px; transform: rotate(4deg); }
.peek-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mini-label { font-size: 9px; color: var(--muted); }
.peek-number { color: var(--faint); font-size: 14px; }
.peek-content { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.peek-content h2 { font-size: 22px; font-weight: 600; letter-spacing: -.5px; }
.project-peek[data-project="2"] .peek-content h2 { font-size: 18px; }
.peek-content p { font-size: 10px; color: var(--muted); margin-top: 7px; line-height: 1.65; }
.round-link { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 auto; border-radius: 50%; background: var(--accent-soft); color: var(--accent); transition: background .2s, rotate .3s; }
.round-link:hover { rotate: -35deg; }
.loose-spark { position: absolute; color: var(--faint); pointer-events: none; }
.spark-top { top: -1px; left: 54px; transform: rotate(-15deg); }
.spark-bottom { bottom: 121px; left: 7px; font-size: 29px; font-weight: 250; transform: rotate(10deg); }
.project-tabs { --selected: 0; position: absolute; bottom: 0; left: 43px; right: 47px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 5px; border: 1px solid var(--soft-line); background: rgba(127, 134, 120, .045); border-radius: 15px; }
.project-tabs button { position: relative; z-index: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0; border: 0; border-radius: 11px; background: transparent; font-size: 11px; color: var(--muted); transition: color .3s; }
.project-tabs button[aria-selected="true"] { color: var(--text); }
.project-tabs button .icon { width: 21px; height: 21px; }
.tab-indicator { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 18px) / 3); background: var(--surface-solid); border: 1px solid var(--glass-border); border-radius: 11px; box-shadow: 0 2px 8px rgba(39, 51, 35, .04); translate: calc(var(--selected) * (100% + 4px)) 0; transition: translate .65s var(--ease); }
.page-divider { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.divider-index { color: var(--faint); font-size: 8px; letter-spacing: 1.2px; display: flex; gap: 19px; align-items: center; }
.divider-index > span { font-size: 14px; }

.projects-section { margin-top: 80px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 35px; }
.section-kicker { display: block; font-size: 10px; color: var(--faint); letter-spacing: .5px; margin-bottom: 14px; }
.section-heading h2 { font-size: 29px; font-weight: 550; line-height: 1.5; letter-spacing: -.8px; }
.section-heading h2 > span { color: var(--muted); }
.filter-group { display: flex; align-items: center; padding: 4px; gap: 3px; border: 1px solid var(--soft-line); border-radius: 11px; flex: 0 0 auto; }
.filter-group button { padding: 7px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 10px; }
.filter-group button.selected { background: var(--surface-solid); color: var(--text); box-shadow: 0 1px 5px rgba(36, 48, 32, .04); }
.project-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; }
.featured-project { display: block; position: relative; border-radius: 24px; padding: 28px 29px; min-height: 466px; overflow: hidden; background: linear-gradient(145deg, var(--glass), color-mix(in srgb, var(--accent-soft) 40%, var(--glass))); transition: translate .5s var(--ease), box-shadow .5s; }
.featured-top { display: flex; align-items: center; gap: 12px; }
.featured-top > .icon { margin-left: auto; color: var(--muted); width: 16px; height: 16px; }
.project-icon { display: grid; place-items: center; width: 45px; height: 45px; flex: 0 0 auto; border-radius: 14px; color: var(--accent); background: var(--accent-soft); }
.project-icon svg { width: 29px; height: 29px; }
.featured-label { font-size: 10px; color: var(--muted); }
.featured-project h3 { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; font-size: 27px; font-weight: 600; }
.featured-project h3 > span { color: var(--faint); font-size: 9px; letter-spacing: 1.8px; font-weight: 400; }
.featured-project > p { font-size: 13px; line-height: 1.9; color: var(--muted); margin-top: 10px; }
.album-preview { position: absolute; right: 50px; bottom: 67px; width: 258px; height: 188px; transform: rotate(-6deg); transition: rotate .65s var(--ease), translate .65s var(--ease); }
.album-sheet { position: absolute; inset: 0; border-radius: 14px; border: 1px solid var(--glass-border); }
.sheet-back { background: var(--glass); transform: rotate(9deg) translate(11px, 1px); box-shadow: var(--shadow); }
.sheet-front { background: var(--surface-solid); padding: 10px; box-shadow: 0 12px 25px rgba(40, 58, 34, .075); }
.album-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 8px; padding: 1px 0 9px; }
.album-bar .window-dots i { width: 3px; height: 3px; }
.album-photos { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6px; height: 145px; }
.album-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; min-height: 0; }
.album-photos > div { display: grid; grid-template-rows: 1fr 1fr; gap: 6px; min-height: 0; }
[data-palette="mono"] .album-photos { filter: grayscale(1); }
.album-sticker { position: absolute; display: inline-flex; align-items: center; gap: 6px; right: -25px; bottom: 14px; padding: 10px 12px; border-radius: 10px; transform: rotate(12deg); color: var(--muted); font-size: 9px; }
.featured-footer { position: absolute; left: 29px; right: 29px; bottom: 23px; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 9px; color: var(--muted); }
.featured-footer i { font-style: normal; margin: 0 5px; color: var(--faint); }
.featured-footer > span:last-child { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.project-list { min-width: 0; padding: 0 3px; }
.project-row { display: flex; align-items: center; gap: 17px; width: 100%; min-height: 93px; padding: 18px 1px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.project-row:first-child { padding-top: 12px; }
.project-row:last-child { border-bottom: 0; }
.project-row-copy { flex: 1; min-width: 0; }
.project-row-copy > strong { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 550; }
.project-row-copy > span { display: block; font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 6px; }
.project-tag { display: inline-block; color: var(--faint); font-size: 8px; font-weight: 400; border: 1px solid var(--soft-line); padding: 2px 5px; border-radius: 5px; line-height: 1.5; white-space: nowrap; }
.row-arrow { width: 16px; height: 16px; color: var(--faint); transition: translate .4s var(--ease), color .2s; }
.project-row .project-icon { transition: translate .4s var(--ease); }
.project-row:hover .row-arrow { color: var(--accent); }
.project-layout[data-filter="android"] { grid-template-columns: 1fr; }
.project-layout[data-filter="android"] .project-row { border-bottom: 1px solid var(--line); max-width: 620px; }

.notes-section { margin-top: 87px; padding: 40px 43px; border-radius: 24px; display: grid; grid-template-columns: .82fr 1.2fr; gap: 50px; }
.notes-copy h2 { font-size: 32px; font-weight: 550; line-height: 1.45; letter-spacing: -.5px; margin-top: 5px; }
.notes-copy > p { margin-top: 17px; color: var(--muted); font-size: 11px; line-height: 1.85; }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--accent); font-size: 11px; }
.text-link > svg { transition: translate .3s var(--ease); }
.text-link:hover > svg { translate: 3px 0; }
.note-list { align-self: center; }
.note-list > a { display: flex; align-items: center; gap: 23px; border-bottom: 1px solid var(--line); padding: 22px 0; }
.note-list > a:first-child { padding-top: 6px; }
.note-list > a:last-child { border-bottom: 0; padding-bottom: 6px; }
.note-list time { color: var(--faint); font-size: 8px; flex: 0 0 41px; line-height: 1.5; }
.note-list time > span { color: var(--muted); display: block; font-size: 16px; letter-spacing: -.3px; }
.note-list a > div { flex: 1; min-width: 0; }
.note-category { display: block; color: var(--faint); font-size: 9px; margin-bottom: 7px; }
.note-list h3 { font-size: 13px; font-weight: 500; line-height: 1.65; }
.note-list a > .icon { width: 14px; height: 14px; color: var(--faint); transition: translate .3s var(--ease); }
.note-list a:hover > .icon { translate: 2px -2px; color: var(--accent); }
.about-section { padding: 90px 0 86px; text-align: center; }
.about-spark { display: grid; place-items: center; width: 47px; height: 47px; margin: 0 auto 23px; border-radius: 16px; color: var(--accent); background: var(--accent-soft); }
.about-section .section-kicker { margin-bottom: 19px; }
.about-section h2 { font-size: 28px; font-weight: 550; line-height: 1.7; letter-spacing: -.7px; }
.about-section h2 > span { color: var(--muted); }
.about-section p { color: var(--muted); font-size: 12px; line-height: 1.95; margin-top: 20px; }
.about-section .button { margin-top: 27px; font-size: 11px; padding: 12px 16px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid var(--line); padding: 24px 0 30px; }
.site-footer .brand { gap: 8px; }
.site-footer .brand > span { font-size: 20px; }
.site-footer > span { color: var(--faint); font-size: 9px; }
.site-footer > a:last-child { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.site-footer > a:last-child svg { rotate: -90deg; }

.project-dialog { color: var(--text); width: min(450px, calc(100% - 36px)); border-radius: 24px; padding: 25px 30px 30px; }
.project-dialog::backdrop { background: rgba(24, 30, 22, .24); backdrop-filter: blur(5px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dialog-heading .section-kicker { margin-bottom: 0; }
.dialog-icon { width: 55px; height: 55px; border-radius: 16px; margin-bottom: 21px; }
.project-dialog h2 { font-size: 29px; font-weight: 550; }
.project-dialog > p { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.9; }
.project-dialog ul { margin: 22px 0; padding-left: 18px; font-size: 12px; color: var(--muted); line-height: 2.2; }
.dialog-note { display: block; font-size: 10px; line-height: 1.8; color: var(--faint); padding-top: 17px; border-top: 1px solid var(--line); }
body.dialog-open { overflow: hidden; }

@keyframes brand-i-throw {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  18% { transform: translate(var(--i-throw-x), -14px) rotate(-28deg) scale(1.14); animation-timing-function: cubic-bezier(.4, 0, .8, .55); }
  36% { transform: translate(calc(var(--i-throw-x) + 5px), 9px) rotate(18deg) scale(1.08); }
  58% { transform: translate(0, 2px) rotate(-5deg) scale(1.06); }
  73% { transform: translate(0, -2px) rotate(0deg) scale(1); }
  90%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}
@keyframes brand-letter-assemble {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  18%, 40% { transform: translate(var(--letter-x), var(--letter-y)) rotate(var(--letter-turn)) scale(var(--letter-scale, 1)); opacity: .62; }
  78% { transform: translate(0, 0) rotate(0deg) scale(1.055); opacity: 1; }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
}
@keyframes brand-letter-gather {
  from { transform: translate(var(--letter-x), var(--letter-y)) rotate(var(--letter-turn)) scale(var(--letter-scale, 1)); opacity: .7; }
  to { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
}
@keyframes brand-i-return {
  0% { transform: translate(var(--i-throw-x), -8px) rotate(12deg); }
  45% { transform: translate(20px, 4px) rotate(-6deg); }
  80% { transform: translate(0, 1px) rotate(0deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes brand-click-feedback {
  from { opacity: .65; transform: translate(-50%, -50%) scale(.6); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(4.5); }
}
@keyframes brand-mark-kick {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  24% { transform: translate(-3px, 2px) rotate(-8deg); }
  62% { transform: translate(1px, 0) rotate(3deg); }
}
.reveal { --reveal-offset: calc(var(--reveal-distance) * -1); }
.reveal[data-reveal="right"] { --reveal-offset: var(--reveal-distance); }
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="on"] .brand-pending .brand-letter {
    transform: translate(var(--letter-x), var(--letter-y)) rotate(var(--letter-turn)) scale(var(--letter-scale, 1));
    opacity: .7;
  }
  html[data-motion="on"] .brand-pending .brand-letter[data-letter="i"] { transform: translate(var(--i-throw-x), -8px) rotate(12deg); opacity: 1; }
  html[data-motion="on"] .brand-playing .brand-letter { will-change: transform, opacity; }
  html[data-motion="on"] .brand-assembling .brand-letter {
    animation: brand-letter-gather .52s var(--ease) var(--gather-delay, 0ms) both;
  }
  html[data-motion="on"] .brand-assembling .brand-letter[data-letter="i"] {
    animation: brand-i-return .55s var(--ease) both;
  }
  html[data-motion="on"] .brand-replaying .brand-letter {
    animation: brand-letter-assemble 1.24s var(--ease) var(--letter-delay, 0ms) both;
  }
  html[data-motion="on"] .brand-replaying .brand-letter[data-letter="i"] {
    animation: brand-i-throw 1.12s var(--ease) both;
  }
  html[data-motion="on"] .brand-replaying > img { animation: brand-mark-kick .72s var(--ease) both; }
  html[data-motion="on"] .brand-replaying::after { animation: brand-click-feedback .45s ease-out both; }
  html[data-motion="on"] .reveal-managed {
    opacity: 0;
    translate: var(--reveal-offset) 0;
  }
  html[data-motion="on"] .reveal-managed.reveal-initialized {
    transition-property: translate, opacity, box-shadow;
    transition-duration: .48s, .32s, .25s;
    transition-timing-function: cubic-bezier(.4, 0, .8, 1), ease-in, ease;
    transition-delay: 0s;
  }
  html[data-motion="on"] .reveal-managed.reveal-visible {
    opacity: 1;
    translate: 0 0;
    transition-duration: .95s, .62s, .25s;
    transition-timing-function: var(--assemble-ease), ease-out, ease;
    transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms;
  }
  html[data-motion="on"] .scene-parallax.reveal-managed {
    transition-property: translate, opacity, transform;
    transition-duration: .48s, .32s, .8s;
    transition-timing-function: cubic-bezier(.4, 0, .8, 1), ease-in, var(--ease);
  }
  html[data-motion="on"] .scene-parallax.reveal-visible {
    transition-duration: .95s, .62s, .8s;
    transition-timing-function: var(--assemble-ease), ease-out, var(--ease);
  }
  html[data-motion="on"] .reveal-managed:not(.reveal-initialized) { transition: none; }
  html[data-motion="on"] .reveal-managed:focus-within {
    opacity: 1;
    translate: 0 0;
    transition-delay: 0ms;
  }
  @media (hover: hover) and (pointer: fine) {
    html[data-motion="on"] .featured-project:hover { translate: -3px 0; box-shadow: 0 20px 40px rgba(39, 52, 34, .07); }
    html[data-motion="on"] .featured-project:hover .album-preview { rotate: 3deg; translate: 4px 0; }
    html[data-motion="on"] .project-row:hover .project-icon { translate: 3px 0; }
    html[data-motion="on"] .project-row:hover .row-arrow { translate: 3px -2px; }
    html[data-motion="on"] .button:hover { translate: 2px 0; }
  }
}
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation-play-state: paused !important; transition: none !important; }
html[data-motion="off"] .reveal-managed { opacity: 1; translate: none; }
html[data-motion="off"] .scene-parallax { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scene-parallax { transform: none; }
}

@media (max-width: 1100px) {
  .page-shell { width: calc(100% - 64px); }
  .site-header nav { padding-left: 0; gap: 23px; }
  .hero { gap: 30px; padding-left: 8px; padding-right: 8px; }
  .hero-visual { height: 470px; }
  .orbit-outer { width: 390px; height: 390px; top: 3px; left: -4px; }
  .orbit-inner { width: 300px; height: 300px; left: 40px; top: 44px; }
  .scene-parallax { left: 14px; right: 20px; top: 36px; }
  .particle-stage { height: 236px; }
  .floating-badge { right: -1px; padding: 12px; }
  .project-peek { right: 0; width: 290px; bottom: 72px; }
  .project-tabs { left: 18px; right: 23px; }
  .project-layout { gap: 35px; }
  .section-heading h2 { font-size: 25px; }
  .project-row { gap: 13px; }
  .project-row-copy > strong { font-size: 14px; }
  .album-preview { right: 38px; width: 240px; }
}

@media (max-width: 900px) {
  .site-header nav { gap: 17px; }
  .site-header nav a { font-size: 10px; }
  .header-actions { gap: 7px; }
  .header-github > span, .header-github > .icon:last-child { display: none; }
  .hero { gap: 18px; padding-top: 65px; padding-bottom: 57px; }
  .hero h1 { font-size: 54px; }
  .hero-description { font-size: 13px; }
  .hero-actions { gap: 18px; }
  .hero .button { gap: 10px; padding: 13px 15px; font-size: 11px; }
  .hero .text-button { font-size: 11px; }
  .hero-visual { height: 430px; }
  .orbit-outer { width: 335px; height: 335px; left: 1px; }
  .orbit-inner { width: 270px; height: 270px; left: 31px; top: 35px; }
  .scene-parallax { right: 10px; }
  .particle-stage { height: 207px; }
  .stage-guide { width: 170px; height: 170px; border-radius: 43px; }
  .stage-guide::after { border-radius: 35px; }
  .floating-badge { font-size: 9px; padding: 10px; gap: 7px; }
  .badge-icon { width: 29px; height: 29px; }
  .window-caption > span:last-child { font-size: 7px; }
  .project-peek { width: 257px; padding: 14px 17px 17px; }
  .peek-content h2 { font-size: 20px; }
  .peek-content p { font-size: 9px; }
  .project-tabs { left: 8px; right: 8px; }
  .project-tabs button { font-size: 10px; gap: 6px; }
  .section-heading { align-items: start; }
  .section-heading h2 { max-width: 350px; line-height: 1.6; }
  .project-layout { gap: 26px; }
  .project-row .project-icon { width: 38px; height: 38px; border-radius: 12px; }
  .project-row .project-icon svg { width: 24px; height: 24px; }
  .project-row { gap: 11px; }
  .project-tag { display: none; }
  .featured-project { padding: 25px; }
  .album-preview { right: 34px; width: 218px; height: 178px; }
  .album-photos { height: 136px; }
  .notes-section { padding: 33px; gap: 35px; }
  .note-list > a { gap: 16px; }
  .note-list h3 { font-size: 12px; }
}

@media (max-width: 780px) {
  .page-shell { width: calc(100% - 44px); max-width: 580px; }
  .site-header { margin-top: 18px; padding: 12px 15px; border-radius: 18px; }
  .site-header nav { display: none; }
  .site-header .brand > span { font-size: 24px; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 48px 0 44px; }
  .hero-copy { padding-left: 9px; padding-bottom: 0; }
  .eyebrow { margin-bottom: 20px; font-size: 10px; }
  .hero h1 { font-size: clamp(47px, 10.5vw, 64px); letter-spacing: -2.5px; line-height: 1.25; }
  .hero-description { margin-top: 24px; font-size: 14px; }
  .hero-description > span { font-size: 11px; margin-top: 7px; }
  .hero-actions { margin-top: 25px; gap: 22px; }
  .hero .button { padding: 14px 18px; font-size: 12px; }
  .hero-footnote { margin-top: 23px; }
  .hero-visual { width: min(440px, 100%); height: 445px; margin: 0 auto; }
  .orbit-outer { width: min(390px, 100%); height: auto; aspect-ratio: 1; left: 2px; top: 2px; }
  .orbit-inner { width: 77%; height: auto; aspect-ratio: 1; left: 11%; top: 39px; }
  .scene-parallax { left: 13px; right: 19px; top: 33px; }
  .particle-stage { height: 231px; }
  .stage-guide { width: 186px; height: 186px; border-radius: 48px; }
  .stage-guide::after { border-radius: 37px; }
  .window-caption { font-size: 8px; }
  .window-caption > span:last-child { font-size: 7px; }
  .floating-badge { top: 15px; right: 2px; padding: 12px; font-size: 10px; }
  .badge-icon { width: 30px; height: 30px; }
  .project-peek { width: 285px; bottom: 70px; right: 2px; padding: 15px 18px 19px; }
  .peek-content h2 { font-size: 21px; }
  .peek-content p { font-size: 10px; }
  .project-tabs { left: 16px; right: 21px; bottom: 0; }
  .project-tabs button { font-size: 11px; }
  .spark-top { left: 43px; top: 5px; }
  .spark-bottom { left: 3px; bottom: 113px; }
  .page-divider { padding: 19px 0; }
  .divider-index { font-size: 6px; gap: 10px; letter-spacing: .5px; }
  .projects-section { margin-top: 53px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-kicker { font-size: 9px; margin-bottom: 12px; }
  .section-heading h2 { font-size: 24px; max-width: none; }
  .section-heading h2 > span { display: block; }
  .filter-group { display: inline-flex; margin-top: 20px; }
  .project-layout { grid-template-columns: 1fr; gap: 21px; }
  .featured-project { min-height: 441px; padding: 25px; border-radius: 22px; }
  .album-preview { width: 250px; height: 187px; right: 43px; bottom: 64px; }
  .album-photos { height: 144px; }
  .featured-project h3 { margin-top: 19px; }
  .featured-project > p { font-size: 12px; }
  .featured-footer { left: 25px; right: 25px; font-size: 8px; }
  .project-list { padding: 0 3px; }
  .project-row { min-height: 87px; gap: 15px; padding: 17px 1px; }
  .project-row .project-icon { width: 43px; height: 43px; border-radius: 13px; }
  .project-row .project-icon svg { width: 27px; height: 27px; }
  .project-row-copy > strong { font-size: 15px; gap: 9px; }
  .project-row-copy > span { font-size: 11px; line-height: 1.75; }
  .project-tag { display: inline-block; font-size: 7px; }
  .notes-section { margin-top: 50px; padding: 29px 26px; border-radius: 22px; grid-template-columns: 1fr; gap: 33px; }
  .notes-copy h2 { font-size: 27px; }
  .notes-copy h2 br { display: none; }
  .notes-copy > p { font-size: 11px; margin-top: 13px; }
  .notes-copy .text-link { font-size: 10px; margin-top: 17px; }
  .note-list > a { padding: 19px 0; gap: 14px; }
  .note-list h3 { font-size: 12px; }
  .note-list time { flex-basis: 37px; }
  .note-list time > span { font-size: 14px; }
  .note-category { font-size: 8px; }
  .about-section { padding: 60px 0 55px; }
  .about-section h2 { font-size: 22px; line-height: 1.8; }
  .about-section p { font-size: 11px; line-height: 1.95; padding: 0 5px; }
  .about-section p br { display: none; }
  .about-section .button { font-size: 10px; }
  .site-footer { flex-wrap: wrap; padding: 21px 0 24px; gap: 15px; }
  .site-footer > span { order: 3; width: 100%; font-size: 8px; }
  .site-footer > a:last-child { margin-left: auto; font-size: 8px; }
}

@media (max-width: 370px) {
  .brand-wordmark { --i-throw-x: 38px; }
  .page-shell { width: calc(100% - 36px); }
  .site-header { padding: 10px 12px; gap: 10px; }
  .site-header .brand { gap: 7px; }
  .site-header .brand img { width: 29px; height: 29px; }
  .site-header .brand > span { font-size: 21px; }
  .header-actions { gap: 5px; }
  .header-actions .icon-button { width: 29px; height: 29px; }
  .header-github { padding-left: 3px; }
  .hero-copy { padding-left: 3px; }
  .hero h1 { font-size: 43px; }
  .hero .button { padding: 13px 13px; font-size: 11px; }
  .hero-actions { gap: 16px; }
  .hero-visual { height: 415px; }
  .particle-stage { height: 211px; }
  .scene-parallax { left: 10px; right: 12px; }
  .window-bar { padding-left: 14px; font-size: 9px; }
  .window-caption { padding-left: 14px; padding-right: 14px; }
  .window-caption > span:last-child { display: none; }
  .floating-badge { padding: 10px; font-size: 9px; }
  .project-peek { width: 249px; padding: 14px 15px 17px; bottom: 65px; }
  .peek-content h2 { font-size: 20px; }
  .peek-content p { font-size: 9px; }
  .project-tabs { left: 6px; right: 7px; }
  .project-tabs button { font-size: 10px; gap: 5px; height: 37px; }
  .section-heading h2 { font-size: 21px; }
  .featured-project { min-height: 420px; padding: 22px; }
  .album-preview { right: 33px; width: 215px; height: 176px; }
  .album-photos { height: 133px; }
  .album-sticker { right: -18px; padding: 8px 9px; font-size: 8px; }
  .project-row { gap: 11px; }
  .project-row-copy > strong { font-size: 14px; }
  .project-row-copy > span { font-size: 10px; }
  .project-tag { display: none; }
  .notes-section { padding: 25px 21px; }
  .note-list > a { gap: 11px; }
  .note-list h3 { font-size: 11px; }
  .about-section h2 { font-size: 19px; }
}
