/* Level Up Portfolio — prototype styles */
:root {
  /* Night route palette: Gece #070d1f, Hat #5b7cfa, Kehribar #f5b53d, Yeşil #3fd49b, Kâğıt #eef1fa */
  --bg: #070d1f;
  --bg-2: #0a132b;
  --surface: #0e1834;
  --surface-2: #142147;
  --line: #1e2c55;
  --line-2: #2c3d70;
  --ink: #eef1fa;
  --ink-2: #c5cde4;
  --muted: #8e99bb;
  --brand: #5b7cfa;
  --brand-soft: rgba(91, 124, 250, .14);
  --accent: #f5b53d;
  --accent-ink: #1b1305;
  --accent-soft: rgba(245, 181, 61, .13);
  --ok: #3fd49b;
  --ok-soft: rgba(63, 212, 155, .12);
  --danger: #f2667a;
  --focus: #a9bbff;

  --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-text: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --fs-xs: .78rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: clamp(1.1rem, 1rem + .4vw, 1.25rem);
  --fs-xl: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
  --fs-2xl: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  --fs-3xl: clamp(2.5rem, 1.6rem + 4vw, 4.6rem);

  --r-input: 10px;
  --r-btn: 12px;
  --r-card: 20px;
  --r-sheet: 28px;

  --sh-1: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -16px rgba(1, 4, 16, .8);
  --sh-2: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 70px -30px rgba(1, 4, 16, .95);

  --dur-instant: 100ms;
  --dur-quick: 180ms;
  --dur-base: 260ms;
  --dur-slow: 420ms;
  --dur-scene: 800ms;
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --ease-enter: cubic-bezier(.05, .7, .1, 1);
  --ease-exit: cubic-bezier(.3, 0, .8, .15);
  --ease-spring: linear(0, .5 7%, .95 17%, 1.06 25%, 1.01 37%, .99 50%, 1);

  --z-sticky: 20;
  --z-overlay: 60;
  --z-toast: 80;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-md)/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.tnum { font-variant-numeric: tabular-nums; }

/* Background: faint route-map dot grid */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 1px 1px, rgba(142, 153, 187, .13) 1px, transparent 1.4px) 0 0 / 28px 28px,
    radial-gradient(900px 500px at 85% -10%, rgba(91, 124, 250, .10), transparent 70%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .6) 60%, rgba(0, 0, 0, .25) 100%);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(7, 13, 31, .78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font: 500 var(--fs-xs)/1.1 var(--f-text); color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  position: relative; padding: 9px 14px; border-radius: 10px; text-decoration: none; color: var(--ink-2);
  font-weight: 500; font-size: var(--fs-sm); transition: color var(--dur-quick), background var(--dur-quick);
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent);
  animation: grow-x var(--dur-base) var(--ease-enter);
}
@keyframes grow-x { from { transform: scaleX(0); } }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.xp-pill {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1px solid var(--line-2);
  border-radius: 999px; font-size: var(--fs-sm); background: var(--surface);
}
.xp-pill b { font-family: var(--f-display); font-weight: 700; }
.xp-pill .rank { color: var(--muted); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem var(--f-display);
  background: linear-gradient(140deg, var(--brand), #8aa2ff); color: #fff;
}
.xp-pill.bump { animation: bump var(--dur-slow) var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.08); border-color: var(--accent); } }

/* Mobile tab bar */
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav, .xp-pill .rank { display: none; }
  .topbar { gap: 12px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
    background: rgba(9, 16, 38, .92); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a {
    display: grid; justify-items: center; gap: 2px; padding: 8px 4px; min-height: 52px; text-decoration: none;
    color: var(--muted); font-size: .72rem; font-weight: 600; border-radius: 12px;
  }
  .tabbar a i { font-size: 1.1rem; }
  .tabbar a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
  body.has-tabbar main { padding-bottom: 96px; }
}

/* ---------- Layout ---------- */
main { display: block; outline: none; }
.wrap { width: min(100% - clamp(32px, 8vw, 80px), var(--maxw)); margin-inline: auto; }
.page { padding-block: clamp(28px, 5vw, 56px) 72px; }
.kicker { color: var(--accent); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .01em; }
.lead { color: var(--ink-2); font-size: var(--fs-lg); max-width: 58ch; }
.muted { color: var(--muted); }
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 40%), var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-1);
}

