/* ==========================================================================
   BASE — shared structure and components. Templates set the design tokens
   below (in their own theme.css) and add their own flourishes.
   ========================================================================== */
:root {
  --bg: #0b1020;
  --bg-soft: #111832;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.1);
  --text: #eef2ff;
  --text-soft: #c4cbe0;
  --muted: #8a93ad;
  --a1: #4f8cff;
  --a2: #8b5cf6;
  --a3: #22d3ee;
  --grad: linear-gradient(120deg, var(--a1), var(--a2) 55%, var(--a3));
  --on-accent: #fff;
  --glow: rgba(79, 140, 255, 0.35);
  --radius: 22px;
  --radius-sm: 12px;
  --blur: 16px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --heading-weight: 700;
  --heading-tracking: -0.03em;
  --container: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
body.menu-open, body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--heading-weight); letter-spacing: var(--heading-tracking); line-height: 1.1; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--a3); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--a1); color: var(--on-accent); }
.ico { width: 1.1em; height: 1.1em; stroke-width: 1.8; flex: none; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--a1); color: var(--on-accent); border-radius: 10px; }
.skip-link:focus { top: 16px; }

/* ---------- glass ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  box-shadow: var(--shadow);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em; justify-content: center;
  padding: 0.75em 1.25em; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s, border-color 0.3s;
}
.btn-lg { padding: 0.95em 1.6em; font-size: 1rem; }
.btn-sm { padding: 0.5em 0.95em; font-size: 0.85rem; }
.btn-primary { background: var(--grad); color: var(--on-accent); box-shadow: 0 10px 30px -10px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--glow); }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--a1); transform: translateY(-2px); }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s, background-color 0.3s;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--a1); color: var(--a1); }
.link { display: inline-flex; align-items: center; gap: 0.35em; color: var(--a1); font-weight: 600; font-size: 0.9rem; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

[data-theme="dark"] .when-light, [data-theme="light"] .when-dark { display: none; }
.menu-toggle .when-open, .menu-open .menu-toggle .when-closed { display: none; }
.menu-open .menu-toggle .when-open { display: block; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--bg); transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader-mark { font-family: var(--font-display); font-weight: 700; font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader-bar { width: 140px; height: 3px; border-radius: 3px; background: var(--surface-strong); overflow: hidden; position: relative; }
.loader-bar::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform-origin: left; animation: load 1s var(--ease) infinite; }
@keyframes load { from { transform: scaleX(0); } 60% { transform: scaleX(1); transform-origin: left; } 61% { transform-origin: right; } to { transform: scaleX(0); transform-origin: right; } }
.is-loaded .loader { opacity: 0; visibility: hidden; }

/* ---------- example banner ---------- */
.example-banner {
  position: fixed; left: 50%; bottom: 20px; z-index: 90; translate: -50% 0;
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px);
  padding: 8px 8px 8px 16px; border-radius: 999px; font-size: 0.82rem;
  background: var(--bg-soft); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text-soft);
}
.example-banner code { font-family: var(--font-mono); color: var(--a1); font-size: 0.78rem; }
.example-banner .icon-btn { width: 30px; height: 30px; }

/* ---------- cursor glow ---------- */
.cursor-glow {
  position: fixed; left: -200px; top: -200px; width: 400px; height: 400px; z-index: 0; pointer-events: none;
  border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%);
  opacity: 0; transition: opacity 0.5s; mix-blend-mode: screen; filter: blur(10px);
}
.cursor-glow.on { opacity: 0.55; }
[data-theme="light"] .cursor-glow { mix-blend-mode: multiply; }
[data-theme="light"] .cursor-glow.on { opacity: 0.25; }
.circuit-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cursor-trail { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 95; pointer-events: none; }

/* ==========================================================================
   NAVIGATION — pill (default), bar, rail
   ========================================================================== */
