/* tokens */
:root {
  --bg: #18181b;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --solid: #202024;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #a1a1aa;
  --strong: #f4f4f5;
  --muted: #8a8a94;
  --faint: #7d7d87;
  --accent: #8b93ff;
  --accent-soft: rgba(139, 147, 255, 0.16);
  --glow-1: rgba(255, 255, 255, 0.07);
  --glow-2: rgba(139, 147, 255, 0.06);
  --glow-3: rgba(0, 0, 0, 0.35);
  --nav-bg: rgba(32, 32, 36, 0.72);
  --btn-bg: #f4f4f5;
  --btn-ink: #0b0b0d;
  --core-hi: #e6e8ff;
  --core-lo: #3b3f86;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fafaf9;
  --surface: rgba(0, 0, 0, 0.025);
  --surface-2: rgba(0, 0, 0, 0.045);
  --solid: #ffffff;
  --line: rgba(0, 0, 0, 0.075);
  --line-2: rgba(0, 0, 0, 0.14);
  --text: #55555e;
  --strong: #18181b;
  --muted: #62626b;
  --faint: #74747d;
  --accent: #4f5bd5;
  --accent-soft: rgba(79, 91, 213, 0.12);
  --glow-1: rgba(79, 91, 213, 0.06);
  --glow-2: rgba(255, 255, 255, 0.7);
  --nav-bg: rgba(255, 255, 255, 0.75);
  --btn-bg: #18181b;
  --btn-ink: #fafaf9;
  --core-hi: #ffffff;
  --core-lo: #8e96ef;
  --shadow: 0 30px 70px -30px rgba(20, 20, 40, 0.22);
  color-scheme: light;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.ic { width: 16px; height: 16px; flex-shrink: 0; }
.arrow { width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.4s var(--ease); }
.sep { margin: 0 8px; opacity: 0.5; }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-ink);
  padding: 10px 14px; border-radius: 10px; font-weight: 500;
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: translateY(76px); }
.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 900px) { .container { padding: 0 28px; } }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.noscript { padding-bottom: 40px; }
.noscript a { color: var(--strong); text-decoration: underline; text-underline-offset: 3px; }

/* quiet background glow */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; will-change: transform; animation: drift 38s ease-in-out infinite alternate; }
.g1 { width: 80vmax; height: 80vmax; left: -30vmax; top: -40vmax; background: radial-gradient(closest-side, var(--glow-1), transparent); }
.g2 { width: 70vmax; height: 70vmax; right: -30vmax; top: 30vh; background: radial-gradient(closest-side, var(--glow-2), transparent); animation-duration: 48s; animation-direction: alternate-reverse; }
.g3 { width: 75vmax; height: 75vmax; left: 10vw; bottom: -45vmax; background: radial-gradient(closest-side, var(--glow-3), transparent); animation-duration: 55s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(12vmax, 8vmax, 0) scale(1.15); } }
.paused .glow, .paused .ring, .paused .core, .paused .status-dot::after { animation-play-state: paused; }

/* floating pill nav */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: 2px; max-width: 100%;
  padding: 5px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--nav-bg); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.logo {
  flex-shrink: 0; width: 32px; height: 32px; margin-right: 4px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: 14px;
  background: var(--strong); color: var(--bg);
}
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { position: relative; display: block; padding: 6px 12px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--strong); }
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--accent); opacity: 0; transform: scale(0); transition: opacity 0.3s, transform 0.4s var(--ease);
}
.nav-links a.active::after { opacity: 1; transform: scale(1); }
.theme-btn {
  flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--muted);
}
.theme-btn:hover { color: var(--strong); }
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; transition: transform 0.5s var(--ease), opacity 0.3s; }
:root[data-theme="dark"] .i-sun, :root[data-theme="light"] .i-moon { opacity: 0; transform: rotate(-60deg) scale(0.6); }
@media (max-width: 480px) {
  .logo { display: none; }
  .nav-links a { padding: 6px 8px; font-size: 13px; }
  .nav-links a::after { bottom: 0; }
}

