:root {
  --bg: #0b0c0f;
  --bg-2: #101216;
  --card: #14161b;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f2eee6;
  --muted: #a39f97;
  --dim: #6f6c66;
  --accent: #ff8b4a;
  --accent-2: #ffc078;
  --accent-ink: #1a0d04;
  --green: #5fe3a1;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, dl, dd, blockquote { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 14px 0 auto 0; z-index: 50;
  width: min(1240px, 100% - 28px); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 12px 10px 14px;
  border: 1px solid transparent; border-radius: 999px;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
.nav.scrolled { background: rgba(14, 15, 19, 0.72); border-color: var(--line); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.01em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 500; font-size: 16px; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 10px 18px; font-size: 14.5px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(255, 139, 74, 0.5); }
.btn-accent:hover { background: var(--accent-2); box-shadow: 0 10px 34px -8px rgba(255, 139, 74, 0.6); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.04); }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 150px 0 0; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 35%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 80% 70% at 60% 35%, #000 20%, transparent 78%); }
.hero-glow { position: absolute; width: 900px; height: 900px; right: -220px; top: -260px; background: radial-gradient(circle, rgba(255, 139, 74, 0.2), transparent 62%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: center; }

.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--muted); background: rgba(255, 255, 255, 0.03); }
.status .sep { color: var(--dim); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(95, 227, 161, 0.6); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(95, 227, 161, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 227, 161, 0); } }

h1 { margin-top: 28px; font-size: clamp(3.2rem, 8.4vw, 7.6rem); line-height: 0.94; letter-spacing: -0.045em; font-weight: 500; }
h1 em { font-size: 1.08em; letter-spacing: -0.03em; }
.lede { margin-top: 30px; max-width: 34em; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.portrait { position: relative; margin: 0; justify-self: end; width: min(100%, 420px); }
.portrait-frame { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line-2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 120px -40px rgba(255, 139, 74, 0.45); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease); }
.portrait:hover .portrait-frame img { transform: scale(1.04); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 12, 15, 0.7)); }
.chip { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(20, 22, 27, 0.82); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 12.5px; line-height: 1.3; color: var(--muted); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8); }
.chip b { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; color: var(--text); }
.chip-a { left: -34px; bottom: 76px; animation: float 6s ease-in-out infinite; }
.chip-b { right: -14px; top: 26px; font-family: var(--mono); font-size: 11.5px; color: var(--text); padding: 9px 14px; border-radius: 999px; animation: float 7s ease-in-out -2s infinite; }
@keyframes float { 50% { transform: translateY(-9px); } }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 90px; border-top: 1px solid var(--line); }
.stats > div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 30px 24px 38px 0; }
.stats > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.stats dd { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; font-weight: 500; font-variant-numeric: tabular-nums; }
.stats dt { font-size: 14px; color: var(--muted); max-width: 16em; }