/* ---------- Buttons & inputs ---------- */
.btn {
  --b-bg: var(--surface-2); --b-ink: var(--ink); --b-line: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-btn);
  background: var(--b-bg); color: var(--b-ink); border: 1px solid var(--b-line);
  font-weight: 600; font-size: var(--fs-md); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-quick), border-color var(--dur-quick), transform var(--dur-instant), opacity var(--dur-quick);
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { --b-bg: var(--accent); --b-ink: var(--accent-ink); --b-line: var(--accent); }
.btn-primary:hover { --b-bg: #ffc65a; border-color: #ffc65a; }
.btn-ghost { --b-bg: transparent; --b-line: transparent; color: var(--ink-2); }
.btn-ghost:hover { --b-bg: rgba(255, 255, 255, .05); border-color: transparent; color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: var(--fs-sm); border-radius: 10px; }
.btn-ok { --b-bg: var(--ok); --b-ink: #04150e; --b-line: var(--ok); }
.btn .fa-arrow-right { transition: transform var(--dur-quick) var(--ease-standard); }
.btn:hover .fa-arrow-right { transform: translateX(3px); }

.field { display: grid; gap: 6px; }
.field > span { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-input);
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink);
  transition: border-color var(--dur-quick), box-shadow var(--dur-quick);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input::placeholder, .textarea::placeholder { color: #66729a; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.hint { font-size: var(--fs-xs); color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); background: var(--bg-2);
}
.chip.amber { color: var(--accent); border-color: rgba(245, 181, 61, .4); background: var(--accent-soft); }
.chip.ok { color: var(--ok); border-color: rgba(63, 212, 155, .4); background: var(--ok-soft); }
.chip.blue { color: var(--brand-ink, #c7d3ff); border-color: rgba(91, 124, 250, .45); background: var(--brand-soft); }

/* ---------- Landing ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; min-height: calc(100vh - 140px); padding-block: 40px; }
.hero h1 { font-size: var(--fs-3xl); line-height: .98; letter-spacing: -.035em; margin: 14px 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(105%); animation: line-up var(--dur-scene) var(--ease-enter) forwards; animation-delay: calc(120ms + var(--i, 0) * 110ms); }
@keyframes line-up { to { transform: none; } }
.reveal { opacity: 0; translate: 0 16px; animation: rise var(--dur-scene) var(--ease-enter) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { to { opacity: 1; translate: 0 0; } }
.start { margin-top: 28px; padding: 22px; display: grid; gap: 14px; max-width: 520px; }
.start-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.start .btn { width: 100%; }
.start-alt { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 16px; font-size: var(--fs-sm); color: var(--muted); }
.start-alt a { color: var(--ink-2); text-underline-offset: 3px; }
.start-alt a:hover { color: var(--accent); }

.hero-visual { position: relative; aspect-ratio: 1 / 1.02; max-width: 560px; width: 100%; justify-self: end; }
.hv-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hv-track { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.hv-path { fill: none; stroke: var(--brand); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s var(--ease-standard) .4s forwards; filter: drop-shadow(0 0 10px rgba(91, 124, 250, .5)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hv-node { opacity: 0; transform-box: fill-box; transform-origin: center; animation: node-in .5s var(--ease-spring) forwards; animation-delay: calc(.55s + var(--i) * .27s); }
.hv-node circle:first-child { fill: var(--bg); stroke: var(--brand); stroke-width: 3; }
.hv-node circle:last-child { fill: var(--brand); }
.hv-node text { fill: var(--ink-2); font: 600 13px var(--f-text); paint-order: stroke; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; }
.hv-node.end circle:first-child { stroke: var(--accent); }
.hv-node.end circle:last-child { fill: var(--accent); }
@keyframes node-in { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
.hv-runner { filter: drop-shadow(0 0 6px rgba(245, 181, 61, .9)); }

.hv-card {
  position: absolute; right: 0; bottom: 4%; width: min(300px, 62%); padding: 18px; border-radius: var(--r-card);
  background: rgba(14, 24, 52, .9); border: 1px solid var(--line-2); box-shadow: var(--sh-2); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(24px) rotate(-2deg); animation: card-in .9s var(--ease-enter) 2.5s forwards;
}
@keyframes card-in { to { opacity: 1; transform: rotate(-2deg); } }
.hv-card .who { display: flex; gap: 12px; align-items: center; }
.hv-card .who .avatar { width: 42px; height: 42px; }
.hv-card .bar { height: 8px; border-radius: 4px; background: var(--line-2); transform-origin: left; transform: scaleX(0); animation: grow-x .6s var(--ease-enter) forwards; }
.hv-card .bar.b1 { width: 130px; background: var(--ink-2); animation-delay: 2.9s; }
.hv-card .bar.b2 { width: 90px; margin-top: 8px; animation-delay: 3s; }
.hv-card .bars { display: grid; gap: 7px; margin-top: 16px; }
.hv-card .bars .bar:nth-child(1) { width: 100%; animation-delay: 3.1s; }
.hv-card .bars .bar:nth-child(2) { width: 86%; animation-delay: 3.18s; }
.hv-card .bars .bar:nth-child(3) { width: 62%; animation-delay: 3.26s; }
.hv-card .chips { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.hv-card .chips .chip { opacity: 0; animation: rise .5s var(--ease-enter) forwards; animation-delay: calc(3.3s + var(--i) * 80ms); }
.hv-stamp { position: absolute; right: -22px; top: -30px; width: 92px; height: 92px; opacity: 0; animation: slam .55s var(--ease-spring) 3.7s forwards; }
@keyframes slam { 0% { opacity: 0; transform: scale(2.2) rotate(-28deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1) rotate(-12deg); } }

.how { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 24px; }
.how > div { padding: 28px 28px 8px 0; }
.how > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.how h3 { font-size: var(--fs-xl); margin-bottom: 10px; }
.how p { color: var(--muted); max-width: 36ch; }

/* ---------- Journey ---------- */
.j-head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; justify-content: space-between; margin-bottom: 36px; }
.j-head h1 { font-size: var(--fs-2xl); margin: 6px 0 10px; }
.j-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.route { list-style: none; margin: 0; padding: 0; position: relative; --p: 0; }
.route::before, .route-fill {
  content: ''; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 3px; border-radius: 3px; background: var(--line);
}
.route-fill { background: linear-gradient(var(--ok), var(--brand)); transform-origin: top; transform: scaleY(0); transition: transform 1.2s var(--ease-enter) .2s; }
.route.ready .route-fill { transform: scaleY(var(--p)); }
.stop { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px; padding-block: 8px; }
.stop .node {
  position: relative; z-index: 1; margin-top: 18px; justify-self: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--line-2); display: grid; place-items: center;
}
.stop.done .node { border-color: var(--ok); background: var(--ok); }
.stop.done .node::after { content: '\f00c'; font: 900 10px 'Font Awesome 6 Free'; color: #04150e; }
.stop.current .node { border-color: var(--accent); width: 26px; height: 26px; margin-top: 16px; }
.stop.current .node::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ping 2.4s var(--ease-standard) infinite; }
.stop.current .node::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.stop-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 16px 18px; border-radius: 16px; border: 1px solid transparent; text-decoration: none;
  transition: background var(--dur-quick), border-color var(--dur-quick), transform var(--dur-base) var(--ease-standard);
}
a.stop-card:hover { background: var(--surface); border-color: var(--line); }
.stop.current .stop-card { background: linear-gradient(120deg, rgba(245, 181, 61, .09), transparent 60%), var(--surface); border-color: rgba(245, 181, 61, .35); padding-block: 22px; box-shadow: var(--sh-1); }
.stop.locked .stop-card { opacity: .55; }
.stop-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-size: 1.1rem; border: 1px solid var(--line); }
.stop.current .stop-ico { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.stop.done .stop-ico { color: var(--ok); }
.stop-meta { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; display: flex; gap: 10px; }
.stop h3 { font-size: var(--fs-lg); margin: 3px 0 2px; }
.stop p { font-size: var(--fs-sm); color: var(--muted); }
.stop .stamp-mini { width: 54px; height: 54px; }
.stop-anim { opacity: 0; animation: rise .6s var(--ease-enter) forwards; animation-delay: calc(var(--i) * 60ms); }
.stop.just-unlocked .stop-card { animation: unlock 1.2s var(--ease-enter); }
@keyframes unlock { 0% { box-shadow: 0 0 0 0 rgba(245, 181, 61, .55); } 100% { box-shadow: 0 0 0 18px rgba(245, 181, 61, 0); } }

.j-side { display: grid; gap: 16px; position: sticky; top: 84px; }
.rank-card { padding: 22px; display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.ring { width: 96px; height: 96px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .rt { stroke: var(--line); }
.ring .rv { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease-enter) .3s; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.35rem var(--f-display); }
.ring b small { display: block; font: 600 .62rem var(--f-text); color: var(--muted); text-align: center; margin-top: -4px; }
.rank-card h3 { font-size: var(--fs-xl); }
.rank-card .xp { font: 700 var(--fs-lg) var(--f-display); color: var(--accent); }
.side-card { padding: 20px; }
.side-card h4 { font-size: var(--fs-md); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.side-card h4 small { font: 500 var(--fs-xs) var(--f-text); color: var(--muted); }
.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stamps .slot { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--line-2); display: grid; place-items: center; color: var(--line-2); font: 700 .9rem var(--f-display); }
.stamps .slot svg { width: 100%; height: 100%; }
.radar-mini svg { width: 100%; height: auto; max-height: 240px; }

@media (max-width: 980px) {
  .j-grid { grid-template-columns: 1fr; }
  .j-side { position: static; grid-template-columns: 1fr 1fr; order: -1; }
  .j-side .rank-card { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .j-side { grid-template-columns: 1fr; }
  .j-side .side-card.radar-mini, .j-side .side-card.reflect { display: none; }
  .stop { grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
  .route::before, .route-fill { left: 18px; }
  .stop-card { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; }
  .stop-ico { display: none; }
}

/* ---------- Station shell ---------- */
.st-head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-bottom: 28px; }
.st-badge { width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 1.6rem; box-shadow: 0 16px 40px -18px rgba(245, 181, 61, .8); }
.st-head h1 { font-size: var(--fs-2xl); margin: 4px 0 8px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 18px; }
.back:hover { color: var(--ink); }
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.st-body { display: grid; gap: 22px; }
.block { padding: clamp(18px, 3vw, 28px); }
.block > h2 { font-size: var(--fs-xl); margin-bottom: 6px; }
.block > p.muted { margin-bottom: 18px; }
.st-aside { position: sticky; top: 84px; display: grid; gap: 16px; }
.why { padding: 20px; border-left: 3px solid var(--brand); }
.why h4 { font-size: var(--fs-sm); color: var(--brand-ink, #c7d3ff); margin-bottom: 6px; font-family: var(--f-text); font-weight: 700; }
.why p { font-size: var(--fs-sm); color: var(--ink-2); }
.reqs { padding: 20px; }
.reqs h4 { font-size: var(--fs-md); margin-bottom: 12px; }
.reqs ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.reqs li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: var(--fs-sm); color: var(--muted); align-items: start; }
.reqs li i { margin-top: 3px; color: var(--line-2); transition: color var(--dur-base), transform var(--dur-base) var(--ease-spring); }
.reqs li.ok { color: var(--ink); }
.reqs li.ok i { color: var(--ok); transform: scale(1.15); }
.reqs .btn { width: 100%; }
.reqs .meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-bottom: 16px; }
.reqs .meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--ok)); transform-origin: left; transition: transform var(--dur-slow) var(--ease-enter); }
.done-note { display: flex; gap: 10px; align-items: center; color: var(--ok); font-weight: 600; font-size: var(--fs-sm); }
@media (max-width: 980px) {
  .st-grid { grid-template-columns: 1fr; }
  .st-aside { position: static; order: 2; }
}
@media (max-width: 560px) {
  .st-head { grid-template-columns: 1fr; }
  .st-badge { width: 56px; height: 56px; font-size: 1.25rem; border-radius: 16px; }
}