/* load + scroll reveals */
.js .rise { animation: rise-in 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* hero */
.hero { min-height: min(100vh, 940px); min-height: min(100svh, 940px); display: flex; align-items: center; padding: 140px 0 100px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.status-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #3fb97a; }
.status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3fb97a; animation: ping 2.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.5; } 70%, 100% { transform: scale(3); opacity: 0; } }
.hero-name { margin: 0; font-size: clamp(48px, 8vw, 88px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; color: var(--strong); overflow-wrap: anywhere; }
.hero-role { margin-top: 22px; font-size: clamp(18px, 2vw, 21px); color: var(--strong); font-weight: 500; letter-spacing: -0.01em; }
.hero-tagline { margin-top: 12px; max-width: 30em; font-size: 16.5px; color: var(--text); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; border-radius: 999px; }
.btn-solid { padding: 11px 20px; background: var(--btn-bg); color: var(--btn-ink); transition: transform 0.4s var(--ease), opacity 0.3s; }
.btn-solid:hover { transform: translateY(-1px); opacity: 0.9; }
.btn-ghost { padding: 11px 4px; color: var(--strong); }
.btn-ghost span, .btn-ghost .arrow { display: inline-block; transition: transform 0.4s var(--ease); }
.btn-ghost:hover span, .btn-ghost:hover .arrow { transform: translateX(3px); }

/* orbit */
.orbit { position: relative; justify-self: end; width: 100%; max-width: 330px; }
.orbit-art { position: relative; aspect-ratio: 1; }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); animation: spin 90s linear infinite; }
.r1 { inset: 0; }
.r2 { inset: 24%; animation-duration: 60s; animation-direction: reverse; }
.ring i { position: absolute; top: -2.5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); }
.r2 i { background: var(--faint); }
@keyframes spin { to { transform: rotate(360deg); } }
.core {
  position: absolute; inset: 41%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--core-hi), var(--accent) 55%, var(--core-lo));
  opacity: 0.85; animation: breathe 10s ease-in-out infinite alternate;
}
.core::before { content: ""; position: absolute; inset: -90%; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), transparent); z-index: -1; }
@keyframes breathe { from { transform: scale(0.96); } to { transform: scale(1.04); } }
.now {
  position: absolute; left: 0; bottom: 6%; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; color: var(--muted);
  background: var(--nav-bg); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease);
}
.now:hover { transform: translateY(-2px); }
.now b { color: var(--strong); font-weight: 500; }
.now-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.now-note { font-family: var(--mono); font-size: 11px; color: var(--faint); }
@media (max-width: 820px) {
  .hero { min-height: 0; padding: 128px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .orbit { justify-self: center; max-width: 260px; }
  .now { left: 50%; bottom: -8px; transform: translateX(-50%); white-space: nowrap; }
  .now:hover { transform: translateX(-50%); }
}

/* sections */
.section { padding: 120px 0; }
@media (max-width: 600px) { .section { padding: 80px 0; } }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 48px; }
.sec-num { font-family: var(--mono); font-size: 11.5px; color: var(--accent); }
.sec-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; color: var(--strong); }
.sub-h { margin: 0 0 24px; font-size: 13px; font-weight: 500; color: var(--faint); }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.about-text p + p { margin-top: 18px; }
.about-text .lead { font-size: 19px; line-height: 1.6; color: var(--strong); letter-spacing: -0.01em; }
.facts { margin: 4px 0 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts div:first-child { padding-top: 0; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; color: var(--strong); text-align: right; }
.facts a:hover { color: var(--accent); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } .about-text .lead { font-size: 18px; } }

/* skills */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 48px; }
.skill-group.wide { grid-column: 1 / -1; }
.skill-group h3 { margin: 0 0 16px; font-size: 14px; font-weight: 500; color: var(--strong); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 5px 12px; border-radius: 999px; font-size: 13.5px; color: var(--text); background: var(--surface-2); }
.chip.ph { background: transparent; outline: 1px dashed var(--line-2); outline-offset: -1px; opacity: 0.7; }
@media (max-width: 720px) { .skills-grid { grid-template-columns: 1fr; gap: 44px; } }