.nav {
  position: fixed; z-index: 80; top: 16px; left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 12px;
  width: min(100% - 32px, var(--container)); height: 60px; padding: 0 10px 0 14px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s, top 0.4s var(--ease);
}
/* The blur lives on a pseudo-element so the nav never becomes a containing
   block for the fixed full-screen mobile menu. */
.nav::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.4s;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.nav.is-scrolled, .menu-open .nav { border-color: var(--border); box-shadow: var(--shadow); }
.nav.is-scrolled::before, .menu-open .nav::before { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; flex: none; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad); color: var(--on-accent); font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0;
}
.brand-name { font-family: var(--font-display); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; color: var(--text-soft); transition: color 0.3s, background-color 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current] { color: var(--text); background: var(--surface-strong); }
.nav-dot { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-links:empty + .nav-actions { margin-left: auto; }
.menu-toggle { display: none; }

body[data-nav="bar"] .nav {
  top: 0; width: 100%; border-radius: 0; height: var(--nav-h); padding: 0 max(16px, calc((100% - var(--container)) / 2));
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1101px) {
  body[data-nav="rail"] { --rail: 92px; }
  body[data-nav="rail"] main, body[data-nav="rail"] .footer { padding-left: var(--rail); }
  body[data-nav="rail"] .nav {
    top: 0; left: 0; translate: none; flex-direction: column; justify-content: space-between;
    width: var(--rail); height: 100vh; padding: 22px 0; border-radius: 0;
    border-right: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  body[data-nav="rail"] .brand-name { display: none; }
  body[data-nav="rail"] .nav-links { flex-direction: column; margin: 0; gap: 6px; }
  body[data-nav="rail"] .nav-links a { position: relative; width: 44px; height: 44px; justify-content: center; padding: 0; }
  body[data-nav="rail"] .nav-links a > span:last-child {
    position: absolute; left: calc(100% + 14px); top: 50%; translate: -6px -50%; opacity: 0; pointer-events: none;
    padding: 6px 12px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--border); white-space: nowrap;
    color: var(--text); transition: opacity 0.25s, translate 0.25s var(--ease);
  }
  body[data-nav="rail"] .nav-links a:hover > span:last-child, body[data-nav="rail"] .nav-links a:focus-visible > span:last-child { opacity: 1; translate: 0 -50%; }
  body[data-nav="rail"] .nav-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transition: all 0.3s var(--ease); }
  body[data-nav="rail"] .nav-links a[aria-current] { background: none; }
  body[data-nav="rail"] .nav-links a[aria-current] .nav-dot { height: 26px; border-radius: 6px; background: var(--grad); }
  body[data-nav="rail"] .nav-actions { flex-direction: column; }
  body[data-nav="rail"] .nav-cta span { display: none; }
  body[data-nav="rail"] .nav-cta { width: 42px; height: 42px; padding: 0; }
  body[data-nav="rail"] .cursor-glow { z-index: 0; }
}