/* Selectable cards (values, traits, options) */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pick {
  position: relative; text-align: left; padding: 14px 16px; min-height: 64px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line-2); cursor: pointer;
  transition: border-color var(--dur-quick), background var(--dur-quick), transform var(--dur-base) var(--ease-spring);
}
.pick:hover { border-color: var(--muted); }
.pick:active { transform: scale(.97); }
.pick b { display: block; font-weight: 700; }
.pick small { color: var(--muted); font-size: var(--fs-xs); }
.pick[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); animation: picked var(--dur-slow) var(--ease-spring); }
@keyframes picked { 40% { transform: scale(1.04); } }
.pick .ord {
  position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font: 700 .8rem var(--f-display); animation: pop var(--dur-slow) var(--ease-spring);
}
@keyframes pop { from { transform: scale(0); } }
.pick-grid.full .pick:not([aria-pressed="true"]) { opacity: .5; }
.tag-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 9px 15px; min-height: 42px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer;
  font-weight: 600; font-size: var(--fs-sm); transition: all var(--dur-quick) var(--ease-standard);
}
.tag:hover { border-color: var(--muted); }
.tag[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); animation: picked var(--dur-slow) var(--ease-spring); }
.counter { font: 700 var(--fs-sm) var(--f-display); color: var(--accent); }

