/* Visual system: editorial + kinetic, dark-first. */

:root {
  --bg0: #07070b;
  --bg1: #0b0c12;
  --fg0: rgba(255, 255, 255, 0.92);
  --fg1: rgba(255, 255, 255, 0.72);
  --fg2: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.10);
  --line2: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.06);
  --glass2: rgba(255, 255, 255, 0.10);

  --accent: #b6ff6a;
  --accent2: #7c6cff;
  --warn: #ffb37c;

  --shadow: 0 12px 60px rgba(0, 0, 0, 0.45);
  --shadow2: 0 18px 80px rgba(0, 0, 0, 0.55);

  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 26px;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", ui-serif, Georgia, serif;

  --maxw: 1180px;
  --pad: clamp(18px, 3.3vw, 34px);

  --easeOut: cubic-bezier(0.16, 1, 0.3, 1);
  --easeIn: cubic-bezier(0.7, 0, 0.84, 0);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg0: #f7f6fb;
    --bg1: #ffffff;
    --fg0: rgba(12, 12, 18, 0.92);
    --fg1: rgba(12, 12, 18, 0.74);
    --fg2: rgba(12, 12, 18, 0.54);
    --line: rgba(12, 12, 18, 0.12);
    --line2: rgba(12, 12, 18, 0.08);
    --glass: rgba(12, 12, 18, 0.04);
    --glass2: rgba(12, 12, 18, 0.06);
    --shadow: 0 12px 60px rgba(0, 0, 0, 0.12);
    --shadow2: 0 18px 80px rgba(0, 0, 0, 0.14);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--fg0);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Combine magnetic + hover pop without transform conflicts */
[data-magnetic] {
  --magX: 0px;
  --magY: 0px;
  --popY: 0px;
  --popScale: 1;
  transform: translate(var(--magX), var(--magY)) translateY(var(--popY)) scale(var(--popScale));
  will-change: transform;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(182, 255, 106, 0.25);
}

.mono {
  font-family: var(--mono);
  letter-spacing: -0.02em;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(124, 108, 255, 0.13), transparent 62%),
    radial-gradient(860px 520px at 92% 18%, rgba(182, 255, 106, 0.10), transparent 62%),
    radial-gradient(880px 620px at 54% 92%, rgba(255, 179, 124, 0.07), transparent 62%),
    radial-gradient(800px 480px at var(--bx, 50%) var(--by, 30%), rgba(255, 255, 255, 0.06), transparent 65%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  pointer-events: none;
}

.backdrop > #aura {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

/* Interactivity: 3D tilt */
.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt .tilt-pop {
  transform: translateZ(18px);
}

@media (hover: hover) and (pointer: fine) {
  .tilt {
    transition: box-shadow 240ms var(--easeOut), border-color 240ms var(--easeOut);
  }
  .tilt:hover {
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
    border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px var(--pad);
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg1) 62%, transparent);
  border-bottom: 1px solid var(--line2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.04em;
  background:
    radial-gradient(16px 16px at 30% 30%, rgba(182, 255, 106, 0.95), transparent 70%),
    radial-gradient(18px 18px at 70% 70%, rgba(124, 108, 255, 0.85), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.brand-text {
  font-weight: 650;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  gap: 18px;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  color: var(--fg1);
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 240ms var(--easeOut), border-color 240ms var(--easeOut), color 240ms var(--easeOut);
}

.nav-link:hover {
  color: var(--fg0);
  background: var(--glass);
  border-color: var(--line2);
}

.nav-link.is-active {
  color: var(--fg0);
  background:
    radial-gradient(120px 60px at 20% 10%, rgba(182, 255, 106, 0.18), transparent 60%),
    radial-gradient(140px 70px at 85% 80%, rgba(124, 108, 255, 0.18), transparent 65%),
    color-mix(in srgb, var(--glass) 78%, transparent);
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line2));
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kbd {
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line2);
  background: linear-gradient(180deg, var(--glass2), var(--glass));
  padding: 2px 6px;
  border-radius: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  user-select: none;
  transition: transform 220ms var(--easeOut), background 220ms var(--easeOut), border-color 220ms var(--easeOut);
}