/* ---------- MARQUEE ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; background: var(--bg-2); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: 30px; font-style: italic; color: var(--text); white-space: nowrap; }
.marquee i { color: var(--accent); font-style: normal; font-size: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow span { color: var(--accent); }
.eyebrow::after { content: ""; width: 44px; height: 1px; background: var(--line-2); }
.section-head { display: grid; grid-template-columns: 1.3fr 0.7fr; column-gap: 48px; align-items: end; margin-bottom: 60px; }
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: 22px; }
h2 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 500; }
.section-note { color: var(--muted); max-width: 26em; justify-self: end; }

/* ---------- CARDS ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color 0.35s, transform 0.5s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 139, 74, 0.11), transparent 62%); opacity: 0; transition: opacity 0.4s; pointer-events: none; z-index: 1; }
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }

.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project { display: flex; flex-direction: column; scroll-margin-top: 100px; }
.project-wide, .project-cover { grid-column: 1 / -1; }
.project-wide { display: grid; grid-template-columns: 1.05fr 0.95fr; }
.project-body { position: relative; z-index: 2; padding: 34px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.project-wide .project-body { padding: 48px; justify-content: center; }
.project-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.project-kicker span { color: var(--accent); margin-right: 8px; }
.project h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 500; }
.project-body > p:not(.project-kicker), .project-body-row p:not(.project-kicker) { color: var(--muted); max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.result-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px 0; border-block: 1px solid var(--line); font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.result-list b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; color: var(--text); margin-bottom: 4px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: auto; padding-top: 8px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: color 0.2s, border-color 0.2s, gap 0.25s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 13px; }

.visual { position: relative; min-height: 320px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: #0e1014; }
.project:not(.project-wide) .visual { height: 400px; }
.project-wide .visual { border-bottom: 0; border-right: 1px solid var(--line); min-height: 520px; }

/* ASL */
.visual-asl { background: radial-gradient(circle at 50% 55%, rgba(255, 139, 74, 0.16), transparent 60%), linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 36px, linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 36px 100%, #0d0f13; }
.hand { width: min(58%, 300px); overflow: visible; }
.bones polyline { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 600; stroke-dashoffset: 600; opacity: 0.85; }
.in .bones polyline, html:not(.js) .bones polyline { animation: draw 1.6s var(--ease) 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.joints circle { fill: #0d0f13; stroke: var(--text); stroke-width: 2; animation: joint 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.joints circle:nth-child(3n) { animation-delay: -0.8s; }
.joints circle:nth-child(3n + 1) { animation-delay: -1.6s; }
.joints .tip { fill: var(--accent); stroke: var(--accent-2); }
@keyframes joint { 50% { transform: scale(1.3); } }
.bbox { stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 10 8; opacity: 0.7; animation: dash 14s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -360; } }
.scanline { position: absolute; left: 0; right: 0; height: 90px; top: -90px; background: linear-gradient(180deg, transparent, rgba(255, 139, 74, 0.13)); border-bottom: 1px solid rgba(255, 139, 74, 0.55); animation: scan 4.2s linear infinite; }
@keyframes scan { to { top: 100%; } }
.hud { position: absolute; left: 22px; right: 22px; display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); z-index: 2; }
.hud-top { top: 20px; }
.hud-bottom { bottom: 20px; padding: 14px 18px; border-radius: 14px; background: rgba(11, 12, 15, 0.78); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hud small { display: block; font-size: 10px; color: var(--dim); margin-bottom: 3px; }
.hud b { font-size: 15px; font-weight: 500; color: var(--text); letter-spacing: 0.04em; }
#asl-word { color: var(--accent); }
.rec { display: inline-flex; align-items: center; gap: 7px; color: var(--green); }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

/* MedGuide */
.visual-med { background: radial-gradient(circle at 80% 0%, rgba(95, 227, 161, 0.14), transparent 55%), #0e1014; padding: 34px; }
.app { width: min(100%, 380px); padding: 20px; border-radius: 18px; background: #171a20; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px #000; font-size: 13px; }
.app-bar { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.app-bar em { margin-left: auto; font-family: var(--mono); font-style: normal; font-size: 10.5px; color: var(--dim); letter-spacing: 0.02em; }
.app-logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--green); color: #06251a; font-size: 18px; font-weight: 600; line-height: 1; }
.app-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.app-chips span { padding: 5px 11px; border-radius: 999px; background: rgba(95, 227, 161, 0.12); color: var(--green); font-size: 12px; }
.app-chips .add { background: none; border: 1px dashed var(--line-2); color: var(--dim); }
.app-rows { display: grid; gap: 12px; }
.app-rows div { display: grid; grid-template-columns: 1fr 38px; gap: 6px 10px; align-items: center; color: var(--muted); }
.app-rows b { color: var(--text); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.app-rows i { order: 3; grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); position: relative; overflow: hidden; }
.app-rows i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, var(--green), #b6f5d4); transform-origin: left; transform: scaleX(0); transition: transform 1.3s var(--ease) 0.3s; }
.in .app-rows i::after, html:not(.js) .app-rows i::after { transform: scaleX(1); }
.app-note { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--dim); }

/* Bot or Not */
.visual-bot { background: radial-gradient(circle at 15% 100%, rgba(255, 139, 74, 0.14), transparent 55%), #0e1014; padding: 34px; }
.console { width: min(100%, 400px); border-radius: 16px; background: #171a20; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px #000; overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--dim); }
.console-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.console-bar span { margin-left: 8px; }
.console-text { min-height: 104px; padding: 18px 18px 6px; font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--text); }
.console-text span { border-radius: 4px; transition: background 0.4s; }
.console-text span.hot { background: rgba(255, 139, 74, 0.22); }
.console-text::after { content: "▍"; color: var(--accent); animation: blink 1s steps(2) infinite; font-family: var(--mono); font-size: 15px; }
.verdict { padding: 14px 18px 18px; }
.meter { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--green), #e9e2a0, var(--accent)); position: relative; }
.meter i { position: absolute; top: -5px; left: 50%; width: 4px; height: 16px; border-radius: 3px; background: var(--text); box-shadow: 0 0 0 3px #171a20; transition: left 0.9s var(--ease); }
.verdict-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--dim); }
.verdict-row b { font-size: 12px; font-weight: 500; color: var(--text); letter-spacing: 0.04em; }

/* Star Rebellion */
.cover { position: relative; display: block; width: 100%; aspect-ratio: 5 / 2; overflow: hidden; border-bottom: 1px solid var(--line); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 0.5s; }
.cover:hover img { transform: scale(1.045); filter: brightness(0.8); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 12, 15, 0.75)); pointer-events: none; }
.play { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: rgba(242, 238, 230, 0.94); color: var(--bg); z-index: 2; transition: transform 0.4s var(--ease), background 0.3s; box-shadow: 0 0 0 0 rgba(242, 238, 230, 0.4); animation: ring 2.6s infinite; }
.play svg { width: 34px; height: 34px; margin-left: 4px; }
.cover:hover .play { transform: scale(1.1); background: var(--accent); }
@keyframes ring { 70% { box-shadow: 0 0 0 22px rgba(242, 238, 230, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 238, 230, 0); } }
.cover-label { position: absolute; left: 24px; bottom: 20px; z-index: 2; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.project-body-row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; padding: 38px 48px 44px; }
.project-body-row > div:first-child { display: flex; flex-direction: column; gap: 14px; }
.project-side { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; flex: none; }

/* ---------- MORE ON GITHUB ---------- */
.hero-mail { align-self: center; margin-left: 10px; color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.hero-mail:hover { color: var(--accent); border-color: var(--accent); }
.more { margin-top: 90px; }
.more-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.more-head h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); letter-spacing: -0.035em; font-weight: 500; line-height: 1.05; }
.more-head .link-arrow { margin: 0; padding-top: 0; }
.repos { border-top: 1px solid var(--line-2); }
.repos a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto 24px; gap: 28px; align-items: center; padding: 24px 6px; border-bottom: 1px solid var(--line); transition: background 0.25s, padding 0.3s var(--ease); }
.repos a:hover { background: rgba(255, 255, 255, 0.03); padding-inline: 18px; }
.repo-name { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; transition: color 0.2s; }
.repos a:hover .repo-name { color: var(--accent); }
.repo-desc { color: var(--muted); font-size: 15px; line-height: 1.5; }
.repo-lang { font-family: var(--mono); font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.repos i { font-style: normal; color: var(--dim); text-align: right; transition: transform 0.3s var(--ease), color 0.2s; }
.repos a:hover i { color: var(--accent); transform: translate(3px, -3px); }
@media (max-width: 900px) {
  .more { margin-top: 64px; }
  .repos a { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 16px; padding: 20px 2px; }
  .repos a:hover { padding-inline: 2px; }
  .repo-name, .repo-desc, .repo-lang { grid-column: 1; }
  .repos i { grid-column: 2; grid-row: 1; }
}
@media (max-width: 560px) {
  .hero-mail { margin: 6px auto 0; }
}
@media (max-width: 350px) {
  .status { white-space: normal; }
  h1 { font-size: 2.7rem; }
}

/* ---------- ABOUT ---------- */
.quote { margin: 30px 0 70px; font-size: clamp(2.1rem, 5.2vw, 4.4rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 500; max-width: 17em; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.about-text { display: grid; gap: 20px; font-size: 1.12rem; color: var(--muted); align-content: start; }
.about-text p:first-child { color: var(--text); }
.facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.facts > div:first-child { padding-top: 0; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.facts dd { font-weight: 500; }

/* ---------- SKILLS ---------- */
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.skill { display: flex; flex-direction: column; gap: 18px; padding: 28px; min-height: 290px; }
a.skill:hover { transform: translateY(-6px); }
.skill > * { position: relative; z-index: 2; }
.skill-num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.skill h3 { font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; }
.skill-proof { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; transition: color 0.2s; }
.skill-proof i { font-style: normal; transition: transform 0.3s var(--ease); }
a.skill:hover .skill-proof { color: var(--accent); }
a.skill:hover .skill-proof i { transform: translateX(5px); }

/* ---------- CONTACT ---------- */
.contact { position: relative; padding: clamp(100px, 13vw, 180px) 0 clamp(70px, 8vw, 110px); overflow: hidden; border-top: 1px solid var(--line); background: var(--bg-2); }
.contact-glow { position: absolute; left: 50%; bottom: -520px; width: 1200px; height: 900px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(255, 139, 74, 0.26), transparent 62%); pointer-events: none; }
.contact .wrap { position: relative; }
.contact h2 { margin-top: 26px; font-size: clamp(2.8rem, 8vw, 7rem); line-height: 0.96; }
.contact-main { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 54px; }
.email { font-size: clamp(1.5rem, 4.4vw, 3.4rem); letter-spacing: -0.035em; font-weight: 500; line-height: 1.15; border-bottom: 2px solid var(--line-2); padding-bottom: 6px; transition: color 0.25s, border-color 0.25s; overflow-wrap: anywhere; }
.email:hover { color: var(--accent); border-color: var(--accent); }
.email span { display: inline-block; transition: transform 0.3s var(--ease); }
.email:hover span { transform: translate(5px, -5px); }
.contact-links { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid var(--line-2); }
.contact-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 22px 24px 0; font-weight: 500; transition: color 0.2s, padding 0.3s var(--ease); }
.contact-links li + li a { padding-left: 22px; border-left: 1px solid var(--line); }
.contact-links i { font-style: normal; color: var(--dim); transition: transform 0.3s var(--ease), color 0.2s; }
.contact-links a:hover { color: var(--accent); }
.contact-links a:hover i { color: var(--accent); transform: translate(3px, -3px); }

.footer { padding: 26px 0 34px; background: var(--bg-2); font-family: var(--mono); font-size: 12px; color: var(--dim); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; }
.footer a:hover { color: var(--text); }

/* ---------- VIDEO DIALOG ---------- */
.video-dialog { width: min(1100px, 100% - 28px); padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: var(--card); color: var(--text); overflow: hidden; }
.video-dialog::backdrop { background: rgba(5, 6, 8, 0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.video-dialog[open] { animation: pop 0.35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.video-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 14px 22px; }
.video-head h2 { font-size: 18px; letter-spacing: -0.02em; line-height: 1.2; }
.video-head small { font-family: var(--mono); font-weight: 400; font-size: 11.5px; color: var(--dim); margin-left: 10px; letter-spacing: 0; }
.video-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); transition: background 0.2s, color 0.2s; }
.video-close:hover { background: var(--text); color: var(--bg); }
.video-dialog video { width: 100%; max-height: 76vh; background: #000; }

/* ---------- REVEAL ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), border-color 0.35s; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill { min-height: 240px; }
  .chip-a { left: -14px; }
  .chip-b { right: -8px; }
}
@media (max-width: 900px) {
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .portrait { justify-self: start; width: min(100%, 380px); margin-left: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 70px; }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .section-head { grid-template-columns: 1fr; row-gap: 20px; margin-bottom: 44px; }
  .section-note { justify-self: start; }
  .projects { grid-template-columns: 1fr; }
  .project-wide { display: flex; }
  .project-wide .visual { border-right: 0; border-bottom: 1px solid var(--line); min-height: 440px; }
  .project-wide .project-body, .project-body-row { padding: 34px; }
  .project-body-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .project-side { align-items: flex-start; }
  .cover { aspect-ratio: 16 / 9; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-links { grid-template-columns: repeat(2, 1fr); }
  .contact-links li:nth-child(3) a { padding-left: 0; border-left: 0; }
  .contact-links li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav { background: rgba(14, 15, 19, 0.78); border-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); gap: 10px; }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px; margin: 0; border-radius: 22px; background: rgba(16, 18, 22, 0.97); border: 1px solid var(--line-2); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 16px; font-size: 17px; color: var(--text); border-radius: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .brand-name { display: none; }
  .status { font-size: 11px; white-space: nowrap; gap: 8px; padding: 7px 13px 7px 11px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .portrait { margin-left: 0; width: 100%; }
  .chip-a { left: 12px; bottom: 16px; }
  .chip-b { right: 12px; top: 14px; }
  .stats > div { padding: 22px 12px 26px 0; }
  .stats > div + div { padding-left: 16px; }
  .stats > div:nth-child(3) { padding-left: 0; }
  .marquee span { font-size: 24px; }
  .project-body, .project-wide .project-body, .project-body-row { padding: 26px 22px 30px; }
  .visual-med, .visual-bot { padding: 22px 16px; }
  .project-wide .visual { min-height: 400px; }
  .hand { width: 62%; }
  .hud { left: 14px; right: 14px; }
  .hud-bottom { padding: 12px; gap: 10px; }
  .hud b { font-size: 13px; }
  .result-list { grid-template-columns: 1fr; gap: 10px; }
  .result-list li { display: flex; align-items: baseline; gap: 10px; }
  .result-list b { display: inline; font-size: 18px; margin: 0; }
  .play { width: 64px; height: 64px; }
  .play svg { width: 26px; height: 26px; }
  .cover-label { left: 16px; bottom: 12px; font-size: 10px; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .skills { grid-template-columns: 1fr; }
  .skill { min-height: 0; }
  .contact-links { grid-template-columns: 1fr; margin-top: 56px; }
  .contact-links li a, .contact-links li + li a { padding: 20px 0; border-left: 0; }
  .contact-links li + li { border-top: 1px solid var(--line); }
  .footer-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .bones polyline { stroke-dashoffset: 0; }
  .app-rows i::after { transform: scaleX(1); }
  .hero-canvas { display: none; }
}