/* RIASEC */
.q-list { display: grid; gap: 10px; }
.q { display: grid; grid-template-columns: 30px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color var(--dur-base); }
.q.answered { border-color: var(--line-2); }
.q .num { font: 700 var(--fs-sm) var(--f-display); color: var(--muted); }
.seg { display: inline-grid; grid-auto-flow: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 12px; min-height: 38px; border-radius: 9px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); cursor: pointer; transition: background var(--dur-quick), color var(--dur-quick); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.seg button[aria-pressed="true"][data-v="3"] { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 640px) {
  .q { grid-template-columns: 24px 1fr; }
  .q .seg { grid-column: 1 / -1; width: 100%; grid-auto-columns: 1fr; }
}
.compass-res { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; }
.compass-res svg { width: 100%; height: auto; }
.r-bars { display: grid; gap: 12px; }
.r-bar { display: grid; grid-template-columns: 110px 1fr 28px; gap: 12px; align-items: center; font-size: var(--fs-sm); }
.r-bar .tr { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.r-bar .tr span { display: block; height: 100%; border-radius: 6px; background: var(--brand); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease-enter); }
.r-bar.top .tr span { background: var(--accent); }
.r-bar.top b { color: var(--accent); }
.jobs { margin-top: 20px; display: grid; gap: 14px; }
.job-type { padding: 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.job-type h4 { font-size: var(--fs-md); margin-bottom: 4px; }
.job-type p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 10px; }
.job-type .tag-grid { gap: 6px; }
@media (max-width: 720px) { .compass-res { grid-template-columns: 1fr; } .compass-res svg { max-width: 260px; margin-inline: auto; } }