.btn:hover {
  --popY: -1px;
  background: color-mix(in srgb, var(--glass) 70%, rgba(182, 255, 106, 0.08));
  border-color: var(--line);
}

.btn:active {
  --popY: 0px;
  --popScale: 0.99;
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
  border-color: var(--line2);
}

.btn-primary {
  background:
    radial-gradient(40px 40px at 20% 30%, rgba(182, 255, 106, 0.75), transparent 70%),
    radial-gradient(50px 50px at 70% 65%, rgba(124, 108, 255, 0.65), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.btn-label {
  display: none;
}

@media (min-width: 860px) {
  .btn-label {
    display: inline;
  }
}

.btn-icon {
  font-family: var(--mono);
  opacity: 0.9;
}

main {
  position: relative;
  z-index: 2;
}

.section {
  width: min(var(--maxw), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: clamp(56px, 7.5vw, 100px) 0;
}

.hero {
  padding-top: clamp(56px, 7vw, 92px);
}

.hero-grid {
  display: grid;
  gap: clamp(18px, 2.8vw, 28px);
  grid-template-columns: 1fr;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg2);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(182, 255, 106, 0.12);
}

.title {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  font-size: clamp(44px, 5.8vw, 74px);
}

.title-amp {
  font-weight: 600;
  opacity: 0.45;
}

.title-accent {
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent2) 80%, white 10%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 18px 0 0;
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.65;
  color: var(--fg1);
  max-width: 62ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--glass) 70%, transparent);
  color: var(--fg1);
  font-size: 13px;
  letter-spacing: -0.01em;
}

.hero-panel {
  position: relative;
}

.hero-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(182, 255, 106, 0.10), transparent 55%),
    radial-gradient(700px 420px at 90% 0%, rgba(124, 108, 255, 0.14), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--glass) 70%, transparent), color-mix(in srgb, var(--glass2) 70%, transparent));
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 10px;
  border-bottom: 1px solid var(--line2);
}

.signal {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.sig-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
}

.sig-dot:nth-child(1) {
  background: rgba(182, 255, 106, 0.55);
}
.sig-dot:nth-child(2) {
  background: rgba(255, 179, 124, 0.45);
}
.sig-dot:nth-child(3) {
  background: rgba(124, 108, 255, 0.55);
}

.hero-card-body {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat {
  border-radius: 18px;
  border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--glass) 70%, transparent);
  padding: 16px 14px;
}

.stat-num {
  margin: 0;
  font-family: var(--serif);
  font-weight: 820;
  letter-spacing: -0.04em;
  font-size: 28px;
}

.stat-label {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg2);
}

.hero-card-bottom {
  padding: 0 18px 18px;
  display: grid;
  gap: 10px;
}

.pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: border-color 220ms var(--easeOut), background 220ms var(--easeOut), transform 220ms var(--easeOut);
}

.pill:hover {
  --popY: -1px;
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.16);
}

.pill-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg2);
  text-transform: lowercase;
}

.pill-value {
  font-size: 12px;
  color: var(--fg1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-hint {
  margin: 14px 0 0;
  color: var(--fg2);
  font-size: 12px;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 780;
  letter-spacing: -0.04em;
  font-size: clamp(28px, 3.5vw, 42px);
}

.section-sub {
  margin: 0;
  max-width: 72ch;
  color: var(--fg1);
  line-height: 1.6;
}

.two-col {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

.grid-3 {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.wide {
  margin-top: 18px;
}

.card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(182, 255, 106, 0.08), transparent 60%),
    radial-gradient(800px 520px at 100% 10%, rgba(124, 108, 255, 0.10), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--glass) 70%, transparent), color-mix(in srgb, var(--glass2) 70%, transparent));
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.4vw, 22px);
  overflow: hidden;
  position: relative;
}