@media (max-width: 1100px) {
  .nav { left: 16px; right: 16px; width: auto; translate: none; }
  body[data-nav="bar"] .nav { left: 0; right: 0; }
  .menu-toggle { display: inline-grid; }
  .nav-links {
    position: fixed; inset: 0; z-index: -2; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    margin: 0; background: color-mix(in srgb, var(--bg) 96%, transparent);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav-links a { font-size: 1.5rem; font-family: var(--font-display); padding: 10px 22px; }
  .menu-open .nav-links { opacity: 1; visibility: visible; }
  .nav-actions { margin-left: auto; }
  body[data-nav="rail"] .nav { top: 0; left: 0; right: 0; width: auto; border-radius: 0; height: var(--nav-h); padding: 0 16px; }
}
@media (max-width: 520px) { .nav-cta span, .brand-name { display: none; } .nav-cta { padding: 0.55em 0.8em; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 48px) 0 96px; overflow: hidden; isolation: isolate; }
/* Fade the glow out toward the bottom so the hero blends into the next section (no hard edge). */
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; animation: drift 18s ease-in-out infinite alternate; }
.orb-1 { width: 520px; height: 520px; background: var(--a1); top: -140px; right: -120px; }
.orb-2 { width: 460px; height: 460px; background: var(--a2); bottom: -180px; left: -140px; animation-delay: -6s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.shape { position: absolute; border: 1.5px solid color-mix(in srgb, var(--a3) 55%, transparent); opacity: 0.6; animation: float 9s ease-in-out infinite; }
.shape-ring { width: 90px; height: 90px; border-radius: 50%; top: 22%; left: 8%; }
.shape-square { width: 54px; height: 54px; border-radius: 12px; bottom: 20%; right: 12%; rotate: 20deg; animation-delay: -3s; }
.shape-tri { width: 0; height: 0; border: 0; border-left: 26px solid transparent; border-right: 26px solid transparent; border-bottom: 44px solid color-mix(in srgb, var(--a1) 35%, transparent); top: 16%; right: 40%; animation-delay: -5s; }
@keyframes float { 50% { transform: translateY(-22px) rotate(12deg); } }
.grid-lines {
  position: absolute; inset: 0; opacity: 0.35;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-size: 0.82rem; color: var(--text-soft); margin-bottom: 26px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); position: relative; }
.is-open .pulse { background: #22c55e; }
.is-open .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22c55e; animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.hero-name { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; margin-bottom: 22px; text-wrap: balance; }
.hero-name .word { display: inline-block; white-space: nowrap; }
.hero-name .char { display: inline-block; opacity: 0; translate: 0 0.5em; filter: blur(8px); }
.is-loaded .hero-name .char { animation: charIn 0.9s var(--ease) forwards; animation-delay: calc(0.25s + var(--i) * 0.045s); }
@keyframes charIn { to { opacity: 1; translate: 0 0; filter: blur(0); } }
.hero-role { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--text-soft); margin-bottom: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-height: 2.2em; }
.role-sep { color: var(--muted); }
.typed { color: var(--a3); font-weight: 600; }
.caret { width: 2px; height: 1.1em; background: var(--a3); align-self: center; animation: blink 1s steps(1) infinite; margin-left: -6px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-intro { font-size: 1.1rem; color: var(--text-soft); max-width: 56ch; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.socials { display: flex; gap: 10px; }
.hero-copy > *:not(.hero-name) { opacity: 0; translate: 0 16px; }
.is-loaded .hero-copy > *:not(.hero-name) { animation: up 0.9s var(--ease) forwards; }
.is-loaded .hero-copy > .hero-role { animation-delay: 0.6s; }
.is-loaded .hero-copy > .hero-intro { animation-delay: 0.72s; }
.is-loaded .hero-copy > .hero-ctas { animation-delay: 0.84s; }
.is-loaded .hero-copy > .socials { animation-delay: 0.96s; }
@keyframes up { to { opacity: 1; translate: 0 0; } }

.hero-visual { position: relative; justify-self: center; opacity: 0; scale: 0.92; }
.is-loaded .hero-visual { animation: pop 1.1s var(--ease) 0.4s forwards; }
@keyframes pop { to { opacity: 1; scale: 1; } }
.avatar { position: relative; width: clamp(220px, 28vw, 340px); aspect-ratio: 1; border-radius: 50%; padding: 8px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; position: relative; z-index: 1; background: var(--bg-soft); }
.avatar-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--a1), var(--a2), var(--a3), var(--a1)); animation: spin 8s linear infinite; }
.avatar-ring::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: inherit; filter: blur(30px); opacity: 0.55; z-index: -1; }
@keyframes spin { to { rotate: 360deg; } }
.hero-badge {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; font-size: 0.82rem; font-weight: 600;
  background: color-mix(in srgb, var(--bg-soft) 80%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: float 7s ease-in-out infinite; white-space: nowrap;
}
.hero-badge .ico { color: var(--a3); }
.badge-loc { left: -40px; bottom: 14%; }
.badge-stack { right: -30px; top: 10%; animation-delay: -3s; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); color: var(--muted); animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }

