/* =========================================================
   Portfolio: modern, dark-first design system
   Type: Geist + Geist Mono. Accents: --a1 (primary), --a2 (secondary), --a3 (highlight).
   Every colour is a variable so the admin portal can recolour the whole site.
   ========================================================= */

@view-transition { navigation: auto; }

:root {
  --a1: #ff6a1f;
  --a2: #3dd6a3;
  --a3: #ffd23f;

  --font-display: "Geist", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h: 76px;

  /* Light */
  --bg: #fafafa;
  --bg-2: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --text: #09090b;
  --text-2: #3f3f46;
  --muted: #71717a;
  --line: rgba(9, 9, 11, .08);
  --line-strong: rgba(9, 9, 11, .15);
  --dots: rgba(9, 9, 11, .09);
  --accent: color-mix(in oklab, var(--a1) 82%, #000);
  --accent-2: color-mix(in oklab, var(--a2) 70%, #000);
  --accent-3: color-mix(in oklab, var(--a3) 80%, #000);
  --on-accent: #09090b;
  --glow: color-mix(in srgb, var(--a1) 16%, transparent);
  --shadow: 0 1px 2px rgba(9, 9, 11, .04), 0 8px 24px -12px rgba(9, 9, 11, .12);
  --shadow-lift: 0 2px 4px rgba(9, 9, 11, .04), 0 24px 48px -20px rgba(9, 9, 11, .22);
  --glass: color-mix(in srgb, var(--surface) 72%, transparent);
  --trace: rgba(9, 9, 11, .06);
  --trace-pulse: var(--a1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #08080a;
  --bg-2: #0e0e11;
  --surface: #111114;
  --surface-2: #19191d;
  --text: #fafafa;
  --text-2: #d4d4d8;
  --muted: #8b8b95;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .14);
  --dots: rgba(255, 255, 255, .07);
  --accent: var(--a1);
  --accent-2: var(--a2);
  --accent-3: var(--a3);
  --glow: color-mix(in srgb, var(--a1) 22%, transparent);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -14px rgba(0, 0, 0, .8);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 60px -24px rgba(0, 0, 0, .9);
  --glass: color-mix(in srgb, var(--surface) 62%, transparent);
  --trace: rgba(255, 255, 255, .045);
  color-scheme: dark;
}
:root { --grad: var(--a1); --neu-in: inset 0 1px 2px rgba(0,0,0,.06); --neu-sm: var(--shadow); --neu: var(--shadow); --glass-border: var(--line); --glass-strong: var(--surface); --glass-shadow: var(--shadow); --on-grad: var(--on-accent); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg);
  overflow-x: hidden; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
/* Dot grid that fades out, plus a soft accent glow at the top of every page */
body::before { content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image: radial-gradient(var(--dots) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }
body::after { content: ""; position: fixed; left: 50%; top: -30vh; width: 120vw; height: 70vh; transform: translateX(-50%); z-index: -3; pointer-events: none;
  background: radial-gradient(ellipse at center, var(--glow), transparent 65%); }
body.modal-open { overflow: hidden; }
main { flex: 1; }
main:focus { outline: none; }
.hero, .page-hero, .contact-hero, .section, .marquee, .footer { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.035em; }
h3, h4 { letter-spacing: -.02em; }
p { margin: 0 0 1em; }
::selection { background: var(--a1); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 16px; }
noscript p { padding: 120px 24px; text-align: center; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -0.2em; }
symbol .fill { fill: currentColor; stroke: none; }
.container { width: min(1200px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

/* Uploaded image icons */
img.ic-img { object-fit: contain; border-radius: 4px; vertical-align: -0.2em; }
.mc-icon img.ic-img, .c-icon img.ic-img, .big-ic img.ic-img, .pub-num img.ic-img, .ri img.ic-img, .tl-node img.ic-img { border-radius: 6px; }
.section-logo { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 auto 16px; border-radius: 16px; padding: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.section-head.left .section-logo, .page-hero .section-logo { margin-left: 0; }

/* Accent word in headings (class name kept for compatibility) */
.grad-text { color: var(--accent); }
:root[data-theme="dark"] .grad-text { text-shadow: 0 0 40px color-mix(in srgb, var(--a1) 45%, transparent); }

/* ---------- Surfaces with cursor spotlight ---------- */
.glass, .neu {
  position: relative; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .3s, background-color .3s;
}
.glass::after, .neu::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--a1) 85%, transparent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass:hover::after, .neu:hover::after { opacity: 1; }
.toast, .preview-bar, .to-top { position: fixed; }
.nav.glass::after, .toast::after, .preview-bar::after { display: none; }

/* ---------- Cursor ---------- */
.cursor-glow { position: fixed; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--a1) 13%, transparent), transparent 62%); transform: translate(-999px, -999px); will-change: transform; }
:root:not([data-theme="dark"]) .cursor-glow { background: radial-gradient(circle, color-mix(in srgb, var(--a1) 10%, transparent), transparent 62%); }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 2600; border-radius: 50%; transform: translate(-999px, -999px); will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--a1); }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid color-mix(in srgb, var(--a1) 60%, transparent); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s, border-color .3s; }
.cursor-ring.hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: color-mix(in srgb, var(--a1) 10%, transparent); border-color: var(--a1); }
.cursor-ring.down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
@media (hover: none), (pointer: coarse) { .cursor-glow, .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Background canvas ---------- */
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; opacity: .9; }
.bg-orbs { display: none; }