.hover-glow {
  transition: transform 240ms var(--easeOut), border-color 240ms var(--easeOut), background 240ms var(--easeOut);
}

.hover-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(360px 160px at var(--mx, 50%) var(--my, 50%), rgba(182, 255, 106, 0.28), transparent 65%),
    radial-gradient(320px 180px at calc(var(--mx, 50%) + 90px) calc(var(--my, 50%) - 40px), rgba(124, 108, 255, 0.26), transparent 70%);
  opacity: 0;
  transition: opacity 320ms var(--easeOut);
  pointer-events: none;
}

.hover-glow:hover {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
}
.hover-glow:hover::before {
  opacity: 1;
}

.h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.p {
  margin: 0;
  color: var(--fg1);
  line-height: 1.7;
}

.divider {
  height: 1px;
  background: var(--line2);
  margin: 18px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--fg2);
}

.meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--fg2);
  font-size: 13px;
}

.sep {
  opacity: 0.5;
}

.link {
  color: var(--fg0);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  opacity: 0.9;
}

.link:hover {
  opacity: 1;
}

.marquee {
  overflow: hidden;
  border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--glass) 70%, transparent);
  border-radius: 18px;
  padding: 14px 0;
}

.marquee-track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  padding-left: 16px;
  animation: marquee 22s linear infinite;
  color: var(--fg2);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.cv-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--glass) 60%, transparent);
  margin-bottom: 14px;
}

.cv-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.seg {
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--fg1);
  cursor: pointer;
  transition: background 220ms var(--easeOut), border-color 220ms var(--easeOut), color 220ms var(--easeOut);
}

.seg.is-active {
  background: color-mix(in srgb, var(--glass2) 70%, transparent);
  border-color: var(--line2);
  color: var(--fg0);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: color-mix(in srgb, var(--accent) 14%, var(--line));
  }
}

.cv-view {
  display: none;
}
.cv-view.is-active {
  display: block;
}

.timeline {
  display: grid;
  gap: 12px;
}

.t-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--glass) 72%, transparent);
  padding: 16px 16px;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.t-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px 160px at 20% 0%, rgba(182, 255, 106, 0.10), transparent 65%);
  opacity: 0.85;
  pointer-events: none;
}

.t-role {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.t-role h4 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.t-when {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg2);
}

.t-where {
  position: relative;
  margin: 0;
  color: var(--fg1);
  line-height: 1.6;
}

/* (legacy) timeline summary line removed; keep class harmless if present */
.t-where:empty {
  display: none;
}

.t-bullets {
  position: relative;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--fg1);
  line-height: 1.6;
}

.t-item.is-collapsible {
  cursor: pointer;
}

.t-item.is-collapsible .t-bullets {
  max-height: 520px;
  overflow: hidden;
  transition: max-height 320ms var(--easeOut);
}

.t-item.is-collapsible .t-bullets li {
  display: none;
}

.t-item.is-collapsible.is-open .t-bullets {
  max-height: 520px;
}

.t-item.is-collapsible.is-open .t-bullets li {
  display: list-item;
}

.t-item.is-collapsible::after {
  content: "↕";
  position: absolute;
  right: 14px;
  top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg2);
  opacity: 0.7;
}

.t-item.is-collapsible.is-open::after {
  content: "↥";
}

.t-bullets li {
  margin: 6px 0;
}

.md {
  color: var(--fg1);
  line-height: 1.7;
}

.md h1,
.md h2,
.md h3,
.md h4 {
  font-family: var(--serif);
  letter-spacing: -0.03em;
  color: var(--fg0);
}

.md h2 {
  font-size: 20px;
  margin: 18px 0 10px;
}
.md h3 {
  font-size: 16px;
  margin: 16px 0 8px;
}

.md ul {
  margin: 10px 0 0;
  padding-left: 18px;
}
.md li {
  margin: 6px 0;
}

.md a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--glass) 70%, transparent);
  transition: transform 220ms var(--easeOut), border-color 220ms var(--easeOut), background 220ms var(--easeOut);
}