/* Skill sliders + radar */
.skill-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: center; }
.sliders { display: grid; gap: 18px; }
.sl { display: grid; gap: 8px; }
.sl-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sl-top b { font-weight: 700; }
.sl-top .lv { font: 700 var(--fs-lg) var(--f-display); color: var(--accent); min-width: 2ch; text-align: right; }
.sl .desc { font-size: var(--fs-xs); color: var(--muted); }
.sl .lvl-name { font-size: var(--fs-xs); color: var(--ink-2); font-weight: 600; min-height: 1.2em; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--brand) var(--fill, 0%), var(--line-2) var(--fill, 0%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--ink); border: 4px solid var(--brand); transition: transform var(--dur-quick) var(--ease-spring); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.25); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line-2); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--brand); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 4px solid var(--brand); }
.sl.untouched input[type=range]::-webkit-slider-thumb { background: var(--bg); border-color: var(--muted); }
.radar { width: 100%; height: auto; overflow: visible; }
.radar .grid { fill: none; stroke: var(--line); }
.radar .axis { stroke: var(--line); }
.radar .lbl { fill: var(--muted); font: 600 11px var(--f-text); }
.radar .s0 { fill: rgba(142, 153, 187, .12); stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.radar .s1 { fill: rgba(245, 181, 61, .2); stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.radar .s1b { fill: rgba(91, 124, 250, .22); stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); justify-content: center; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
@media (max-width: 820px) { .skill-grid { grid-template-columns: 1fr; } .skill-grid .radar-wrap { max-width: 320px; margin-inline: auto; order: -1; } }

/* Story writing */
.prompt { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color var(--dur-base); }
.prompt.ok { border-color: rgba(63, 212, 155, .45); }
.prompt-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.prompt-top h3 { font-size: var(--fs-lg); }
.len { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.prompt.ok .len { color: var(--ok); }
.len-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.len-bar span { display: block; height: 100%; background: var(--brand); transform-origin: left; transition: transform var(--dur-base) var(--ease-standard), background var(--dur-base); }
.prompt.ok .len-bar span { background: var(--ok); }
.starters { display: flex; gap: 6px; flex-wrap: wrap; }
.starters button { border: 1px dashed var(--line-2); background: transparent; color: var(--ink-2); padding: 6px 11px; min-height: 34px; border-radius: 999px; font-size: var(--fs-xs); cursor: pointer; }
.starters button:hover { border-color: var(--accent); color: var(--accent); }
.prompts { display: grid; gap: 14px; }

/* Proof of work */
.proof-list { display: grid; gap: 14px; }
.proof { display: grid; gap: 14px; padding: 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); animation: rise .5s var(--ease-enter); }
.proof.ok { border-color: rgba(63, 212, 155, .45); }
.proof-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.proof-head h3 { font-size: var(--fs-md); display: flex; align-items: center; gap: 10px; }
.proof-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.upload { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.upload .thumb { width: 84px; height: 60px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-2); }
.upload label.btn { cursor: pointer; }
.upload input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
@media (max-width: 640px) { .proof-row { grid-template-columns: 1fr; } }

/* Interview */
.iv-grid { display: grid; gap: 12px; }
.iv-q { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color var(--dur-base), background var(--dur-base); }
.iv-q.active { border-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), transparent 70%), var(--bg-2); }
.iv-q.answered { border-color: rgba(63, 212, 155, .45); }
.iv-q .n { font: 700 var(--fs-md) var(--f-display); color: var(--muted); }
.iv-q.answered .n { color: var(--ok); }
.iv-q p { font-weight: 600; }
.iv-actions { display: flex; gap: 8px; align-items: center; }
.timer { position: relative; width: 46px; height: 46px; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 4; }
.timer .tt { stroke: var(--line-2); }
.timer .tv { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.timer span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 .75rem var(--f-display); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .iv-q { grid-template-columns: 28px 1fr; } .iv-actions { grid-column: 1 / -1; justify-content: flex-end; } }
.score-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.score-row:last-of-type { border-bottom: 0; }
.dots { display: inline-flex; gap: 6px; }
.dots button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; font: 700 var(--fs-sm) var(--f-display); color: var(--muted); transition: all var(--dur-quick) var(--ease-standard); }
.dots button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 520px) { .score-row { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 14px; }

/* Review */
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.diff > div { padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); max-height: 260px; overflow: auto; }
.diff h5 { margin: 0 0 8px; font: 700 var(--fs-xs) var(--f-text); color: var(--muted); }
@media (max-width: 640px) { .diff { grid-template-columns: 1fr; } }
.status-line { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.status-line .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; }
.status-line.pending .dot { background: var(--accent); animation: blink 1.6s ease-in-out infinite; }
.status-line.approved .dot { background: var(--ok); }
.status-line.changes .dot { background: var(--danger); }
@keyframes blink { 50% { opacity: .3; } }