/* projects */
.projects { display: grid; gap: 20px; }
.card { position: relative; display: grid; gap: 40px; padding: 40px; border-radius: 22px; background: var(--surface); }
.card.featured { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
.card.draft { background: transparent; outline: 1px dashed var(--line-2); outline-offset: -1px; }
.card-meta { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.card h3 { margin: 14px 0 10px; font-size: clamp(30px, 4vw, 40px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; color: var(--strong); }
.card-sum { color: var(--text); max-width: 26em; }
.card-stack { margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--faint); line-height: 1.9; }
.card-stack .sep { margin: 0 2px 0 6px; }
.card-more { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; font-size: 13px; }
.built { color: var(--accent); }
.card-open { display: inline-flex; align-items: center; gap: 6px; color: var(--strong); }
.card:hover .card-open .arrow { transform: translate(2px, -2px); }
.card-hit { position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.card-visual img { border-radius: 12px; }
@media (max-width: 760px) {
  .card { padding: 28px 22px; gap: 32px; border-radius: 18px; }
  .card.featured { grid-template-columns: 1fr; }
}

/* monochrome app mockup */
.mock {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 12px;
  border: 1px solid var(--line); background: var(--solid);
  transition: transform 0.6s var(--ease);
}
.card:hover .mock { transform: translateY(-3px); }
.mock-bar { display: flex; align-items: center; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.mock-bar span { margin-left: 10px; height: 5px; width: 30%; border-radius: 4px; background: var(--surface-2); }
.mock-body { display: grid; grid-template-columns: 40px 1fr; }
.mock-side { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; border-right: 1px solid var(--line); }
.mock-side b { width: 16px; height: 16px; border-radius: 5px; background: var(--surface-2); }
.mock-side b:first-child { background: var(--accent); opacity: 0.7; }
.mock-main { display: flex; flex-direction: column; gap: 7px; padding: 14px; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface); }
.mock-av { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--line-2); }
.mock-line { height: 6px; width: var(--w); border-radius: 4px; background: var(--line-2); }
.mock-pill { margin-left: auto; flex-shrink: 0; width: 40px; height: 14px; border-radius: 999px; background: var(--surface-2); }
.mock-row.hot .mock-av, .mock-row.hot .mock-pill { background: var(--accent); opacity: 0.75; }
.mock-row { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--r) * 80ms + 350ms); }
:where(.js) .card:not(.in) .mock-row { opacity: 0; transform: translateX(12px); }

/* more on the way */
.more { display: flex; align-items: center; gap: 12px; padding: 18px 4px 0; font-size: 14px; color: var(--muted); }
.more b { color: var(--strong); font-weight: 500; }
.more .arrow { margin-left: auto; }
.more:hover .arrow { transform: translate(2px, -2px); }
.more-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@media (max-width: 600px) { .more { flex-wrap: wrap; gap: 4px 12px; } .more-txt { flex-basis: 100%; order: 3; padding-left: 17px; } }