.contact-link:hover {
  --popY: -1px;
  border-color: var(--line);
  background: color-mix(in srgb, var(--glass2) 70%, transparent);
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-label {
  font-size: 12px;
  color: var(--fg2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.input {
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--glass) 70%, transparent);
  padding: 12px 14px;
  outline: none;
  transition: border-color 220ms var(--easeOut), background 220ms var(--easeOut);
}

.input:focus {
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  background: color-mix(in srgb, var(--glass2) 60%, transparent);
}

.fineprint {
  margin: 0;
  color: var(--fg2);
  font-size: 12px;
}

.footer {
  width: min(var(--maxw), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 26px 0 46px;
  border-top: 1px solid var(--line2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  z-index: 60;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--bg1) 76%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  color: var(--fg1);
  pointer-events: none;
  transition: opacity 220ms var(--easeOut), transform 220ms var(--easeOut);
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.palette {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}

.palette.is-on {
  display: block;
}

.palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.palette-dialog {
  position: absolute;
  left: 50%;
  top: 12vh;
  transform: translateX(-50%);
  width: min(640px, calc(100% - var(--pad) * 2));
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(800px 380px at 10% 0%, rgba(182, 255, 106, 0.10), transparent 60%),
    radial-gradient(760px 440px at 100% 0%, rgba(124, 108, 255, 0.14), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg1) 72%, transparent), color-mix(in srgb, var(--bg1) 88%, transparent));
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.palette-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line2);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--glass) 70%, transparent);
  cursor: pointer;
}

.palette-list {
  display: grid;
  padding: 14px;
  gap: 10px;
}

.palette-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--glass) 70%, transparent);
  cursor: pointer;
  transition: transform 220ms var(--easeOut), border-color 220ms var(--easeOut), background 220ms var(--easeOut);
}

.palette-item:hover {
  --popY: -1px;
  border-color: var(--line);
  background: color-mix(in srgb, var(--glass2) 70%, transparent);
}

.palette-hint {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--fg2);
  font-size: 12px;
}

/* Cursor */
.cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  display: none;
}

@media (pointer: fine) {
  .cursor {
    display: block;
  }
}

.cursor-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.78);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(2px);
}

.cursor.is-hover .cursor-ring {
  border-color: rgba(182, 255, 106, 0.42);
  box-shadow: 0 0 0 10px rgba(182, 255, 106, 0.07);
}

/* Reveal base (GSAP will animate; keep reasonable fallback) */
.reveal {
  opacity: 0.001;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee-track {
    animation: none;
  }
  .reveal {
    transform: none;
    opacity: 1;
  }
  .btn,
  .pill,
  .palette-item,
  .contact-link,
  .hover-glow {
    transition: none !important;
  }
}

@media print {
  :root {
    --bg0: #ffffff;
    --bg1: #ffffff;
    --fg0: rgba(0, 0, 0, 0.92);
    --fg1: rgba(0, 0, 0, 0.75);
    --fg2: rgba(0, 0, 0, 0.55);
    --line: rgba(0, 0, 0, 0.12);
    --line2: rgba(0, 0, 0, 0.08);
    --glass: rgba(0, 0, 0, 0.02);
    --glass2: rgba(0, 0, 0, 0.04);
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .backdrop,
  .cursor,
  .palette,
  .toast {
    display: none !important;
  }

  .topbar {
    position: static;
    border-bottom: 1px solid var(--line);
  }

  .nav,
  #cmdk,
  .cv-switch,
  .cv-actions,
  .hero-cta,
  .chips,
  .marquee,
  .footer a {
    display: none !important;
  }

  .section {
    padding: 18px 0 !important;
  }

  .card,
  .hero-card,
  .t-item {
    box-shadow: none !important;
  }

  .cv-view {
    display: none !important;
  }

  /* Print full CV by default */
  #cvFull {
    display: block !important;
  }
  #cvFull.cv-view {
    display: block !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