/* ---------- Preloader: interactive dot field + progress ring ---------- */
.preloader { position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--bg); color: var(--text); cursor: crosshair; --iris: 0px;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1px)); mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1px)); }
.preloader.skip { display: none; }
.pl-field { position: absolute; inset: 0; }
.pl-core { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.pl-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.pl-track { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.pl-prog { fill: none; stroke: var(--a1); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 8px var(--a1)); }
.pl-mark { position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); font: 600 1.25rem var(--font-mono); letter-spacing: .02em; box-shadow: 0 0 0 8px color-mix(in srgb, var(--a1) 14%, transparent), 0 20px 60px -10px var(--a1); animation: plPulse 1.6s ease-in-out infinite; }
.preloader.locked .pl-mark { animation: plPop .5s var(--spring) forwards; }
@keyframes plPulse { 50% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--a1) 6%, transparent), 0 20px 70px -10px var(--a1); } }
@keyframes plPop { to { transform: scale(1.15); background: var(--a1); color: var(--on-accent); } }
.pl-meta { position: relative; display: flex; gap: 14px; align-items: baseline; font: 500 .9rem var(--font-body); letter-spacing: -.01em; }
.pl-meta b { font: 500 .85rem var(--font-mono); color: var(--a1); min-width: 3.5ch; }
.pl-hint { position: relative; margin: 0; font: 400 .74rem var(--font-mono); color: var(--muted); letter-spacing: .06em; }
body:not(.ready) #main { opacity: 0; }
#main { transition: opacity .5s var(--ease); }
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 1001; background: linear-gradient(90deg, var(--a1), var(--a3)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--a1); }