/* journey */
.journey { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; }
.journey.single { grid-template-columns: 1fr; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding-bottom: 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -25.5px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1.5px var(--faint); }
.timeline li:first-child::before { box-shadow: 0 0 0 1.5px var(--accent); background: var(--accent); }
.timeline li.ph { opacity: 0.6; }
.tl-when { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.tl-title { margin-top: 6px; color: var(--strong); font-weight: 500; }
.tl-org { font-size: 14px; color: var(--muted); }
.tl-text { margin-top: 8px; font-size: 14.5px; max-width: 36em; }
@media (max-width: 760px) { .journey { grid-template-columns: 1fr; gap: 48px; } }

/* contact */
.contact-lead { max-width: 28em; font-size: 18px; color: var(--strong); margin-bottom: 40px; letter-spacing: -0.01em; }
.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; }
.social {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 0;
  border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer;
}
.social-ico { color: var(--muted); display: grid; }
.social:hover .social-ico { color: var(--strong); }
.social-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.social-label { color: var(--strong); font-size: 14.5px; }
.social-handle { font-family: var(--mono); font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-go { margin-left: auto; color: var(--faint); display: grid; }
.social-go .ic { width: 14px; height: 14px; }
.social:hover .arrow { transform: translate(2px, -2px); }
.social.ph { opacity: 0.6; }
@media (max-width: 760px) { .socials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* keep multi-word stack items together */
.nw { white-space: nowrap; }
@media (max-width: 480px) { .socials { grid-template-columns: 1fr; } }

/* footer */
.footer { padding: 32px 0 40px; font-size: 13.5px; color: var(--faint); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.footer a:hover { color: var(--strong); }

/* project modal */
.modal {
  padding: 0; border: 0; background: transparent; color: var(--text);
  width: min(700px, calc(100vw - 24px)); max-height: calc(100dvh - 48px);
  overflow: visible;
}
.modal::backdrop { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
:root[data-theme="light"] .modal::backdrop { background: rgba(240, 240, 238, 0.6); }
.modal:focus-visible, .modal-panel:focus-visible { outline: none; }
.modal-panel {
  position: relative; max-height: calc(100dvh - 48px); overflow: auto;
  padding: 40px; border-radius: 24px;
  background: var(--solid); border: 1px solid var(--line); box-shadow: var(--shadow);
  overscroll-behavior: contain;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: var(--strong); }
.modal-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.modal[open] .modal-panel { animation: pop 0.5s var(--ease); }
.modal[open]::backdrop { animation: fade 0.4s var(--ease); }
.modal.vt[open] .modal-panel, .modal.vt[open]::backdrop { animation: none; }
.modal.closing .modal-panel { animation: pop-out 0.26s var(--ease) forwards; }
.modal.closing::backdrop { animation: fade 0.26s var(--ease) reverse forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes pop-out { to { opacity: 0; transform: translateY(12px) scale(0.985); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.m-img { width: 100%; border-radius: 14px; margin-bottom: 24px; }
.m-meta { padding-right: 44px; }
.m-title { margin: 14px 0 10px; font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.04em; line-height: 1.05; font-weight: 600; color: var(--strong); }
.m-summary { margin-bottom: 16px; font-size: 17px; color: var(--strong); }
.m-desc { margin-bottom: 28px; }
.m-list { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 8px; }
.m-list li { position: relative; padding-left: 18px; }
.m-list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 1.5px; background: var(--accent); }
.m-section { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--faint); }
.modal .card-stack { margin-top: 0; }
.m-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 32px; }
.m-links .btn-solid .arrow { width: 13px; height: 13px; }
.m-stagger > * { animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 100ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .modal-panel { padding: 28px 20px; border-radius: 20px; } }

/* view transitions */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; animation-timing-function: var(--ease); }
::view-transition-group(project) { animation-duration: 0.55s; animation-timing-function: var(--ease); }
::view-transition-old(project), ::view-transition-new(project) { height: 100%; object-fit: cover; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  padding: 10px 18px; border-radius: 999px; font-size: 14px;
  background: var(--strong); color: var(--bg);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* resume block is print-only */
.resume { display: none; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .rise, .mock-row { opacity: 1 !important; transform: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* print: clean resume (ctrl+p) */
@media print {
  @page { size: A4; margin: 14mm 15mm; }
  :root, :root[data-theme] { color-scheme: light !important; background: #fff !important; }
  * { -webkit-print-color-adjust: economy; print-color-adjust: economy; }
  html, body { background: #fff !important; color: #111 !important; }
  body { font-size: 10.5pt; line-height: 1.45; }
  body > *:not(.resume) { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; box-shadow: none !important; }
  .resume { display: block; color: #111; font-family: var(--font); }
  .resume a { color: #111; text-decoration: none; }
  .resume b { color: #111; }
  .r-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-bottom: 1.5pt solid #111; padding-bottom: 8pt; margin-bottom: 12pt; }
  .r-name { margin: 0; font-size: 24pt; letter-spacing: -0.02em; font-weight: 600; line-height: 1.1; }
  .r-role { margin: 2pt 0 0; font-size: 11.5pt; color: #333; }
  .r-contact { list-style: none; margin: 0; padding: 0; text-align: right; font-size: 9pt; color: #333; line-height: 1.5; }
  .r-sec { margin: 0 0 11pt; }
  .r-sec h2 { break-after: avoid; margin: 0 0 5pt; font-size: 9pt; text-transform: uppercase; letter-spacing: 0.14em; color: #555; font-weight: 600; border-bottom: 0.5pt solid #ccc; padding-bottom: 2pt; }
  .r-sec p { margin: 0 0 4pt; }
  .r-item { margin: 0 0 7pt; break-inside: avoid; }
  .r-row { display: flex; justify-content: space-between; gap: 12pt; }
  .r-row b { font-weight: 600; }
  .r-row > span { color: #555; font-size: 9pt; white-space: nowrap; }
  .r-row b .r-sub { font-weight: 400; }
  .r-sub { color: #444; font-size: 9.5pt; }
  .r-item ul { margin: 3pt 0 0; padding-left: 13pt; }
  .r-item li { margin: 0 0 1pt; }
  .r-links { font-size: 9pt; color: #333; }
  .r-skills { margin: 0; display: grid; grid-template-columns: 38mm 1fr; gap: 3pt 10pt; }
  .r-skills dt { font-weight: 600; }
  .r-skills dd { margin: 0; }
}