/* Launch choices */
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { text-align: left; padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; display: grid; gap: 10px; transition: border-color var(--dur-quick), transform var(--dur-base) var(--ease-spring); }
.choice:hover { border-color: var(--muted); }
.choice[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.choice .sw { height: 70px; border-radius: 10px; display: grid; grid-template-columns: 1fr 2fr; gap: 6px; padding: 8px; }
.choice .sw span { border-radius: 5px; }
.sw.midnight { background: #0b1226; } .sw.midnight span:first-child { background: #f5b53d; } .sw.midnight span:last-child { background: #1d2a52; }
.sw.paper { background: #f3f4f7; } .sw.paper span:first-child { background: #1e3a8a; } .sw.paper span:last-child { background: #dde2ee; }
.sw.atlas { background: #0f3d3e; } .sw.atlas span:first-child { background: #ff7a59; } .sw.atlas span:last-child { background: #e8f1ec; }
.choice b { font-weight: 700; }
.choice small { color: var(--muted); font-size: var(--fs-xs); }
.choice .pi { font-size: 1.2rem; color: var(--accent); }

/* ---------- Overlay (level up moment) ---------- */
.lvl {
  position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; place-items: center; padding: 24px;
  background: radial-gradient(circle at 50% 45%, #13204a 0%, #070d1f 70%);
  clip-path: circle(0% at 50% 50%); animation: iris .8s var(--ease-enter) forwards;
}
.lvl.out { animation: iris-out .45s var(--ease-exit) forwards; }
@keyframes iris { to { clip-path: circle(150% at 50% 50%); } }
@keyframes iris-out { from { clip-path: circle(150% at 50% 50%); } to { clip-path: circle(0% at 50% 50%); } }
.lvl-inner { text-align: center; display: grid; justify-items: center; gap: 14px; max-width: 520px; }
.lvl-rays { position: absolute; width: 720px; height: 720px; left: 50%; top: 50%; translate: -50% -55%; pointer-events: none; opacity: .35;
  background: repeating-conic-gradient(from 0deg, rgba(245, 181, 61, .18) 0deg 4deg, transparent 4deg 18deg);
  mask-image: radial-gradient(circle, #000 0%, transparent 62%); animation: spin 40s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.lvl .big-stamp { width: 190px; height: 190px; opacity: 0; animation: slam .65s var(--ease-spring) .55s forwards; }
.lvl .k { color: var(--accent); font-weight: 700; opacity: 0; animation: rise .6s var(--ease-enter) 1s forwards; }
.lvl h2 { font-size: var(--fs-2xl); opacity: 0; animation: rise .6s var(--ease-enter) 1.1s forwards; }
.lvl .gain { font: 800 var(--fs-3xl) var(--f-display); color: var(--accent); letter-spacing: -.03em; opacity: 0; animation: rise .6s var(--ease-enter) 1.25s forwards; }
.lvl .rank-up { padding: 10px 16px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 700; opacity: 0; animation: rise .6s var(--ease-enter) 1.45s forwards; }
.lvl .next { color: var(--ink-2); opacity: 0; animation: rise .6s var(--ease-enter) 1.55s forwards; }
.lvl .btn { margin-top: 10px; opacity: 0; animation: rise .6s var(--ease-enter) 1.7s forwards; }

/* Stamp svg */
.stamp-svg .ring1 { fill: none; stroke: currentColor; stroke-width: 3; }
.stamp-svg .ring2 { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 3 3; }
.stamp-svg text { fill: currentColor; font-family: var(--f-display); font-weight: 700; }
.stamp-svg .arc { font-size: 10.5px; letter-spacing: 2px; }
.stamp-svg .num { font-size: 34px; }
.stamp-svg .ttl { font-size: 9px; letter-spacing: .5px; }
.stamp-amber { color: var(--accent); }
.stamp-ok { color: var(--ok); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: var(--z-toast); right: 20px; bottom: 20px; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
@media (max-width: 760px) { .toasts { left: 16px; right: 16px; bottom: 86px; max-width: none; } }
.toast { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--sh-2); font-size: var(--fs-sm); animation: toast-in var(--dur-slow) var(--ease-enter); }
.toast i { color: var(--accent); }
.toast.ok i { color: var(--ok); }
.toast.err i { color: var(--danger); }
.toast.out { animation: toast-out var(--dur-base) var(--ease-exit) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Journal ---------- */
.journal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .journal-grid { grid-template-columns: 1fr; } }
.entries { display: grid; gap: 12px; position: relative; }
.entry { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); animation: rise .5s var(--ease-enter) both; animation-delay: calc(var(--i, 0) * 60ms); }
.entry time { font-size: var(--fs-xs); color: var(--accent); font-weight: 700; }
.entry dl { margin: 8px 0 0; display: grid; gap: 8px; }
.entry dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.entry dd { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.empty { padding: 36px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-card); }

/* ---------- Mentor ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { padding: 18px 20px; }
.stat b { display: block; font: 800 var(--fs-2xl) var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.m-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .m-grid { grid-template-columns: 1fr; } }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.people { display: grid; gap: 8px; }
.person { display: grid; grid-template-columns: 40px minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); animation: rise .45s var(--ease-enter) both; animation-delay: calc(var(--i, 0) * 40ms); }
.person.me { border-color: rgba(245, 181, 61, .4); }
.person .avatar { width: 40px; height: 40px; }
.person .nm b { display: block; font-weight: 700; }
.person .nm small { color: var(--muted); font-size: var(--fs-xs); }
.segbar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.segbar span { height: 8px; border-radius: 3px; background: var(--line); }
.segbar span.on { background: var(--brand); }
.segbar span.on:last-of-type, .segbar.full span { background: var(--ok); }
.person .st-lbl { font-size: var(--fs-xs); color: var(--muted); margin-top: 5px; }
@media (max-width: 640px) {
  .person { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .person .prog { grid-column: 1 / -1; }
}
.approval { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid rgba(245, 181, 61, .35); display: grid; gap: 12px; }
.approval .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Portfolio ---------- */
.pf-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.pf-bar .tag-grid .tag { min-height: 36px; padding: 6px 12px; }
.pf {
  --p-bg: #0b1226; --p-surface: #111b38; --p-line: #22305a; --p-ink: #eef1fa; --p-muted: #93a0c4; --p-accent: #f5b53d; --p-accent-ink: #1b1305; --p-2: #5b7cfa;
  background: var(--p-bg); color: var(--p-ink); border-radius: var(--r-sheet); overflow: hidden; border: 1px solid var(--p-line); box-shadow: var(--sh-2);
}
.pf.theme-paper { --p-bg: #f4f5f8; --p-surface: #ffffff; --p-line: #dfe3ec; --p-ink: #111a33; --p-muted: #5a6585; --p-accent: #1e3a8a; --p-accent-ink: #ffffff; --p-2: #d97706; }
.pf.theme-atlas { --p-bg: #0f3d3e; --p-surface: #12494a; --p-line: #23605f; --p-ink: #f1f7f3; --p-muted: #a9c9c0; --p-accent: #ff7a59; --p-accent-ink: #1d0b05; --p-2: #ffd166; }
.pf-hero { position: relative; padding: clamp(28px, 6vw, 64px); display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 4vw, 40px); align-items: center; border-bottom: 1px solid var(--p-line); overflow: hidden; }
.pf-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid var(--p-line); box-shadow: 0 0 0 40px transparent, 0 0 0 41px var(--p-line), 0 0 0 90px transparent, 0 0 0 91px var(--p-line); pointer-events: none; }
.pf-ava { width: clamp(84px, 12vw, 128px); aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center; font: 800 clamp(1.8rem, 4vw, 2.8rem) var(--f-display); background: var(--p-accent); color: var(--p-accent-ink); rotate: -4deg; animation: ava-in .9s var(--ease-spring) both; }
@keyframes ava-in { from { opacity: 0; transform: scale(.6) rotate(-14deg); } }
.pf-hero h1 { font-size: var(--fs-3xl); letter-spacing: -.04em; line-height: .95; }
.pf-hero h1 .ln { display: block; overflow: hidden; }
.pf-hero h1 .ln span { display: inline-block; animation: line-up .9s var(--ease-enter) both; transform: translateY(105%); animation-fill-mode: forwards; animation-delay: calc(.1s + var(--i, 0) * .1s); }
.pf-hero .hl { font-size: var(--fs-lg); color: var(--p-muted); margin-top: 12px; max-width: 46ch; }
.pf-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pf-meta span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--p-line); font-size: var(--fs-xs); font-weight: 600; color: var(--p-muted); }
.pf-meta span.acc { border-color: var(--p-accent); color: var(--p-accent); }
.pf-qr { display: grid; justify-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--p-muted); position: relative; z-index: 1; }
.pf-qr .qr { padding: 8px; background: #fff; border-radius: 12px; }
.pf-qr .qr img, .pf-qr .qr canvas { width: 96px; height: 96px; }
.pf-body { padding: clamp(24px, 5vw, 56px); display: grid; gap: clamp(36px, 6vw, 64px); }
.pf-sec { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
.pf-sec > h2 { font-size: var(--fs-md); font-family: var(--f-text); font-weight: 700; color: var(--p-accent); padding-top: 4px; }
.pf-sec .about p { font-size: var(--fs-lg); line-height: 1.6; margin-bottom: 14px; max-width: 65ch; }
.pf-sec .about p:first-child::first-letter { font: 800 3.1em/.8 var(--f-display); float: left; margin: .08em .08em 0 0; color: var(--p-accent); }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chips span { padding: 8px 14px; border-radius: 10px; background: var(--p-surface); border: 1px solid var(--p-line); font-weight: 600; font-size: var(--fs-sm); }
.pf-chips span.conf { border-color: var(--p-accent); }
.pf-chips span.conf i { color: var(--p-accent); margin-left: 6px; font-size: .8em; }
.pf-sub { font-size: var(--fs-xs); color: var(--p-muted); font-weight: 700; margin: 18px 0 10px; }
.pf-sub:first-child { margin-top: 0; }
.pf-int { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pf-int > div { padding: 18px; border-radius: 16px; background: var(--p-surface); border: 1px solid var(--p-line); }
.pf-int b { font: 800 var(--fs-xl) var(--f-display); color: var(--p-accent); }
.pf-int h4 { font-size: var(--fs-md); margin: 4px 0 6px; }
.pf-int p { font-size: var(--fs-xs); color: var(--p-muted); }
.pf-skills { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; }
.pf-skills .radar .grid, .pf-skills .radar .axis { stroke: var(--p-line); }
.pf-skills .radar .lbl { fill: var(--p-muted); }
.pf-skills .radar .s1 { stroke: var(--p-accent); fill: color-mix(in srgb, var(--p-accent) 22%, transparent); }
.pf-skills .radar .s0 { stroke: var(--p-muted); }
.deltas { display: grid; gap: 10px; }
.delta { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--p-line); font-size: var(--fs-sm); }
.delta .up { font: 700 var(--fs-sm) var(--f-display); color: var(--p-accent); min-width: 3ch; text-align: right; }
.delta .lv { color: var(--p-muted); font-variant-numeric: tabular-nums; }
.pf-proof { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pf-item { border-radius: 18px; overflow: hidden; background: var(--p-surface); border: 1px solid var(--p-line); display: grid; grid-template-rows: auto 1fr; }
.pf-item .img { aspect-ratio: 16 / 9; background: repeating-linear-gradient(135deg, var(--p-line) 0 1px, transparent 1px 12px), var(--p-surface); display: grid; place-items: center; color: var(--p-muted); font-size: 1.6rem; }
.pf-item .img img { width: 100%; height: 100%; object-fit: cover; }
.pf-item .tx { padding: 16px; display: grid; gap: 8px; align-content: start; }
.pf-item small { color: var(--p-accent); font-weight: 700; font-size: var(--fs-xs); }
.pf-item h4 { font-size: var(--fs-md); }
.pf-item p { font-size: var(--fs-sm); color: var(--p-muted); }
.pf-item a { font-size: var(--fs-sm); font-weight: 600; color: var(--p-accent); text-decoration: none; }
.pf-iv { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 22px; border-radius: 18px; background: var(--p-surface); border: 1px solid var(--p-line); }
.pf-iv .score { font: 800 var(--fs-3xl) var(--f-display); color: var(--p-accent); letter-spacing: -.04em; line-height: 1; }
.pf-iv .score small { font-size: .35em; color: var(--p-muted); }
.pf-iv blockquote { margin: 0; font-size: var(--fs-lg); }
.pf-stamps { display: flex; flex-wrap: wrap; gap: 6px; color: var(--p-accent); }
.pf-stamps svg { width: 74px; height: 74px; }
.pf-stamps svg:nth-child(odd) { rotate: -8deg; } .pf-stamps svg:nth-child(even) { rotate: 6deg; }
.pf-locked { padding: 22px; border-radius: 16px; border: 1px dashed var(--p-line); color: var(--p-muted); display: flex; gap: 12px; align-items: center; font-size: var(--fs-sm); }
.pf-locked a { color: var(--p-accent); font-weight: 600; }
.pf-foot { padding: 24px clamp(24px, 5vw, 56px); border-top: 1px solid var(--p-line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--p-muted); }
.on-view { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
@supports not (animation-timeline: view()) { .on-view { animation: none; opacity: 1; translate: none; } }
@media (max-width: 860px) {
  .pf-hero { grid-template-columns: 1fr; }
  .pf-qr { justify-items: start; }
  .pf-sec { grid-template-columns: 1fr; gap: 12px; }
  .pf-int { grid-template-columns: 1fr; }
  .pf-skills { grid-template-columns: 1fr; }
  .pf-skills .radar-wrap { max-width: 300px; }
  .pf-iv { grid-template-columns: 1fr; }
}

.footer-note { margin-top: 40px; font-size: var(--fs-xs); color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.footer-note a { color: var(--ink-2); }

/* Landing responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 16px; }
  .hero-visual { justify-self: center; max-width: 440px; order: -1; margin-bottom: -40px; }
  .how { grid-template-columns: 1fr; }
  .how > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) { .start-row { grid-template-columns: 1fr; } .hero-visual { max-width: 340px; } }

/* View transitions */
::view-transition-old(root) { animation: vt-out .22s var(--ease-exit) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease-enter) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* Print = PDF portfolio */
@media print {
  body { background: #fff; }
  .topbar, .tabbar, .pf-bar, .toasts, .bg-grid, .footer-note, .back { display: none !important; }
  .page { padding: 0; }
  .pf { box-shadow: none; border: 0; border-radius: 0; }
  .on-view, .pf-hero h1 .ln span, .pf-ava { animation: none !important; transform: none !important; opacity: 1 !important; translate: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hv-runner, .lvl-rays { display: none; }
}