/* ---------- Navigation: brand, floating link pill, actions ---------- */
.nav-wrap { position: fixed; inset-inline: 0; top: 0; z-index: 1000; padding: calc(env(safe-area-inset-top, 0px) + 16px) clamp(16px, 4vw, 32px) 0; transition: transform .45s var(--ease); view-transition-name: site-nav; pointer-events: none; }
.nav-wrap > * { pointer-events: auto; }
.nav-wrap.hidden { transform: translateY(-140%); }
.nav { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; pointer-events: none; }
.nav > * { pointer-events: auto; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; font-weight: 600; font-size: 1.02rem; letter-spacing: -.02em; border: 1px solid transparent; transition: background-color .35s, border-color .35s, backdrop-filter .35s; }
.nav-wrap.scrolled .brand { background: var(--glass); border-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); font: 600 .76rem var(--font-mono); letter-spacing: .02em; position: relative; transition: transform .6s var(--spring); }
.brand-mark::after { content: ""; position: absolute; right: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 0 2px var(--bg), 0 0 10px var(--a1); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
.brand-name .dot { color: var(--a1); }
.nav-links { justify-self: center; display: flex; gap: 2px; list-style: none; margin: 0; padding: 5px; position: relative; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: var(--shadow); }
.nav-links li { position: relative; z-index: 1; }
.nav-links a { display: flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--muted); transition: color .25s; position: relative; white-space: nowrap; }
.nav-links a .ic { display: none; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 8px var(--a1); }
.nav-indicator { position: absolute; z-index: 0; left: 0; top: 5px; bottom: 5px; width: 0; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--spring), width .5s var(--spring), opacity .25s; pointer-events: none; }
.nav-actions { justify-self: end; display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--text-2); flex-shrink: 0; transition: color .2s, border-color .2s, transform .4s var(--spring), background-color .2s; }
.icon-btn::after { display: none; }
.icon-btn:hover { color: var(--a1); border-color: color-mix(in srgb, var(--a1) 45%, transparent); transform: rotate(-14deg) scale(1.05); }
.nav-actions .icon-btn .ic { position: absolute; transition: transform .5s var(--ease), opacity .35s; }
[data-theme="dark"] .ic-sun, :root:not([data-theme="dark"]) .ic-moon { transform: rotate(-90deg) scale(0); opacity: 0; }
.menu-btn { display: none; }
.menu-btn:hover { transform: none; }
.menu-btn .ic-close { opacity: 0; transform: rotate(-90deg); }
.menu-btn[aria-expanded="true"] .ic-close { opacity: 1; transform: none; }
.menu-btn[aria-expanded="true"] .ic-menu { opacity: 0; transform: rotate(90deg); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem; letter-spacing: -.01em; overflow: hidden; isolation: isolate; transition: transform .35s var(--spring), box-shadow .3s, background-color .2s, color .2s, border-color .2s; will-change: transform; }
.btn-primary { color: var(--on-accent); background: var(--a1); box-shadow: 0 0 0 1px color-mix(in srgb, var(--a1) 60%, #fff) inset, 0 10px 30px -10px var(--a1); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--a1) 60%, #fff) inset, 0 16px 44px -10px var(--a1); }
.btn-primary:active { transform: scale(.97); }
.btn-neu { color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); }
.btn-neu:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--a1) 50%, var(--line-strong)); }
.btn-neu:active { transform: scale(.97); }
.btn .ic { transition: transform .35s var(--spring); }
.btn:hover .ic { transform: translateX(2px) rotate(-8deg); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.loading .ic { animation: spin 1s linear infinite; }
.spark { position: fixed; z-index: 3000; width: 5px; height: 5px; border-radius: 50%; background: var(--a3); pointer-events: none; box-shadow: 0 0 8px var(--a1); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); transition: gap .3s var(--ease), border-color .2s, color .2s; }
.link-arrow:hover { gap: 14px; border-color: var(--a1); color: var(--a1); }
.link-arrow.sm { font-size: .82rem; padding: 6px 12px; }
.center-link { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Section heads ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section.tight { padding-top: clamp(16px, 3vw, 36px); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head.left { text-align: left; margin-inline: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; font: 500 .75rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); border: 1px solid var(--line-strong); background: var(--glass); backdrop-filter: blur(8px); margin-bottom: 18px; }
.eyebrow .num { display: grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--a1); color: var(--on-accent); font-weight: 600; letter-spacing: 0; }
.eyebrow .rule, .eyebrow .ic { display: none; }
.section-head h2, .section-head h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.lead { color: var(--muted); margin: 16px auto 0; font-size: 1.08rem; max-width: 60ch; }
.section-head.left .lead { margin-left: 0; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: .84rem; font-weight: 500; color: var(--text-2); margin-bottom: 26px; border: 1px solid var(--line-strong); background: var(--glass); backdrop-filter: blur(10px); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
.hero-title { display: flex; flex-direction: column; gap: 10px; }
.hero-title .hello { font: 500 1rem var(--font-mono); color: var(--muted); }
.hero-title .name { font-size: clamp(3.2rem, 8.4vw, 6.8rem); font-weight: 650; letter-spacing: -.055em; line-height: .92; }
.hero-title .prefix { display: block; width: max-content; font: 500 .78rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--a1); border: 1px solid color-mix(in srgb, var(--a1) 40%, transparent); background: color-mix(in srgb, var(--a1) 8%, transparent); padding: 4px 10px; border-radius: 999px; margin: 0 0 16px; }
@media (max-width: 960px) { .hero-title .prefix { margin-inline: auto; } }
.hero-title .ch { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(6deg); filter: blur(8px); }
.in .ch { animation: chIn .9s var(--ease) forwards; animation-delay: calc(.2s + var(--i) * 35ms); }
@keyframes chIn { to { opacity: 1; transform: none; filter: none; } }
.hero-role { display: flex; align-items: center; gap: 10px; margin: 24px 0 16px; font: 500 clamp(1rem, 2vw, 1.15rem) var(--font-mono); color: var(--text-2); min-height: 1.8em; }
.hero-role .prompt { color: var(--a1); }
.hero-role .ic { display: none; }
.caret { width: 2px; height: 1.25em; background: var(--a1); box-shadow: 0 0 8px var(--a1); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.hero-social { display: flex; gap: 8px; flex-wrap: wrap; }
.social { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; position: relative; color: var(--muted); border: 1px solid var(--line); background: var(--surface); transition: color .2s, transform .4s var(--spring), border-color .2s, box-shadow .3s; }
.social .ic { width: 19px; height: 19px; }
.social:hover { color: var(--a1); border-color: color-mix(in srgb, var(--a1) 50%, transparent); transform: translateY(-4px) scale(1.06); box-shadow: 0 10px 24px -10px var(--a1); }
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px) scale(.95); padding: 5px 10px; border-radius: 999px; white-space: nowrap; font: 500 .72rem var(--font-body); background: var(--text); color: var(--bg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--spring); z-index: 10; }
[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* Portrait: 3D pop-out. The body sits inside the disc, the head breaks out over the top edge. */
.hero-visual { display: flex; justify-content: center; }
.hero .hero-visual { translate: 0 calc(var(--sy, 0) * .12px); }
.hero .hero-copy { translate: 0 calc(var(--sy, 0) * .05px); opacity: calc(1 - var(--sy, 0) / 1100); }
.portrait-stage { position: relative; width: min(450px, 86vw); aspect-ratio: 1 / 1.12; max-width: 100%; transition: transform .6s var(--ease); transform-style: preserve-3d; --px: 0px; --py: 0px; }
.disc-floor { position: absolute; left: 14%; right: 14%; bottom: -5%; height: 10%; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.45), transparent 70%); filter: blur(6px); }
.morph-blob, .morph-blob.disc { position: absolute; inset: 16% 7% 2% 7%; border-radius: 50%; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--a1) 55%, #fff) 0%, var(--a1) 38%, color-mix(in oklab, var(--a1) 55%, #000) 100%);
  box-shadow: 0 0 110px -24px var(--a1), 0 40px 60px -30px rgba(0,0,0,.6); animation: none; }