/* No profile photo: a single, wider text column. */
.hero.no-photo .hero-inner { grid-template-columns: minmax(0, 860px); }
body[data-hero="center"] .hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 36px; }
body[data-hero="center"] .hero-visual { order: -1; }
body[data-hero="center"] .avatar { width: clamp(150px, 18vw, 200px); }
body[data-hero="center"] .hero-role, body[data-hero="center"] .hero-ctas, body[data-hero="center"] .socials { justify-content: center; }
body[data-hero="center"] .hero-intro { margin-inline: auto; }
body[data-hero="center"] .badge-loc { left: -120px; bottom: 30%; }
body[data-hero="center"] .badge-stack { right: -140px; top: 22%; }

body[data-hero="editorial"] .hero-inner { grid-template-columns: 1fr auto; align-items: end; }
body[data-hero="editorial"] .hero-name { font-size: clamp(2.8rem, 7vw, 6rem); }
body[data-hero="editorial"] .avatar { width: clamp(180px, 20vw, 260px); border-radius: 28px; }
body[data-hero="editorial"] .avatar img, body[data-hero="editorial"] .avatar-ring { border-radius: 24px; }

@media (max-width: 900px) {
  .hero-inner, body[data-hero="editorial"] .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; justify-self: start; }
  body[data-hero="center"] .hero-visual { justify-self: center; }
  .avatar { width: 180px; }
  .hero-badge { display: none; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
main { position: relative; z-index: 1; }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--a3); margin-bottom: 16px; }
.eyebrow-num { padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.section-head h2 em, .hero-name em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 16px; font-size: 1.08rem; color: var(--text-soft); max-width: 60ch; }
.sub-head { font-size: 1.4rem; margin: 64px 0 24px; }
h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; margin: 20px 0 10px; }

.reveal { opacity: 0; translate: 0 28px; transition: opacity 0.9s var(--ease), translate 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-visible { opacity: 1; translate: 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 4px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 500; background: var(--surface-strong); border: 1px solid var(--border); color: var(--text-soft); }
.ticks li, .stars li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--text-soft); }
.ticks li::before, .stars li::before { position: absolute; left: 0; top: 0.1em; font-size: 0.85em; color: var(--a3); }
.ticks li::before { content: "✓"; }
.stars li::before { content: "★"; color: var(--a1); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.about-text p { font-size: 1.15rem; color: var(--text-soft); margin-bottom: 20px; }
.about-text p:first-child { font-size: 1.35rem; color: var(--text); font-family: var(--font-display); letter-spacing: -0.01em; line-height: 1.45; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { padding: 24px; transition: transform 0.4s var(--ease), border-color 0.4s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a1) 50%, var(--border)); }
.card-ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--surface-strong); color: var(--a3); margin-bottom: 16px; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--text-soft); font-size: 0.94rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 48px 0 0; }
.stat { padding: 26px; display: flex; flex-direction: column-reverse; gap: 6px; }
.stat dd { margin: 0; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat dt { color: var(--muted); font-size: 0.9rem; }

/* ---------- timeline ---------- */
.timeline { position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--a1), var(--a2), transparent); }
.tl-item { position: relative; padding-left: 72px; margin-bottom: 28px; }
.tl-dot { position: absolute; left: 0; top: 18px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 2px solid var(--a1); color: var(--a1); box-shadow: 0 0 0 6px var(--bg), 0 0 24px var(--glow); }
.tl-card { padding: 28px; transition: transform 0.4s var(--ease), border-color 0.4s; }
.tl-card:hover { transform: translateX(6px); border-color: color-mix(in srgb, var(--a1) 50%, var(--border)); }
.tl-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tl-period { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.tl-badge { padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--grad); color: var(--on-accent); }
.tl-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.tl-org { color: var(--a3); font-weight: 600; }

