
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }


:root {
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --surface-2: #EBEEF4;
  --ink: #0E1422;
  --muted: #576074;
  --line: #D9DEE7;
  --accent: #2E43D6;
  --accent-soft: rgba(46, 67, 214, .10);
  --on-accent: #FFFFFF;
  --good: #1B8A5A;
  --good-soft: rgba(27, 138, 90, .12);

  /* devtools box-model colors */
  --bm-margin: rgba(246, 166, 90, .38);
  --bm-padding: rgba(122, 190, 110, .40);
  --bm-content: rgba(96, 156, 230, .42);
  --grid-col: rgba(46, 67, 214, .06);
  --grid-edge: rgba(46, 67, 214, .22);

  /* code tokens */
  --code-bg: #0E1422;
  --code-ink: #D6DCE8;
  --code-dim: #6B7590;
  --code-key: #9DB2FF;
  --code-str: #8FD3B6;
  --code-num: #F2B880;

  --font-display: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --gap: 24px;
  --radius: 10px;
  --max: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0D14; --surface: #111621; --surface-2: #171D2A; --ink: #E8EBF2; --muted: #8E97AB; --line: #232A39;
    --accent: #8E9DFF; --accent-soft: rgba(142, 157, 255, .12); --on-accent: #0A0D14;
    --good: #4CC98F; --good-soft: rgba(76, 201, 143, .14);
    --grid-col: rgba(142, 157, 255, .06); --grid-edge: rgba(142, 157, 255, .25);
    --code-bg: #070A10; --code-ink: #D6DCE8; --code-dim: #5C667E;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0D14; --surface: #111621; --surface-2: #171D2A; --ink: #E8EBF2; --muted: #8E97AB; --line: #232A39;
  --accent: #8E9DFF; --accent-soft: rgba(142, 157, 255, .12); --on-accent: #0A0D14;
  --good: #4CC98F; --good-soft: rgba(76, 201, 143, .14);
  --grid-col: rgba(142, 157, 255, .06); --grid-edge: rgba(142, 157, 255, .25);
  --code-bg: #070A10; --code-ink: #D6DCE8; --code-dim: #5C667E;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.mono { font-family: var(--font-mono); }
.route {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  letter-spacing: .02em; display: inline-flex; gap: 8px; align-items: center;
}
.route::before { content: ""; width: 18px; height: 1px; background: currentColor; }


.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.mark {
  width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 12px; font-weight: 500;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-tools { display: flex; gap: 8px; }
.btn-tool {
  font: 500 13px/1 var(--font-mono); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.btn-tool:hover { border-color: var(--muted); }
.btn-tool[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-tool kbd {
  font: inherit; font-size: 11px; padding: 2px 5px; border-radius: 4px;
  border: 1px solid currentColor; opacity: .55;
}
@media (max-width: 760px) {
  .nav-links a:not(.keep) { display: none; }
  .btn-tool kbd { display: none; }
}


.hero { padding-block: clamp(48px, 9vw, 112px) clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.hero-main { grid-column: span 8; min-width: 0; }
.hero-side { grid-column: span 4; min-width: 0; }
@media (max-width: 960px) {
  .hero-main, .hero-side { grid-column: 1 / -1; }
}
.status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
  padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--good-soft); color: var(--good);
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 50%, transparent); } 70%,100% { box-shadow: 0 0 0 8px transparent; } }

.ruler {
  margin-top: 36px; margin-bottom: 14px; position: relative; height: 18px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.ruler::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: var(--line);
  border-left: 1px solid var(--muted); border-right: 1px solid var(--muted);
  height: 9px; transform: translateY(-50%);
  background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
}
.ruler span { position: relative; background: var(--bg); padding-inline: 10px; font-variant-numeric: tabular-nums; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.4vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
h1 .soft { color: var(--muted); }
h1 .line { display: block; animation: rise .9s cubic-bezier(.2,.7,.1,1) both; }
h1 .line:nth-child(2) { animation-delay: .08s; }
h1 .line:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { transform: translateY(.28em); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { h1 .line, .status i { animation: none; } }

.lede { margin: 28px 0 0; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.lede strong { color: var(--ink); font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 500; font-size: 15px; padding: 13px 20px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform .15s, border-color .15s, background .15s;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.hint { font-size: 13px; color: var(--muted); }
.hint kbd { font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 5px; padding: 1px 6px; }


.readout {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 12.5px; overflow: hidden;
}
.readout header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted);
}
.readout header b { color: var(--ink); font-weight: 500; }
.dots { display: flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.readout dl { margin: 0; padding: 6px 0; }
.readout .row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 16px; }
.readout .row + .row { border-top: 1px dashed var(--line); }
.readout dt { color: var(--muted); }
.readout dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.pill { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; margin-left: 6px; background: var(--good-soft); color: var(--good); }
.readout footer { padding: 11px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; line-height: 1.5; background: var(--surface-2); }


section.block { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-bottom: 48px; align-items: end; }
.sec-head > div:first-child { grid-column: span 7; min-width: 0; }
.sec-head > p { grid-column: 9 / span 4; margin: 0; color: var(--muted); min-width: 0; }
@media (max-width: 860px) { .sec-head > div:first-child, .sec-head > p { grid-column: 1 / -1; } }
h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.035em;
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.04; margin: 16px 0 0; text-wrap: balance;
}
h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: 1.35rem; line-height: 1.2; margin: 0; }

.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 860px) { .work { grid-template-columns: 1fr; } }
.project {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  transition: border-color .2s, transform .25s cubic-bezier(.2,.7,.1,1);
}
.project:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .project:hover { transform: none; } }
.thumb {
  aspect-ratio: 16 / 9; max-width: 100%; background: var(--surface-2); border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden; padding: 6% 7%;
}
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.project-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.project p { margin: 0; color: var(--muted); }
.metric {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 8px; background: var(--accent-soft);
  font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums;
}
.metric .label { color: var(--muted); }
.metric .before { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.metric .after { color: var(--accent); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.chip { font-family: var(--font-mono); font-size: 11.5px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.project-links { display: flex; gap: 18px; font-size: 14px; font-weight: 500; padding-top: 4px; }
.project-links a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.project-links a:hover { border-color: var(--accent); color: var(--accent); }

.ui { width: 100%; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 40px -24px rgba(14, 20, 34, .35); overflow: hidden; display: flex; flex-direction: column; }
.ui-bar { height: 9%; min-height: 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 4px; padding-inline: 3%; }
.ui-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.ui-body { flex: 1; padding: 4%; display: flex; gap: 4%; min-height: 0; }
.sk { background: var(--surface-2); border-radius: 4px; }
.sk.acc { background: var(--accent); }
.sk.acc-soft { background: var(--accent-soft); }

.dash-side { width: 18%; display: flex; flex-direction: column; gap: 8%; }
.dash-side .sk { height: 7%; }
.dash-main { flex: 1; display: flex; flex-direction: column; gap: 6%; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; height: 24%; }
.kpis .sk { height: 100%; display: flex; align-items: flex-end; padding: 6%; }
.kpis .sk::after { content: ""; height: 26%; width: 55%; background: var(--line); border-radius: 2px; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 3%; border-bottom: 1px solid var(--line); }
.bars span { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .85; }
.bars span:nth-child(odd) { opacity: .45; }

.shop { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; gap: 5%; }
.shop div { display: flex; flex-direction: column; gap: 6%; min-height: 0; }
.shop .img { flex: 1; border-radius: 4px; background: var(--surface-2); }
.shop div:nth-child(3) .img { background: var(--accent-soft); outline: 1.5px solid var(--accent); outline-offset: -1.5px; }
.shop .t { height: 8%; width: 80%; }
.shop .p { height: 8%; width: 40%; }

.ds { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6%; }
.ds-col { display: flex; flex-direction: column; gap: 9%; justify-content: center; }
.sw { display: flex; gap: 5%; height: 22%; }
.sw span { flex: 1; border-radius: 4px; }
.btns { display: flex; gap: 6%; height: 18%; }
.btns span { flex: 1; border-radius: 5px; }
.tog { width: 34%; height: 18%; border-radius: 999px; background: var(--accent); position: relative; }
.tog::after { content: ""; position: absolute; right: 6%; top: 12%; bottom: 12%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); }
.field { height: 18%; border: 1px solid var(--line); border-radius: 5px; }
.field.focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.phone-stage { flex: 1; display: flex; justify-content: center; align-items: center; gap: 8%; }
.phone { height: 100%; aspect-ratio: 9 / 18; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 5%; display: flex; flex-direction: column; gap: 5%; box-shadow: 0 18px 40px -24px rgba(14, 20, 34, .35); }
.phone .map { flex: 1.3; border-radius: 8px; background: var(--surface-2); position: relative; overflow: hidden; }
.phone .map::before { content: ""; position: absolute; left: 18%; top: 22%; width: 60%; height: 55%; border: 2px dashed var(--accent); border-color: var(--accent) transparent transparent var(--accent); border-radius: 50% 0 0 0; }
.phone .map::after { content: ""; position: absolute; right: 18%; bottom: 20%; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.phone .item { height: 9%; }
.phone .cta { height: 10%; border-radius: 6px; background: var(--accent); }
.offline { font-family: var(--font-mono); font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.offline b { color: var(--good); font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step .out { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 6px; }
.step .out b { color: var(--ink); font-weight: 500; }


.stack-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.stack-text { grid-column: span 5; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.code-wrap { grid-column: 7 / span 6; min-width: 0; }
@media (max-width: 960px) { .stack-text, .code-wrap { grid-column: 1 / -1; } }
.cap h3 { font-size: 1.1rem; margin-bottom: 6px; }
.cap p { margin: 0; color: var(--muted); font-size: 15px; }
.code {
  background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
}
.code-tab { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.07); font-family: var(--font-mono); font-size: 12px; color: var(--code-dim); }
.code-tab b { color: var(--code-ink); font-weight: 500; }
.code pre { margin: 0; padding: 18px 0; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.75; }
.code code { display: block; counter-reset: ln; }
.code .l { display: block; padding-right: 20px; white-space: pre; }
.code .l::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 3.2em; padding-right: 1.2em; text-align: right; color: var(--code-dim); opacity: .6; }
.k { color: var(--code-key); } .s { color: var(--code-str); } .n { color: var(--code-num); } .d { color: var(--code-dim); }


.jobs { list-style: none; margin: 0; padding: 0; }
.job { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-block: 26px; border-top: 1px solid var(--line); }
.job:last-child { border-bottom: 1px solid var(--line); }
.job .when { grid-column: span 3; font-family: var(--font-mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.job .what { grid-column: span 4; min-width: 0; }
.job .what span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.job p { grid-column: span 5; margin: 0; color: var(--muted); min-width: 0; }
@media (max-width: 860px) {
  .job .when, .job .what, .job p { grid-column: 1 / -1; }
  .job { gap: 8px; }
}


.contact { padding-block: clamp(72px, 11vw, 140px); border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); max-width: 16ch; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 40px; }
.mail {
  font-family: var(--font-mono); font-size: clamp(1.05rem, 2.6vw, 1.6rem); color: var(--ink);
  padding: 14px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  user-select: all; overflow-wrap: anywhere; min-width: 0;
}
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.socials a { font-size: 14px; }

footer.site { border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 26px; font-size: 13px; color: var(--muted); font-family: var(--font-mono); }


.grid-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 40; display: none; }
.inspecting .grid-overlay { display: block; }
.grid-overlay .wrap { height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.grid-overlay .wrap span { background: var(--grid-col); border-inline: 1px solid var(--grid-edge); }
@media (max-width: 760px) {
  .grid-overlay .wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-overlay .wrap span:nth-child(n+5) { display: none; }
}
.bm { position: fixed; pointer-events: none; z-index: 70; display: none; }
.inspecting .bm.on { display: block; }
#bm-m { background: var(--bm-margin); }
#bm-p { background: var(--bm-padding); }
#bm-c { background: var(--bm-content); }
#bm-tip {
  position: fixed; z-index: 71; pointer-events: none; display: none;
  background: var(--ink); color: var(--bg); border-radius: 6px; padding: 7px 10px;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); max-width: calc(100vw - 16px); overflow: hidden; text-overflow: ellipsis;
}
.inspecting #bm-tip.on { display: block; }
#bm-tip .tg { color: var(--accent); font-weight: 500; }
#bm-tip .dm { opacity: .65; }
.inspecting, .inspecting * { cursor: crosshair !important; }
.inspect-banner {
  position: fixed; z-index: 72; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 8px 8px 16px; font-size: 13px; display: none; align-items: center; gap: 12px;
  box-shadow: 0 14px 40px -16px rgba(14,20,34,.35); white-space: nowrap; max-width: calc(100vw - 32px);
}
.inspecting .inspect-banner { display: flex; }
.inspect-banner .legend { display: flex; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.inspect-banner .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
@media (max-width: 520px) { .inspect-banner .legend { display: none; } }
.inspect-banner button { font: 500 12px var(--font-mono); background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }


/* ============ INTRO (name splash) ============ */
.has-intro h1 .line { animation-delay: 2.3s; }
.has-intro h1 .line:nth-child(2) { animation-delay: 2.38s; }
.has-intro h1 .line:nth-child(3) { animation-delay: 2.46s; }
.intro-lock { overflow: hidden; }

.intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg); color: var(--ink);
  display: grid; place-items: center;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  animation: intro-out .9s cubic-bezier(.7, 0, .2, 1) 2.1s forwards;
}
.intro.skip { animation: intro-out-fast .45s ease forwards; }
.intro-inner { display: flex; flex-direction: column; gap: 18px; animation: intro-lift .9s cubic-bezier(.7, 0, .2, 1) 2.1s forwards; }
.intro.skip .intro-inner { animation: intro-lift-fast .45s ease forwards; }

.intro-name {
  display: flex; align-items: flex-end; overflow: hidden;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.8rem, 12.5vw, 9rem); line-height: 1.02; letter-spacing: -.055em;
  padding-bottom: .04em;
}
.intro-name span {
  display: inline-block; transform: translateY(110%);
  animation: letter-in .9s cubic-bezier(.2, .8, .1, 1) forwards;
  animation-delay: calc(.15s + var(--i) * .055s);
}
.intro-name .last { color: var(--accent); }
.intro-name .gap { width: .28em; animation: none; transform: none; }

.intro-meta {
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--muted);
  text-transform: uppercase; font-variant-numeric: tabular-nums;
  opacity: 0; animation: fade-in .6s ease .7s forwards;
}
.intro-bar { height: 1px; background: var(--line); position: relative; overflow: hidden; }
.intro-bar::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  animation: bar-fill 1.6s cubic-bezier(.65, 0, .35, 1) .3s forwards;
}

@keyframes letter-in { to { transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes bar-fill { to { transform: scaleX(1); } }
@keyframes intro-lift { to { transform: translateY(-28px); filter: blur(6px); opacity: 0; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes intro-out-fast { to { opacity: 0; visibility: hidden; } }
@keyframes intro-lift-fast { to { transform: translateY(-28px); filter: blur(6px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .intro-name span, .intro-meta, .intro-bar::after, .intro-inner { animation: none; transform: none; opacity: 1; }
  .intro { animation: intro-out .4s ease 1.2s forwards; }
  .has-intro h1 .line { animation: none; }
}