.disc-shine { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 2; box-shadow: inset 0 2px 1px rgba(255,255,255,.25), inset 0 0 0 1px rgba(255,255,255,.12); }
.portrait-in { position: absolute; max-width: none; z-index: 1; translate: var(--px) var(--py); transition: translate .5s var(--ease); }
.morph-blob.blob-2 { inset: 11% 2% -3% 2%; overflow: visible; background: conic-gradient(from 0deg, transparent 0 60%, var(--a1) 80%, var(--a3) 90%, transparent 100%); box-shadow: none; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); animation: spin 6s linear infinite; opacity: .9; }
.orbit-ring { position: absolute; inset: 4%; width: 92%; height: auto; overflow: visible; animation: spin 90s linear infinite reverse; }
.orbit-ring circle { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.orbit-ring .dashed { stroke: color-mix(in srgb, var(--a1) 40%, transparent); stroke-dasharray: 2 10; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .55; transform: scale(1.06); } }
.portrait { position: absolute; left: 4%; bottom: 0; width: 92%; height: auto; z-index: 3; translate: var(--px) var(--py); transition: translate .5s var(--ease); filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
.portrait, .portrait-in { animation: portraitIn 1.1s var(--ease) both .2s; }
.portrait-stage:not(.laid) .portrait, .portrait-stage:not(.laid) .portrait-in { visibility: hidden; }
@keyframes portraitIn { from { opacity: 0; filter: blur(12px); } }
.chip-float { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: .78rem; font-weight: 500; white-space: nowrap; color: var(--text); background: var(--glass); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-lift); animation: annoIn .8s var(--spring) both, bob 6s ease-in-out infinite; }
.chip-float .pad { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--a1) 16%, transparent); color: var(--a1); }
.chip-float .pad .ic { width: 14px; height: 14px; }
.chip-float .lead-line { display: none; }
.chip-float.c1 { top: 14%; left: -8%; animation-delay: .7s, 0s; }
.chip-float.c2 { top: 4%; right: 0; animation-delay: .85s, -1.5s; }
.chip-float.c3 { top: 52%; right: -10%; animation-delay: 1s, -3s; }
.chip-float.c4 { top: 64%; left: -12%; animation-delay: 1.15s, -4.5s; }
@keyframes annoIn { from { opacity: 0; transform: scale(.6); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.badge-float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); box-shadow: var(--shadow-lift); animation: bob 7s ease-in-out infinite; }
.badge-float > .ic { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--a1); color: var(--on-accent); }
.badge-float strong { display: block; font-size: 1rem; line-height: 1.1; }
.badge-float small { color: var(--muted); font-size: .72rem; }
.badge-float.b1 { bottom: 14%; left: -6%; }
.badge-float.b2 { bottom: 3%; right: -4%; animation-delay: -3s; }

/* Stats: bento cards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: clamp(40px, 6vw, 72px); }
.stat { padding: 22px; border-radius: var(--radius); display: grid; gap: 4px; overflow: hidden; }
.stat > .ic { position: absolute; right: 18px; top: 18px; width: 22px; height: 22px; color: var(--muted); transition: color .3s, transform .5s var(--spring); }
.stat:hover > .ic { color: var(--a1); transform: rotate(-12deg) scale(1.2); }
.stat b { display: block; font: 650 2.6rem/1 var(--font-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: .88rem; color: var(--muted); }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.scroll-cue { display: none; }

/* Marquee */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 45s linear infinite; }
.marquee-track.js { animation: none; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item { display: inline-flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; color: var(--muted); white-space: nowrap; transition: color .2s; }
.mq-item:hover { color: var(--text); }
.mq-item .ic { width: 20px; height: 20px; color: var(--a1); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Page hero */
.page-hero { padding: calc(var(--nav-h) + clamp(56px, 9vw, 110px)) 0 clamp(24px, 4vw, 48px); }
.page-hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.page-hero h1 { font-size: clamp(2.8rem, 7.6vw, 5.8rem); letter-spacing: -.055em; line-height: .95; }
.page-hero .lead { margin-left: 0; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.crumbs a .ic { width: 14px; height: 14px; }
.crumbs a:hover { color: var(--a1); }
.crumbs > .ic { width: 14px; height: 14px; opacity: .5; }
.page-hero-art { position: relative; display: grid; place-items: end; }
.page-num { font: 700 clamp(6rem, 14vw, 11rem)/.8 var(--font-display); letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); user-select: none; }
.page-num span { -webkit-text-stroke: 0; color: var(--a1); text-shadow: 0 0 60px color-mix(in srgb, var(--a1) 60%, transparent); }
.morph-blob.small, .ph-icon { display: none; }

/* About */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.about-photo { display: flex; justify-content: center; }
.about-photo .portrait-stage { width: min(390px, 80vw); }
.about-text { padding: clamp(24px, 4vw, 38px); border-radius: var(--radius-lg); color: var(--text-2); font-size: 1.05rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: .84rem; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); }
.tag .ic { color: var(--a1); width: 15px; height: 15px; }
.langs { display: grid; gap: 14px; margin-top: 24px; }
.lang-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lang-top > span { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.lang-top .ic { color: var(--a1); }
.lang-top small { color: var(--muted); margin-left: auto; font-size: .8rem; }
.focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mini-card { padding: 26px; border-radius: var(--radius-lg); }
.mini-card h3 { font-size: 1.12rem; margin: 20px 0 8px; }
.mini-card p { font-size: .94rem; color: var(--muted); margin: 0; }
.mc-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--a1) 12%, transparent); color: var(--a1); border: 1px solid color-mix(in srgb, var(--a1) 22%, transparent); transition: transform .5s var(--spring), background-color .3s, color .3s, box-shadow .3s; flex-shrink: 0; }
.mc-icon .ic { width: 22px; height: 22px; }
.mini-card:hover .mc-icon, .skill-card:hover .mc-icon, .skill-card.open .mc-icon, .award:hover .mc-icon, .cert:hover .mc-icon, .talk:hover .mc-icon { background: var(--a1); color: var(--on-accent); transform: rotate(-10deg) scale(1.08); box-shadow: 0 10px 24px -8px var(--a1); }
.mini-card:hover, .skill-card:hover, .award:hover, .cert:hover, .talk:hover, .tl-card:hover, .c-tile:hover, .lead-col:hover { box-shadow: var(--shadow-lift); }
.tilt { transform-style: preserve-3d; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: .76rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.chips.accent span { color: var(--a1); background: color-mix(in srgb, var(--a1) 10%, transparent); border-color: transparent; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skill-card { padding: 26px; border-radius: var(--radius-lg); overflow: hidden; }
.skill-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-right: 30px; }
.skill-top h3 { font-size: 1.06rem; }
.skill-top small { display: block; color: var(--muted); font: 400 .76rem var(--font-mono); }
.skill-card p { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.chips.tools span { transition: border-color .3s calc(var(--i, 0) * 25ms), color .3s calc(var(--i, 0) * 25ms), transform .4s var(--spring) calc(var(--i, 0) * 25ms); }
.skill-card:hover .chips.tools span, .skill-card.open .chips.tools span { border-color: color-mix(in srgb, var(--a1) 45%, transparent); color: var(--text); transform: translateY(-2px); }

/* Proof button */
.proof-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; color: var(--a1); border: 1px solid color-mix(in srgb, var(--a1) 35%, transparent); background: color-mix(in srgb, var(--a1) 10%, transparent); transition: background-color .2s, transform .3s var(--spring); }
.proof-btn:hover { background: color-mix(in srgb, var(--a1) 20%, transparent); transform: scale(1.06); }
.proof-btn .ic { width: 14px; height: 14px; }
.mini-card > .proof-btn, .skill-card > .proof-btn, .award > .proof-btn { position: absolute; top: 16px; right: 16px; z-index: 2; }
.award > .proof-btn { top: auto; bottom: 16px; }

/* Timeline */
.timeline { list-style: none; margin: 0 auto; padding: 0 0 0 34px; position: relative; max-width: 880px; }
.timeline::before { content: ""; position: absolute; left: 12px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: linear-gradient(var(--a1), color-mix(in srgb, var(--a1) 20%, transparent) 60%, transparent); }
.tl-item { position: relative; padding-left: 26px; margin-bottom: 18px; }
.tl-node { position: absolute; left: -34px; top: 24px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--a1); border: 2px solid var(--a1); box-shadow: 0 0 0 4px var(--bg), 0 0 18px -2px var(--a1); }
.tl-item.in .tl-node { animation: nodePop .6s var(--spring) both; }
@keyframes nodePop { from { transform: scale(0); } }
.tl-node .ic { width: 12px; height: 12px; }
.tl-card { padding: 24px 26px; border-radius: var(--radius-lg); }
.tl-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.chip-date { display: inline-flex; align-items: center; gap: 6px; font: 500 .76rem var(--font-mono); color: var(--muted); padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.chip-date .ic { width: 13px; height: 13px; color: var(--a1); }
.score { font: 600 .74rem var(--font-mono); padding: 4px 10px; border-radius: 999px; color: var(--on-accent); background: var(--a1); }
.tl-card h3 { font-size: 1.18rem; }
.tl-org { color: var(--muted); font-size: .92rem; margin: 4px 0 12px; }
.tl-card ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: .95rem; }
.tl-card li { margin-bottom: 4px; }
.tl-card li::marker { color: var(--a1); }
.meter { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--a1), var(--a3)); box-shadow: 0 0 12px var(--a1); transition: width 1.4s var(--ease) .3s; }
.in .meter span { width: var(--v); }