/* ---------- skills ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 6px; margin-bottom: 28px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); width: max-content; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs { position: relative; }
/* phones: the strip loops, so fade its ends instead of showing a hard cut */
.tabs.looping { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--text-soft); white-space: nowrap; transition: color 0.3s, background-color 0.3s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--grad); color: var(--on-accent); box-shadow: 0 8px 24px -10px var(--glow); }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tab-panel:not([hidden]) .skill { animation: up 0.6s var(--ease) both; animation-delay: calc(var(--d) * 60ms); opacity: 0; translate: 0 16px; }
.skill { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm); transition: transform 0.35s var(--ease), border-color 0.35s; }
.skill:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a1) 55%, var(--border)); }
.skill-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--surface-strong); font-size: 1.6rem; color: var(--a3); flex: none; transition: transform 0.4s var(--ease); }
.skill:hover .skill-ico { transform: rotate(-8deg) scale(1.08); }
/* Brand logos are SVG files shown as a mask, so they take the theme's accent colour. */
.dvi { display: block; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--dvi) center / contain no-repeat; mask: var(--dvi) center / contain no-repeat; }
.skill-ico .ico { width: 24px; height: 24px; }
.skill-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.skill-body small { color: var(--muted); font-size: 0.8rem; }
.level { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-soft); flex: none; }
.level-advanced, .level-strong { color: var(--a3); border-color: color-mix(in srgb, var(--a3) 45%, transparent); }
.level-proficient { color: var(--a1); border-color: color-mix(in srgb, var(--a1) 45%, transparent); }