/* Certifications & talks */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.cert { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius-lg); }
.cert h3 { font-size: 1.02rem; line-height: 1.35; }
.cert p { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }
.cert-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.cert-actions:empty { display: none; }
.talks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.talk { padding: 24px; border-radius: var(--radius-lg); display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.talk h3 { margin: 4px 0; font-size: 1.04rem; line-height: 1.35; }
.talk .role { font: 500 .74rem var(--font-mono); color: var(--a1); text-transform: uppercase; letter-spacing: .04em; }
.talk .role.muted { color: var(--muted); text-transform: none; letter-spacing: 0; }
.talk p { margin: 8px 0 12px; font-size: .92rem; color: var(--muted); }

/* Projects */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 32px; padding: 6px; border-radius: 999px; width: max-content; max-width: 100%; margin-inline: auto; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); }
.filter { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--muted); transition: all .25s var(--ease); border: 0; box-shadow: none; background: none; }
.filter::after { display: none; }
.filter .ic { width: 15px; height: 15px; }
.filter .count { font: 500 .7rem var(--font-mono); opacity: .7; }
.filter:hover { color: var(--text); }
.filter.active { background: var(--text); color: var(--bg); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.project { border-radius: var(--radius-lg); padding: 10px 10px 22px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; }
.project:hover { box-shadow: var(--shadow-lift); }
.project.hide { display: none; }
.project.pop { animation: popIn .5s var(--spring) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(14px); } }
.project-art { height: 190px; border-radius: 14px; margin-bottom: 20px; position: relative; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--a1) 35%, transparent), transparent 60%), var(--surface-2); }
.project-art .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project:hover .project-art .cover { transform: scale(1.06); }
.art-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-bg path { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.art-bg circle { fill: var(--a1); }
.project:hover .art-bg path { stroke: color-mix(in srgb, var(--a1) 55%, transparent); stroke-dasharray: 8 6; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -140; } }
.big-ic { position: relative; z-index: 2; width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line-strong); color: var(--a1); box-shadow: 0 20px 40px -14px color-mix(in srgb, var(--a1) 70%, transparent); transition: transform .6s var(--spring); }
.big-ic .ic { width: 30px; height: 30px; }
.project:hover .big-ic { transform: translateY(-6px) rotate(-8deg) scale(1.06); }
.project-art:has(.cover) .big-ic { position: absolute; left: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 14px; }
.project-art:has(.cover) .big-ic .ic { width: 20px; height: 20px; }
.project-year { position: absolute; top: 12px; right: 12px; z-index: 2; font: 500 .72rem var(--font-mono); padding: 4px 10px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: none; }
.project-year::after { display: none; }
.project h3, .project .kicker, .project p, .project .chips, .project .card-foot { margin-left: 12px; margin-right: 12px; }
.project h3 { font-size: 1.35rem; margin-bottom: 4px; }
.project .kicker, .project-detail .kicker { font: 500 .8rem var(--font-mono); color: var(--a1); margin-bottom: 10px; }
.project p { color: var(--muted); font-size: .94rem; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .86rem; font-weight: 600; }
.card-foot .more { display: inline-flex; align-items: center; gap: 6px; transition: gap .3s var(--ease), color .2s; }
.project:hover .card-foot .more { gap: 12px; color: var(--a1); }
.proof-count { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 500 .78rem var(--font-mono); }