/* ---------- projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 0.88rem; font-weight: 600; color: var(--text-soft); transition: all 0.3s var(--ease); }
.filter:hover { color: var(--text); border-color: var(--a1); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 18px; }
.project.is-featured { grid-column: span 2; grid-row: span 2; }
.project[hidden] { display: none; }
.project.pop { animation: popIn 0.55s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: scale(0.95); } }
.project-card { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; overflow: hidden; padding: 0; transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s; }
.project-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--a1) 55%, var(--border)); box-shadow: 0 30px 60px -25px var(--glow); }
.project-cover { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.is-featured .project-cover { aspect-ratio: auto; flex: 1; min-height: 260px; }
.project-cover img, .cover-art { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.project-card:hover .project-cover img, .project-card:hover .cover-art { transform: scale(1.07); }
.cover-art { display: grid; place-items: center; position: relative; background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--a3) 45%, transparent), transparent 55%), radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--a2) 55%, transparent), transparent 55%), var(--bg-soft); }
.cover-ico { width: 64px; height: 64px; color: var(--text); opacity: 0.9; stroke-width: 1.3; position: relative; z-index: 1; }
.is-featured .cover-ico { width: 96px; height: 96px; }
.cover-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 28px 28px; opacity: 0.6; }
.project-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.project-cat { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--a3); }
.project-name { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.25; }
.is-featured .project-name { font-size: 1.6rem; }
.project-sum { color: var(--text-soft); font-size: 0.93rem; }
.project-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.88rem; color: var(--a1); margin-top: 4px; }
.project-more .ico { transition: transform 0.35s var(--ease); }
.project-card:hover .project-more .ico { transform: translate(3px, -3px); }
.empty-note { color: var(--muted); padding: 40px 0; text-align: center; }

.modal { padding: 0; border: 0; background: transparent; width: min(100% - 32px, 760px); max-height: calc(100svh - 48px); color: var(--text); overflow: visible; }
.modal::backdrop { background: rgba(4, 8, 18, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn 0.5s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
.modal-inner { position: relative; overflow: auto; max-height: calc(100svh - 48px); background: var(--bg-soft); }
.modal-cover { aspect-ratio: 16 / 9; }
.modal-body { padding: 28px; }
.modal-body h3 { font-size: 1.8rem; margin: 8px 0 12px; }
.modal-body > p { color: var(--text-soft); }
.modal-body > .project-role { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 14px; padding: 6px 12px; border-radius: 999px; font-size: 0.88rem; color: var(--text); background: var(--surface-strong); border: 1px solid var(--border); }
.project-role .ico { color: var(--a1); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.modal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
/* card covers with several pictures: stacked, cross-fading */
.project-cover.has-slides .cover-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.project-cover.has-slides .cover-slide.is-active { opacity: 1; }
.cover-count {
  position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; color: #fff; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cover-dots { position: absolute; left: 50%; bottom: 12px; z-index: 2; translate: -50% 0; display: flex; gap: 6px; }
.cover-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transition: width 0.35s var(--ease), background-color 0.35s; }
.cover-dots i.is-active { width: 20px; border-radius: 4px; background: #fff; }

/* details pop-up carousel */
.carousel { position: relative; overflow: hidden; background: #05080c; }
.carousel-track { display: flex; aspect-ratio: 16 / 9; max-height: 62vh; transition: transform 0.6s var(--ease); touch-action: pan-y; cursor: grab; }
.carousel-track:active { cursor: grabbing; }
.carousel-slide { position: relative; flex: 0 0 100%; margin: 0; overflow: hidden; display: grid; place-items: center; }
/* blurred copy of the picture fills the empty sides of tall posters */
.carousel-slide::before { content: ""; position: absolute; inset: -40px; background: var(--bg) center / cover; filter: blur(30px) brightness(0.55); }
.carousel-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.carousel-btn { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; background: rgba(0, 0, 0, 0.5); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.carousel-btn:hover { color: #fff; background: rgba(0, 0, 0, 0.75); transform: scale(1.06); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-dots { position: absolute; left: 50%; bottom: 14px; z-index: 2; translate: -50% 0; display: flex; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transition: width 0.35s var(--ease), background-color 0.35s; }
.carousel-dots button[aria-current] { width: 24px; border-radius: 5px; background: #fff; }
.carousel-count { position: absolute; left: 16px; top: 16px; z-index: 2; padding: 4px 10px; border-radius: 999px; font: 600 0.8rem var(--font-mono); color: #fff; background: rgba(0, 0, 0, 0.5); }
.muted-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.88rem; }

/* ---------- resume preview pop-up ---------- */
.resume-modal { width: min(100% - 32px, 980px); }
.resume-modal .modal-inner { display: flex; flex-direction: column; height: calc(100svh - 48px); overflow: hidden; }
.resume-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--border); }
.resume-bar h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; letter-spacing: -0.01em; }
.resume-bar h3 .ico { color: var(--a1); }
.resume-bar-actions { display: flex; align-items: center; gap: 8px; }
.resume-modal .modal-close { position: static; }
.resume-frame { flex: 1; background: #525659; }
.resume-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.resume-fallback { display: none; flex-direction: column; gap: 12px; padding: 22px; }
.resume-fallback p { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; color: var(--text-soft); }
.resume-fallback p .ico { width: 28px; height: 28px; color: var(--a1); }
.resume-modal.no-embed .modal-inner { height: auto; }
.resume-modal.no-embed .resume-frame, .resume-modal.no-embed .resume-bar-actions .btn { display: none; }
.resume-modal.no-embed .resume-fallback { display: flex; }
@media (max-width: 520px) { .resume-bar-actions .btn span { display: none; } .resume-bar { padding-left: 16px; } }

/* ---------- experience ---------- */
.xp-list { display: grid; gap: 16px; max-width: 920px; }
.xp-card { overflow: hidden; transition: border-color 0.4s; }
.xp-card:has([aria-expanded="true"]) { border-color: color-mix(in srgb, var(--a1) 45%, var(--border)); }
.xp-head { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px; width: 100%; padding: 22px 24px; text-align: left; }
.xp-logo { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--grad); color: var(--on-accent); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.xp-titles { display: flex; flex-direction: column; }
.xp-titles strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.01em; }
.xp-titles span { color: var(--muted); font-size: 0.9rem; }
.xp-period { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-soft); }
.xp-chev { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); transition: transform 0.4s var(--ease); }
[aria-expanded="true"] .xp-chev { transform: rotate(180deg); }
.xp-body { padding: 0 24px 26px 92px; animation: up 0.5s var(--ease) both; opacity: 0; translate: 0 10px; }
.xp-body > p { color: var(--text-soft); }
.xp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 18px; }