/* Publications */
.pubs { display: grid; gap: 12px; max-width: 980px; margin: 0 auto; }
.pub { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: start; padding: 24px; border-radius: var(--radius-lg); }
.pub:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.pub-num { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--a1) 12%, transparent); color: var(--a1); }
.pub-num .ic { width: 22px; height: 22px; }
.pub h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.35; }
.pub .venue { color: var(--muted); font-size: .9rem; margin: 8px 0; }
.pub .venue .ic { display: none; }
.pub .authors { font-size: .86rem; color: var(--text-2); margin: 0 0 12px; }
.pub .authors b { color: var(--a1); font-weight: 600; }
.pub-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pub-link { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--text-2); transition: all .4s var(--spring); }
.pub-link:hover { background: var(--a1); color: var(--on-accent); border-color: var(--a1); transform: rotate(45deg) scale(1.08); box-shadow: 0 10px 24px -8px var(--a1); }
.scholar-cta { max-width: 980px; margin: 24px auto 0; padding: 22px 26px; border-radius: var(--radius-lg); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.scholar-cta > div { flex: 1; min-width: 200px; }
.scholar-cta h3 { font-size: 1.08rem; }
.scholar-cta p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.sc-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: #4285f4; color: #fff; box-shadow: 0 10px 24px -8px #4285f4; }
.sc-icon .ic { width: 24px; height: 24px; }

/* Achievements */
.awards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.award { padding: 24px 24px 56px; border-radius: var(--radius-lg); overflow: hidden; }
.award .mc-icon { margin-bottom: 16px; }
.award.gold .mc-icon { background: color-mix(in srgb, var(--a3) 18%, transparent); color: var(--accent-3); border-color: color-mix(in srgb, var(--a3) 30%, transparent); }
.award h3 { font-size: 1.02rem; margin-bottom: 6px; line-height: 1.3; }
.award p { font-size: .88rem; color: var(--muted); margin: 0; }
.award .yr { position: absolute; top: 20px; right: 20px; font: 500 .74rem var(--font-mono); color: var(--muted); }
.lead-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-cols.single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.lead-col { padding: 26px; border-radius: var(--radius-lg); }
.lead-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 14px; }
.lead-col h3 .ic { color: var(--a1); }
.role-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.role-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 10px; border-radius: 12px; transition: background-color .2s, transform .3s var(--ease); }
.role-list li:hover { background: var(--surface-2); transform: translateX(4px); }
.role-list .ri { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--a1) 12%, transparent); color: var(--a1); margin-top: 2px; }
.role-list .ri .ic { width: 15px; height: 15px; }
.role-list strong { display: block; font-size: .96rem; font-weight: 600; }
.role-list span { display: block; font-size: .86rem; color: var(--muted); }
.role-list em { font-style: normal; font: 500 .72rem var(--font-mono); color: var(--a1); }

/* CTA band */
.cta-band { overflow: hidden; border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-blob { position: absolute; inset: auto -100px -160px auto !important; width: 420px; height: 420px; border-radius: 50% !important; background: radial-gradient(circle, var(--a1), transparent 65%) !important; opacity: .4; filter: blur(20px); animation: breathe 6s ease-in-out infinite !important; box-shadow: none !important; }
.cta-copy { position: relative; }
.cta-copy h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
.cta-copy .lead { margin-left: 0; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }

/* Contact */
.contact-hero { padding: calc(var(--nav-h) + clamp(40px, 6vw, 70px)) 0 20px; }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.contact-visual { position: relative; display: flex; justify-content: center; }
.contact-visual .portrait-stage { width: min(430px, 82vw); }
.orbit-icons { position: absolute; inset: 0; pointer-events: none; animation: spin 50s linear infinite; }
.oi { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; display: grid; place-items: center; color: var(--a1); background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lift); --r: min(232px, 44vw);
  transform: rotate(calc(360deg / var(--n) * var(--k))) translate(var(--r)) rotate(calc(-360deg / var(--n) * var(--k))); }