/* ---------- certs & awards ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cert-card { height: 100%; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); overflow: hidden; transition: transform 0.45s var(--ease), box-shadow 0.45s; }
.cert-card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 30px 50px -25px var(--glow); }
.cert-paper {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 24px 26px; margin: 14px; border-radius: calc(var(--radius) - 8px);
  background: linear-gradient(160deg, #fbfaf6, #ecebe4); color: #1d2333; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), inset 0 0 0 7px #fbfaf6, inset 0 0 0 8px rgba(0, 0, 0, 0.08);
}
.cert-seal { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 6px 16px -6px var(--glow); }
.cert-seal .ico { width: 26px; height: 26px; }
.cert-kicker { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: #6b7280; }
.cert-line { width: 70%; height: 6px; border-radius: 3px; background: rgba(29, 35, 51, 0.13); }
.cert-line.short { width: 42%; }
.cert-info { padding: 4px 24px 24px; }
.cert-info h3 { font-size: 1.1rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.cert-info p { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.awards { display: grid; gap: 12px; }
.award { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius-sm); transition: transform 0.35s var(--ease), border-color 0.35s; }
.award:hover { transform: translateX(6px); border-color: color-mix(in srgb, var(--a1) 50%, var(--border)); }
.award-ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--surface-strong); color: var(--a1); }
.award div { display: flex; flex-direction: column; }
.award span { color: var(--muted); font-size: 0.9rem; }
.award time { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-soft); }

/* ---------- resume preview ---------- */
.resume-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.resume-sheet { background: #fff; color: #1f2937; border-radius: 16px; padding: clamp(24px, 5vw, 56px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); font-family: "Inter", system-ui, sans-serif; max-width: 980px; }
.rs-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 2px solid #111827; }
.rs-head h3 { font-family: inherit; font-size: 2rem; letter-spacing: -0.02em; color: #111827; }
.rs-head > div p { color: #4b5563; font-weight: 500; }
.rs-contact { display: grid; gap: 4px; font-size: 0.86rem; color: #374151; }
.rs-contact li { display: flex; align-items: center; gap: 8px; }
.rs-contact .ico { color: #6b7280; width: 14px; height: 14px; }
.rs-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; }
.resume-sheet h4 { color: #111827; font-family: inherit; font-size: 0.78rem; letter-spacing: 0.12em; border-bottom: 1px solid #e5e7eb; padding-bottom: 6px; margin: 22px 0 12px; }
.resume-sheet h4:first-child { margin-top: 0; }
.resume-sheet p, .resume-sheet li { font-size: 0.9rem; color: #374151; }
.resume-sheet ul { padding-left: 18px; list-style: disc; }
.resume-sheet li { margin-bottom: 4px; }
.rs-entry { margin-bottom: 14px; }
.rs-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 4px; }
.rs-row strong { color: #111827; font-size: 0.94rem; }
.rs-row span { color: #6b7280; font-size: 0.82rem; }
.rs-side p { margin-bottom: 8px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.contact-side { display: grid; gap: 14px; }
.contact-side .status-pill { margin: 0 0 6px; justify-self: start; }
.contact-card { display: grid; gap: 4px; padding: 20px 22px; border-radius: var(--radius-sm); position: relative; transition: transform 0.35s var(--ease), border-color 0.35s; }
.contact-link:hover { transform: translateX(6px); border-color: var(--a1); }
.contact-link > .ico { position: absolute; right: 20px; top: 50%; translate: 0 -50%; color: var(--muted); }
.contact-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-card > span:not(.contact-label) { overflow-wrap: anywhere; padding-right: 30px; font-weight: 600; }
.email-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.email-row a { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }
.email-row a:hover { color: var(--a1); }
.contact-form { padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-soft); }
.field input, .field textarea { width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-strong); outline: none; transition: border-color 0.3s, box-shadow 0.3s; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--a1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 20%, transparent); }
.field.invalid input, .field.invalid textarea { border-color: #ef4444; }
.err { font-size: 0.8rem; color: #f87171; min-height: 0; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: -6px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0 90px; position: relative; z-index: 1; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.9rem; color: var(--text-soft); }
.footer-links a:hover { color: var(--text); }
.copyright { width: 100%; font-size: 0.85rem; color: var(--muted); }

/* ---------- back-to-top & toasts ---------- */
.back-top { position: fixed; right: 20px; bottom: 20px; z-index: 85; width: 48px; height: 48px; background: var(--grad); color: var(--on-accent); border: 0; box-shadow: 0 12px 30px -10px var(--glow); opacity: 0; visibility: hidden; translate: 0 16px; transition: opacity 0.4s, visibility 0.4s, translate 0.4s var(--ease), transform 0.3s var(--ease); }
.back-top:hover { color: var(--on-accent); }
.back-top.show { opacity: 1; visibility: visible; translate: 0 0; }
.toasts { position: fixed; top: 20px; right: 20px; z-index: 400; display: grid; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; font-size: 0.9rem; font-weight: 500; background: var(--bg-soft); border: 1px solid var(--border); box-shadow: var(--shadow); opacity: 0; translate: 20px 0; transition: opacity 0.4s, translate 0.4s var(--ease); max-width: 340px; }
.toast.show { opacity: 1; translate: 0 0; }
.toast-ok .ico { color: #22c55e; }
.toast-err .ico { color: #f87171; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .rs-cols { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  .about-cards, .xp-cols { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .project.is-featured { grid-column: auto; grid-row: auto; }
  .is-featured .project-cover { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
  .xp-head { grid-template-columns: auto 1fr auto; gap: 14px; padding: 18px; }
  .xp-period { grid-column: 2; grid-row: 2; }
  .xp-chev { grid-row: 1 / span 2; grid-column: 3; }
  .xp-logo { width: 42px; height: 42px; grid-row: 1 / span 2; }
  .xp-body { padding: 0 18px 22px; }
  .tl-item { padding-left: 58px; }
  .timeline::before { left: 17px; }
  .tl-dot { width: 36px; height: 36px; }
  .tl-card { padding: 22px; }
  .award { grid-template-columns: auto 1fr; }
  .award time { grid-column: 2; }
  .stat { padding: 20px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .example-banner { bottom: 80px; border-radius: 16px; }
}

/* Phones: skip the frosted-glass blur (expensive while scrolling); use a slightly more solid card instead. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--bg-soft) 88%, transparent); }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .hero-copy > *, .hero-visual, .hero-name .char, .skill, .xp-body { opacity: 1 !important; translate: none !important; scale: none !important; filter: none !important; }
}

/* ==========================================================================
   PRINT — the portfolio prints as just the resume sheet
   ========================================================================== */
@media print {
  body { background: #fff; }
  .nav, .hero, .section:not(#resume), .footer, .back-top, .toasts, .cursor-glow, .example-banner, .resume-actions, #resume .section-head { display: none !important; }
  #resume { padding: 0; }
  .resume-sheet { box-shadow: none; padding: 0; max-width: none; }
  .reveal { opacity: 1; translate: none; }
}

/* Certifications as a list: first sub-heading sits right under the section title */
.sub-head-first { margin-top: 0; }
.award > .link { white-space: nowrap; }