.oi::after { display: none; }
.oi .ic { width: 19px; height: 19px; animation: spin 50s linear infinite reverse; }
.contact-main .section-head { margin-bottom: 26px; }
.contact-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.c-tile { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius); }
.c-tile-link { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.c-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--a1) 12%, transparent); color: var(--a1); flex-shrink: 0; transition: transform .5s var(--spring), background-color .3s, color .3s, box-shadow .3s; }
.c-tile:hover .c-icon { transform: rotate(-10deg) scale(1.08); background: var(--a1); color: var(--on-accent); box-shadow: 0 10px 24px -8px var(--a1); }
.c-icon .ic { width: 20px; height: 20px; }
.c-text { min-width: 0; }
.c-text small { display: block; color: var(--muted); font-size: .74rem; font-weight: 500; }
.c-text b { display: block; font-size: .94rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn, .go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); background: var(--surface); flex-shrink: 0; transition: color .2s, transform .3s var(--spring); }
.go { border: 0; background: none; }
.c-tile:hover .go { color: var(--a1); transform: rotate(45deg); }
.copy-btn:hover { color: var(--a1); transform: scale(1.1); }
.copy-btn.copied { color: #22c55e; }
.contact-form { max-width: 880px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); display: grid; gap: 14px; }
.form-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.form-head h2 { font-size: 1.6rem; }
.form-head p { margin: 2px 0 0; color: var(--muted); font-size: .94rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; padding: 24px 16px 10px; border-radius: 14px; border: 1px solid var(--line-strong); font: inherit; color: var(--text); background: var(--bg); resize: vertical; transition: border-color .2s, box-shadow .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 18%, transparent); }
.field label { position: absolute; left: 16px; top: 17px; display: flex; align-items: center; gap: 8px; color: var(--muted); pointer-events: none; font-size: .95rem; transition: all .25s var(--ease); }
.field label .ic { width: 15px; height: 15px; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 6px; font-size: .72rem; color: var(--a1); }
.field input:focus + label .ic, .field input:not(:placeholder-shown) + label .ic, .field textarea:focus + label .ic, .field textarea:not(:placeholder-shown) + label .ic { display: none; }
.field.error input, .field.error textarea { border-color: #ef4444; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .84rem; color: var(--muted); margin: 0; text-align: center; }
.form-note.err { color: #ef4444; }
.form-note.ok { color: #22c55e; }

/* Footer */
.footer { margin-top: 40px; padding: 56px 0 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 2fr auto; gap: 30px; align-items: start; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin: 12px 0 0; }
.footer-clock { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font: 500 .78rem var(--font-mono); color: var(--text-2); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); }
.footer-clock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-nav a { color: var(--muted); font-size: .93rem; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-social { display: flex; gap: 6px; flex-wrap: wrap; }
.fs-link { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); transition: color .2s, transform .4s var(--spring), border-color .2s; }
.fs-link:hover { color: var(--a1); border-color: color-mix(in srgb, var(--a1) 50%, transparent); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); margin-top: 36px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; color: var(--muted); font-size: .86rem; }
.admin-link { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); opacity: .4; transition: opacity .2s, color .2s; }
.admin-link:hover { opacity: 1; color: var(--a1); }
.to-top { right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; z-index: 900; color: var(--text); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .3s, transform .4s var(--spring); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.toast { left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 3000; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 999px; font-size: .88rem; font-weight: 500; transition: all .4s var(--spring); background: var(--text); color: var(--bg); border: 0; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.preview-bar { left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 950; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--on-accent); background: var(--a1); border: 0; box-shadow: 0 10px 30px -10px var(--a1); }
.preview-bar a { color: inherit; text-decoration: underline; }

/* Modal / lightbox */
.modal { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .3s var(--ease); }
.modal.show { opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal-panel { width: min(920px, 100%); max-height: calc(100svh - 32px); overflow: auto; border-radius: var(--radius-lg); background: var(--surface); transform: translateY(24px) scale(.97); transition: transform .5s var(--spring); }
.modal.show .modal-panel { transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 5; }
.lightbox { padding: 20px; }
.lb-head { display: flex; align-items: center; gap: 10px; padding-right: 56px; margin-bottom: 14px; font-weight: 600; color: var(--a1); }
.lb-title { color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { font: 500 .8rem var(--font-mono); color: var(--muted); }
.lb-stage { position: relative; display: flex; align-items: center; gap: 12px; }
.lb-stage figure { margin: 0; flex: 1; min-width: 0; text-align: center; }
.lb-img { max-height: 62svh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 14px; opacity: 0; transform: scale(.97); transition: opacity .35s, transform .45s var(--spring); }
.lb-img.in { opacity: 1; transform: none; }
.lb-stage figure { position: relative; min-height: 160px; }
.lightbox.loading .lb-stage figure::before { content: ""; position: absolute; left: 50%; top: 80px; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--a1) 25%, transparent); border-top-color: var(--a1); animation: spin .8s linear infinite; }
.lightbox.failed .lb-stage figure::before { content: "This photo couldn't be loaded."; position: absolute; left: 0; right: 0; top: 70px; color: var(--muted); font-size: .9rem; }
.lb-cap { margin-top: 12px; color: var(--text-2); font-size: .93rem; min-height: 1.4em; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 4px 4px; justify-content: center; }
.lb-thumb { width: 62px; height: 62px; border-radius: 12px; overflow: hidden; flex-shrink: 0; opacity: .5; border: 2px solid transparent; transition: opacity .2s, border-color .2s, transform .3s var(--spring); }
.lb-thumb.active, .lb-thumb:hover { opacity: 1; border-color: var(--a1); transform: translateY(-2px); }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-detail .pd-cover { position: relative; height: 250px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--a1) 40%, transparent), transparent 60%), var(--surface-2); }
.project-detail .pd-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-cover:has(img) .big-ic { position: absolute; left: 20px; bottom: 16px; }
.pd-body { padding: clamp(22px, 4vw, 36px); }
.pd-body h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 6px 0; }
.pd-body > p { color: var(--text-2); }
.pd-body .btn { margin-top: 22px; }
.pd-sub { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 26px 0 12px; }
.pd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pd-thumb { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; text-align: left; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pd-thumb:hover img { transform: scale(1.08); }
.pd-thumb span { position: absolute; inset: auto 0 0; padding: 18px 10px 8px; font-size: .76rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }

/* Custom sections */
.custom-text { border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 38px); color: var(--text-2); font-size: 1.05rem; max-width: 900px; margin: 0 auto; }
.custom-text.has-img { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 28px; align-items: center; max-width: none; }
.ct-img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; }
.custom-text .btn { margin-top: 8px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); text-align: left; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item:hover img { transform: scale(1.07); }
.g-item span { position: absolute; inset: auto 0 0; padding: 28px 14px 12px; color: #fff; font-size: .86rem; font-weight: 500; background: linear-gradient(transparent, rgba(0,0,0,.75)); transform: translateY(8px); opacity: .85; transition: transform .4s var(--ease), opacity .4s; }
.g-item:hover span { transform: none; opacity: 1; }
.custom-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; }
.mc-img { width: calc(100% + 20px); margin: -10px -10px 4px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.mini-card .mc-sub { font: 500 .76rem var(--font-mono); color: var(--a1); margin: -2px 0 8px; }
.mini-card .chips { margin-top: 12px; }
.mini-card .link-arrow { margin-top: 14px; }
.custom-list { max-width: 820px; margin: 0 auto; }
.tl-text { color: var(--text-2); font-size: .95rem; margin: 0 0 8px; }
.tl-card .link-arrow { margin-top: 10px; }

/* 404 */
.not-found { min-height: 80vh; display: grid; place-items: center; text-align: center; padding-top: var(--nav-h); }
.nf-code { display: flex; align-items: center; justify-content: center; gap: 14px; font: 700 clamp(5rem, 18vw, 11rem)/1 var(--font-display); letter-spacing: -.07em; }
.nf-chip { width: .8em; height: .8em; border-radius: 50% !important; display: grid; place-items: center; color: var(--on-accent); background: var(--a1) !important; box-shadow: 0 0 80px -10px var(--a1) !important; border: 0 !important; }
.nf-chip::after { display: none; }
.nf-chip .ic { width: 45%; height: 45%; animation: spin 6s linear infinite; }
.not-found h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin: 20px 0 6px; }
.not-found .btn { margin-top: 24px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }
.reveal[data-delay="5"] { transition-delay: .35s; }
.tilt.in { transition: opacity .9s var(--ease), filter .9s var(--ease), transform .2s ease-out, box-shadow .4s, border-color .3s; }

/* View transitions */
.theme-vt::view-transition-old(root), .theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { animation: vtOut .25s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .45s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; filter: blur(4px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links a { padding: 8px 10px; font-size: .86rem; }
}
@media (max-width: 960px) {
  :root { --nav-h: 66px; }
  .menu-btn { display: grid; }
  .nav { position: relative; grid-template-columns: 1fr auto; }
  .nav-links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lift); opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none !important; transition: all .35s var(--spring); }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto !important; }
  .nav-indicator { display: none; }
  .brand { background: var(--glass); border-color: var(--line); backdrop-filter: blur(16px); }
  .nav-links a { padding: 13px 16px; font-size: 1rem; }
  .nav-links a .ic { display: inline; }
  .nav-links a.active::before { display: none; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .hero .portrait-stage { width: min(330px, 74vw); }
  .hero-sub { margin-inline: auto; }
  .hero-title, .hero-role, .hero-cta, .hero-social { justify-content: center; align-items: center; }
  .about-grid, .contact-layout, .lead-cols, .cta-band, .custom-text.has-img { grid-template-columns: 1fr; }
  .talks-grid { grid-template-columns: 1fr; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-art { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-visual .portrait-stage { width: min(310px, 68vw); }
  .oi { --r: min(185px, 40vw); }
}
@media (max-width: 600px) {
  .skills-grid, .projects-grid, .contact-tiles, .form-row, .cert-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 18px; }
  .stat b { font-size: 2rem; }
  .pub { grid-template-columns: 1fr; gap: 14px; }
  .pub-actions { flex-direction: row; justify-content: flex-start; }
  .chip-float { font-size: .7rem; padding: 4px 9px 4px 4px; }
  .chip-float .pad { width: 22px; height: 22px; }
  .chip-float.c1 { left: -2%; } .chip-float.c2 { right: -2%; } .chip-float.c3 { right: -4%; } .chip-float.c4 { left: -4%; }
  .hero-cta .btn { flex: 1 1 auto; }
  .brand-name { display: none; }
  .talk, .cert { grid-template-columns: 1fr; flex-direction: column; }
  .oi { width: 36px; height: 36px; margin: -18px; }
  .oi .ic { width: 16px; height: 16px; }
  .lb-nav { position: absolute; z-index: 3; top: 40%; }
  .lb-nav.prev { left: 4px; } .lb-nav.next { right: 4px; }
  .custom-cards { grid-template-columns: 1fr; }
  .filters { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .hero-title .ch { opacity: 1; transform: none; filter: none; }
  @view-transition { navigation: none; }
}
