:root {
  --container: 1180px;
  --bg: #f4efe5;
  --text: #241f19;
  --text-soft: #5e554c;
  --panel: rgba(255, 252, 247, 0.86);
  --panel-strong: rgba(255, 252, 247, 0.96);
  --border: rgba(40, 34, 28, 0.18);
  --shadow: 0 24px 70px rgba(36, 28, 15, 0.12);
  --display-font: 'Syne', 'Manrope', sans-serif;
  --body-font: 'Manrope', 'Inter', sans-serif;
  --accent-font: 'Caveat', cursive;
  --accent: #171412;
  --accent-2: #5d544a;
  --accent-3: #e8decf;
  --button-bg: #14110f;
  --button-text: #fff8f0;
  --button-ghost: rgba(20, 17, 15, 0.06);
  --nav-bg: rgba(255, 249, 239, 0.82);
  --nav-border: rgba(38, 31, 24, 0.2);
  --badge-bg: rgba(255, 255, 255, 0.6);
  --project-a: linear-gradient(135deg, #14110f 0%, #6d5d4e 55%, #e6dac8 100%);
  --project-b: linear-gradient(135deg, #fbf3e6 0%, #dbd1c1 45%, #1b1715 100%);
  --project-c: linear-gradient(135deg, #ece4d8 0%, #f8f5ef 40%, #a39a8c 100%);
  --grid-line: rgba(38, 32, 25, 0.08);
  --noise-opacity: 0.22;
  --hero-overlay: radial-gradient(circle at 15% 15%, rgba(255,255,255,0.8), transparent 35%), radial-gradient(circle at 85% 25%, rgba(193, 177, 156, 0.35), transparent 26%), radial-gradient(circle at 50% 100%, rgba(154, 141, 123, 0.18), transparent 30%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  transition: background 0.85s ease, color 0.55s ease, font-family 0.45s ease;
}
body.menu-open { overflow: hidden; }
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  transition: opacity 0.7s ease, transform 0.8s ease, background 0.8s ease, filter 0.8s ease;
}
body::before {
  background: var(--hero-overlay);
  opacity: 1;
}
body::after {
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.45;
}

.paper-noise,
.page-lines,
.site-header,
.nav-shell,
.brand,
.brand-mark,
.nav,
.nav a,
.menu-toggle,
.menu-toggle span,
.sketch-panel,
.theme-card,
.theme-switch,
.hero-grid,
.hero-copy,
.hero-art,
.window-card,
.window-top span,
.art-blob,
.art-line,
.floating-stamp,
.floating-scribble,
.btn,
.note-card,
.about-grid,
.projects-grid,
.project-card,
.project-preview,
.project-preview::before,
.project-preview::after,
.skills-grid,
.skill-card,
.contact-panel,
.resume-sheet,
.resume-entry,
.back-link,
.footer-shell,
.timeline-mark,
.theme-meta-card,
.resume-chip-wrap span {
  transition:
    background 0.6s ease,
    color 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.6s ease,
    border-radius 0.6s ease,
    transform 0.65s ease,
    opacity 0.45s ease,
    filter 0.6s ease,
    backdrop-filter 0.55s ease,
    letter-spacing 0.45s ease,
    clip-path 0.55s ease;
}

body.theme-morphing .hero-copy,
body.theme-morphing .hero-art,
body.theme-morphing .section-head,
body.theme-morphing .sketch-panel,
body.theme-morphing .project-card,
body.theme-morphing .skill-card,
body.theme-morphing .contact-panel,
body.theme-morphing .resume-sheet {
  opacity: 0.72;
  transform: translateY(10px) scale(0.985);
  filter: blur(5px);
}

.container { width: min(calc(100% - 36px), var(--container)); margin: 0 auto; }
.section { padding: 56px 0; position: relative; }
a { color: inherit; }

.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.48) 0.7px, transparent 0.9px),
    radial-gradient(circle at 80% 35%, rgba(255,255,255,0.3) 0.7px, transparent 0.9px),
    radial-gradient(circle at 32% 74%, rgba(255,255,255,0.36) 0.8px, transparent 1px);
  background-size: 24px 24px, 34px 34px, 43px 43px;
  z-index: -1;
}

.page-lines {
  position: fixed;
  pointer-events: none;
  border: 1.5px solid rgba(52, 45, 39, 0.13);
  filter: blur(0.2px);
  z-index: -2;
}
.page-lines-1 {
  width: 280px;
  height: 280px;
  right: -88px;
  top: 90px;
  border-radius: 44% 56% 42% 58% / 52% 46% 54% 48%;
  animation: orbitOne 22s linear infinite;
}
.page-lines-2 {
  width: 220px;
  height: 220px;
  left: -62px;
  bottom: 94px;
  border-radius: 58% 42% 56% 44% / 47% 59% 41% 53%;
  animation: orbitTwo 18s linear infinite reverse;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px 0 0;
}
.nav-shell {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  background: var(--badge-bg);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.1;
}
.brand-copy strong { font-size: 0.98rem; text-transform: lowercase; word-break: break-word; }
.brand-copy small { color: var(--text-soft); font-size: 0.74rem; }

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px 24px;
  min-width: 0;
}
.nav a,
.project-links a,
.contact-list a,
.footer-shell a,
.back-link {
  text-decoration: none;
  position: relative;
}
.nav a::after,
.project-links a::after,
.contact-list a::after,
.footer-shell a::after,
.back-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  opacity: 0.5;
}
.nav a:hover::after,
.project-links a:hover::after,
.contact-list a:hover::after,
.footer-shell a:hover::after,
.back-link:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  padding: 0;
  background: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 6px auto;
}

.sketch-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  isolation: isolate;
}

.eyebrow,
.sketch-tag,
.note-label,
.project-type,
.theme-card-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sketch-tag {
  padding: 10px 16px;
  background: var(--badge-bg);
  border: 1px solid var(--border);
}

.hero { padding-top: 52px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: 38px;
}
.hero-copy,
.hero-art { position: relative; }
.hero-copy h1,
.section-head h2,
.resume-card h2,
.contact-panel h2,
.resume-sheet h1 {
  margin: 16px 0 14px;
  font-family: var(--display-font);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.hero-copy h1 { font-size: clamp(3rem, 7vw, 6.2rem); max-width: 12ch; }
.hero-text,
.section-head p,
.resume-intro,
.info-card p,
.project-body p,
.skill-card p,
.timeline-item p,
.contact-panel p,
.resume-sheet p,
.resume-entry p,
.resume-columns li {
  color: var(--text-soft);
}
.hero-text { font-size: 1.03rem; line-height: 1.8; max-width: 650px; }
.scribble-word {
  display: inline-block;
  padding: 0 8px;
  position: relative;
}
.scribble-word::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: 8px;
  height: 15px;
  background: rgba(255,255,255,0.52);
  z-index: -1;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}
.btn-dark { background: var(--button-bg); color: var(--button-text); }
.btn-light { background: var(--panel-strong); color: var(--text); border-color: var(--border); }
.btn-ghost { background: var(--button-ghost); color: var(--text); border-color: rgba(0,0,0,0.06); }
.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 46px; padding: 0 16px; }

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}
.note-card {
  min-width: 190px;
  padding: 18px 18px 16px;
}
.note-card strong { display: block; margin-top: 10px; font-size: 1rem; }

.hero-art { min-height: 440px; }
.window-card {
  min-height: 420px;
  padding: 18px;
}
.window-top {
  display: flex;
  gap: 9px;
  margin-bottom: 22px;
}
.window-top span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.14);
}
.window-content {
  display: grid;
  gap: 16px;
}
.blob-main { height: 180px; }
.art-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.art-blob,
.art-line {
  background: rgba(21,17,15,0.08);
}
.art-blob {
  min-height: 86px;
  border-radius: 28px;
}
.art-line {
  height: 12px;
  border-radius: 999px;
}
.art-line.wide { width: 100%; }
.art-line.short { width: 42%; }
.floating-stamp {
  position: absolute;
  padding: 10px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stamp-1 { left: -16px; top: 20px; }
.stamp-2 { right: -6px; bottom: 22px; }
.floating-scribble {
  position: absolute;
  width: 140px;
  height: 50px;
  right: 34px;
  top: -12px;
  border-top: 2px solid rgba(31,23,18,0.35);
  border-radius: 100%;
  transform: rotate(6deg);
  opacity: 0.55;
}

.section-head { margin-bottom: 28px; max-width: 760px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
.section-head p { line-height: 1.7; }

.theme-lab { display: grid; gap: 18px; }
.theme-control { padding: 28px; }
.theme-control h3 { margin: 10px 0 10px; font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-family: var(--display-font); line-height: 1.02; }
.theme-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.theme-meta-card {
  padding: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.4);
}
.theme-meta-card span { display: block; color: var(--text-soft); font-size: 0.82rem; margin-bottom: 8px; }
.theme-meta-card strong { display: block; font-size: 1.05rem; }
.theme-meta-card small { color: var(--text-soft); }
.theme-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.theme-switch {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.52);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}
.theme-switch.is-active {
  background: var(--button-bg);
  color: var(--button-text);
  transform: translateY(-1px);
}
.theme-note { margin-top: 16px; }

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.theme-card {
  padding: 22px 20px;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  cursor: pointer;
}
.theme-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.15rem;
}
.theme-card p { color: var(--text-soft); line-height: 1.6; min-height: 70px; }
.theme-card .theme-swatches {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.theme-card .theme-swatches span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1);
}
.theme-card.is-selected {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.14);
}
.theme-soon {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px dashed var(--border);
  color: var(--text-soft);
}
.theme-card--base .theme-swatches span:nth-child(1) { background: #14110f; }
.theme-card--base .theme-swatches span:nth-child(2) { background: #efe8db; }
.theme-card--base .theme-swatches span:nth-child(3) { background: #8c7b67; }
.theme-card--01 .theme-swatches span:nth-child(1) { background: #eef4ff; }
.theme-card--01 .theme-swatches span:nth-child(2) { background: #1b5cff; }
.theme-card--01 .theme-swatches span:nth-child(3) { background: #06183c; }
.theme-card--02 .theme-swatches span:nth-child(1) { background: #20130d; }
.theme-card--02 .theme-swatches span:nth-child(2) { background: #c38949; }
.theme-card--02 .theme-swatches span:nth-child(3) { background: #f4ead6; }
.theme-card--03 .theme-swatches span:nth-child(1) { background: #091229; }
.theme-card--03 .theme-swatches span:nth-child(2) { background: #52f0ff; }
.theme-card--03 .theme-swatches span:nth-child(3) { background: #cf78ff; }
.theme-card--ghost { cursor: default; }

.about-grid,
.projects-grid,
.skills-grid,
.split-layout,
.resume-columns,
.contact-panel,
.footer-shell {
  display: grid;
  gap: 18px;
}
.about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card,
.resume-card,
.timeline,
.skill-card,
.project-card,
.contact-panel,
.resume-sheet {
  padding: 24px;
}
.info-card h3,
.project-body h3,
.skill-card h3,
.timeline-item h3,
.resume-entry strong { margin: 10px 0 10px; font-size: 1.18rem; }
.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.48);
  font-weight: 800;
}

.split-layout { grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); align-items: start; }
.resume-topline { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.resume-chip-wrap { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.resume-chip-wrap span {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.54);
  border: 1px solid var(--border);
}
.timeline-item { display: grid; grid-template-columns: 18px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-item > div:last-child > span,
.resume-entry > span { color: var(--text-soft); font-size: 0.88rem; }
.timeline-mark {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(0,0,0,0.05);
}

.projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card { overflow: hidden; }
.project-preview {
  height: 220px;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.project-preview::before,
.project-preview::after {
  content: "";
  position: absolute;
}
.project-preview::before {
  inset: 18px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.42);
}
.project-preview::after {
  width: 90px;
  height: 90px;
  right: -12px;
  top: -12px;
  background: rgba(255,255,255,0.24);
  filter: blur(4px);
}
.preview-one { background: var(--project-a); }
.preview-two { background: var(--project-b); }
.preview-three { background: var(--project-c); }
.project-body { padding-top: 18px; }
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  font-weight: 700;
}

.skills-layout { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
.skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.skill-card { min-height: 180px; }

.contact-panel {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
}
.contact-list {
  display: grid;
  gap: 16px;
  font-weight: 700;
}

.site-footer { padding: 0 0 34px; }
.footer-shell {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 18px;
  margin-bottom: 18px;
}
.resume-sheet { padding: 34px; }
.resume-sheet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.resume-sheet-info {
  display: grid;
  gap: 10px;
  justify-items: end;
  color: var(--text-soft);
}
.resume-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}
.resume-columns h2 {
  margin: 0 0 14px;
  font-family: var(--display-font);
  font-size: 1.65rem;
}
.resume-columns ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.resume-entry {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.32);
  margin-bottom: 14px;
}
.resume-entry strong { display: block; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.tilt-a { transform: rotate(-1deg); }
.tilt-b { transform: rotate(1deg); }
.tilt-c { transform: rotate(-0.6deg); }
.float-slow { animation: bob 5.6s ease-in-out infinite; }

/* ---------- THEME 01: INK ATELIER ---------- */
body[data-theme="sketch-handdrawn"] {
  --bg: #efe7d9;
  --text: #1d1713;
  --text-soft: #5b4f45;
  --panel: rgba(255, 250, 243, 0.9);
  --panel-strong: rgba(255, 252, 247, 0.98);
  --border: rgba(32, 24, 18, 0.18);
  --shadow: 0 24px 64px rgba(58, 37, 20, 0.13);
  --button-bg: #15110f;
  --button-text: #fffaf2;
  --button-ghost: rgba(31, 23, 19, 0.06);
  --nav-bg: rgba(255, 251, 244, 0.84);
  --nav-border: rgba(40, 31, 24, 0.16);
  --badge-bg: rgba(255,255,255,0.64);
  --project-a: linear-gradient(135deg, #171310 0%, #776655 55%, #e9decf 100%);
  --project-b: linear-gradient(135deg, #fff7ea 0%, #d9cdbd 50%, #211c18 100%);
  --project-c: linear-gradient(135deg, #f3ecdf 0%, #fffaf4 44%, #a69a89 100%);
  --grid-line: rgba(37, 29, 22, 0.05);
  --noise-opacity: 0.22;
}
body[data-theme="sketch-handdrawn"] .nav-shell,
body[data-theme="sketch-handdrawn"] .sketch-panel,
body[data-theme="sketch-handdrawn"] .theme-card,
body[data-theme="sketch-handdrawn"] .theme-switch,
body[data-theme="sketch-handdrawn"] .btn,
body[data-theme="sketch-handdrawn"] .back-link {
  border-radius: 28px 24px 30px 22px / 22px 28px 24px 30px;
}
body[data-theme="sketch-handdrawn"] .nav-shell {
  padding: 14px 18px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
}
body[data-theme="sketch-handdrawn"] .nav a { font-weight: 700; }
body[data-theme="sketch-handdrawn"] .brand-mark {
  border-radius: 16px 20px 14px 22px;
  border: 2px solid rgba(28,21,16,0.7);
  transform: rotate(-6deg);
}
body[data-theme="sketch-handdrawn"] .sketch-panel::before,
body[data-theme="sketch-handdrawn"] .theme-card::before,
body[data-theme="sketch-handdrawn"] .back-link::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(42, 33, 28, 0.18);
  border-radius: inherit;
  pointer-events: none;
}
body[data-theme="sketch-handdrawn"] .sketch-panel::after,
body[data-theme="sketch-handdrawn"] .theme-card::after,
body[data-theme="sketch-handdrawn"] .back-link::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 10px;
  border-top: 1px dashed rgba(42,33,28,0.14);
  pointer-events: none;
}
body[data-theme="sketch-handdrawn"] .scribble-word {
  font-family: var(--accent-font);
  font-size: 1.12em;
  letter-spacing: 0;
}
body[data-theme="sketch-handdrawn"] .section-head h2,
body[data-theme="sketch-handdrawn"] .resume-columns h2,
body[data-theme="sketch-handdrawn"] .theme-control h3 { letter-spacing: -0.06em; }
body[data-theme="sketch-handdrawn"] .card-index { border-radius: 14px 18px 12px 20px; }
body[data-theme="sketch-handdrawn"] .project-card:hover,
body[data-theme="sketch-handdrawn"] .skill-card:hover,
body[data-theme="sketch-handdrawn"] .info-card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
}
body[data-theme="sketch-handdrawn"] .contact-panel,
body[data-theme="sketch-handdrawn"] .theme-control { background: rgba(255, 250, 243, 0.94); }
body[data-theme="sketch-handdrawn"] .hero-copy h1,
body[data-theme="sketch-handdrawn"] .section-head h2,
body[data-theme="sketch-handdrawn"] .theme-control h3,
body[data-theme="sketch-handdrawn"] .resume-columns h2 { color: #1e1813; }
body[data-theme="sketch-handdrawn"] .hero-text,
body[data-theme="sketch-handdrawn"] .section-head p,
body[data-theme="sketch-handdrawn"] .project-body p,
body[data-theme="sketch-handdrawn"] .skill-card p,
body[data-theme="sketch-handdrawn"] .contact-panel p,
body[data-theme="sketch-handdrawn"] .resume-sheet p,
body[data-theme="sketch-handdrawn"] .resume-entry p { color: #4b433a; }

/* ---------- THEME 02: OFFICE COMMAND ---------- */
body[data-theme="office-lux"] {
  --bg: linear-gradient(180deg, #eef4ff 0%, #f8fbff 58%, #edf1f8 100%);
  --text: #08152c;
  --text-soft: #51637f;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(73, 104, 169, 0.14);
  --shadow: 0 28px 80px rgba(31, 78, 182, 0.12);
  --display-font: 'Space Grotesk', 'Inter', sans-serif;
  --body-font: 'Inter', 'Plus Jakarta Sans', sans-serif;
  --accent-font: 'Space Grotesk', sans-serif;
  --button-bg: linear-gradient(135deg, #135dff 0%, #0037b7 100%);
  --button-text: #ffffff;
  --button-ghost: rgba(255,255,255,0.6);
  --nav-bg: rgba(255,255,255,0.56);
  --nav-border: rgba(81, 112, 177, 0.14);
  --badge-bg: rgba(240, 246, 255, 0.86);
  --project-a: linear-gradient(135deg, #f4f8ff 0%, #d7e6ff 45%, #8db0ff 100%);
  --project-b: linear-gradient(135deg, #0b1b40 0%, #1c56ff 52%, #b9d2ff 100%);
  --project-c: linear-gradient(135deg, #eef4ff 0%, #ffffff 45%, #cad9ff 100%);
  --grid-line: rgba(24, 72, 181, 0.05);
  --noise-opacity: 0.08;
  --hero-overlay: radial-gradient(circle at 16% 18%, rgba(255,255,255,0.96), transparent 26%), radial-gradient(circle at 82% 18%, rgba(93, 147, 255, 0.28), transparent 26%), radial-gradient(circle at 50% 80%, rgba(151, 192, 255, 0.22), transparent 34%);
}
body[data-theme="office-lux"]::after { background-size: 120px 120px; opacity: 0.28; }
body[data-theme="office-lux"] .page-lines { opacity: 0; }
body[data-theme="office-lux"] .site-header { padding-top: 22px; }
body[data-theme="office-lux"] .nav-shell {
  padding: 12px 18px;
  min-height: 74px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(102, 135, 202, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 44px rgba(34, 73, 150, 0.12);
}
body[data-theme="office-lux"] .brand-mark {
  border-radius: 18px;
  background: linear-gradient(135deg, #0d46dc, #4ea4ff);
  color: #fff;
  box-shadow: 0 10px 28px rgba(20, 84, 255, 0.22);
}
body[data-theme="office-lux"] .brand-copy strong { text-transform: none; font-size: 1rem; }
body[data-theme="office-lux"] .brand-copy small { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.68rem; }
body[data-theme="office-lux"] .nav a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}
body[data-theme="office-lux"] .menu-toggle,
body[data-theme="office-lux"] .theme-switch,
body[data-theme="office-lux"] .btn,
body[data-theme="office-lux"] .back-link { border-radius: 18px; }
body[data-theme="office-lux"] .sketch-panel,
body[data-theme="office-lux"] .theme-card,
body[data-theme="office-lux"] .theme-meta-card,
body[data-theme="office-lux"] .resume-entry {
  border-radius: 26px;
  background: var(--panel);
  border: 1px solid rgba(108, 137, 196, 0.16);
  backdrop-filter: blur(22px);
}
body[data-theme="office-lux"] .sketch-panel::before,
body[data-theme="office-lux"] .sketch-panel::after,
body[data-theme="office-lux"] .theme-card::before,
body[data-theme="office-lux"] .theme-card::after,
body[data-theme="office-lux"] .back-link::before,
body[data-theme="office-lux"] .back-link::after { display: none; }
body[data-theme="office-lux"] .hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}
body[data-theme="office-lux"] .hero-copy {
  padding: 36px;
  background: rgba(255,255,255,0.56);
  border: 1px solid rgba(111, 140, 198, 0.18);
  border-radius: 34px;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(76, 115, 190, 0.12);
}
body[data-theme="office-lux"] .hero-copy h1 { max-width: 11ch; font-size: clamp(3.1rem, 6vw, 5.7rem); }
body[data-theme="office-lux"] .scribble-word { padding: 0; font-family: inherit; }
body[data-theme="office-lux"] .scribble-word::after {
  left: 0;
  right: 0;
  bottom: -10px;
  height: 8px;
  background: linear-gradient(90deg, #68a3ff, #0e46dd);
  border-radius: 999px;
}
body[data-theme="office-lux"] .hero-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-theme="office-lux"] .note-card {
  min-height: 132px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(239,245,255,0.74));
}
body[data-theme="office-lux"] .note-label { color: #60779b; }
body[data-theme="office-lux"] .window-card {
  min-height: 430px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.8), rgba(231,239,255,0.82)),
    linear-gradient(135deg, rgba(89,141,255,0.26), transparent 50%);
  padding: 22px;
}
body[data-theme="office-lux"] .window-content {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
body[data-theme="office-lux"] .blob-main {
  grid-column: 1 / -1;
  height: 144px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #dce8ff 56%, #8db0ff 100%);
}
body[data-theme="office-lux"] .art-blob {
  min-height: 112px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(220,232,255,0.86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
body[data-theme="office-lux"] .art-line {
  height: 14px;
  background: linear-gradient(90deg, #0c47de, #8ab2ff);
  opacity: 0.8;
}
body[data-theme="office-lux"] .floating-stamp {
  border-radius: 999px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(93,129,202,0.18);
  box-shadow: 0 16px 34px rgba(36, 74, 145, 0.12);
}
body[data-theme="office-lux"] .stamp-1 { left: 8px; top: -10px; }
body[data-theme="office-lux"] .stamp-2 { right: 10px; bottom: -8px; }
body[data-theme="office-lux"] .floating-scribble {
  border-top: none;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 139, 255, 0.18), transparent 62%);
  filter: blur(6px);
  right: -24px;
  top: -18px;
}
body[data-theme="office-lux"] .btn-dark {
  background: linear-gradient(135deg, #0c47de, #4ba3ff);
  color: #fff;
  box-shadow: 0 18px 34px rgba(22, 81, 211, 0.22);
}
body[data-theme="office-lux"] .btn-light {
  background: rgba(255,255,255,0.76);
  border-color: rgba(112, 140, 198, 0.18);
}
body[data-theme="office-lux"] .btn-ghost {
  background: rgba(255,255,255,0.5);
  border-color: rgba(120, 150, 210, 0.14);
}
body[data-theme="office-lux"] .theme-control {
  background: linear-gradient(135deg, rgba(255,255,255,0.84), rgba(231,240,255,0.84));
}
body[data-theme="office-lux"] .theme-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body[data-theme="office-lux"] .about-grid {
  grid-template-columns: 1.15fr 0.85fr 1fr;
  grid-auto-rows: minmax(220px, auto);
}
body[data-theme="office-lux"] .info-card:first-child { grid-row: span 2; }
body[data-theme="office-lux"] .info-card,
body[data-theme="office-lux"] .project-card,
body[data-theme="office-lux"] .skill-card,
body[data-theme="office-lux"] .contact-panel,
body[data-theme="office-lux"] .resume-card,
body[data-theme="office-lux"] .timeline,
body[data-theme="office-lux"] .resume-sheet {
  border-radius: 32px;
}
body[data-theme="office-lux"] .card-index {
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #e8f0ff);
  color: #0e46dd;
}
body[data-theme="office-lux"] .split-layout,
body[data-theme="office-lux"] .skills-layout { gap: 22px; }
body[data-theme="office-lux"] .projects-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
body[data-theme="office-lux"] .project-card:nth-child(1) { grid-column: span 5; }
body[data-theme="office-lux"] .project-card:nth-child(2) { grid-column: span 4; }
body[data-theme="office-lux"] .project-card:nth-child(3) { grid-column: span 3; }
body[data-theme="office-lux"] .project-preview {
  border-radius: 24px;
  height: 210px;
}
body[data-theme="office-lux"] .project-preview::before {
  inset: 14px;
  border-radius: 18px;
  border-color: rgba(255,255,255,0.66);
}
body[data-theme="office-lux"] .project-preview::after {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  right: 14px;
  top: 14px;
  background: rgba(255,255,255,0.24);
  filter: blur(0);
}
body[data-theme="office-lux"] .skills-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body[data-theme="office-lux"] .skill-card {
  min-height: 196px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(234,241,255,0.86));
}
body[data-theme="office-lux"] .contact-panel {
  grid-template-columns: 1.2fr 0.8fr;
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(231,240,255,0.86));
}
body[data-theme="office-lux"] .footer-shell { border-top-color: rgba(103,131,186,0.16); }
body[data-theme="office-lux"] .resume-sheet-head { border-bottom-color: rgba(103,131,186,0.16); }
body[data-theme="office-lux"] .resume-sheet-info { justify-items: start; }
body[data-theme="office-lux"] .resume-columns h2 { letter-spacing: -0.04em; }

/* ---------- THEME 03: MAISON BISTRO ---------- */
body[data-theme="amber-bistro"] {
  --bg: radial-gradient(circle at top, #44281b 0%, #140b08 48%, #0b0706 100%);
  --text: #f3e7d1;
  --text-soft: #d1bfa4;
  --panel: rgba(28, 16, 11, 0.78);
  --panel-strong: rgba(32, 19, 13, 0.92);
  --border: rgba(212, 164, 102, 0.22);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --display-font: 'Playfair Display', 'Cormorant Garamond', serif;
  --body-font: 'DM Sans', 'Inter', sans-serif;
  --accent-font: 'Playfair Display', serif;
  --button-bg: linear-gradient(135deg, #d7a15a 0%, #a8662f 100%);
  --button-text: #fff8f0;
  --button-ghost: rgba(255, 232, 205, 0.08);
  --nav-bg: rgba(18, 11, 8, 0.72);
  --nav-border: rgba(212, 164, 102, 0.22);
  --badge-bg: rgba(244, 221, 188, 0.08);
  --project-a: linear-gradient(135deg, #2e1910 0%, #8d5528 45%, #f4d7a0 100%);
  --project-b: linear-gradient(135deg, #120907 0%, #342017 52%, #d7a05d 100%);
  --project-c: linear-gradient(135deg, #29180f 0%, #4b2b1b 50%, #f7ead3 100%);
  --grid-line: rgba(211, 166, 104, 0.06);
  --noise-opacity: 0.12;
  --hero-overlay: radial-gradient(circle at 50% 0%, rgba(215, 162, 89, 0.18), transparent 26%), radial-gradient(circle at 10% 20%, rgba(255,255,255,0.08), transparent 20%), radial-gradient(circle at 90% 28%, rgba(255, 182, 102, 0.12), transparent 18%);
}
body[data-theme="amber-bistro"]::after {
  background-size: 150px 150px;
  opacity: 0.14;
}
body[data-theme="amber-bistro"] .page-lines {
  border-color: rgba(214, 167, 105, 0.16);
  opacity: 0.8;
}
body[data-theme="amber-bistro"] .site-header { padding-top: 18px; }
body[data-theme="amber-bistro"] .nav-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 18px;
  justify-content: center;
  border-radius: 22px;
  background: rgba(18, 11, 8, 0.72);
  border: 1px solid rgba(213, 166, 105, 0.22);
  backdrop-filter: blur(10px);
}
body[data-theme="amber-bistro"] .brand {
  position: absolute;
  left: 26px;
}
body[data-theme="amber-bistro"] .brand-mark {
  border-radius: 999px;
  border: 1px solid rgba(212, 167, 110, 0.45);
  background: linear-gradient(180deg, rgba(255,226,189,0.14), rgba(140,87,42,0.18));
  color: #f4e8d4;
}
body[data-theme="amber-bistro"] .brand-copy strong {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}
body[data-theme="amber-bistro"] .brand-copy small { color: #ccbb9f; }
body[data-theme="amber-bistro"] .nav {
  gap: 18px;
}
body[data-theme="amber-bistro"] .nav a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f1dfc5;
}
body[data-theme="amber-bistro"] .menu-toggle,
body[data-theme="amber-bistro"] .btn,
body[data-theme="amber-bistro"] .theme-switch,
body[data-theme="amber-bistro"] .back-link {
  border-radius: 999px;
}
body[data-theme="amber-bistro"] .sketch-panel,
body[data-theme="amber-bistro"] .theme-card,
body[data-theme="amber-bistro"] .theme-meta-card,
body[data-theme="amber-bistro"] .resume-entry {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(35, 20, 14, 0.84), rgba(25, 14, 10, 0.88));
  border: 1px solid rgba(213,166,105,0.2);
  box-shadow: 0 30px 90px rgba(0,0,0,0.28);
}
body[data-theme="amber-bistro"] .sketch-panel::before,
body[data-theme="amber-bistro"] .theme-card::before,
body[data-theme="amber-bistro"] .back-link::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(218, 178, 125, 0.14);
  border-radius: 22px;
  pointer-events: none;
}
body[data-theme="amber-bistro"] .sketch-panel::after,
body[data-theme="amber-bistro"] .theme-card::after,
body[data-theme="amber-bistro"] .back-link::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 12px;
  border-top: 1px solid rgba(218, 178, 125, 0.12);
  pointer-events: none;
}
body[data-theme="amber-bistro"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  gap: 28px;
}
body[data-theme="amber-bistro"] .hero-copy { max-width: 900px; margin: 0 auto; }
body[data-theme="amber-bistro"] .hero-copy h1 {
  max-width: none;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
body[data-theme="amber-bistro"] .hero-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}
body[data-theme="amber-bistro"] .scribble-word {
  font-family: inherit;
  padding: 0 10px;
}
body[data-theme="amber-bistro"] .scribble-word::after {
  left: 0;
  right: 0;
  bottom: 8px;
  height: 22px;
  background: linear-gradient(180deg, rgba(215,161,90,0.35), rgba(215,161,90,0.1));
  border: 1px solid rgba(215,161,90,0.24);
  border-radius: 999px;
}
body[data-theme="amber-bistro"] .hero-actions,
body[data-theme="amber-bistro"] .hero-notes { justify-content: center; }
body[data-theme="amber-bistro"] .hero-art {
  min-height: 0;
  max-width: 960px;
  margin: 0 auto;
}
body[data-theme="amber-bistro"] .window-card {
  min-height: 470px;
  padding: 28px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(40, 23, 15, 0.85), rgba(20, 12, 8, 0.92)),
    radial-gradient(circle at 50% 0%, rgba(212, 161, 90, 0.18), transparent 34%);
}
body[data-theme="amber-bistro"] .window-top { justify-content: center; }
body[data-theme="amber-bistro"] .window-top span {
  background: rgba(215, 161, 90, 0.45);
}
body[data-theme="amber-bistro"] .window-content {
  gap: 18px;
}
body[data-theme="amber-bistro"] .blob-main {
  height: 240px;
  border-radius: 26px;
  background: linear-gradient(135deg, #2d1a10 0%, #8f592a 48%, #f1d29d 100%);
}
body[data-theme="amber-bistro"] .art-row { gap: 18px; }
body[data-theme="amber-bistro"] .art-blob {
  min-height: 112px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 231, 205, 0.08), rgba(215, 161, 90, 0.18));
}
body[data-theme="amber-bistro"] .art-line {
  background: linear-gradient(90deg, rgba(241, 214, 175, 0.82), rgba(215, 161, 90, 0.55));
}
body[data-theme="amber-bistro"] .floating-stamp {
  border-radius: 999px;
  background: rgba(24, 14, 10, 0.86);
  border: 1px solid rgba(213,166,105,0.2);
  color: #f0dfc3;
}
body[data-theme="amber-bistro"] .stamp-1 { left: 24px; top: 22px; }
body[data-theme="amber-bistro"] .stamp-2 { right: 24px; bottom: 22px; }
body[data-theme="amber-bistro"] .floating-scribble {
  width: 240px;
  right: calc(50% - 120px);
  top: -24px;
  border-top: 1px solid rgba(214, 168, 108, 0.26);
  opacity: 0.36;
}
body[data-theme="amber-bistro"] .section-head { text-align: center; max-width: 760px; margin: 0 auto 30px; }
body[data-theme="amber-bistro"] .section-head h2,
body[data-theme="amber-bistro"] .theme-control h3,
body[data-theme="amber-bistro"] .resume-columns h2 { letter-spacing: -0.035em; }
body[data-theme="amber-bistro"] .about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body[data-theme="amber-bistro"] .info-card,
body[data-theme="amber-bistro"] .project-card,
body[data-theme="amber-bistro"] .skill-card,
body[data-theme="amber-bistro"] .contact-panel,
body[data-theme="amber-bistro"] .resume-sheet { border-radius: 30px; }
body[data-theme="amber-bistro"] .card-index {
  border-radius: 999px;
  background: rgba(215, 161, 90, 0.12);
  border-color: rgba(215, 161, 90, 0.24);
  color: #f0dfc3;
}
body[data-theme="amber-bistro"] .split-layout,
body[data-theme="amber-bistro"] .contact-panel {
  grid-template-columns: 1fr;
}
body[data-theme="amber-bistro"] .resume-card,
body[data-theme="amber-bistro"] .timeline {
  max-width: 920px;
  margin: 0 auto;
}
body[data-theme="amber-bistro"] .resume-topline { align-items: center; }
body[data-theme="amber-bistro"] .projects-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-theme="amber-bistro"] .project-card:first-child { grid-column: 1 / -1; }
body[data-theme="amber-bistro"] .project-preview {
  height: 280px;
  border-radius: 28px;
}
body[data-theme="amber-bistro"] .project-preview::before {
  inset: 20px;
  border-color: rgba(255, 223, 182, 0.22);
  border-radius: 20px;
}
body[data-theme="amber-bistro"] .project-preview::after {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  right: -24px;
  top: -24px;
  background: rgba(255, 208, 147, 0.15);
}
body[data-theme="amber-bistro"] .project-type {
  color: #f3d8ad;
}
body[data-theme="amber-bistro"] .skills-layout { grid-template-columns: 1fr; }
body[data-theme="amber-bistro"] .skills-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body[data-theme="amber-bistro"] .skill-card { min-height: 220px; }
body[data-theme="amber-bistro"] .contact-panel {
  text-align: center;
}
body[data-theme="amber-bistro"] .contact-list { justify-items: center; }
body[data-theme="amber-bistro"] .footer-shell { border-top-color: rgba(213,166,105,0.16); }
body[data-theme="amber-bistro"] .resume-sheet-head {
  grid-template-columns: 1fr;
  border-bottom-color: rgba(213,166,105,0.18);
  text-align: center;
}
body[data-theme="amber-bistro"] .resume-sheet-info {
  justify-items: center;
}
body[data-theme="amber-bistro"] .resume-columns {
  gap: 18px;
}

/* ---------- THEME 04: NEON SIGNAL ---------- */
body[data-theme="neon-signal"] {
  --bg: radial-gradient(circle at top, #13204d 0%, #080d1f 42%, #04060d 100%);
  --text: #edf7ff;
  --text-soft: #9cb5d0;
  --panel: rgba(10, 16, 35, 0.76);
  --panel-strong: rgba(8, 14, 30, 0.92);
  --border: rgba(94, 238, 255, 0.18);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(95, 232, 255, 0.06) inset;
  --display-font: 'Sora', 'Space Grotesk', sans-serif;
  --body-font: 'IBM Plex Mono', 'Space Grotesk', monospace;
  --accent-font: 'Sora', sans-serif;
  --button-bg: linear-gradient(135deg, #3af5ff 0%, #5875ff 50%, #cf61ff 100%);
  --button-text: #03111d;
  --button-ghost: rgba(25, 38, 73, 0.74);
  --nav-bg: rgba(8, 14, 29, 0.58);
  --nav-border: rgba(96, 237, 255, 0.16);
  --badge-bg: rgba(5, 16, 33, 0.88);
  --project-a: linear-gradient(135deg, #050a16 0%, #15365f 46%, #3af5ff 100%);
  --project-b: linear-gradient(135deg, #060915 0%, #6b33ff 56%, #e153ff 100%);
  --project-c: linear-gradient(135deg, #04060d 0%, #13204d 52%, #87d7ff 100%);
  --grid-line: rgba(88, 221, 255, 0.07);
  --noise-opacity: 0.08;
  --hero-overlay: radial-gradient(circle at 18% 18%, rgba(59, 226, 255, 0.18), transparent 22%), radial-gradient(circle at 82% 20%, rgba(216, 97, 255, 0.16), transparent 20%), radial-gradient(circle at 50% 90%, rgba(88, 118, 255, 0.18), transparent 28%);
}
body[data-theme="neon-signal"]::after {
  background-size: 76px 76px;
  opacity: 0.7;
}
body[data-theme="neon-signal"] .page-lines {
  border-color: rgba(90, 224, 255, 0.18);
  filter: drop-shadow(0 0 12px rgba(74, 225, 255, 0.08));
}
body[data-theme="neon-signal"] .site-header { padding-top: 0; }
body[data-theme="neon-signal"] .nav-shell {
  margin-top: 18px;
  padding: 12px 16px;
  min-height: 72px;
  background: rgba(7, 12, 26, 0.7);
  border: 1px solid rgba(94, 238, 255, 0.16);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(104, 184, 255, 0.08) inset, 0 18px 44px rgba(0,0,0,0.26);
}
body[data-theme="neon-signal"] .brand-mark {
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(58,245,255,0.18), rgba(207,97,255,0.3));
  border: 1px solid rgba(94, 238, 255, 0.24);
  box-shadow: 0 0 22px rgba(72, 242, 255, 0.12);
}
body[data-theme="neon-signal"] .brand-copy strong { font-size: 1rem; letter-spacing: -0.03em; }
body[data-theme="neon-signal"] .brand-copy small {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body[data-theme="neon-signal"] .nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.77rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body[data-theme="neon-signal"] .menu-toggle,
body[data-theme="neon-signal"] .theme-switch,
body[data-theme="neon-signal"] .back-link {
  border-radius: 16px;
}
body[data-theme="neon-signal"] .btn {
  border-radius: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body[data-theme="neon-signal"] .sketch-panel,
body[data-theme="neon-signal"] .theme-card,
body[data-theme="neon-signal"] .theme-meta-card,
body[data-theme="neon-signal"] .resume-entry {
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(8,14,30,0.94), rgba(10,16,35,0.78)),
    linear-gradient(135deg, rgba(58,245,255,0.08), rgba(207,97,255,0.08));
  border: 1px solid rgba(94,238,255,0.16);
  box-shadow: 0 0 0 1px rgba(72,242,255,0.08) inset, 0 18px 60px rgba(0, 0, 0, 0.35);
}
body[data-theme="neon-signal"] .sketch-panel::before,
body[data-theme="neon-signal"] .theme-card::before,
body[data-theme="neon-signal"] .back-link::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(93, 235, 255, 0.12);
  border-radius: 20px;
  pointer-events: none;
}
body[data-theme="neon-signal"] .sketch-panel::after,
body[data-theme="neon-signal"] .theme-card::after,
body[data-theme="neon-signal"] .back-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(86, 231, 255, 0.38), transparent);
  pointer-events: none;
}
body[data-theme="neon-signal"] .hero-grid {
  grid-template-columns: 0.94fr 1.06fr;
  gap: 34px;
}
body[data-theme="neon-signal"] .hero-copy {
  order: 2;
  padding: 28px 30px;
  border-radius: 28px;
  background: rgba(6, 12, 27, 0.7);
  border: 1px solid rgba(94, 238, 255, 0.14);
}
body[data-theme="neon-signal"] .hero-art { order: 1; }
body[data-theme="neon-signal"] .hero-copy h1 {
  max-width: 10ch;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.055em;
}
body[data-theme="neon-signal"] .scribble-word {
  font-family: inherit;
  color: #3af5ff;
  text-shadow: 0 0 18px rgba(58,245,255,0.34);
}
body[data-theme="neon-signal"] .scribble-word::after {
  left: -4px;
  right: -4px;
  bottom: -4px;
  height: 4px;
  background: linear-gradient(90deg, #3af5ff, #cf61ff);
  box-shadow: 0 0 20px rgba(58,245,255,0.34);
}
body[data-theme="neon-signal"] .hero-text { max-width: 560px; }
body[data-theme="neon-signal"] .hero-actions { gap: 12px; }
body[data-theme="neon-signal"] .btn-dark {
  background: linear-gradient(135deg, #3af5ff 0%, #5875ff 52%, #cf61ff 100%);
  color: #04121e;
  box-shadow: 0 0 30px rgba(58, 245, 255, 0.16);
}
body[data-theme="neon-signal"] .btn-light {
  background: rgba(10, 19, 38, 0.78);
  color: #edf7ff;
  border-color: rgba(93,235,255,0.18);
}
body[data-theme="neon-signal"] .btn-ghost {
  background: rgba(15, 23, 45, 0.62);
  color: #9de9ff;
  border-color: rgba(93,235,255,0.14);
}
body[data-theme="neon-signal"] .hero-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-theme="neon-signal"] .note-card {
  min-height: 136px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(7,13,29,0.88), rgba(17,24,49,0.76));
  box-shadow: inset 0 0 0 1px rgba(86, 230, 255, 0.08);
}
body[data-theme="neon-signal"] .note-label { color: #79e9ff; }
body[data-theme="neon-signal"] .window-card {
  min-height: 450px;
  padding: 20px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(6,10,20,0.96), rgba(10,16,34,0.88)),
    radial-gradient(circle at 0% 0%, rgba(58,245,255,0.14), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(207,97,255,0.12), transparent 34%);
}
body[data-theme="neon-signal"] .window-top span {
  border-radius: 4px;
  background: linear-gradient(90deg, #3af5ff, #cf61ff);
}
body[data-theme="neon-signal"] .window-content {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
body[data-theme="neon-signal"] .blob-main {
  grid-column: span 6;
  height: 156px;
  border-radius: 24px;
  background: linear-gradient(135deg, #050a16 0%, #15365f 48%, #3af5ff 100%);
  box-shadow: inset 0 0 0 1px rgba(86, 235, 255, 0.18), 0 0 28px rgba(58,245,255,0.12);
}
body[data-theme="neon-signal"] .art-row { grid-column: span 6; }
body[data-theme="neon-signal"] .art-blob {
  min-height: 108px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(7,13,29,0.94), rgba(18,25,48,0.74));
  box-shadow: inset 0 0 0 1px rgba(86, 234, 255, 0.08);
}
body[data-theme="neon-signal"] .art-line {
  grid-column: span 3;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3af5ff, #5875ff, #cf61ff);
  box-shadow: 0 0 16px rgba(58,245,255,0.18);
}
body[data-theme="neon-signal"] .art-line.short { width: 70%; }
body[data-theme="neon-signal"] .floating-stamp {
  border-radius: 14px;
  background: rgba(8,14,29,0.9);
  border: 1px solid rgba(95,238,255,0.2);
  color: #98e9ff;
  box-shadow: 0 0 22px rgba(58,245,255,0.08);
}
body[data-theme="neon-signal"] .stamp-1 { left: -14px; top: 28px; }
body[data-theme="neon-signal"] .stamp-2 { right: -10px; bottom: 28px; }
body[data-theme="neon-signal"] .floating-scribble {
  width: 240px;
  height: 240px;
  right: -40px;
  top: -40px;
  border-top: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58,245,255,0.2), transparent 60%);
  filter: blur(12px);
}
body[data-theme="neon-signal"] .theme-switch.is-active,
body[data-theme="neon-signal"] .theme-card.is-selected {
  box-shadow: 0 0 0 1px rgba(58,245,255,0.18) inset, 0 0 28px rgba(58,245,255,0.12);
}
body[data-theme="neon-signal"] .section-head h2,
body[data-theme="neon-signal"] .theme-control h3,
body[data-theme="neon-signal"] .resume-columns h2 { text-transform: uppercase; }
body[data-theme="neon-signal"] .about-grid { grid-template-columns: 1.05fr 0.95fr 1fr; }
body[data-theme="neon-signal"] .info-card,
body[data-theme="neon-signal"] .project-card,
body[data-theme="neon-signal"] .skill-card,
body[data-theme="neon-signal"] .contact-panel,
body[data-theme="neon-signal"] .resume-sheet {
  border-radius: 28px;
}
body[data-theme="neon-signal"] .card-index {
  border-radius: 12px;
  color: #7ae8ff;
  border-color: rgba(93,235,255,0.2);
  background: rgba(9,18,37,0.88);
}
body[data-theme="neon-signal"] .split-layout { grid-template-columns: 0.95fr 1.05fr; }
body[data-theme="neon-signal"] .projects-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
body[data-theme="neon-signal"] .project-card:nth-child(1) { grid-column: span 7; }
body[data-theme="neon-signal"] .project-card:nth-child(2) { grid-column: span 5; }
body[data-theme="neon-signal"] .project-card:nth-child(3) { grid-column: span 12; }
body[data-theme="neon-signal"] .project-preview {
  height: 240px;
  border-radius: 24px;
}
body[data-theme="neon-signal"] .project-preview::before {
  inset: 14px;
  border-color: rgba(96, 235, 255, 0.16);
  border-radius: 18px;
}
body[data-theme="neon-signal"] .project-preview::after {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  right: auto;
  left: 16px;
  top: 16px;
  background: rgba(255,255,255,0.08);
}
body[data-theme="neon-signal"] .skills-layout { grid-template-columns: 0.78fr 1.22fr; }
body[data-theme="neon-signal"] .skills-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body[data-theme="neon-signal"] .skill-card { min-height: 190px; }
body[data-theme="neon-signal"] .contact-panel {
  grid-template-columns: 1.05fr 0.95fr;
  background: linear-gradient(180deg, rgba(8,14,29,0.96), rgba(10,16,35,0.84));
}
body[data-theme="neon-signal"] .footer-shell { border-top-color: rgba(95,238,255,0.14); }
body[data-theme="neon-signal"] .resume-sheet-head { border-bottom-color: rgba(95,238,255,0.14); }
body[data-theme="neon-signal"] .resume-columns ul { font-family: 'IBM Plex Mono', monospace; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid,
  body[data-theme="office-lux"] .projects-grid,
  body[data-theme="neon-signal"] .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-theme="office-lux"] .project-card,
  body[data-theme="neon-signal"] .project-card { grid-column: span 1 !important; }
  .skills-layout,
  body[data-theme="office-lux"] .skills-layout,
  body[data-theme="neon-signal"] .skills-layout { grid-template-columns: 1fr; }
  .skills-grid,
  body[data-theme="office-lux"] .skills-grid,
  body[data-theme="amber-bistro"] .skills-grid,
  body[data-theme="neon-signal"] .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid,
  body[data-theme="office-lux"] .about-grid,
  body[data-theme="neon-signal"] .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-theme="office-lux"] .info-card:first-child { grid-row: auto; }
}

@media (max-width: 920px) {
  .site-header { padding-top: 12px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 12px);
    display: none;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  body.menu-open .nav { display: flex; }
  .hero-grid,
  .split-layout,
  .contact-panel,
  .resume-sheet-head,
  .resume-columns,
  body[data-theme="office-lux"] .hero-grid,
  body[data-theme="neon-signal"] .hero-grid,
  body[data-theme="neon-signal"] .split-layout,
  body[data-theme="neon-signal"] .contact-panel,
  body[data-theme="office-lux"] .contact-panel,
  body[data-theme="amber-bistro"] .projects-grid,
  body[data-theme="amber-bistro"] .contact-panel,
  body[data-theme="amber-bistro"] .resume-columns {
    grid-template-columns: 1fr;
  }
  body[data-theme="office-lux"] .hero-copy,
  body[data-theme="neon-signal"] .hero-copy { order: 1; }
  body[data-theme="office-lux"] .hero-art,
  body[data-theme="neon-signal"] .hero-art { order: 2; }
  .projects-grid,
  .about-grid,
  .skills-grid,
  .theme-grid,
  body[data-theme="office-lux"] .about-grid,
  body[data-theme="neon-signal"] .about-grid,
  body[data-theme="amber-bistro"] .about-grid,
  body[data-theme="amber-bistro"] .skills-grid,
  body[data-theme="office-lux"] .projects-grid,
  body[data-theme="neon-signal"] .projects-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 { font-size: clamp(2.6rem, 11vw, 4.8rem); }
  .theme-meta { grid-template-columns: 1fr; }
  body[data-theme="amber-bistro"] .brand { position: static; }
  body[data-theme="amber-bistro"] .nav-shell { justify-content: space-between; }
  body[data-theme="amber-bistro"] .nav { align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 22px), var(--container)); }
  .section { padding: 42px 0; }
  .nav-shell,
  .theme-control,
  .info-card,
  .resume-card,
  .timeline,
  .skill-card,
  .project-card,
  .contact-panel,
  .resume-sheet { padding: 18px; }
  .hero-actions,
  .hero-notes,
  .theme-switches { gap: 10px; }
  .btn { width: 100%; }
  .hero-notes,
  body[data-theme="office-lux"] .hero-notes,
  body[data-theme="neon-signal"] .hero-notes { grid-template-columns: 1fr; }
  .window-card { min-height: 340px; }
  body[data-theme="amber-bistro"] .window-card { min-height: 360px; }
  .resume-topline { flex-direction: column; align-items: flex-start; }
  .footer-shell { grid-template-columns: 1fr; gap: 8px; }
  .contact-list { gap: 12px; }
}

/* ---------- ANIMATIONS ---------- */
@keyframes bob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes orbitOne {
  0% { transform: rotate(0deg) translateY(0px); }
  50% { transform: rotate(180deg) translateY(10px); }
  100% { transform: rotate(360deg) translateY(0px); }
}
@keyframes orbitTwo {
  0% { transform: rotate(0deg) translateY(0px); }
  50% { transform: rotate(-180deg) translateY(-10px); }
  100% { transform: rotate(-360deg) translateY(0px); }
}


/* ---------- V11 STABILITY FIXES ---------- */
.nav-shell {
  padding-inline: 20px;
  gap: 16px;
}
.nav {
  flex-wrap: nowrap;
  gap: 14px 18px;
}
.nav a {
  white-space: nowrap;
}
.brand-copy strong {
  font-size: clamp(0.92rem, 1vw, 1rem);
}
.brand-copy small {
  font-size: 0.72rem;
}
.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 420px);
  gap: clamp(24px, 4vw, 42px);
}
.hero-copy h1 {
  font-size: clamp(3rem, 6.2vw, 5.55rem);
  line-height: 0.93;
  max-width: 10.8ch;
}
.hero-text {
  max-width: 620px;
}
.hero-art {
  width: 100%;
  max-width: 420px;
  justify-self: end;
}
.window-card {
  min-height: 392px;
}
.floating-stamp {
  z-index: 2;
}
.stamp-1 {
  left: 12px;
  top: -12px;
}
.stamp-2 {
  right: 12px;
  bottom: -12px;
}
.floating-scribble {
  right: 18px;
  top: -18px;
}
.resume-page-body .section {
  padding-top: 32px;
}

@media (max-width: 1240px) {
  .site-header {
    padding-top: 12px;
  }
  .menu-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 12px);
    display: none;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 24px;
    flex-wrap: nowrap;
  }
  body.menu-open .nav {
    display: flex;
  }
  .hero-grid,
  .split-layout,
  .contact-panel,
  .resume-sheet-head,
  .resume-columns,
  body[data-theme="office-lux"] .hero-grid,
  body[data-theme="neon-signal"] .hero-grid,
  body[data-theme="neon-signal"] .split-layout,
  body[data-theme="neon-signal"] .contact-panel,
  body[data-theme="office-lux"] .contact-panel,
  body[data-theme="amber-bistro"] .projects-grid,
  body[data-theme="amber-bistro"] .contact-panel,
  body[data-theme="amber-bistro"] .resume-columns {
    grid-template-columns: 1fr;
  }
  .hero-art,
  body[data-theme="office-lux"] .hero-art,
  body[data-theme="neon-signal"] .hero-art {
    order: 2;
    justify-self: center;
    max-width: min(100%, 560px);
    margin-inline: auto;
  }
  .hero-copy,
  body[data-theme="office-lux"] .hero-copy,
  body[data-theme="neon-signal"] .hero-copy {
    order: 1;
  }
  .floating-stamp,
  .floating-scribble {
    display: none;
  }
  body[data-theme="amber-bistro"] .brand,
  body[data-theme="office-lux"] .brand,
  body[data-theme="neon-signal"] .brand {
    position: static;
  }
  body[data-theme="amber-bistro"] .nav-shell,
  body[data-theme="office-lux"] .nav-shell,
  body[data-theme="neon-signal"] .nav-shell {
    justify-content: space-between;
  }
}

@media (max-width: 760px) {
  .hero-copy h1 {
    font-size: clamp(2.45rem, 12vw, 4.1rem);
    line-height: 0.96;
  }
  .hero-art {
    max-width: 100%;
  }
  .window-card {
    min-height: 330px;
  }
  .brand-copy {
    max-width: 170px;
  }
}


/* ---------- V12 DEEP FIXES ---------- */
:root {
  --focus-ring: rgba(17, 24, 39, 0.22);
}

.nav-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr auto;
  align-items: center;
  column-gap: 18px;
}

.nav {
  justify-self: end;
  align-self: center;
  max-width: 100%;
  flex-wrap: wrap;
  row-gap: 8px;
}

.menu-toggle {
  justify-self: end;
}

.hero-copy,
.theme-control,
.info-card,
.project-card,
.skill-card,
.contact-panel,
.resume-card,
.timeline,
.resume-sheet,
.theme-card,
.note-card,
.theme-meta-card,
.resume-entry,
.window-card {
  overflow: hidden;
}

.project-links,
.contact-list,
.resume-sheet-info,
.theme-meta {
  min-width: 0;
}

.project-links a,
.contact-list a,
.resume-sheet-info span,
.theme-meta-card small,
.theme-note,
.brand-copy strong,
.brand-copy small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.project-links a,
.contact-list a {
  font-weight: 700;
}

.hero-actions .btn {
  flex: 1 1 190px;
}

.theme-switch {
  flex: 1 1 150px;
}

.theme-card p {
  min-height: 0;
}

.note-card strong,
.skill-card h3,
.project-body h3,
.info-card h3,
.timeline-item h3,
.resume-entry strong {
  line-height: 1.15;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

body[data-theme="sketch-handdrawn"] .contact-list a,
body[data-theme="sketch-handdrawn"] .project-links a {
  color: #1d1814;
}

body[data-theme="office-lux"] {
  --text-soft: #435671;
  --focus-ring: rgba(12, 71, 222, 0.26);
}

body[data-theme="office-lux"] .brand-copy small,
body[data-theme="office-lux"] .note-label,
body[data-theme="office-lux"] .theme-meta-card span,
body[data-theme="office-lux"] .theme-card-top,
body[data-theme="office-lux"] .project-type {
  color: #425d88;
}

body[data-theme="office-lux"] .info-card h3,
body[data-theme="office-lux"] .project-body h3,
body[data-theme="office-lux"] .skill-card h3,
body[data-theme="office-lux"] .timeline-item h3,
body[data-theme="office-lux"] .resume-entry strong {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.03em;
}

body[data-theme="office-lux"] .theme-switch {
  background: rgba(255,255,255,0.66);
  border-color: rgba(95, 124, 186, 0.18);
}

body[data-theme="office-lux"] .info-card,
body[data-theme="office-lux"] .skill-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(236,243,255,0.84));
}

body[data-theme="office-lux"] .project-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(229,239,255,0.82));
}

body[data-theme="office-lux"] .project-links a,
body[data-theme="office-lux"] .contact-list a {
  color: #0d46dc;
}

body[data-theme="amber-bistro"] {
  --focus-ring: rgba(215, 161, 90, 0.34);
}

body[data-theme="amber-bistro"] .brand-copy small,
body[data-theme="amber-bistro"] .theme-meta-card span,
body[data-theme="amber-bistro"] .theme-card-top {
  color: #dfc6a1;
}

body[data-theme="amber-bistro"] .info-card h3,
body[data-theme="amber-bistro"] .project-body h3,
body[data-theme="amber-bistro"] .skill-card h3,
body[data-theme="amber-bistro"] .timeline-item h3,
body[data-theme="amber-bistro"] .resume-entry strong,
body[data-theme="amber-bistro"] .contact-panel h2 {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  letter-spacing: -0.02em;
}

body[data-theme="amber-bistro"] .theme-switch,
body[data-theme="amber-bistro"] .btn,
body[data-theme="amber-bistro"] .project-type,
body[data-theme="amber-bistro"] .theme-card-top {
  letter-spacing: 0.12em;
}

body[data-theme="amber-bistro"] .project-links a,
body[data-theme="amber-bistro"] .contact-list a {
  color: #f3d8ad;
}

body[data-theme="amber-bistro"] .note-card strong {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: 1.08rem;
}

body[data-theme="neon-signal"] {
  --focus-ring: rgba(58, 245, 255, 0.36);
}

body[data-theme="neon-signal"] .theme-switch,
body[data-theme="neon-signal"] .btn,
body[data-theme="neon-signal"] .card-index,
body[data-theme="neon-signal"] .menu-toggle,
body[data-theme="neon-signal"] .back-link {
  border-radius: 0;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

body[data-theme="neon-signal"] .info-card h3,
body[data-theme="neon-signal"] .project-body h3,
body[data-theme="neon-signal"] .skill-card h3,
body[data-theme="neon-signal"] .timeline-item h3,
body[data-theme="neon-signal"] .resume-entry strong,
body[data-theme="neon-signal"] .contact-panel h2 {
  font-family: 'Sora', 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

body[data-theme="neon-signal"] .theme-card-top,
body[data-theme="neon-signal"] .project-type,
body[data-theme="neon-signal"] .note-label {
  color: #79e9ff;
}

body[data-theme="neon-signal"] .theme-switch {
  background: rgba(10, 18, 38, 0.82);
}

body[data-theme="neon-signal"] .theme-switch.is-active {
  background: linear-gradient(135deg, #3af5ff 0%, #5875ff 52%, #cf61ff 100%);
  color: #03111d;
}

body[data-theme="neon-signal"] .project-links a,
body[data-theme="neon-signal"] .contact-list a {
  color: #9de9ff;
}

@media (min-width: 1241px) {
  body[data-theme="amber-bistro"] .nav-shell {
    grid-template-columns: auto 1fr;
    justify-content: stretch;
    padding-inline: 24px;
  }

  body[data-theme="amber-bistro"] .brand {
    position: static;
    justify-self: start;
  }

  body[data-theme="amber-bistro"] .nav {
    justify-self: stretch;
    justify-content: center;
    padding-inline: 24px 0;
  }
}

@media (max-width: 1240px) {
  .nav-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav {
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  .theme-switch,
  .hero-actions .btn {
    flex-basis: 100%;
  }

  .brand-copy {
    max-width: 150px;
  }

  .theme-control h3 {
    line-height: 1.08;
  }
}


/* ---------- V13 THEME 05 + ACCESSIBILITY POLISH ---------- */
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 6px;
}

.theme-card--04 .theme-swatches span:nth-child(1) { background: #071116; }
.theme-card--04 .theme-swatches span:nth-child(2) { background: #72ffc5; }
.theme-card--04 .theme-swatches span:nth-child(3) { background: #1bc8ff; }

body[data-theme="developer-cockpit"] {
  --bg: linear-gradient(180deg, #071015 0%, #09131a 46%, #061016 100%);
  --text: #e9fff7;
  --text-soft: #9ac4bc;
  --panel: rgba(8, 19, 24, 0.9);
  --panel-strong: rgba(10, 22, 28, 0.96);
  --border: rgba(114, 255, 197, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --display-font: 'Sora', 'Space Grotesk', sans-serif;
  --body-font: 'IBM Plex Mono', 'DM Sans', monospace;
  --accent-font: 'IBM Plex Mono', monospace;
  --button-bg: linear-gradient(135deg, #72ffc5 0%, #1bc8ff 100%);
  --button-text: #041117;
  --button-ghost: rgba(8, 19, 24, 0.72);
  --nav-bg: rgba(6, 17, 22, 0.9);
  --nav-border: rgba(114, 255, 197, 0.16);
  --badge-bg: rgba(7, 20, 25, 0.94);
  --project-a: linear-gradient(135deg, #071116 0%, #14313a 48%, #72ffc5 100%);
  --project-b: linear-gradient(135deg, #051018 0%, #103448 46%, #1bc8ff 100%);
  --project-c: linear-gradient(135deg, #061014 0%, #13261f 48%, #a6ffe2 100%);
  --grid-line: rgba(114, 255, 197, 0.06);
  --noise-opacity: 0.05;
  --hero-overlay: radial-gradient(circle at 12% 16%, rgba(114,255,197,0.12), transparent 22%), radial-gradient(circle at 84% 20%, rgba(27,200,255,0.12), transparent 24%), radial-gradient(circle at 50% 92%, rgba(114,255,197,0.1), transparent 30%);
  --focus-ring: rgba(114, 255, 197, 0.34);
}
body[data-theme="developer-cockpit"]::after {
  background-size: 68px 68px;
  opacity: 0.42;
}
body[data-theme="developer-cockpit"] .page-lines {
  border-color: rgba(114, 255, 197, 0.14);
  filter: drop-shadow(0 0 14px rgba(114,255,197,0.08));
}
body[data-theme="developer-cockpit"] .site-header { padding-top: 10px; }
body[data-theme="developer-cockpit"] .nav-shell {
  margin-top: 12px;
  min-height: 76px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(6,17,22,0.96), rgba(8,19,24,0.88));
  border: 1px solid rgba(114,255,197,0.18);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(114,255,197,0.07) inset, 0 20px 44px rgba(0,0,0,0.28);
}
body[data-theme="developer-cockpit"] .brand-mark {
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(114,255,197,0.16), rgba(27,200,255,0.22));
  color: #a7ffe2;
  border: 1px solid rgba(114,255,197,0.2);
  font-family: 'IBM Plex Mono', monospace;
}
body[data-theme="developer-cockpit"] .brand-copy strong {
  font-family: 'Sora', 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}
body[data-theme="developer-cockpit"] .brand-copy small,
body[data-theme="developer-cockpit"] .nav a,
body[data-theme="developer-cockpit"] .project-type,
body[data-theme="developer-cockpit"] .theme-card-top,
body[data-theme="developer-cockpit"] .note-label,
body[data-theme="developer-cockpit"] .theme-meta-card span {
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
body[data-theme="developer-cockpit"] .brand-copy small,
body[data-theme="developer-cockpit"] .theme-meta-card span,
body[data-theme="developer-cockpit"] .theme-card-top,
body[data-theme="developer-cockpit"] .project-type {
  color: #8ddfcb;
}
body[data-theme="developer-cockpit"] .nav a {
  font-size: 0.76rem;
  color: #d8fff1;
}
body[data-theme="developer-cockpit"] .menu-toggle,
body[data-theme="developer-cockpit"] .theme-switch,
body[data-theme="developer-cockpit"] .btn,
body[data-theme="developer-cockpit"] .back-link {
  border-radius: 12px;
}
body[data-theme="developer-cockpit"] .sketch-panel,
body[data-theme="developer-cockpit"] .theme-card,
body[data-theme="developer-cockpit"] .theme-meta-card,
body[data-theme="developer-cockpit"] .resume-entry {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8,19,24,0.96), rgba(8,19,24,0.86));
  border: 1px solid rgba(114,255,197,0.16);
  box-shadow: 0 0 0 1px rgba(114,255,197,0.06) inset, 0 18px 52px rgba(0,0,0,0.28);
}
body[data-theme="developer-cockpit"] .sketch-panel::before,
body[data-theme="developer-cockpit"] .theme-card::before,
body[data-theme="developer-cockpit"] .back-link::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(114,255,197,0.12);
  border-radius: 12px;
  pointer-events: none;
}
body[data-theme="developer-cockpit"] .sketch-panel::after,
body[data-theme="developer-cockpit"] .theme-card::after,
body[data-theme="developer-cockpit"] .back-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(114,255,197,0.38), transparent);
  pointer-events: none;
}
body[data-theme="developer-cockpit"] .hero-grid {
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
}
body[data-theme="developer-cockpit"] .hero-copy {
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(8,19,24,0.96), rgba(6,15,20,0.9));
  border: 1px solid rgba(114,255,197,0.18);
  box-shadow: 0 24px 64px rgba(0,0,0,0.26);
}
body[data-theme="developer-cockpit"] .hero-copy h1,
body[data-theme="developer-cockpit"] .section-head h2,
body[data-theme="developer-cockpit"] .theme-control h3,
body[data-theme="developer-cockpit"] .resume-columns h2,
body[data-theme="developer-cockpit"] .contact-panel h2 {
  font-family: 'Sora', 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.05em;
}
body[data-theme="developer-cockpit"] .hero-copy h1 {
  max-width: 9.5ch;
  line-height: 0.92;
}
body[data-theme="developer-cockpit"] .scribble-word {
  font-family: 'IBM Plex Mono', monospace;
  color: #8dffd8;
  font-size: 0.88em;
  letter-spacing: -0.02em;
}
body[data-theme="developer-cockpit"] .scribble-word::after {
  bottom: -6px;
  height: 3px;
  left: -2px;
  right: -2px;
  background: linear-gradient(90deg, #72ffc5, #1bc8ff);
}
body[data-theme="developer-cockpit"] .hero-text {
  max-width: 60ch;
  color: #b7d9d1;
}
body[data-theme="developer-cockpit"] .hero-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-theme="developer-cockpit"] .note-card {
  min-height: 136px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8,19,24,0.98), rgba(8,19,24,0.82));
  border-left: 3px solid rgba(114,255,197,0.26);
}
body[data-theme="developer-cockpit"] .note-label {
  color: #76ffd3;
}
body[data-theme="developer-cockpit"] .window-card {
  min-height: 450px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(5,15,20,0.98), rgba(7,18,23,0.92));
}
body[data-theme="developer-cockpit"] .window-top {
  justify-content: flex-start;
  gap: 10px;
}
body[data-theme="developer-cockpit"] .window-top span {
  border-radius: 4px;
  background: linear-gradient(90deg, #72ffc5, #1bc8ff);
}
body[data-theme="developer-cockpit"] .window-content {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
body[data-theme="developer-cockpit"] .blob-main {
  grid-column: span 6;
  height: 148px;
  border-radius: 18px;
  background: linear-gradient(135deg, #071116 0%, #0d2730 48%, #72ffc5 100%);
}
body[data-theme="developer-cockpit"] .art-row {
  grid-column: span 6;
}
body[data-theme="developer-cockpit"] .art-blob {
  min-height: 104px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8,19,24,0.98), rgba(15,38,34,0.86));
}
body[data-theme="developer-cockpit"] .art-line {
  grid-column: span 2;
  height: 11px;
  border-radius: 4px;
  background: linear-gradient(90deg, #72ffc5, #1bc8ff);
}
body[data-theme="developer-cockpit"] .art-line.wide {
  width: 100%;
  grid-column: span 6;
}
body[data-theme="developer-cockpit"] .art-line.short {
  width: 56%;
  grid-column: span 3;
}
body[data-theme="developer-cockpit"] .floating-stamp {
  border-radius: 10px;
  background: rgba(6,17,22,0.94);
  border: 1px solid rgba(114,255,197,0.18);
  color: #91ffdd;
  box-shadow: 0 18px 40px rgba(0,0,0,0.24);
  font-family: 'IBM Plex Mono', monospace;
}
body[data-theme="developer-cockpit"] .stamp-1 { left: -10px; top: 24px; }
body[data-theme="developer-cockpit"] .stamp-2 { right: -6px; bottom: 24px; }
body[data-theme="developer-cockpit"] .floating-scribble {
  width: 190px;
  height: 190px;
  right: -24px;
  top: -24px;
  border-top: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114,255,197,0.16), transparent 62%);
  filter: blur(14px);
}
body[data-theme="developer-cockpit"] .btn,
body[data-theme="developer-cockpit"] .theme-switch,
body[data-theme="developer-cockpit"] .menu-toggle,
body[data-theme="developer-cockpit"] .back-link {
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body[data-theme="developer-cockpit"] .btn-dark {
  background: linear-gradient(135deg, #72ffc5 0%, #1bc8ff 100%);
  color: #041117;
  box-shadow: 0 20px 38px rgba(19, 184, 255, 0.18);
}
body[data-theme="developer-cockpit"] .btn-light {
  background: rgba(8,19,24,0.96);
  color: #eafff8;
  border-color: rgba(114,255,197,0.18);
}
body[data-theme="developer-cockpit"] .btn-ghost {
  background: rgba(8,19,24,0.7);
  color: #9debd7;
  border-color: rgba(114,255,197,0.16);
  border-style: dashed;
}
body[data-theme="developer-cockpit"] .theme-switch {
  background: rgba(8,19,24,0.82);
  color: #e5fff5;
}
body[data-theme="developer-cockpit"] .theme-switch.is-active,
body[data-theme="developer-cockpit"] .theme-card.is-selected {
  background: linear-gradient(135deg, #72ffc5 0%, #1bc8ff 100%);
  color: #041117;
  box-shadow: 0 0 0 1px rgba(114,255,197,0.2) inset, 0 0 24px rgba(114,255,197,0.12);
}
body[data-theme="developer-cockpit"] .theme-control {
  background: linear-gradient(180deg, rgba(7,18,23,0.98), rgba(8,19,24,0.9));
}
body[data-theme="developer-cockpit"] .theme-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
body[data-theme="developer-cockpit"] .about-grid {
  grid-template-columns: 1.1fr 0.9fr 1fr;
}
body[data-theme="developer-cockpit"] .info-card,
body[data-theme="developer-cockpit"] .project-card,
body[data-theme="developer-cockpit"] .skill-card,
body[data-theme="developer-cockpit"] .contact-panel,
body[data-theme="developer-cockpit"] .resume-sheet {
  border-radius: 18px;
}
body[data-theme="developer-cockpit"] .info-card h3,
body[data-theme="developer-cockpit"] .project-body h3,
body[data-theme="developer-cockpit"] .skill-card h3,
body[data-theme="developer-cockpit"] .timeline-item h3,
body[data-theme="developer-cockpit"] .resume-entry strong {
  font-family: 'Sora', 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
}
body[data-theme="developer-cockpit"] .card-index {
  border-radius: 10px;
  background: rgba(8,19,24,0.92);
  color: #7cffd2;
  border-color: rgba(114,255,197,0.18);
  font-family: 'IBM Plex Mono', monospace;
}
body[data-theme="developer-cockpit"] .split-layout,
body[data-theme="developer-cockpit"] .skills-layout {
  gap: 20px;
}
body[data-theme="developer-cockpit"] .projects-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
body[data-theme="developer-cockpit"] .project-card:nth-child(1),
body[data-theme="developer-cockpit"] .project-card:nth-child(2),
body[data-theme="developer-cockpit"] .project-card:nth-child(3) {
  grid-column: span 4;
}
body[data-theme="developer-cockpit"] .project-preview {
  height: 220px;
  border-radius: 18px;
}
body[data-theme="developer-cockpit"] .project-preview::before {
  inset: 12px;
  border-style: dashed;
  border-color: rgba(114,255,197,0.14);
  border-radius: 12px;
}
body[data-theme="developer-cockpit"] .project-preview::after {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  background: rgba(114,255,197,0.08);
}
body[data-theme="developer-cockpit"] .project-links a,
body[data-theme="developer-cockpit"] .contact-list a {
  color: #96ffd8;
}
body[data-theme="developer-cockpit"] .skills-layout {
  grid-template-columns: 0.92fr 1.08fr;
}
body[data-theme="developer-cockpit"] .skills-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-theme="developer-cockpit"] .skill-card {
  min-height: 188px;
}
body[data-theme="developer-cockpit"] .contact-panel {
  grid-template-columns: 1.08fr 0.92fr;
  background: linear-gradient(180deg, rgba(7,18,23,0.98), rgba(8,19,24,0.9));
}
body[data-theme="developer-cockpit"] .footer-shell {
  border-top-color: rgba(114,255,197,0.14);
}
body[data-theme="developer-cockpit"] .resume-sheet-head {
  border-bottom-color: rgba(114,255,197,0.14);
}
body[data-theme="developer-cockpit"] .resume-columns ul,
body[data-theme="developer-cockpit"] .resume-sheet-info,
body[data-theme="developer-cockpit"] .contact-list {
  font-family: 'IBM Plex Mono', monospace;
}

@media (max-width: 1100px) {
  body[data-theme="developer-cockpit"] .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-theme="developer-cockpit"] .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-theme="developer-cockpit"] .project-card:nth-child(1),
  body[data-theme="developer-cockpit"] .project-card:nth-child(2),
  body[data-theme="developer-cockpit"] .project-card:nth-child(3) {
    grid-column: span 1;
  }
}

@media (max-width: 920px) {
  body[data-theme="developer-cockpit"] .hero-grid,
  body[data-theme="developer-cockpit"] .contact-panel,
  body[data-theme="developer-cockpit"] .skills-layout,
  body[data-theme="developer-cockpit"] .split-layout {
    grid-template-columns: 1fr;
  }
  body[data-theme="developer-cockpit"] .hero-copy {
    order: 1;
  }
  body[data-theme="developer-cockpit"] .hero-art {
    order: 2;
  }
  body[data-theme="developer-cockpit"] .about-grid,
  body[data-theme="developer-cockpit"] .projects-grid,
  body[data-theme="developer-cockpit"] .skills-grid,
  body[data-theme="developer-cockpit"] .theme-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .theme-switch,
  .menu-toggle,
  .btn {
    min-height: 48px;
  }
  .nav a {
    min-height: 44px;
  }
  body[data-theme="developer-cockpit"] .hero-copy,
  body[data-theme="developer-cockpit"] .window-card {
    padding: 18px;
  }
}

@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;
  }
  body.theme-morphing .hero-copy,
  body.theme-morphing .hero-art,
  body.theme-morphing .section-head,
  body.theme-morphing .sketch-panel,
  body.theme-morphing .project-card,
  body.theme-morphing .skill-card,
  body.theme-morphing .contact-panel,
  body.theme-morphing .resume-sheet {
    opacity: 1;
    transform: none;
    filter: none;
  }
}


/* ===== v14 radical theme separation + 3d scene ===== */
:root {
  --pointer-x: 0;
  --pointer-y: 0;
}

.hero-art {
  isolation: isolate;
  perspective: 1800px;
  transform-style: preserve-3d;
}

.window-card,
.floating-stamp,
.orbit-stage,
.orbit-panel,
.orbit-cube {
  transform-style: preserve-3d;
}

.window-card {
  transform:
    translate3d(calc(var(--pointer-x) * 8px), calc(var(--pointer-y) * -8px), 0)
    rotateX(calc(var(--pointer-y) * -4deg))
    rotateY(calc(var(--pointer-x) * 6deg));
}

.floating-stamp {
  transform:
    translate3d(calc(var(--pointer-x) * -6px), calc(var(--pointer-y) * 6px), 24px)
    rotate(calc(var(--pointer-x) * 3deg));
}

.orbit-stage {
  position: absolute;
  inset: -34px;
  pointer-events: none;
  display: none;
  z-index: 4;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  animation: orbitDrift 18s linear infinite;
}

.orbit-ring-a {
  inset: 40px 56px 54px 24px;
}

.orbit-ring-b {
  inset: 92px 18px 18px 82px;
  animation-direction: reverse;
  opacity: 0.65;
}

.orbit-panel {
  position: absolute;
  min-width: 170px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(20, 19, 32, 0.56);
  box-shadow: 0 24px 80px rgba(7, 7, 18, 0.26);
  backdrop-filter: blur(18px);
}

.orbit-panel span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.orbit-panel strong {
  display: block;
  line-height: 1.1;
  font-size: 1rem;
}

.orbit-panel-a {
  left: -14px;
  top: 32px;
  transform: translate3d(0, 0, 130px) rotateY(-18deg) rotateX(9deg);
  animation: panelLevitate 9s ease-in-out infinite;
}

.orbit-panel-b {
  right: -14px;
  bottom: 40px;
  transform: translate3d(0, 0, 160px) rotateY(16deg) rotateX(-8deg);
  animation: panelLevitate 11s ease-in-out infinite reverse;
}

.orbit-cube {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.42), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
  opacity: 0.7;
}

.cube-a {
  right: 58px;
  top: 34px;
  transform: translate3d(0, 0, 120px) rotateX(58deg) rotateY(-18deg) rotateZ(24deg);
  animation: cubeFloat 14s ease-in-out infinite;
}

.cube-b {
  left: 52px;
  bottom: 18px;
  width: 78px;
  height: 78px;
  border-radius: 22px;
  transform: translate3d(0, 0, 180px) rotateX(48deg) rotateY(28deg) rotateZ(-18deg);
  animation: cubeFloat 12s ease-in-out infinite reverse;
}

@keyframes panelLevitate {
  0%, 100% { transform: translate3d(0, 0, 140px) rotateY(-18deg) rotateX(9deg); }
  50% { transform: translate3d(0, -16px, 185px) rotateY(-10deg) rotateX(2deg); }
}

@keyframes cubeFloat {
  0%, 100% { transform: translate3d(0, 0, 150px) rotateX(56deg) rotateY(-18deg) rotateZ(22deg); }
  50% { transform: translate3d(0, -18px, 215px) rotateX(66deg) rotateY(10deg) rotateZ(42deg); }
}

@keyframes orbitDrift {
  0% { transform: rotate(0deg) translateZ(0); }
  100% { transform: rotate(360deg) translateZ(0); }
}

body[data-theme="office-lux"] .hero-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: start;
}
body[data-theme="office-lux"] .hero-copy > .sketch-tag,
body[data-theme="office-lux"] .hero-copy > h1,
body[data-theme="office-lux"] .hero-copy > .hero-notes {
  grid-column: 1 / -1;
}
body[data-theme="office-lux"] .hero-copy > .hero-text {
  max-width: 34ch;
}
body[data-theme="office-lux"] .hero-copy > .hero-actions {
  align-self: stretch;
  justify-content: flex-start;
  flex-direction: column;
  gap: 12px;
}
body[data-theme="office-lux"] .hero-copy > .hero-actions .btn {
  width: 100%;
  justify-content: center;
}
body[data-theme="office-lux"] .hero-notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-theme="office-lux"] .note-card {
  min-height: 120px;
  align-content: end;
}
body[data-theme="office-lux"] .section-head {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px 30px;
  align-items: start;
}
body[data-theme="office-lux"] .section-head .eyebrow {
  margin-top: 18px;
}
body[data-theme="office-lux"] .section-head h2,
body[data-theme="office-lux"] .section-head p {
  grid-column: 2 / 3;
}
body[data-theme="office-lux"] .about-grid {
  grid-template-columns: 1.2fr 0.8fr 1fr;
}
body[data-theme="office-lux"] .info-card:nth-child(1) {
  min-height: 360px;
}
body[data-theme="office-lux"] .theme-card {
  min-height: 200px;
}

body[data-theme="amber-bistro"] .site-header {
  position: relative;
}
body[data-theme="amber-bistro"] .hero-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}
body[data-theme="amber-bistro"] .hero-art {
  order: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto 10px;
}
body[data-theme="amber-bistro"] .hero-copy {
  order: 2;
  text-align: center;
  justify-items: center;
}
body[data-theme="amber-bistro"] .hero-copy h1 {
  max-width: 10ch;
}
body[data-theme="amber-bistro"] .hero-actions {
  justify-content: center;
}
body[data-theme="amber-bistro"] .hero-notes {
  justify-content: center;
  max-width: 740px;
}
body[data-theme="amber-bistro"] .note-card {
  min-width: 260px;
}
body[data-theme="amber-bistro"] .about-grid {
  grid-template-columns: 1.3fr 0.9fr 0.8fr;
}
body[data-theme="amber-bistro"] .info-card:nth-child(1) {
  min-height: 360px;
}
body[data-theme="amber-bistro"] .project-card,
body[data-theme="amber-bistro"] .skill-card,
body[data-theme="amber-bistro"] .contact-panel,
body[data-theme="amber-bistro"] .resume-sheet {
  box-shadow: 0 28px 90px rgba(48, 26, 8, 0.18);
}

body[data-theme="neon-signal"] .hero-grid {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: stretch;
}
body[data-theme="neon-signal"] .hero-art {
  order: 1;
  min-height: 620px;
}
body[data-theme="neon-signal"] .hero-copy {
  order: 2;
  margin-top: 42px;
}
body[data-theme="neon-signal"] .hero-copy h1,
body[data-theme="neon-signal"] .section-head h2,
body[data-theme="neon-signal"] .theme-control h3,
body[data-theme="neon-signal"] .resume-columns h2 {
  font-family: 'Bebas Neue', 'Sora', sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
body[data-theme="neon-signal"] .hero-copy h1 {
  max-width: none;
  font-size: clamp(4.5rem, 9vw, 8.4rem);
  line-height: 0.86;
}
body[data-theme="neon-signal"] .sketch-panel,
body[data-theme="neon-signal"] .theme-card,
body[data-theme="neon-signal"] .theme-switch,
body[data-theme="neon-signal"] .btn,
body[data-theme="neon-signal"] .back-link {
  clip-path: polygon(0 16px, 16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
body[data-theme="neon-signal"] .about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-theme="neon-signal"] .about-grid .info-card:first-child {
  grid-column: 1 / -1;
}
body[data-theme="neon-signal"] .projects-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
body[data-theme="neon-signal"] .project-card:nth-child(1) { grid-column: span 7; }
body[data-theme="neon-signal"] .project-card:nth-child(2) { grid-column: span 5; }
body[data-theme="neon-signal"] .project-card:nth-child(3) { grid-column: 4 / -1; }
body[data-theme="neon-signal"] .orbit-stage {
  display: block;
}
body[data-theme="neon-signal"] .orbit-panel {
  background: rgba(13, 19, 40, 0.54);
  border-color: rgba(92, 255, 209, 0.24);
}
body[data-theme="neon-signal"] .orbit-panel strong {
  color: #f7fbff;
}
body[data-theme="neon-signal"] .orbit-cube {
  background: linear-gradient(145deg, rgba(108,255,236,0.45), rgba(112,71,255,0.08));
}

body[data-theme="orbital-depth"] {
  --bg: #060a12;
  --text: #e8f7ff;
  --text-soft: #8fb5c3;
  --panel: rgba(11, 18, 29, 0.56);
  --panel-strong: rgba(11, 18, 29, 0.82);
  --border: rgba(137, 197, 255, 0.16);
  --shadow: 0 30px 120px rgba(1, 6, 18, 0.58);
  --display-font: 'Orbitron', 'Sora', sans-serif;
  --body-font: 'Space Grotesk', 'Inter', sans-serif;
  --accent: #8ef3ff;
  --accent-2: #76a7ff;
  --accent-3: #14213d;
  --button-bg: linear-gradient(135deg, #89d2ff 0%, #6b8cff 100%);
  --button-text: #03111d;
  --button-ghost: rgba(111, 194, 255, 0.08);
  --nav-bg: rgba(6, 10, 20, 0.64);
  --nav-border: rgba(141, 206, 255, 0.16);
  --badge-bg: rgba(12, 20, 36, 0.75);
  --project-a: radial-gradient(circle at 20% 15%, rgba(148,228,255,0.58), transparent 32%), linear-gradient(140deg, #05101b 0%, #11263e 45%, #0a0f1a 100%);
  --project-b: radial-gradient(circle at 82% 22%, rgba(118,167,255,0.36), transparent 30%), linear-gradient(145deg, #08121d 0%, #10192f 58%, #02060d 100%);
  --project-c: radial-gradient(circle at 50% 0%, rgba(124,255,235,0.24), transparent 34%), linear-gradient(145deg, #0b1524 0%, #14263f 50%, #07121d 100%);
  --grid-line: rgba(118, 167, 255, 0.08);
  --noise-opacity: 0.12;
  --hero-overlay: radial-gradient(circle at 18% 18%, rgba(55, 100, 255, 0.20), transparent 28%), radial-gradient(circle at 82% 24%, rgba(120,255,235,0.14), transparent 26%), radial-gradient(circle at 50% 60%, rgba(150, 100, 255, 0.10), transparent 32%), linear-gradient(180deg, rgba(4,8,14,0.98), rgba(6,10,18,0.98));
}
body[data-theme="orbital-depth"]::after {
  opacity: 0.3;
  background-size: 110px 110px;
}
body[data-theme="orbital-depth"] .page-lines {
  border-color: rgba(122, 180, 255, 0.14);
}
body[data-theme="orbital-depth"] .site-header {
  padding-top: 12px;
}
body[data-theme="orbital-depth"] .nav-shell {
  min-height: 86px;
  background: linear-gradient(180deg, rgba(8,14,23,0.84), rgba(8,14,23,0.62));
  backdrop-filter: blur(18px);
  border-radius: 28px;
}
body[data-theme="orbital-depth"] .brand-mark {
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(136, 210, 255, 0.32), rgba(107, 140, 255, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 12px 30px rgba(0,0,0,0.22);
}
body[data-theme="orbital-depth"] .brand-copy strong,
body[data-theme="orbital-depth"] .hero-copy h1,
body[data-theme="orbital-depth"] .section-head h2,
body[data-theme="orbital-depth"] .theme-control h3,
body[data-theme="orbital-depth"] .resume-columns h2,
body[data-theme="orbital-depth"] .contact-panel h2 {
  font-family: 'Orbitron', 'Sora', sans-serif;
  letter-spacing: -0.02em;
}
body[data-theme="orbital-depth"] .brand-copy small,
body[data-theme="orbital-depth"] .nav a,
body[data-theme="orbital-depth"] .note-label,
body[data-theme="orbital-depth"] .theme-card-top,
body[data-theme="orbital-depth"] .project-type,
body[data-theme="orbital-depth"] .theme-meta-card span {
  color: #90b6c6;
}
body[data-theme="orbital-depth"] .sketch-panel,
body[data-theme="orbital-depth"] .theme-card,
body[data-theme="orbital-depth"] .theme-meta-card,
body[data-theme="orbital-depth"] .resume-entry {
  background: linear-gradient(180deg, rgba(11, 18, 29, 0.78), rgba(11, 18, 29, 0.58));
  box-shadow: 0 28px 120px rgba(1, 6, 18, 0.44);
  backdrop-filter: blur(18px);
}
body[data-theme="orbital-depth"] .menu-toggle,
body[data-theme="orbital-depth"] .theme-switch,
body[data-theme="orbital-depth"] .btn,
body[data-theme="orbital-depth"] .back-link {
  border-radius: 18px;
}
body[data-theme="orbital-depth"] .hero-grid {
  grid-template-columns: 0.92fr 1.08fr;
  gap: 34px;
  align-items: center;
}
body[data-theme="orbital-depth"] .hero-copy {
  padding: 34px 32px 38px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(10, 17, 28, 0.82), rgba(7, 12, 21, 0.58));
  border: 1px solid rgba(132, 196, 255, 0.14);
  box-shadow: 0 24px 90px rgba(1, 6, 18, 0.44);
}
body[data-theme="orbital-depth"] .hero-copy h1 {
  max-width: 8.4ch;
  font-size: clamp(3.6rem, 8vw, 6.6rem);
  line-height: 0.9;
}
body[data-theme="orbital-depth"] .scribble-word {
  font-family: 'Orbitron', 'Sora', sans-serif;
  padding: 0;
  color: #9ff8ff;
  text-shadow: 0 0 20px rgba(159,248,255,0.32);
}
body[data-theme="orbital-depth"] .scribble-word::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -6px;
  height: 10px;
  background: linear-gradient(90deg, transparent, rgba(144, 214, 255, 0.44), transparent);
  filter: blur(10px);
}
body[data-theme="orbital-depth"] .hero-text {
  max-width: 35ch;
}
body[data-theme="orbital-depth"] .hero-actions {
  gap: 12px;
}
body[data-theme="orbital-depth"] .btn-dark {
  background: linear-gradient(135deg, #89d2ff 0%, #6b8cff 100%);
  color: #03111d;
}
body[data-theme="orbital-depth"] .btn-light {
  background: rgba(122, 180, 255, 0.12);
  color: #e8f7ff;
}
body[data-theme="orbital-depth"] .btn-ghost {
  background: rgba(255,255,255,0.03);
  color: #97dcff;
}
body[data-theme="orbital-depth"] .hero-art {
  min-height: 680px;
}
body[data-theme="orbital-depth"] .window-card {
  width: min(100%, 560px);
  padding: 28px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(12, 19, 32, 0.88), rgba(8, 14, 24, 0.64));
  box-shadow: 0 30px 140px rgba(2, 5, 12, 0.62);
  border-color: rgba(145, 206, 255, 0.18);
}
body[data-theme="orbital-depth"] .window-top {
  justify-content: space-between;
}
body[data-theme="orbital-depth"] .window-top span {
  width: 58px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(138,210,255,0.9), rgba(107,140,255,0.4));
}
body[data-theme="orbital-depth"] .window-content {
  min-height: 410px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(14, 26, 40, 0.96), rgba(7, 12, 21, 0.76));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
body[data-theme="orbital-depth"] .blob-main {
  height: 180px;
  background: radial-gradient(circle at 30% 30%, rgba(157,248,255,0.88), rgba(82,113,255,0.16) 58%, transparent 74%);
  filter: blur(0.2px) drop-shadow(0 0 34px rgba(116,186,255,0.28));
}
body[data-theme="orbital-depth"] .art-blob {
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(159,248,255,0.46), rgba(107,140,255,0.08));
}
body[data-theme="orbital-depth"] .art-line {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(132,196,255,0.78), rgba(132,196,255,0.08));
}
body[data-theme="orbital-depth"] .floating-stamp {
  border-radius: 18px;
  color: #dff8ff;
  background: rgba(10, 18, 31, 0.78);
  border-color: rgba(137, 197, 255, 0.18);
}
body[data-theme="orbital-depth"] .stamp-1 { left: -16px; top: 18px; }
body[data-theme="orbital-depth"] .stamp-2 { right: -12px; bottom: 28px; }
body[data-theme="orbital-depth"] .floating-scribble {
  width: 230px;
  height: 230px;
  right: 24px;
  top: 12px;
  border-color: rgba(121, 176, 255, 0.12);
}
body[data-theme="orbital-depth"] .orbit-stage {
  display: block;
}
body[data-theme="orbital-depth"] .orbit-panel {
  background: linear-gradient(180deg, rgba(13, 22, 37, 0.78), rgba(10, 17, 29, 0.48));
}
body[data-theme="orbital-depth"] .orbit-panel strong {
  color: #ecf9ff;
}
body[data-theme="orbital-depth"] .orbit-panel-a {
  left: -22px;
  top: 34px;
}
body[data-theme="orbital-depth"] .orbit-panel-b {
  right: -20px;
  bottom: 34px;
}
body[data-theme="orbital-depth"] .orbit-cube {
  background: linear-gradient(145deg, rgba(143,247,255,0.38), rgba(107,140,255,0.10));
}
body[data-theme="orbital-depth"] .theme-control {
  background: linear-gradient(180deg, rgba(10, 17, 28, 0.88), rgba(8, 13, 22, 0.66));
}
body[data-theme="orbital-depth"] .theme-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
body[data-theme="orbital-depth"] .about-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
body[data-theme="orbital-depth"] .about-grid .info-card:nth-child(1) { grid-column: span 5; min-height: 340px; }
body[data-theme="orbital-depth"] .about-grid .info-card:nth-child(2) { grid-column: span 3; }
body[data-theme="orbital-depth"] .about-grid .info-card:nth-child(3) { grid-column: span 4; }
body[data-theme="orbital-depth"] .info-card,
body[data-theme="orbital-depth"] .project-card,
body[data-theme="orbital-depth"] .skill-card,
body[data-theme="orbital-depth"] .contact-panel,
body[data-theme="orbital-depth"] .resume-sheet {
  border-radius: 28px;
  box-shadow: 0 28px 120px rgba(2, 5, 12, 0.38);
}
body[data-theme="orbital-depth"] .info-card h3,
body[data-theme="orbital-depth"] .project-body h3,
body[data-theme="orbital-depth"] .skill-card h3,
body[data-theme="orbital-depth"] .timeline-item h3,
body[data-theme="orbital-depth"] .resume-entry strong {
  font-family: 'Sora', 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
}
body[data-theme="orbital-depth"] .card-index {
  border-radius: 14px;
  background: rgba(7, 14, 24, 0.92);
  color: #9ff8ff;
  border-color: rgba(137, 197, 255, 0.16);
}
body[data-theme="orbital-depth"] .projects-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
body[data-theme="orbital-depth"] .project-card:nth-child(1) { grid-column: span 5; }
body[data-theme="orbital-depth"] .project-card:nth-child(2) { grid-column: span 3; }
body[data-theme="orbital-depth"] .project-card:nth-child(3) { grid-column: span 4; }
body[data-theme="orbital-depth"] .project-preview {
  height: 240px;
  border-radius: 24px;
}
body[data-theme="orbital-depth"] .project-preview::before {
  inset: 14px;
  border-color: rgba(143,247,255,0.16);
  border-style: solid;
  border-radius: 18px;
}
body[data-theme="orbital-depth"] .project-preview::after {
  width: 140px;
  height: 140px;
  border-radius: 30px;
  background: rgba(143,247,255,0.12);
}
body[data-theme="orbital-depth"] .project-links a,
body[data-theme="orbital-depth"] .contact-list a {
  color: #9ff8ff;
}
body[data-theme="orbital-depth"] .skills-layout {
  grid-template-columns: 0.88fr 1.12fr;
  gap: 24px;
}
body[data-theme="orbital-depth"] .skills-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-theme="orbital-depth"] .skill-card {
  min-height: 210px;
}
body[data-theme="orbital-depth"] .contact-panel {
  grid-template-columns: 1.06fr 0.94fr;
  background: linear-gradient(180deg, rgba(10, 17, 28, 0.88), rgba(8, 13, 22, 0.66));
}
body[data-theme="orbital-depth"] .resume-sheet-head {
  border-bottom-color: rgba(137, 197, 255, 0.16);
}
body[data-theme="orbital-depth"] .resume-sheet-info,
body[data-theme="orbital-depth"] .resume-columns ul,
body[data-theme="orbital-depth"] .contact-list {
  color: #9fc5d6;
}
body[data-theme="orbital-depth"] .footer-shell {
  border-top-color: rgba(137, 197, 255, 0.16);
}

@media (max-width: 1180px) {
  body[data-theme="office-lux"] .section-head {
    grid-template-columns: 1fr;
  }
  body[data-theme="office-lux"] .section-head h2,
  body[data-theme="office-lux"] .section-head p {
    grid-column: auto;
  }
  body[data-theme="neon-signal"] .projects-grid,
  body[data-theme="orbital-depth"] .projects-grid,
  body[data-theme="orbital-depth"] .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-theme="neon-signal"] .project-card:nth-child(1),
  body[data-theme="neon-signal"] .project-card:nth-child(2),
  body[data-theme="neon-signal"] .project-card:nth-child(3),
  body[data-theme="orbital-depth"] .project-card:nth-child(1),
  body[data-theme="orbital-depth"] .project-card:nth-child(2),
  body[data-theme="orbital-depth"] .project-card:nth-child(3),
  body[data-theme="orbital-depth"] .about-grid .info-card:nth-child(1),
  body[data-theme="orbital-depth"] .about-grid .info-card:nth-child(2),
  body[data-theme="orbital-depth"] .about-grid .info-card:nth-child(3) {
    grid-column: span 1;
  }
}

@media (max-width: 920px) {
  .orbit-stage {
    inset: -10px;
  }
  body[data-theme="office-lux"] .hero-copy {
    grid-template-columns: 1fr;
  }
  body[data-theme="office-lux"] .hero-copy > .hero-text,
  body[data-theme="office-lux"] .hero-copy > .hero-actions,
  body[data-theme="office-lux"] .hero-copy > .hero-notes {
    grid-column: auto;
  }
  body[data-theme="office-lux"] .hero-notes,
  body[data-theme="neon-signal"] .about-grid,
  body[data-theme="orbital-depth"] .about-grid,
  body[data-theme="orbital-depth"] .skills-grid,
  body[data-theme="orbital-depth"] .theme-grid {
    grid-template-columns: 1fr;
  }
  body[data-theme="neon-signal"] .hero-grid,
  body[data-theme="orbital-depth"] .hero-grid,
  body[data-theme="orbital-depth"] .skills-layout,
  body[data-theme="orbital-depth"] .contact-panel {
    grid-template-columns: 1fr;
  }
  body[data-theme="neon-signal"] .hero-copy {
    margin-top: 0;
  }
  body[data-theme="neon-signal"] .hero-art,
  body[data-theme="orbital-depth"] .hero-art {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .orbit-panel {
    min-width: 138px;
    padding: 12px 14px;
  }
  .orbit-cube {
    width: 72px;
    height: 72px;
  }
  body[data-theme="neon-signal"] .hero-copy h1 {
    font-size: clamp(3.5rem, 18vw, 5.4rem);
  }
  body[data-theme="orbital-depth"] .hero-copy {
    padding: 22px 18px 24px;
  }
  body[data-theme="orbital-depth"] .window-card {
    padding: 18px;
    border-radius: 24px;
  }
  body[data-theme="orbital-depth"] .window-content {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .window-card,
  .floating-stamp,
  .orbit-panel,
  .orbit-cube {
    transform: none !important;
  }
}


/* precise 3d animation overrides */
.orbit-panel-a { animation: panelLevitateA 9s ease-in-out infinite; }
.orbit-panel-b { animation: panelLevitateB 11s ease-in-out infinite; }
.cube-a { animation: cubeFloatA 14s ease-in-out infinite; }
.cube-b { animation: cubeFloatB 12s ease-in-out infinite reverse; }

@keyframes panelLevitateA {
  0%, 100% { transform: translate3d(0, 0, 140px) rotateY(-18deg) rotateX(9deg); }
  50% { transform: translate3d(0, -16px, 185px) rotateY(-10deg) rotateX(2deg); }
}

@keyframes panelLevitateB {
  0%, 100% { transform: translate3d(0, 0, 160px) rotateY(16deg) rotateX(-8deg); }
  50% { transform: translate3d(0, -18px, 210px) rotateY(9deg) rotateX(-2deg); }
}

@keyframes cubeFloatA {
  0%, 100% { transform: translate3d(0, 0, 150px) rotateX(56deg) rotateY(-18deg) rotateZ(22deg); }
  50% { transform: translate3d(0, -18px, 215px) rotateX(66deg) rotateY(10deg) rotateZ(42deg); }
}

@keyframes cubeFloatB {
  0%, 100% { transform: translate3d(0, 0, 180px) rotateX(48deg) rotateY(28deg) rotateZ(-18deg); }
  50% { transform: translate3d(0, -14px, 238px) rotateX(60deg) rotateY(8deg) rotateZ(12deg); }
}


/* ===== v15 content polish / ready site ===== */
.nav a::after,
.project-links a::after,
.contact-list a::after,
.footer-shell a::after,
.back-link::after {
  display: none !important;
}

.nav a:hover,
.project-links a:hover,
.contact-list a:hover,
.footer-shell a:hover,
.back-link:hover {
  opacity: 0.82;
}

.theme-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.theme-card,
.theme-card p {
  min-height: auto;
}

.theme-card strong {
  text-transform: none;
}

.theme-switch,
.btn,
.back-link,
.project-links a,
.contact-list a {
  min-width: 24px;
  min-height: 24px;
}

.skills-layout--expanded {
  margin-bottom: 20px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.contact-list--static {
  align-content: start;
}

.contact-list--static span {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.34);
  color: var(--text);
  font-weight: 700;
}

.process-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  padding: 28px;
  overflow: hidden;
}

.process-copy h3 {
  margin: 14px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.02;
  font-family: var(--display-font);
}

.process-copy p {
  color: var(--text-soft);
  line-height: 1.8;
}

.process-tags {
  margin-top: 18px;
}

.process-stage {
  position: relative;
  min-height: 430px;
  perspective: 1400px;
  transform-style: preserve-3d;
  overflow: hidden;
}

.code-window,
.preview-window {
  position: absolute;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--panel-strong);
  backdrop-filter: blur(12px);
}

.code-window {
  left: 0;
  top: 24px;
  width: min(100%, 360px);
  padding: 16px;
  transform: rotateY(14deg) rotateX(3deg) translate3d(calc(var(--pointer-x, 0) * -12px), calc(var(--pointer-y, 0) * -10px), 40px);
}

.preview-window {
  right: 12px;
  bottom: 10px;
  width: min(100%, 430px);
  padding: 16px;
  transform: rotateY(-12deg) rotateX(5deg) translate3d(calc(var(--pointer-x, 0) * 16px), calc(var(--pointer-y, 0) * 14px), 70px);
}

.code-window-top,
.preview-browser-top {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.code-window-top span,
.preview-browser-top span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(0,0,0,0.16);
}

.code-lines {
  display: grid;
  gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--text);
}

.code-lines span {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.36);
  white-space: nowrap;
  overflow: hidden;
  animation: codePulse 7.4s ease-in-out infinite;
}

.code-lines span:nth-child(2) { animation-delay: .7s; }
.code-lines span:nth-child(3) { animation-delay: 1.4s; }
.code-lines span:nth-child(4) { animation-delay: 2.1s; }
.code-lines span:nth-child(5) { animation-delay: 2.8s; }
.code-lines span:nth-child(6) { animation-delay: 3.5s; }

.preview-canvas {
  display: grid;
  gap: 16px;
}

.preview-hero {
  height: 142px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0.15));
  position: relative;
  overflow: hidden;
}

.preview-hero::before,
.preview-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
}

.preview-hero::before {
  width: 160px;
  height: 160px;
  right: -28px;
  top: -34px;
}

.preview-hero::after {
  width: 72%;
  height: 16px;
  left: 24px;
  bottom: 24px;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.preview-metrics div,
.panel {
  border-radius: 22px;
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(255,255,255,0.22);
}

.preview-metrics div {
  height: 82px;
  animation: panelFloat 6.2s ease-in-out infinite;
}

.preview-metrics div:nth-child(2) { animation-delay: .6s; }
.preview-metrics div:nth-child(3) { animation-delay: 1.2s; }

.preview-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.panel {
  min-height: 96px;
  animation: panelReveal 6.8s ease-in-out infinite;
}

.panel-wide {
  grid-column: span 2;
}

.panel-tall {
  min-height: 204px;
  grid-row: span 2;
}

.panel:nth-child(2) { animation-delay: .4s; }
.panel:nth-child(3) { animation-delay: .8s; }
.panel:nth-child(4) { animation-delay: 1.2s; }

.float-bit,
.float-ring {
  position: absolute;
  pointer-events: none;
  transform-style: preserve-3d;
}

.float-bit {
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255,255,255,0.28);
  background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.06));
  box-shadow: 0 18px 44px rgba(0,0,0,0.14);
  backdrop-filter: blur(10px);
}

.float-bit-a {
  right: 120px;
  top: 10px;
  transform: rotate(22deg) translateZ(80px);
  animation: orbitalDrift 8.5s ease-in-out infinite;
}

.float-bit-b {
  left: 250px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  transform: rotate(-18deg) translateZ(40px);
  animation: orbitalDrift 6.6s ease-in-out infinite reverse;
}

.float-bit-c {
  right: 18px;
  bottom: 92px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  transform: translateZ(120px);
  animation: orbitalDrift 7.2s ease-in-out infinite;
}

.float-ring {
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 50%;
  right: 38px;
  top: 42px;
  transform: rotateX(66deg) rotateZ(18deg) translateZ(0);
  animation: ringSpin 18s linear infinite;
}

.resume-long-intro {
  margin: 26px 0 0;
  max-width: 920px;
  line-height: 1.82;
}

.resume-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.resume-columns--detailed {
  align-items: start;
}

.resume-columns--detailed p {
  line-height: 1.8;
}

body[data-theme="sketch-handdrawn"] .process-showcase,
body[data-theme="sketch-handdrawn"] .process-showcase .code-window,
body[data-theme="sketch-handdrawn"] .process-showcase .preview-window,
body[data-theme="sketch-handdrawn"] .contact-list--static span,
body[data-theme="sketch-handdrawn"] .resume-meta-grid .resume-entry {
  border-radius: 30px 24px 28px 22px / 22px 28px 24px 30px;
}

body[data-theme="office-lux"] .process-showcase {
  grid-template-columns: 0.66fr 1.34fr;
}

body[data-theme="office-lux"] .process-showcase,
body[data-theme="office-lux"] .process-showcase .code-window,
body[data-theme="office-lux"] .process-showcase .preview-window,
body[data-theme="office-lux"] .contact-list--static span,
body[data-theme="office-lux"] .resume-meta-grid .resume-entry {
  border-radius: 26px;
}

body[data-theme="office-lux"] .float-bit,
body[data-theme="office-lux"] .float-ring {
  border-radius: 22px;
}

body[data-theme="amber-bistro"] .process-showcase {
  grid-template-columns: 0.78fr 1.22fr;
}

body[data-theme="amber-bistro"] .process-showcase,
body[data-theme="amber-bistro"] .process-showcase .code-window,
body[data-theme="amber-bistro"] .process-showcase .preview-window,
body[data-theme="amber-bistro"] .contact-list--static span,
body[data-theme="amber-bistro"] .resume-meta-grid .resume-entry {
  border-radius: 34px;
}

body[data-theme="amber-bistro"] .float-bit-a,
body[data-theme="amber-bistro"] .float-bit-c {
  border-radius: 50%;
}

body[data-theme="neon-signal"] .process-showcase,
body[data-theme="neon-signal"] .process-showcase .code-window,
body[data-theme="neon-signal"] .process-showcase .preview-window,
body[data-theme="neon-signal"] .contact-list--static span,
body[data-theme="neon-signal"] .resume-meta-grid .resume-entry {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

body[data-theme="neon-signal"] .float-bit,
body[data-theme="neon-signal"] .float-ring {
  box-shadow: 0 0 26px rgba(90, 236, 255, 0.24), 0 0 50px rgba(206, 108, 255, 0.14);
}

body[data-theme="neon-signal"] .preview-hero,
body[data-theme="neon-signal"] .panel,
body[data-theme="neon-signal"] .preview-metrics div {
  border-radius: 0;
}

body[data-theme="orbital-depth"] .process-showcase {
  grid-template-columns: 0.62fr 1.38fr;
  perspective: 1800px;
}

body[data-theme="orbital-depth"] .process-showcase,
body[data-theme="orbital-depth"] .process-showcase .code-window,
body[data-theme="orbital-depth"] .process-showcase .preview-window,
body[data-theme="orbital-depth"] .contact-list--static span,
body[data-theme="orbital-depth"] .resume-meta-grid .resume-entry {
  border-radius: 30px;
  border-color: rgba(149, 194, 255, 0.16);
}

body[data-theme="orbital-depth"] .code-window {
  transform: rotateY(18deg) rotateX(5deg) translate3d(calc(var(--pointer-x, 0) * -18px), calc(var(--pointer-y, 0) * -12px), 90px);
}

body[data-theme="orbital-depth"] .preview-window {
  transform: rotateY(-18deg) rotateX(8deg) translate3d(calc(var(--pointer-x, 0) * 20px), calc(var(--pointer-y, 0) * 18px), 130px);
}

body[data-theme="orbital-depth"] .float-ring {
  width: 320px;
  height: 320px;
}

@keyframes codePulse {
  0%, 100% { opacity: 0.46; transform: translateX(0); }
  12%, 28% { opacity: 1; transform: translateX(0); }
  20% { transform: translateX(8px); }
  58% { opacity: 0.76; }
}

@keyframes panelFloat {
  0%, 100% { transform: translateY(0) translateZ(0); }
  50% { transform: translateY(-10px) translateZ(12px); }
}

@keyframes panelReveal {
  0%, 100% { opacity: 0.5; transform: translateY(0) scale(1); }
  20% { opacity: 0.88; }
  50% { opacity: 1; transform: translateY(-8px) scale(1.02); }
}

@keyframes orbitalDrift {
  0%, 100% { transform: translate3d(0, 0, 50px) rotate(0deg); }
  50% { transform: translate3d(-18px, -16px, 110px) rotate(18deg); }
}

@keyframes ringSpin {
  from { transform: rotateX(66deg) rotateZ(0deg) translateZ(0); }
  to { transform: rotateX(66deg) rotateZ(360deg) translateZ(0); }
}

@media (max-width: 1080px) {
  .process-showcase,
  body[data-theme="office-lux"] .process-showcase,
  body[data-theme="amber-bistro"] .process-showcase,
  body[data-theme="orbital-depth"] .process-showcase {
    grid-template-columns: 1fr;
  }

  .process-stage {
    min-height: 520px;
  }

  .resume-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .theme-grid,
  .resume-meta-grid {
    grid-template-columns: 1fr;
  }

  .process-showcase {
    padding: 22px;
  }

  .process-stage {
    min-height: 560px;
  }

  .code-window,
  .preview-window {
    position: relative;
    width: 100%;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none !important;
  }

  .preview-window {
    margin-top: 18px;
  }

  .float-bit,
  .float-ring {
    display: none;
  }

  .contact-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .code-lines span,
  .preview-metrics div,
  .panel,
  .float-bit,
  .float-ring {
    animation: none !important;
  }
}


/* ---------- V16 CONTENT + DENSITY + CONTACT FIXES ---------- */
:root {
  --skill-accent: #7a5132;
}

body[data-theme="office-lux"] { --skill-accent: #1f5ae0; }
body[data-theme="amber-bistro"] { --skill-accent: #c68646; }
body[data-theme="neon-signal"] { --skill-accent: #7bf3ff; }
body[data-theme="orbital-depth"] { --skill-accent: #8fc7ff; }

.skill-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body[data-theme="amber-bistro"] .skill-card,
body[data-theme="neon-signal"] .skill-card {
  min-height: 0;
}

.skill-card p {
  margin: 14px 0 0;
  line-height: 1.72;
}

.skill-subtitle {
  display: block;
  margin-top: -2px;
  color: var(--skill-accent);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.skill-demo {
  position: relative;
  margin-top: 14px;
  min-height: 92px;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.52));
  overflow: hidden;
}

.skill-demo span {
  position: absolute;
  display: block;
}

.skill-demo--layout span {
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(194,206,230,0.5));
  border: 1px solid rgba(79, 112, 167, 0.14);
  box-shadow: 0 10px 26px rgba(25, 43, 87, 0.08);
  animation: layoutPulse 6.2s ease-in-out infinite;
}

.skill-demo--layout span:nth-child(1) { left: 12px; right: 12px; top: 12px; height: 16px; }
.skill-demo--layout span:nth-child(2) { left: 12px; top: 36px; width: calc(52% - 18px); bottom: 12px; animation-delay: .35s; }
.skill-demo--layout span:nth-child(3) { right: 12px; top: 36px; width: calc(48% - 18px); height: 22px; animation-delay: .7s; }
.skill-demo--layout span:nth-child(4) { right: 12px; bottom: 12px; width: calc(48% - 18px); height: 26px; animation-delay: 1.05s; }

.skill-demo--visual span {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(32, 95, 226, 0.18), rgba(255,255,255,0.92), rgba(139, 178, 255, 0.32));
  animation: visualSweep 7s ease-in-out infinite;
}

.skill-demo--visual span:nth-child(1) { left: 16px; right: 44px; top: 18px; height: 12px; }
.skill-demo--visual span:nth-child(2) { left: 16px; right: 22px; top: 42px; height: 18px; animation-delay: .5s; }
.skill-demo--visual span:nth-child(3) { left: 16px; right: 68px; bottom: 18px; height: 12px; animation-delay: 1s; }

.skill-demo--motion::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 999px;
  border: 1px dashed rgba(77, 126, 201, 0.28);
}

.skill-demo--motion span {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(107,162,255,0.58));
  box-shadow: 0 12px 28px rgba(43, 85, 170, 0.18);
  animation: motionFloat 6.2s ease-in-out infinite;
}

.skill-demo--motion span:nth-child(1) { width: 30px; height: 30px; left: 18px; top: 26px; }
.skill-demo--motion span:nth-child(2) { width: 20px; height: 20px; right: 24px; top: 18px; animation-delay: .8s; }
.skill-demo--motion span:nth-child(3) { width: 42px; height: 42px; left: 50%; bottom: 14px; margin-left: -21px; animation-delay: 1.4s; }

.skill-demo--pack span {
  left: 50%;
  width: 66%;
  height: 18px;
  margin-left: -33%;
  border-radius: 14px;
  border: 1px solid rgba(86, 116, 171, 0.14);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(214,226,248,0.62));
  box-shadow: 0 12px 22px rgba(18, 34, 76, 0.09);
  animation: packStack 6.4s ease-in-out infinite;
}

.skill-demo--pack span:nth-child(1) { top: 18px; }
.skill-demo--pack span:nth-child(2) { top: 40px; width: 76%; margin-left: -38%; animation-delay: .45s; }
.skill-demo--pack span:nth-child(3) { top: 62px; width: 58%; margin-left: -29%; animation-delay: .9s; }

.resume-entry {
  padding: 28px 30px;
  margin-bottom: 16px;
}

.resume-entry strong {
  margin: 0 0 14px;
  font-size: clamp(1.04rem, 1.3vw, 1.18rem);
  line-height: 1.24;
}

.resume-entry p,
.resume-long-intro,
.timeline-item p {
  margin: 0;
  line-height: 1.78;
}

.timeline-item h3 {
  margin: 6px 0 8px;
}

.resume-columns {
  gap: 20px;
}

.resume-sheet-info a,
.contact-list--static a {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.contact-list--static a:hover,
.resume-sheet-info a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-theme="sketch-handdrawn"] .contact-list--static a,
body[data-theme="sketch-handdrawn"] .resume-sheet-info a {
  color: #1d1814;
}

body[data-theme="office-lux"] .resume-sheet-info a,
body[data-theme="office-lux"] .contact-list--static a {
  color: #0d46dc;
}

body[data-theme="amber-bistro"] .resume-sheet-info a,
body[data-theme="amber-bistro"] .contact-list--static a {
  color: #f1d7b3;
}

body[data-theme="neon-signal"] .resume-sheet-info a,
body[data-theme="neon-signal"] .contact-list--static a {
  color: #88fbff;
}

body[data-theme="orbital-depth"] .resume-sheet-info a,
body[data-theme="orbital-depth"] .contact-list--static a {
  color: #cfe8ff;
}

body[data-theme="office-lux"] .about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
}

body[data-theme="office-lux"] .info-card:first-child {
  grid-row: auto;
}

body[data-theme="office-lux"] .info-card {
  min-height: 0;
}

.process-showcase {
  align-items: center;
}

.preview-window {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(236,243,255,0.78));
}

.preview-canvas {
  gap: 14px;
}

.preview-hero {
  border: 1px solid rgba(96, 131, 192, 0.16);
  background: linear-gradient(135deg, rgba(69, 132, 255, 0.16), rgba(255,255,255,0.92) 52%, rgba(149, 188, 255, 0.22));
}

.preview-hero::after {
  width: 58%;
  height: 14px;
  left: 24px;
  bottom: 24px;
  background: rgba(13, 36, 78, 0.18);
  box-shadow: 0 -26px 0 0 rgba(13, 36, 78, 0.12), 0 -52px 0 0 rgba(13, 36, 78, 0.08);
}

.preview-metrics div,
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(228,239,255,0.74));
  border-color: rgba(96, 131, 192, 0.16);
}

.preview-metrics div::before,
.panel::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  height: 10px;
  border-radius: 999px;
  background: rgba(13, 36, 78, 0.08);
  box-shadow: 0 18px 0 0 rgba(13, 36, 78, 0.06);
}

.panel.panel-tall::before {
  box-shadow: 0 18px 0 0 rgba(13, 36, 78, 0.06), 0 36px 0 0 rgba(13, 36, 78, 0.05), 0 54px 0 0 rgba(13, 36, 78, 0.04);
}

body[data-theme="office-lux"] .process-showcase {
  grid-template-columns: 0.72fr 1.28fr;
}

@keyframes layoutPulse {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4px, 0); }
}

@keyframes visualSweep {
  0%, 100% { transform: scaleX(0.94); opacity: 0.74; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes motionFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  35% { transform: translate3d(14px, -8px, 0); }
  70% { transform: translate3d(-10px, 6px, 0); }
}

@keyframes packStack {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 920px) {
  .resume-entry {
    padding: 24px;
  }
}

@media (max-width: 760px) {
  .skill-demo {
    min-height: 84px;
  }

  .resume-sheet-info {
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-demo span,
  .skill-demo::before,
  .preview-metrics div,
  .panel {
    animation: none !important;
  }
}

body[data-theme="orbital-depth"] .about-grid .info-card:nth-child(1) { min-height: 0; }


/* ---------- V17 FINAL POLISH + BRAND ---------- */
.about-grid,
.skills-grid,
.projects-grid,
.resume-meta-grid,
.resume-columns,
.theme-grid {
  align-items: start;
}

.info-card,
.skill-card,
.project-card,
.resume-entry,
.resume-meta-grid .resume-entry {
  height: auto;
}

.brand-mark {
  font-weight: 900;
  letter-spacing: -0.05em;
}

.brand-copy strong {
  text-transform: none;
  letter-spacing: -0.04em;
}

.info-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  min-height: 0;
}

.info-card p {
  margin: 0;
}

body[data-theme="office-lux"] .about-grid,
body[data-theme="amber-bistro"] .about-grid,
body[data-theme="neon-signal"] .about-grid,
body[data-theme="orbital-depth"] .about-grid {
  align-items: start;
}

body[data-theme="office-lux"] .info-card,
body[data-theme="amber-bistro"] .info-card,
body[data-theme="neon-signal"] .info-card,
body[data-theme="orbital-depth"] .info-card {
  align-self: start;
}

.skill-card {
  padding: 28px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  gap: 0;
}

.skill-card h3 {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 2vw, 1.82rem);
  line-height: 1;
}

.skill-subtitle {
  margin-top: 0;
  font-size: 0.95rem;
  line-height: 1.42;
  opacity: 0.98;
}

.skill-demo {
  margin-top: 18px;
  min-height: 108px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 14px 34px rgba(22, 40, 79, 0.08);
}

.skill-card p {
  margin-top: 16px;
  font-size: 1.02rem;
  line-height: 1.72;
}

body[data-theme="office-lux"] .skill-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(236,243,255,0.88));
}

body[data-theme="amber-bistro"] .skill-card {
  background: linear-gradient(180deg, rgba(39,24,17,0.84), rgba(20,12,8,0.92));
}

body[data-theme="neon-signal"] .skill-card {
  background: linear-gradient(180deg, rgba(10,16,35,0.98), rgba(6,11,26,0.94));
}

body[data-theme="orbital-depth"] .skill-card {
  background: linear-gradient(180deg, rgba(18,24,44,0.96), rgba(13,18,35,0.9));
}

.resume-entry {
  padding: 26px 28px;
  border-radius: 24px;
}

.resume-entry strong {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.12;
}

.resume-entry p,
.resume-columns li,
.resume-long-intro {
  line-height: 1.78;
}

.resume-sheet-head {
  gap: 24px;
}

.resume-sheet-info {
  align-content: start;
}

.resume-sheet-info a,
.resume-sheet-info span {
  overflow-wrap: anywhere;
}

.process-showcase {
  gap: 30px;
  align-items: center;
}

.process-copy {
  max-width: 33rem;
}

.preview-window {
  padding: 20px;
  min-height: 366px;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(233,241,255,0.8));
}

.preview-canvas {
  position: relative;
  min-height: 314px;
}

.preview-canvas::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(70,132,255,0.08), rgba(255,255,255,0));
  border: 1px solid rgba(96, 131, 192, 0.08);
  pointer-events: none;
}

.preview-panels {
  grid-template-columns: 1.1fr 0.9fr 1fr;
}

.panel,
.preview-metrics div {
  overflow: hidden;
}

.panel::after,
.preview-metrics div::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 28%;
  bottom: 14px;
  height: 8px;
  border-radius: 999px;
  background: rgba(13, 36, 78, 0.07);
}

body[data-theme="neon-signal"] .panel::after,
body[data-theme="neon-signal"] .preview-metrics div::after {
  background: rgba(95,238,255,0.18);
}

body[data-theme="orbital-depth"] .panel::after,
body[data-theme="orbital-depth"] .preview-metrics div::after {
  background: rgba(173,210,255,0.16);
}

.contact-list--static a,
.contact-list--static span {
  min-height: 54px;
}

@media (max-width: 1240px) {
  .about-grid,
  body[data-theme="office-lux"] .about-grid,
  body[data-theme="amber-bistro"] .about-grid,
  body[data-theme="neon-signal"] .about-grid,
  body[data-theme="orbital-depth"] .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid,
  body[data-theme="office-lux"] .projects-grid,
  body[data-theme="amber-bistro"] .projects-grid,
  body[data-theme="neon-signal"] .projects-grid,
  body[data-theme="orbital-depth"] .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-theme="office-lux"] .project-card:nth-child(1),
  body[data-theme="office-lux"] .project-card:nth-child(2),
  body[data-theme="office-lux"] .project-card:nth-child(3),
  body[data-theme="orbital-depth"] .project-card:nth-child(1),
  body[data-theme="orbital-depth"] .project-card:nth-child(2),
  body[data-theme="orbital-depth"] .project-card:nth-child(3) {
    grid-column: span 1;
  }
}

@media (max-width: 980px) {
  .process-showcase,
  body[data-theme="office-lux"] .process-showcase,
  body[data-theme="amber-bistro"] .process-showcase,
  body[data-theme="neon-signal"] .process-showcase,
  body[data-theme="orbital-depth"] .process-showcase {
    grid-template-columns: 1fr;
  }

  .process-stage {
    min-height: 540px;
  }

  .skills-grid,
  body[data-theme="office-lux"] .skills-grid,
  body[data-theme="amber-bistro"] .skills-grid,
  body[data-theme="neon-signal"] .skills-grid,
  body[data-theme="orbital-depth"] .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .about-grid,
  .projects-grid,
  .skills-grid,
  .theme-grid,
  body[data-theme="office-lux"] .about-grid,
  body[data-theme="office-lux"] .skills-grid,
  body[data-theme="office-lux"] .projects-grid,
  body[data-theme="amber-bistro"] .about-grid,
  body[data-theme="amber-bistro"] .skills-grid,
  body[data-theme="amber-bistro"] .projects-grid,
  body[data-theme="neon-signal"] .about-grid,
  body[data-theme="neon-signal"] .skills-grid,
  body[data-theme="neon-signal"] .projects-grid,
  body[data-theme="orbital-depth"] .about-grid,
  body[data-theme="orbital-depth"] .skills-grid,
  body[data-theme="orbital-depth"] .projects-grid {
    grid-template-columns: 1fr;
  }

  .skill-card,
  .info-card,
  .project-card,
  .resume-entry {
    padding: 20px;
  }

  .resume-sheet {
    padding: 20px;
  }

  .process-showcase {
    padding: 20px;
  }

  .process-stage {
    min-height: 0;
  }

  .preview-window {
    min-height: 0;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .brand-copy small {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-canvas::before,
  .panel::after,
  .preview-metrics div::after {
    animation: none !important;
  }
}


/* ---------- V18 NEON REBUILD + SKILL DEMOS ---------- */
:root {
  --demo-surface-a: rgba(255,255,255,0.95);
  --demo-surface-b: rgba(232,239,250,0.86);
  --demo-border: rgba(88, 114, 170, 0.16);
  --demo-line: rgba(73, 112, 196, 0.18);
  --demo-line-strong: rgba(59, 107, 220, 0.34);
  --demo-glow: rgba(111, 161, 255, 0.34);
  --demo-shadow: rgba(22, 40, 79, 0.12);
}

body[data-theme="office-lux"] {
  --demo-surface-a: rgba(255,255,255,0.98);
  --demo-surface-b: rgba(235,243,255,0.9);
  --demo-border: rgba(82, 123, 204, 0.18);
  --demo-line: rgba(78, 124, 225, 0.18);
  --demo-line-strong: rgba(32, 95, 226, 0.36);
  --demo-glow: rgba(93, 151, 255, 0.34);
  --demo-shadow: rgba(32, 67, 140, 0.13);
}

body[data-theme="amber-bistro"] {
  --demo-surface-a: rgba(255,248,238,0.98);
  --demo-surface-b: rgba(252,239,218,0.88);
  --demo-border: rgba(212, 164, 102, 0.2);
  --demo-line: rgba(211, 161, 92, 0.2);
  --demo-line-strong: rgba(201, 136, 70, 0.38);
  --demo-glow: rgba(244, 198, 134, 0.26);
  --demo-shadow: rgba(30, 18, 8, 0.18);
}

body[data-theme="neon-signal"] {
  --demo-surface-a: rgba(8,14,30,0.98);
  --demo-surface-b: rgba(14,23,49,0.94);
  --demo-border: rgba(93, 235, 255, 0.2);
  --demo-line: rgba(58, 245, 255, 0.2);
  --demo-line-strong: rgba(115, 236, 255, 0.42);
  --demo-glow: rgba(88, 214, 255, 0.26);
  --demo-shadow: rgba(0, 0, 0, 0.28);
}

body[data-theme="orbital-depth"] {
  --demo-surface-a: rgba(12,19,38,0.98);
  --demo-surface-b: rgba(19,28,55,0.92);
  --demo-border: rgba(152, 201, 255, 0.2);
  --demo-line: rgba(143, 199, 255, 0.18);
  --demo-line-strong: rgba(143, 199, 255, 0.38);
  --demo-glow: rgba(126, 185, 255, 0.24);
  --demo-shadow: rgba(0, 0, 0, 0.28);
}

.skill-demo {
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.9), transparent 38%),
    linear-gradient(180deg, var(--demo-surface-a), var(--demo-surface-b));
  border-color: var(--demo-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 16px 34px var(--demo-shadow);
  perspective: 1100px;
  transform-style: preserve-3d;
}

.skill-demo--layout {
  min-height: 118px;
}

.skill-demo--layout::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid var(--demo-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), transparent 28%),
    radial-gradient(circle at 84% 22%, var(--demo-glow), transparent 28%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
  animation: layoutViewportShift 7.8s cubic-bezier(.65,0,.35,1) infinite;
  transform-origin: center;
}

.skill-demo--layout::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(22,40,79,0.12), transparent 70%);
  filter: blur(10px);
  opacity: 0.55;
}

.skill-demo--layout span {
  transform-origin: center;
  animation-duration: 7.8s;
  animation-timing-function: cubic-bezier(.65,0,.35,1);
  animation-iteration-count: infinite;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(197,211,238,0.58));
  border-color: var(--demo-border);
  box-shadow: 0 12px 26px var(--demo-shadow);
}

.skill-demo--layout span:nth-child(1) {
  left: 14px;
  right: 14px;
  top: 14px;
  height: 12px;
  border-radius: 999px;
  animation-name: layoutHeaderMorph;
}

.skill-demo--layout span:nth-child(2) {
  left: 14px;
  width: calc(54% - 18px);
  top: 34px;
  height: 48px;
  border-radius: 18px;
  animation-name: layoutMainMorph;
}

.skill-demo--layout span:nth-child(3) {
  right: 14px;
  width: calc(46% - 18px);
  top: 34px;
  height: 19px;
  border-radius: 14px;
  animation-name: layoutAsideTopMorph;
}

.skill-demo--layout span:nth-child(4) {
  right: 14px;
  width: calc(46% - 18px);
  top: 58px;
  height: 24px;
  border-radius: 14px;
  animation-name: layoutAsideBottomMorph;
}

.skill-demo--visual {
  min-height: 118px;
  background:
    radial-gradient(circle at 78% 28%, var(--demo-glow), transparent 24%),
    linear-gradient(180deg, var(--demo-surface-a), var(--demo-surface-b));
}

.skill-demo--visual::before {
  content: "";
  position: absolute;
  inset: -18% auto -22% -18%;
  width: 46%;
  background: linear-gradient(115deg, transparent 12%, rgba(255,255,255,0.1) 30%, rgba(255,255,255,0.55) 46%, rgba(255,255,255,0.08) 60%, transparent 74%);
  filter: blur(4px);
  opacity: 0.8;
  transform: translateX(-28%) rotate(12deg);
  animation: visualBeam 6.8s ease-in-out infinite;
}

.skill-demo--visual::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  right: 18px;
  top: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.98), rgba(130,174,255,0.5));
  box-shadow: 0 0 26px var(--demo-glow);
  animation: visualOrb 6.8s ease-in-out infinite;
}

.skill-demo--visual span {
  background: linear-gradient(90deg, rgba(87,133,227,0.16), rgba(255,255,255,0.96), rgba(135,177,255,0.34));
  border: 1px solid transparent;
}

.skill-demo--visual span:nth-child(1) {
  left: 16px;
  right: 58px;
  top: 16px;
  height: 10px;
  border-radius: 999px;
  animation: visualLineTop 6.8s ease-in-out infinite;
}

.skill-demo--visual span:nth-child(2) {
  left: 20px;
  right: 20px;
  top: 34px;
  height: 46px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(222,232,250,0.52)),
    linear-gradient(135deg, rgba(255,255,255,0.15), transparent 60%);
  border: 1px solid var(--demo-border);
  box-shadow: 0 18px 36px var(--demo-shadow), inset 0 1px 0 rgba(255,255,255,0.52);
  transform-style: preserve-3d;
  animation: visualCardFloat 6.8s ease-in-out infinite;
}

.skill-demo--visual span:nth-child(3) {
  left: 16px;
  right: 72px;
  bottom: 16px;
  height: 10px;
  border-radius: 999px;
  animation: visualLineBottom 6.8s ease-in-out infinite;
}

.skill-demo--pack {
  min-height: 118px;
  background:
    radial-gradient(circle at 22% 74%, var(--demo-glow), transparent 28%),
    linear-gradient(180deg, var(--demo-surface-a), var(--demo-surface-b));
}

.skill-demo--pack::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 82%;
  height: 66px;
  transform: translateX(-50%) translateZ(-8px);
  border-radius: 22px;
  border: 1px solid var(--demo-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.08)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.5), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  animation: packShellGlow 7.1s ease-in-out infinite;
}

.skill-demo--pack::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 72%;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(19,34,76,0.14), transparent 68%);
  filter: blur(9px);
}

.skill-demo--pack span {
  left: 50%;
  width: 64%;
  height: 16px;
  margin-left: -32%;
  border-radius: 14px;
  border: 1px solid var(--demo-border);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(216,228,248,0.64));
  box-shadow: 0 14px 24px var(--demo-shadow);
  animation-duration: 7.1s;
  animation-timing-function: cubic-bezier(.65,0,.35,1);
  animation-iteration-count: infinite;
}

.skill-demo--pack span:nth-child(1) {
  top: 16px;
  animation-name: packAssembleOne;
}

.skill-demo--pack span:nth-child(2) {
  top: 42px;
  width: 74%;
  margin-left: -37%;
  animation-name: packAssembleTwo;
}

.skill-demo--pack span:nth-child(3) {
  top: 68px;
  width: 56%;
  margin-left: -28%;
  animation-name: packAssembleThree;
}

@keyframes layoutViewportShift {
  0%, 18%, 100% { transform: translateZ(0) scale(1); }
  36%, 64% { transform: translateZ(12px) scale(0.84); }
  82% { transform: translateZ(0) scale(0.98); }
}

@keyframes layoutHeaderMorph {
  0%, 18%, 100% { left: 14px; right: 14px; top: 14px; height: 12px; opacity: .96; }
  36%, 64% { left: 26px; right: 26px; top: 14px; height: 10px; opacity: .88; }
}

@keyframes layoutMainMorph {
  0%, 18%, 100% {
    left: 14px; width: calc(54% - 18px); top: 34px; height: 48px;
    transform: translate3d(0,0,24px);
  }
  36%, 64% {
    left: 26px; right: 26px; width: auto; top: 32px; height: 20px;
    transform: translate3d(0,0,12px);
  }
}

@keyframes layoutAsideTopMorph {
  0%, 18%, 100% {
    right: 14px; width: calc(46% - 18px); top: 34px; height: 19px;
    transform: translate3d(0,0,12px);
  }
  36%, 64% {
    left: 26px; right: 26px; width: auto; top: 58px; height: 14px;
    transform: translate3d(0,0,0);
  }
}

@keyframes layoutAsideBottomMorph {
  0%, 18%, 100% {
    right: 14px; width: calc(46% - 18px); top: 58px; height: 24px;
    transform: translate3d(0,0,8px);
  }
  36%, 64% {
    left: 26px; right: 26px; width: auto; top: 76px; height: 16px;
    transform: translate3d(0,0,0);
  }
}

@keyframes visualBeam {
  0%, 100% { transform: translateX(-28%) rotate(12deg); opacity: .24; }
  18% { opacity: .54; }
  52% { transform: translateX(132%) rotate(12deg); opacity: .92; }
  72% { opacity: .3; }
}

@keyframes visualOrb {
  0%, 100% { transform: translate3d(0,0,18px) scale(.86); }
  42% { transform: translate3d(-10px,8px,34px) scale(1.04); }
  70% { transform: translate3d(-4px,-6px,16px) scale(.92); }
}

@keyframes visualCardFloat {
  0%, 100% { transform: rotateX(0deg) rotateY(-9deg) translateZ(8px); }
  30% { transform: rotateX(9deg) rotateY(-16deg) translateZ(22px) translateY(-2px); }
  58% { transform: rotateX(-3deg) rotateY(10deg) translateZ(32px); }
  78% { transform: rotateX(6deg) rotateY(-6deg) translateZ(16px); }
}

@keyframes visualLineTop {
  0%, 100% { transform: translateX(0) scaleX(.96); opacity: .72; }
  48% { transform: translateX(10px) scaleX(1.02); opacity: 1; }
}

@keyframes visualLineBottom {
  0%, 100% { transform: translateX(0) scaleX(.88); opacity: .68; }
  48% { transform: translateX(16px) scaleX(1); opacity: 1; }
}

@keyframes packShellGlow {
  0%, 100% { transform: translateX(-50%) translateZ(-8px) scale(1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); }
  48% { transform: translateX(-50%) translateZ(-8px) scale(1.02); box-shadow: inset 0 1px 0 rgba(255,255,255,0.48), 0 0 36px var(--demo-glow); }
}

@keyframes packAssembleOne {
  0%, 16%, 100% { transform: translate3d(-16px,0,22px) rotate(-6deg); }
  40%, 68% { transform: translate3d(0,18px,12px) rotate(0deg); }
  84% { transform: translate3d(-8px,8px,18px) rotate(-2deg); }
}

@keyframes packAssembleTwo {
  0%, 16%, 100% { transform: translate3d(18px,0,12px) rotate(5deg); }
  40%, 68% { transform: translate3d(0,-6px,18px) rotate(0deg); }
  84% { transform: translate3d(8px,4px,14px) rotate(2deg); }
}

@keyframes packAssembleThree {
  0%, 16%, 100% { transform: translate3d(-10px,0,0) rotate(-3deg); }
  40%, 68% { transform: translate3d(0,-26px,24px) rotate(0deg); }
  84% { transform: translate3d(-4px,-12px,10px) rotate(-1deg); }
}

body[data-theme="neon-signal"] .theme-switch,
body[data-theme="neon-signal"] .btn,
body[data-theme="neon-signal"] .card-index,
body[data-theme="neon-signal"] .menu-toggle,
body[data-theme="neon-signal"] .back-link,
body[data-theme="neon-signal"] .sketch-panel,
body[data-theme="neon-signal"] .theme-card,
body[data-theme="neon-signal"] .process-showcase,
body[data-theme="neon-signal"] .process-showcase .code-window,
body[data-theme="neon-signal"] .process-showcase .preview-window,
body[data-theme="neon-signal"] .contact-list--static span,
body[data-theme="neon-signal"] .resume-meta-grid .resume-entry,
body[data-theme="neon-signal"] .preview-hero,
body[data-theme="neon-signal"] .panel,
body[data-theme="neon-signal"] .preview-metrics div {
  clip-path: none !important;
}

body[data-theme="neon-signal"] .theme-switch,
body[data-theme="neon-signal"] .btn,
body[data-theme="neon-signal"] .card-index,
body[data-theme="neon-signal"] .menu-toggle,
body[data-theme="neon-signal"] .back-link {
  border-radius: 18px !important;
}

body[data-theme="neon-signal"] .sketch-panel,
body[data-theme="neon-signal"] .theme-card,
body[data-theme="neon-signal"] .process-showcase,
body[data-theme="neon-signal"] .process-showcase .code-window,
body[data-theme="neon-signal"] .process-showcase .preview-window,
body[data-theme="neon-signal"] .contact-list--static span,
body[data-theme="neon-signal"] .resume-meta-grid .resume-entry,
body[data-theme="neon-signal"] .preview-hero,
body[data-theme="neon-signal"] .panel,
body[data-theme="neon-signal"] .preview-metrics div {
  border-radius: 30px !important;
}

body[data-theme="neon-signal"] .sketch-panel,
body[data-theme="neon-signal"] .theme-card,
body[data-theme="neon-signal"] .resume-entry,
body[data-theme="neon-signal"] .preview-hero,
body[data-theme="neon-signal"] .panel,
body[data-theme="neon-signal"] .preview-metrics div {
  background:
    linear-gradient(180deg, rgba(7,13,30,0.96), rgba(11,19,42,0.84)),
    radial-gradient(circle at 14% 0%, rgba(58,245,255,0.12), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(207,97,255,0.1), transparent 36%);
  border-color: rgba(94,238,255,0.18);
  box-shadow:
    0 0 0 1px rgba(72,242,255,0.08) inset,
    0 24px 70px rgba(0,0,0,0.34),
    0 0 36px rgba(58,245,255,0.08),
    0 0 70px rgba(207,97,255,0.05);
}

body[data-theme="neon-signal"] .sketch-panel::before,
body[data-theme="neon-signal"] .theme-card::before,
body[data-theme="neon-signal"] .back-link::before {
  inset: 8px;
  border-radius: 22px;
  border-color: rgba(93, 235, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 34%),
    linear-gradient(135deg, rgba(58,245,255,0.06), transparent 46%, rgba(207,97,255,0.05));
}

body[data-theme="neon-signal"] .sketch-panel::after,
body[data-theme="neon-signal"] .theme-card::after,
body[data-theme="neon-signal"] .back-link::after {
  left: 18px;
  right: 18px;
  top: auto;
  bottom: 14px;
  height: 56px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(58,245,255,0.14), transparent 64%);
  filter: blur(18px);
  opacity: .9;
}

body[data-theme="neon-signal"] .info-card,
body[data-theme="neon-signal"] .project-card,
body[data-theme="neon-signal"] .skill-card,
body[data-theme="neon-signal"] .timeline-item,
body[data-theme="neon-signal"] .resume-entry,
body[data-theme="neon-signal"] .preview-hero,
body[data-theme="neon-signal"] .panel,
body[data-theme="neon-signal"] .preview-metrics div,
body[data-theme="neon-signal"] .window-card,
body[data-theme="neon-signal"] .orbit-panel {
  transform-style: preserve-3d;
}

body[data-theme="neon-signal"] .info-card:hover,
body[data-theme="neon-signal"] .project-card:hover,
body[data-theme="neon-signal"] .skill-card:hover {
  transform: translateY(-6px) rotateX(5deg) rotateY(-4deg);
  box-shadow:
    0 0 0 1px rgba(72,242,255,0.12) inset,
    0 28px 74px rgba(0,0,0,0.38),
    0 0 42px rgba(58,245,255,0.12),
    0 0 82px rgba(207,97,255,0.08);
}

body[data-theme="neon-signal"] .window-card {
  perspective: 1400px;
  background:
    linear-gradient(180deg, rgba(5,10,22,0.98), rgba(10,16,34,0.9)),
    radial-gradient(circle at 0% 0%, rgba(58,245,255,0.14), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(207,97,255,0.14), transparent 34%);
  box-shadow: 0 0 0 1px rgba(86, 235, 255, 0.12) inset, 0 28px 84px rgba(0,0,0,0.42), 0 0 60px rgba(58,245,255,0.08);
}

body[data-theme="neon-signal"] .window-content {
  transform-style: preserve-3d;
}

body[data-theme="neon-signal"] .blob-main {
  transform: translateZ(20px);
}

body[data-theme="neon-signal"] .art-row .art-blob:first-child {
  transform: translateZ(34px) rotateX(10deg);
}

body[data-theme="neon-signal"] .art-row .art-blob:last-child {
  transform: translateZ(16px) rotateY(-10deg);
}

body[data-theme="neon-signal"] .art-line {
  transform: translateZ(30px);
}

body[data-theme="neon-signal"] .orbit-stage {
  perspective: 1600px;
  transform-style: preserve-3d;
}

body[data-theme="neon-signal"] .orbit-panel {
  background: linear-gradient(180deg, rgba(8,16,35,0.9), rgba(14,22,49,0.72));
  border-color: rgba(92,255,209,0.22);
  box-shadow: 0 18px 38px rgba(0,0,0,0.28), inset 0 0 0 1px rgba(92,255,209,0.08), 0 0 24px rgba(58,245,255,0.08);
  backdrop-filter: blur(12px);
}

body[data-theme="neon-signal"] .orbit-ring {
  box-shadow: inset 0 0 0 1px rgba(58,245,255,0.18), 0 0 30px rgba(58,245,255,0.1);
}

body[data-theme="neon-signal"] .orbit-cube {
  box-shadow: 0 0 22px rgba(58,245,255,0.18), 0 0 48px rgba(207,97,255,0.08);
}

body[data-theme="neon-signal"] .theme-switch.is-active {
  box-shadow: 0 18px 42px rgba(58,245,255,0.12), 0 0 30px rgba(207,97,255,0.1);
}

@media (max-width: 980px) {
  .skill-demo {
    min-height: 102px;
  }

  .skill-card {
    padding: 24px;
  }
}

@media (max-width: 760px) {
  .skill-demo {
    min-height: 94px;
  }

  body[data-theme="neon-signal"] .sketch-panel,
  body[data-theme="neon-signal"] .theme-card,
  body[data-theme="neon-signal"] .process-showcase,
  body[data-theme="neon-signal"] .process-showcase .code-window,
  body[data-theme="neon-signal"] .process-showcase .preview-window,
  body[data-theme="neon-signal"] .contact-list--static span,
  body[data-theme="neon-signal"] .resume-meta-grid .resume-entry,
  body[data-theme="neon-signal"] .preview-hero,
  body[data-theme="neon-signal"] .panel,
  body[data-theme="neon-signal"] .preview-metrics div {
    border-radius: 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-demo--layout::before,
  .skill-demo--visual::before,
  .skill-demo--visual::after,
  .skill-demo--pack::before,
  .skill-demo span,
  .skill-demo::before,
  .skill-demo::after {
    animation: none !important;
  }

  body[data-theme="neon-signal"] .info-card:hover,
  body[data-theme="neon-signal"] .project-card:hover,
  body[data-theme="neon-signal"] .skill-card:hover {
    transform: none;
  }
}


/* ---------- v19: resume polish + concept works + richer skill demos ---------- */
.resume-entry {
  padding: 18px 18px 16px;
  border-radius: 22px;
}
.resume-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.resume-long-intro {
  max-width: 980px;
  font-size: 1.06rem;
  line-height: 1.82;
}
.resume-columns--detailed section {
  display: grid;
  align-content: start;
  gap: 12px;
}
.resume-columns--detailed section > p {
  margin: 0;
  line-height: 1.78;
}
.resume-columns--detailed .resume-entry {
  margin-bottom: 0;
}

.projects-grid--concepts .project-card {
  display: grid;
  gap: 0;
}
.project-preview {
  border-radius: 28px;
}
.preview-ui {
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.26);
  background: linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0.08));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}
.preview-ui-top {
  display: flex;
  gap: 8px;
  padding: 14px 14px 10px;
}
.preview-ui-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
}
.preview-ui--start .preview-ui-hero {
  height: 64px;
  margin: 4px 14px 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(208,222,248,0.5));
  box-shadow: 0 20px 30px rgba(0,0,0,0.08);
  animation: previewHeroLift 6.2s ease-in-out infinite;
}
.preview-ui-stack {
  display: grid;
  gap: 10px;
  padding: 0 14px;
}
.preview-ui-stack div,
.preview-ui-footer,
.preview-ui-side span {
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(211,224,247,0.52));
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.preview-ui-stack div:nth-child(1) { height: 16px; animation: previewLineShift 6.2s ease-in-out infinite; }
.preview-ui-stack div:nth-child(2) { height: 16px; width: 84%; animation: previewLineShift 6.2s ease-in-out infinite .2s; }
.preview-ui-stack div:nth-child(3) { height: 40px; width: 58%; animation: previewCardSnap 6.2s ease-in-out infinite; }

.preview-ui--deep .preview-ui-columns {
  display: grid;
  grid-template-columns: 1.1fr 0.72fr;
  gap: 12px;
  padding: 0 14px;
}
.preview-ui-main {
  min-height: 102px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,0.95), rgba(206,220,248,0.44));
  box-shadow: 0 18px 28px rgba(0,0,0,0.08);
  animation: previewColumnDepth 7s ease-in-out infinite;
}
.preview-ui-side {
  display: grid;
  align-content: start;
  gap: 10px;
}
.preview-ui-side span:nth-child(1) { height: 22px; animation: previewLineShift 7s ease-in-out infinite .2s; }
.preview-ui-side span:nth-child(2) { height: 32px; animation: previewCardSnap 7s ease-in-out infinite .45s; }
.preview-ui-side span:nth-child(3) { height: 26px; animation: previewLineShift 7s ease-in-out infinite .65s; }
.preview-ui-footer {
  height: 14px;
  margin: 12px 14px 0;
  animation: previewFooterFlow 7s ease-in-out infinite;
}

.preview-ui--impact {
  background:
    radial-gradient(circle at 22% 24%, rgba(255,255,255,0.28), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
}
.preview-glow,
.preview-float {
  position: absolute;
  border-radius: 24px;
}
.preview-glow-a {
  inset: 22px auto auto 20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.8), rgba(255,255,255,0.06) 62%, transparent 70%);
  filter: blur(6px);
  animation: previewGlowPulse 6.8s ease-in-out infinite;
}
.preview-glow-b {
  right: 24px;
  bottom: 22px;
  width: 150px;
  height: 92px;
  background: linear-gradient(135deg, rgba(255,255,255,0.32), rgba(255,255,255,0.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 22px 40px rgba(0,0,0,0.12);
  animation: previewFloatPanel 6.8s ease-in-out infinite;
}
.preview-float-a {
  left: 30px;
  top: 54px;
  width: 112px;
  height: 64px;
  background: linear-gradient(135deg, rgba(255,255,255,0.84), rgba(210,223,247,0.34));
  box-shadow: 0 18px 36px rgba(0,0,0,0.12);
  animation: previewFloatPanel 6.8s ease-in-out infinite .25s;
}
.preview-float-b {
  left: 138px;
  top: 96px;
  width: 96px;
  height: 52px;
  background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(215,226,248,0.28));
  box-shadow: 0 18px 30px rgba(0,0,0,0.12);
  animation: previewFloatPanel 6.8s ease-in-out infinite .55s;
}
.preview-float-c {
  right: 30px;
  top: 34px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.96), rgba(168,195,255,0.5));
  box-shadow: 0 0 30px rgba(255,255,255,0.22);
  animation: visualOrb 6.8s ease-in-out infinite;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.project-tags span {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.42);
  font-size: 0.86rem;
  font-weight: 700;
}

.skill-demo--layout::before {
  animation-name: layoutViewportResponsive;
}
.skill-demo--layout span:nth-child(1) { animation-name: layoutHeaderResponsive; }
.skill-demo--layout span:nth-child(2) { animation-name: layoutMainResponsive; }
.skill-demo--layout span:nth-child(3) { animation-name: layoutAsideTopResponsive; }
.skill-demo--layout span:nth-child(4) { animation-name: layoutAsideBottomResponsive; }

.skill-demo--visual::before {
  width: 54%;
  opacity: 0.9;
}
.skill-demo--visual::after {
  width: 42px;
  height: 42px;
  box-shadow: 0 0 36px var(--demo-glow);
}
.skill-demo--visual span:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(224,236,255,0.54)),
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.56), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
}
.skill-demo--pack::before {
  width: 84%;
  height: 70px;
}

@keyframes layoutViewportResponsive {
  0%, 16%, 100% { transform: translateZ(0) scale(1); }
  34%, 46% { transform: translateZ(10px) scaleX(0.86) scaleY(0.98); }
  64%, 78% { transform: translateZ(14px) scaleX(0.7) scaleY(1.02); }
}
@keyframes layoutHeaderResponsive {
  0%, 16%, 100% { left: 14px; right: 14px; top: 14px; height: 12px; }
  34%, 46% { left: 22px; right: 22px; top: 14px; height: 10px; }
  64%, 78% { left: 22px; right: 22px; top: 14px; height: 9px; }
}
@keyframes layoutMainResponsive {
  0%, 16%, 100% { left: 14px; width: calc(54% - 18px); top: 34px; height: 48px; }
  34%, 46% { left: 18px; width: calc(58% - 20px); top: 34px; height: 52px; }
  64%, 78% { left: 18px; right: 18px; width: auto; top: 34px; height: 28px; }
}
@keyframes layoutAsideTopResponsive {
  0%, 16%, 100% { right: 14px; width: calc(46% - 18px); top: 34px; height: 19px; }
  34%, 46% { right: 18px; width: calc(42% - 18px); top: 34px; height: 18px; }
  64%, 78% { left: 18px; right: 18px; width: auto; top: 66px; height: 12px; }
}
@keyframes layoutAsideBottomResponsive {
  0%, 16%, 100% { right: 14px; width: calc(46% - 18px); top: 58px; height: 24px; }
  34%, 46% { right: 18px; width: calc(42% - 18px); top: 58px; height: 28px; }
  64%, 78% { left: 18px; right: 18px; width: auto; top: 84px; height: 12px; }
}
@keyframes previewHeroLift {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}
@keyframes previewLineShift {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(6px); opacity: 0.92; }
}
@keyframes previewCardSnap {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(0.98); }
}
@keyframes previewColumnDepth {
  0%, 100% { transform: translateY(0) rotateX(0deg); }
  50% { transform: translateY(-5px) rotateX(6deg); }
}
@keyframes previewFooterFlow {
  0%, 100% { width: calc(100% - 28px); }
  50% { width: calc(74% - 28px); }
}
@keyframes previewGlowPulse {
  0%, 100% { transform: scale(0.94); opacity: 0.72; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes previewFloatPanel {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

body[data-theme="neon-signal"] .project-preview,
body[data-theme="neon-signal"] .preview-ui,
body[data-theme="neon-signal"] .project-tags span,
body[data-theme="neon-signal"] .resume-entry {
  border-color: rgba(88, 244, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(120,255,255,0.08), 0 20px 40px rgba(0,0,0,0.26), 0 0 26px rgba(86,214,255,0.08);
}
body[data-theme="neon-signal"] .preview-ui {
  background: linear-gradient(180deg, rgba(10,19,39,0.9), rgba(14,22,52,0.74));
}
body[data-theme="neon-signal"] .preview-ui-top span,
body[data-theme="neon-signal"] .project-tags span {
  background: rgba(9, 20, 44, 0.72);
  color: #dffcff;
}
body[data-theme="neon-signal"] .preview-ui-stack div,
body[data-theme="neon-signal"] .preview-ui-main,
body[data-theme="neon-signal"] .preview-ui-side span,
body[data-theme="neon-signal"] .preview-ui-footer,
body[data-theme="neon-signal"] .preview-ui--start .preview-ui-hero,
body[data-theme="neon-signal"] .preview-float-a,
body[data-theme="neon-signal"] .preview-float-b,
body[data-theme="neon-signal"] .preview-glow-b {
  background: linear-gradient(135deg, rgba(18,31,69,0.9), rgba(23,51,102,0.56));
  border: 1px solid rgba(95,236,255,0.24);
  box-shadow: 0 0 26px rgba(74,224,255,0.14), inset 0 1px 0 rgba(183,255,255,0.12);
}

@media (max-width: 1100px) {
  .resume-meta-grid,
  .projects-grid--concepts { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .resume-sheet { padding: 24px; }
  .resume-sheet-head { grid-template-columns: 1fr; }
  .resume-sheet-info { justify-items: start; }
  .resume-columns { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .project-preview { height: 200px; }
  .preview-ui { inset: 14px; }
  .project-tags { gap: 8px; }
  .resume-entry { border-radius: 18px; }
}

/* ---------- v21: richer office + editorial themes, and clean layout demo ---------- */
.skill-demo--layout {
  min-height: 126px;
  overflow: hidden;
}

.skill-demo--layout::before {
  inset: 12px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05)),
    radial-gradient(circle at 82% 18%, rgba(151,186,255,0.18), transparent 26%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24);
  animation: none;
  transform: none;
}

.skill-demo--layout::after {
  left: 24px;
  right: 24px;
  bottom: 10px;
  height: 8px;
  opacity: 0.32;
}

.skill-demo--layout span {
  animation-duration: 7.2s;
  animation-timing-function: cubic-bezier(.58,0,.42,1);
  animation-fill-mode: both;
}

.skill-demo--layout span:nth-child(1) {
  left: 16px;
  right: 16px;
  top: 16px;
  height: 10px;
  animation-name: layoutHeaderClean;
}

.skill-demo--layout span:nth-child(2) {
  left: 16px;
  width: 42%;
  top: 36px;
  height: 48px;
  border-radius: 18px;
  animation-name: layoutMainClean;
}

.skill-demo--layout span:nth-child(3) {
  left: calc(16px + 46%);
  width: calc(38% - 6px);
  top: 36px;
  height: 18px;
  border-radius: 14px;
  animation-name: layoutTopClean;
}

.skill-demo--layout span:nth-child(4) {
  left: calc(16px + 46%);
  width: calc(38% - 6px);
  top: 62px;
  height: 22px;
  border-radius: 14px;
  animation-name: layoutBottomClean;
}

@keyframes layoutHeaderClean {
  0%, 18%, 100% {
    left: 16px; right: 16px; top: 16px; height: 10px; transform: translate3d(0,0,10px);
  }
  34%, 54% {
    left: 22px; right: 22px; top: 16px; height: 9px; transform: translate3d(0,0,8px);
  }
  72%, 88% {
    left: 18px; right: 18px; top: 16px; height: 9px; transform: translate3d(0,0,8px);
  }
}

@keyframes layoutMainClean {
  0%, 18%, 100% {
    left: 16px; right: auto; width: 42%; top: 36px; height: 48px; transform: translate3d(0,0,18px) scale(1);
  }
  34%, 54% {
    left: 22px; right: auto; width: 52%; top: 36px; height: 52px; transform: translate3d(0,0,16px) scale(1.01);
  }
  72%, 88% {
    left: 18px; right: 18px; width: auto; top: 36px; height: 22px; transform: translate3d(0,0,10px) scale(1);
  }
}

@keyframes layoutTopClean {
  0%, 18%, 100% {
    left: calc(16px + 46%); right: auto; width: calc(38% - 6px); top: 36px; height: 18px; transform: translate3d(0,0,10px);
  }
  34%, 54% {
    left: calc(24px + 56%); right: auto; width: calc(22% - 10px); top: 36px; height: 18px; transform: translate3d(0,0,8px);
  }
  72%, 88% {
    left: 18px; right: 18px; width: auto; top: 66px; height: 12px; transform: translate3d(0,0,4px);
  }
}

@keyframes layoutBottomClean {
  0%, 18%, 100% {
    left: calc(16px + 46%); right: auto; width: calc(38% - 6px); top: 62px; height: 22px; transform: translate3d(0,0,8px);
  }
  34%, 54% {
    left: calc(24px + 56%); right: auto; width: calc(22% - 10px); top: 60px; height: 28px; transform: translate3d(0,0,8px);
  }
  72%, 88% {
    left: 18px; right: 18px; width: auto; top: 84px; height: 12px; transform: translate3d(0,0,4px);
  }
}

body[data-theme="office-lux"] .hero-art,
body[data-theme="office-lux"] .process-stage,
body[data-theme="office-lux"] .project-preview,
body[data-theme="office-lux"] .skill-demo {
  perspective: 1500px;
  transform-style: preserve-3d;
}

body[data-theme="office-lux"] .window-card,
body[data-theme="office-lux"] .project-card,
body[data-theme="office-lux"] .skill-card,
body[data-theme="office-lux"] .info-card,
body[data-theme="office-lux"] .resume-card,
body[data-theme="office-lux"] .theme-control,
body[data-theme="office-lux"] .contact-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(243,247,255,0.92)),
    linear-gradient(135deg, rgba(212,227,255,0.18), transparent 55%);
  box-shadow:
    0 24px 56px rgba(49, 87, 157, 0.12),
    0 8px 18px rgba(18, 42, 88, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.85);
}

body[data-theme="office-lux"] .window-card::before,
body[data-theme="office-lux"] .project-card::before,
body[data-theme="office-lux"] .skill-card::before,
body[data-theme="office-lux"] .info-card::before,
body[data-theme="office-lux"] .resume-card::before,
body[data-theme="office-lux"] .theme-control::before,
body[data-theme="office-lux"] .contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.44), transparent 36%);
}

body[data-theme="office-lux"] .window-card {
  transform: rotateX(10deg) rotateY(-12deg) translateZ(18px);
  box-shadow:
    0 34px 70px rgba(38, 73, 143, 0.16),
    0 0 0 1px rgba(201,220,255,0.8),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

body[data-theme="office-lux"] .window-card::after {
  content: "";
  position: absolute;
  inset: 14px -18px -18px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(216,230,255,0.5), rgba(191,213,255,0.1));
  transform: translateZ(-24px);
  filter: blur(6px);
  z-index: -1;
}

body[data-theme="office-lux"] .note-card {
  box-shadow: 0 18px 34px rgba(41, 78, 149, 0.1), inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
}

body[data-theme="office-lux"] .project-preview .preview-ui,
body[data-theme="office-lux"] .process-stage .preview-window,
body[data-theme="office-lux"] .process-stage .code-window {
  transform-style: preserve-3d;
  box-shadow: 0 26px 48px rgba(36, 71, 136, 0.14), inset 0 1px 0 rgba(255,255,255,0.62);
}

body[data-theme="office-lux"] .project-preview .preview-ui {
  transform: rotateX(12deg) rotateY(-10deg) translateZ(20px);
}

body[data-theme="office-lux"] .preview-ui-main,
body[data-theme="office-lux"] .preview-ui-side span,
body[data-theme="office-lux"] .preview-ui-footer,
body[data-theme="office-lux"] .preview-ui-stack div,
body[data-theme="office-lux"] .preview-ui--start .preview-ui-hero,
body[data-theme="office-lux"] .preview-float-a,
body[data-theme="office-lux"] .preview-float-b {
  box-shadow: 0 14px 28px rgba(39, 76, 148, 0.12);
}

body[data-theme="office-lux"] .project-card:hover,
body[data-theme="office-lux"] .skill-card:hover,
body[data-theme="office-lux"] .info-card:hover {
  transform: translateY(-6px) rotateX(2deg);
}

body[data-theme="amber-bistro"] .hero,
body[data-theme="amber-bistro"] .section {
  position: relative;
}

body[data-theme="amber-bistro"] .hero::before,
body[data-theme="amber-bistro"] .section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 18%, rgba(245, 195, 117, 0.09), transparent 22%);
}

body[data-theme="amber-bistro"] .window-card,
body[data-theme="amber-bistro"] .project-card,
body[data-theme="amber-bistro"] .skill-card,
body[data-theme="amber-bistro"] .info-card,
body[data-theme="amber-bistro"] .resume-card,
body[data-theme="amber-bistro"] .theme-control,
body[data-theme="amber-bistro"] .contact-panel {
  position: relative;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255,252,247,0.96), rgba(250,244,235,0.94)),
    radial-gradient(circle at 82% 18%, rgba(236,189,120,0.12), transparent 28%);
  box-shadow:
    0 22px 44px rgba(92, 58, 23, 0.12),
    0 8px 18px rgba(92, 58, 23, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.72);
}

body[data-theme="amber-bistro"] .window-card::before,
body[data-theme="amber-bistro"] .project-card::before,
body[data-theme="amber-bistro"] .skill-card::before,
body[data-theme="amber-bistro"] .info-card::before,
body[data-theme="amber-bistro"] .resume-card::before,
body[data-theme="amber-bistro"] .theme-control::before,
body[data-theme="amber-bistro"] .contact-panel::before {
  content: "";
  position: absolute;
  inset: 10px 12px -10px 12px;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(180deg, rgba(244,228,203,0.8), rgba(218,190,148,0.24));
  filter: blur(1px);
  transform: translateY(10px) scale(0.985);
}

body[data-theme="amber-bistro"] .window-card::after,
body[data-theme="amber-bistro"] .project-card::after,
body[data-theme="amber-bistro"] .skill-card::after,
body[data-theme="amber-bistro"] .info-card::after,
body[data-theme="amber-bistro"] .resume-card::after,
body[data-theme="amber-bistro"] .theme-control::after,
body[data-theme="amber-bistro"] .contact-panel::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  right: 22px;
  top: 18px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,240,215,0.55), rgba(240,201,138,0.12) 55%, transparent 70%);
  filter: blur(2px);
  opacity: 0.5;
}

body[data-theme="amber-bistro"] .window-card {
  transform: rotateX(6deg) rotateY(-7deg);
}

body[data-theme="amber-bistro"] .project-preview,
body[data-theme="amber-bistro"] .skill-demo,
body[data-theme="amber-bistro"] .process-stage {
  perspective: 1300px;
  transform-style: preserve-3d;
}

body[data-theme="amber-bistro"] .project-preview .preview-ui,
body[data-theme="amber-bistro"] .process-stage .preview-window,
body[data-theme="amber-bistro"] .process-stage .code-window {
  transform-style: preserve-3d;
  box-shadow: 0 24px 44px rgba(95, 62, 27, 0.13), inset 0 1px 0 rgba(255,255,255,0.46);
}

body[data-theme="amber-bistro"] .project-preview .preview-ui,
body[data-theme="amber-bistro"] .process-stage .preview-window {
  transform: rotateX(8deg) rotateY(-6deg) translateZ(12px);
}

body[data-theme="amber-bistro"] .skill-demo {
  background:
    radial-gradient(circle at 14% 14%, rgba(255,255,255,0.7), transparent 28%),
    linear-gradient(180deg, rgba(255,250,244,0.96), rgba(246,236,223,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.56), 0 18px 30px rgba(95, 62, 27, 0.1);
}

body[data-theme="amber-bistro"] .project-card:hover,
body[data-theme="amber-bistro"] .skill-card:hover,
body[data-theme="amber-bistro"] .info-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
}

body[data-theme="amber-bistro"] .project-tags span,
body[data-theme="amber-bistro"] .resume-chip-wrap span,
body[data-theme="amber-bistro"] .process-tags span {
  box-shadow: 0 8px 18px rgba(95, 62, 27, 0.08);
}

@media (max-width: 760px) {
  .skill-demo--layout {
    min-height: 118px;
  }

  .skill-demo--layout span:nth-child(2) {
    width: 46%;
  }

  .skill-demo--layout span:nth-child(3),
  .skill-demo--layout span:nth-child(4) {
    left: calc(16px + 50%);
    width: calc(30% - 8px);
  }

  body[data-theme="office-lux"] .window-card,
  body[data-theme="amber-bistro"] .window-card,
  body[data-theme="office-lux"] .project-preview .preview-ui,
  body[data-theme="amber-bistro"] .project-preview .preview-ui,
  body[data-theme="amber-bistro"] .process-stage .preview-window {
    transform: none;
  }
}


/* ---------- v22: full polish for themes 2–5, glass cards, contrast, stability ---------- */
.hero-copy,
.window-card,
.note-card,
.info-card,
.skill-card,
.project-card,
.contact-panel,
.resume-card,
.resume-entry,
.theme-card,
.theme-control,
.preview-window,
.code-window,
.preview-ui {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.info-card,
.skill-card,
.project-card,
.note-card,
.theme-card,
.resume-entry,
.contact-panel,
.resume-card,
.window-card,
.preview-window,
.code-window,
.preview-ui {
  will-change: transform, box-shadow, background;
}

body[data-theme="office-lux"] .skill-card,
body[data-theme="office-lux"] .info-card,
body[data-theme="office-lux"] .project-card,
body[data-theme="office-lux"] .resume-card,
body[data-theme="office-lux"] .contact-panel,
body[data-theme="office-lux"] .theme-control,
body[data-theme="office-lux"] .window-card,
body[data-theme="office-lux"] .note-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(236,244,255,0.48)),
    linear-gradient(135deg, rgba(126,173,255,0.16), rgba(255,255,255,0.08) 42%, rgba(102,149,255,0.12) 100%);
  border: 1px solid rgba(153, 184, 235, 0.34);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    0 26px 60px rgba(38, 74, 145, 0.14),
    0 10px 28px rgba(20, 43, 88, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(197,220,255,0.24);
}

body[data-theme="office-lux"] .skill-card::before,
body[data-theme="office-lux"] .info-card::before,
body[data-theme="office-lux"] .project-card::before,
body[data-theme="office-lux"] .resume-card::before,
body[data-theme="office-lux"] .contact-panel::before,
body[data-theme="office-lux"] .theme-control::before,
body[data-theme="office-lux"] .window-card::before,
body[data-theme="office-lux"] .note-card::before {
  background: linear-gradient(132deg, rgba(255,255,255,0.44) 0%, rgba(255,255,255,0.18) 28%, transparent 48%, rgba(113,157,255,0.12) 100%);
}

body[data-theme="office-lux"] .skill-card h3,
body[data-theme="office-lux"] .info-card h3,
body[data-theme="office-lux"] .project-body h3,
body[data-theme="office-lux"] .resume-entry strong,
body[data-theme="office-lux"] .timeline-item h3 { color: #091830; }

body[data-theme="office-lux"] .skill-card p,
body[data-theme="office-lux"] .info-card p,
body[data-theme="office-lux"] .project-body p,
body[data-theme="office-lux"] .timeline-item p,
body[data-theme="office-lux"] .resume-entry p,
body[data-theme="office-lux"] .hero-text,
body[data-theme="office-lux"] .section-head p,
body[data-theme="office-lux"] .contact-panel p { color: #334966; }

body[data-theme="office-lux"] .skill-subtitle,
body[data-theme="office-lux"] .project-type,
body[data-theme="office-lux"] .brand-copy small,
body[data-theme="office-lux"] .theme-card-top,
body[data-theme="office-lux"] .theme-meta-card span,
body[data-theme="office-lux"] .note-label { color: #2357bf; }

body[data-theme="office-lux"] .skill-demo,
body[data-theme="office-lux"] .project-preview,
body[data-theme="office-lux"] .preview-window,
body[data-theme="office-lux"] .code-window {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(233,242,255,0.36)),
    linear-gradient(135deg, rgba(121,169,255,0.16), rgba(255,255,255,0.08));
  border: 1px solid rgba(151, 182, 236, 0.32);
  backdrop-filter: blur(18px) saturate(135%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.92),
    0 20px 40px rgba(37, 73, 139, 0.14);
}

body[data-theme="amber-bistro"] .skill-card,
body[data-theme="amber-bistro"] .info-card,
body[data-theme="amber-bistro"] .project-card,
body[data-theme="amber-bistro"] .resume-card,
body[data-theme="amber-bistro"] .contact-panel,
body[data-theme="amber-bistro"] .theme-control,
body[data-theme="amber-bistro"] .window-card,
body[data-theme="amber-bistro"] .note-card,
body[data-theme="amber-bistro"] .resume-sheet,
body[data-theme="amber-bistro"] .resume-entry,
body[data-theme="amber-bistro"] .timeline {
  background:
    linear-gradient(180deg, rgba(255,248,238,0.76), rgba(247,236,219,0.5)),
    linear-gradient(135deg, rgba(255,255,255,0.20), rgba(255,219,171,0.10) 46%, rgba(198,143,82,0.08) 100%);
  border: 1px solid rgba(255, 240, 219, 0.24);
  backdrop-filter: blur(20px) saturate(125%);
  box-shadow:
    0 28px 58px rgba(72, 44, 21, 0.18),
    0 12px 30px rgba(72, 44, 21, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.74),
    inset 0 -1px 0 rgba(184,139,88,0.10);
}

body[data-theme="amber-bistro"] .skill-card::before,
body[data-theme="amber-bistro"] .info-card::before,
body[data-theme="amber-bistro"] .project-card::before,
body[data-theme="amber-bistro"] .resume-card::before,
body[data-theme="amber-bistro"] .contact-panel::before,
body[data-theme="amber-bistro"] .theme-control::before,
body[data-theme="amber-bistro"] .window-card::before,
body[data-theme="amber-bistro"] .note-card::before,
body[data-theme="amber-bistro"] .resume-sheet::before,
body[data-theme="amber-bistro"] .resume-entry::before,
body[data-theme="amber-bistro"] .timeline::before {
  background: linear-gradient(130deg, rgba(255,255,255,0.26) 0%, rgba(255,246,232,0.12) 28%, transparent 52%, rgba(214,165,104,0.12) 100%);
  transform: none;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  filter: none;
}

body[data-theme="amber-bistro"] .skill-card::after,
body[data-theme="amber-bistro"] .info-card::after,
body[data-theme="amber-bistro"] .project-card::after,
body[data-theme="amber-bistro"] .resume-card::after,
body[data-theme="amber-bistro"] .contact-panel::after,
body[data-theme="amber-bistro"] .theme-control::after,
body[data-theme="amber-bistro"] .window-card::after,
body[data-theme="amber-bistro"] .note-card::after,
body[data-theme="amber-bistro"] .resume-sheet::after,
body[data-theme="amber-bistro"] .resume-entry::after,
body[data-theme="amber-bistro"] .timeline::after {
  width: 120px;
  height: 120px;
  right: -16px;
  top: -18px;
  background: radial-gradient(circle, rgba(255,255,255,0.42), rgba(255,226,183,0.18) 52%, transparent 72%);
  opacity: 0.78;
}

body[data-theme="amber-bistro"] .skill-card h3,
body[data-theme="amber-bistro"] .info-card h3,
body[data-theme="amber-bistro"] .project-body h3,
body[data-theme="amber-bistro"] .resume-entry strong,
body[data-theme="amber-bistro"] .timeline-item h3,
body[data-theme="amber-bistro"] .contact-panel h2,
body[data-theme="amber-bistro"] .resume-columns h2 { color: #2f1d10; }

body[data-theme="amber-bistro"] .skill-card p,
body[data-theme="amber-bistro"] .info-card p,
body[data-theme="amber-bistro"] .project-body p,
body[data-theme="amber-bistro"] .timeline-item p,
body[data-theme="amber-bistro"] .resume-entry p,
body[data-theme="amber-bistro"] .hero-text,
body[data-theme="amber-bistro"] .section-head p,
body[data-theme="amber-bistro"] .contact-panel p,
body[data-theme="amber-bistro"] .resume-sheet p { color: #6a5137; }

body[data-theme="amber-bistro"] .skill-subtitle,
body[data-theme="amber-bistro"] .project-type,
body[data-theme="amber-bistro"] .brand-copy small,
body[data-theme="amber-bistro"] .theme-card-top,
body[data-theme="amber-bistro"] .theme-meta-card span,
body[data-theme="amber-bistro"] .note-label { color: #9a6737; }

body[data-theme="amber-bistro"] .project-links a,
body[data-theme="amber-bistro"] .contact-list a,
body[data-theme="amber-bistro"] .resume-sheet-info a,
body[data-theme="amber-bistro"] .contact-list--static a { color: #73411d; }

body[data-theme="amber-bistro"] .skill-demo,
body[data-theme="amber-bistro"] .project-preview,
body[data-theme="amber-bistro"] .preview-window,
body[data-theme="amber-bistro"] .code-window {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,244,228,0.34)),
    linear-gradient(135deg, rgba(255,255,255,0.16), rgba(219,175,111,0.10));
  border: 1px solid rgba(215, 172, 112, 0.22);
  backdrop-filter: blur(18px) saturate(125%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.84),
    0 18px 36px rgba(78, 49, 25, 0.16);
}

body[data-theme="amber-bistro"] .theme-card,
body[data-theme="amber-bistro"] .theme-meta-card {
  background:
    linear-gradient(180deg, rgba(255,248,238,0.7), rgba(246,234,216,0.42)),
    linear-gradient(135deg, rgba(255,255,255,0.15), rgba(215,172,112,0.08));
  border: 1px solid rgba(255, 239, 214, 0.24);
  backdrop-filter: blur(18px) saturate(125%);
}

body[data-theme="neon-signal"] .skill-card,
body[data-theme="orbital-depth"] .skill-card,
body[data-theme="neon-signal"] .project-card,
body[data-theme="orbital-depth"] .project-card,
body[data-theme="neon-signal"] .info-card,
body[data-theme="orbital-depth"] .info-card {
  box-shadow: 0 26px 56px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}

body[data-theme="neon-signal"] .skill-card p,
body[data-theme="orbital-depth"] .skill-card p { color: rgba(227,239,255,0.86); }

.skill-card {
  isolation: isolate;
  transition: transform 0.36s ease, box-shadow 0.36s ease, background 0.36s ease, border-color 0.36s ease;
}

.skill-demo {
  min-height: 124px;
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease, background 0.4s ease;
}

.skill-demo--layout {
  min-height: 132px;
}

body[data-theme="office-lux"] .skill-demo--layout,
body[data-theme="amber-bistro"] .skill-demo--layout {
  overflow: hidden;
}

body[data-theme="office-lux"] .skill-demo--layout::before,
body[data-theme="amber-bistro"] .skill-demo--layout::before {
  inset: 10px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.48), rgba(255,255,255,0.12)),
    radial-gradient(circle at 78% 18%, rgba(141,187,255,0.16), transparent 28%);
  border: 1px solid rgba(255,255,255,0.46);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 12px 22px rgba(34, 61, 110, 0.08);
  animation: layoutViewportAdaptive 7.6s cubic-bezier(.55,.02,.35,1) infinite;
}

body[data-theme="office-lux"] .skill-demo--layout::after,
body[data-theme="amber-bistro"] .skill-demo--layout::after {
  left: 28px;
  right: 28px;
  bottom: 10px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(113,157,255,0.22), rgba(255,255,255,0.08) 60%, transparent 78%);
  filter: blur(12px);
  opacity: 0.72;
}

body[data-theme="office-lux"] .skill-demo--layout span,
body[data-theme="amber-bistro"] .skill-demo--layout span {
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(216,228,249,0.54));
  border: 1px solid rgba(132, 166, 220, 0.24);
  box-shadow: 0 10px 24px rgba(25, 46, 92, 0.08);
  animation-duration: 7.6s;
  animation-timing-function: cubic-bezier(.55,.02,.35,1);
  animation-iteration-count: infinite;
}

body[data-theme="office-lux"] .skill-demo--layout span:nth-child(1),
body[data-theme="amber-bistro"] .skill-demo--layout span:nth-child(1) {
  left: 16px;
  right: 16px;
  top: 16px;
  height: 10px;
  animation-name: layoutHeaderAdaptive;
}

body[data-theme="office-lux"] .skill-demo--layout span:nth-child(2),
body[data-theme="amber-bistro"] .skill-demo--layout span:nth-child(2) {
  left: 16px;
  width: 44%;
  top: 36px;
  height: 54px;
  animation-name: layoutMainAdaptive;
}

body[data-theme="office-lux"] .skill-demo--layout span:nth-child(3),
body[data-theme="amber-bistro"] .skill-demo--layout span:nth-child(3) {
  left: calc(16px + 48%);
  width: calc(36% - 4px);
  top: 36px;
  height: 20px;
  animation-name: layoutTopAdaptive;
}

body[data-theme="office-lux"] .skill-demo--layout span:nth-child(4),
body[data-theme="amber-bistro"] .skill-demo--layout span:nth-child(4) {
  left: calc(16px + 48%);
  width: calc(36% - 4px);
  top: 62px;
  height: 28px;
  animation-name: layoutBottomAdaptive;
}

@keyframes layoutViewportAdaptive {
  0%, 18%, 100% { transform: translate3d(0,0,0) scale(1); }
  36%, 56% { transform: translate3d(0,0,0) scale(0.96); }
  74%, 92% { transform: translate3d(0,4px,0) scale(0.9); }
}

@keyframes layoutHeaderAdaptive {
  0%, 18%, 100% {
    left: 16px; right: 16px; top: 16px; height: 10px; transform: translate3d(0,0,18px);
  }
  36%, 56% {
    left: 22px; right: 22px; top: 16px; height: 9px; transform: translate3d(0,0,14px);
  }
  74%, 92% {
    left: 26px; right: 26px; top: 18px; height: 8px; transform: translate3d(0,0,10px);
  }
}

@keyframes layoutMainAdaptive {
  0%, 18%, 100% {
    left: 16px; width: 44%; top: 36px; height: 54px; border-radius: 18px; transform: translate3d(0,0,24px);
  }
  36%, 56% {
    left: 22px; width: 58%; top: 36px; height: 56px; border-radius: 18px; transform: translate3d(0,0,20px);
  }
  74%, 92% {
    left: 26px; right: 26px; width: auto; top: 36px; height: 22px; border-radius: 14px; transform: translate3d(0,0,12px);
  }
}

@keyframes layoutTopAdaptive {
  0%, 18%, 100% {
    left: calc(16px + 48%); width: calc(36% - 4px); top: 36px; height: 20px; transform: translate3d(0,0,14px);
  }
  36%, 56% {
    left: calc(22px + 62%); width: calc(18% - 6px); top: 36px; height: 18px; transform: translate3d(0,0,10px);
  }
  74%, 92% {
    left: 26px; right: 26px; width: auto; top: 66px; height: 12px; transform: translate3d(0,0,6px);
  }
}

@keyframes layoutBottomAdaptive {
  0%, 18%, 100% {
    left: calc(16px + 48%); width: calc(36% - 4px); top: 62px; height: 28px; transform: translate3d(0,0,12px);
  }
  36%, 56% {
    left: calc(22px + 62%); width: calc(18% - 6px); top: 58px; height: 32px; transform: translate3d(0,0,10px);
  }
  74%, 92% {
    left: 26px; right: 26px; width: auto; top: 84px; height: 12px; transform: translate3d(0,0,6px);
  }
}

body[data-theme="office-lux"] .skill-demo--visual,
body[data-theme="amber-bistro"] .skill-demo--visual {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(239,246,255,0.28)),
    radial-gradient(circle at 82% 22%, rgba(136,184,255,0.14), transparent 22%);
}

body[data-theme="office-lux"] .skill-demo--visual::before,
body[data-theme="amber-bistro"] .skill-demo--visual::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.02) 28%, rgba(124,171,255,0.14) 64%, rgba(255,255,255,0.08) 100%);
  border: 1px solid rgba(255,255,255,0.40);
  animation: visualGlassPass 6.6s ease-in-out infinite;
}

body[data-theme="office-lux"] .skill-demo--visual::after,
body[data-theme="amber-bistro"] .skill-demo--visual::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  right: 24px;
  top: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(255,255,255,0.96), rgba(147,189,255,0.42));
  box-shadow: 0 18px 26px rgba(41, 75, 144, 0.14);
  animation: visualOrbFloat 5.6s ease-in-out infinite;
}

body[data-theme="office-lux"] .skill-demo--visual span,
body[data-theme="amber-bistro"] .skill-demo--visual span {
  background: linear-gradient(90deg, rgba(109,154,255,0.18), rgba(255,255,255,0.94), rgba(166,197,255,0.28));
  box-shadow: 0 8px 20px rgba(45, 77, 142, 0.08);
}

body[data-theme="office-lux"] .skill-demo--visual span:nth-child(1),
body[data-theme="amber-bistro"] .skill-demo--visual span:nth-child(1) {
  left: 22px;
  right: 96px;
  top: 22px;
}

body[data-theme="office-lux"] .skill-demo--visual span:nth-child(2),
body[data-theme="amber-bistro"] .skill-demo--visual span:nth-child(2) {
  left: 22px;
  right: 40px;
  top: 48px;
  height: 20px;
}

body[data-theme="office-lux"] .skill-demo--visual span:nth-child(3),
body[data-theme="amber-bistro"] .skill-demo--visual span:nth-child(3) {
  left: 22px;
  right: 118px;
  bottom: 22px;
}

@keyframes visualGlassPass {
  0%, 100% { transform: translateX(-3%) rotate(-2deg); opacity: 0.88; }
  50% { transform: translateX(2%) rotate(0deg); opacity: 1; }
}

@keyframes visualOrbFloat {
  0%, 100% { transform: translate3d(0,0,18px) scale(1); }
  50% { transform: translate3d(-8px,6px,28px) scale(1.06); }
}

body[data-theme="office-lux"] .skill-demo--pack,
body[data-theme="amber-bistro"] .skill-demo--pack {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(239,246,255,0.28)),
    radial-gradient(circle at 70% 24%, rgba(121,171,255,0.12), transparent 24%);
}

body[data-theme="office-lux"] .skill-demo--pack::before,
body[data-theme="amber-bistro"] .skill-demo--pack::before {
  inset: 18px 20px 18px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

body[data-theme="office-lux"] .skill-demo--pack span,
body[data-theme="amber-bistro"] .skill-demo--pack span {
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(207,223,248,0.58));
  border: 1px solid rgba(132,166,220,0.22);
  box-shadow: 0 12px 26px rgba(28, 51, 98, 0.10);
}

body[data-theme="office-lux"] .skill-demo--pack span:nth-child(1),
body[data-theme="amber-bistro"] .skill-demo--pack span:nth-child(1) { top: 22px; }
body[data-theme="office-lux"] .skill-demo--pack span:nth-child(2),
body[data-theme="amber-bistro"] .skill-demo--pack span:nth-child(2) { top: 48px; }
body[data-theme="office-lux"] .skill-demo--pack span:nth-child(3),
body[data-theme="amber-bistro"] .skill-demo--pack span:nth-child(3) { top: 74px; }

body[data-theme="office-lux"] .theme-card,
body[data-theme="office-lux"] .theme-meta-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(236,244,255,0.44)),
    linear-gradient(135deg, rgba(122,170,255,0.14), rgba(255,255,255,0.08));
  border: 1px solid rgba(154, 185, 236, 0.28);
  backdrop-filter: blur(18px) saturate(135%);
}

body[data-theme="office-lux"] .theme-card:hover,
body[data-theme="amber-bistro"] .theme-card:hover,
body[data-theme="office-lux"] .skill-card:hover,
body[data-theme="amber-bistro"] .skill-card:hover,
body[data-theme="office-lux"] .project-card:hover,
body[data-theme="amber-bistro"] .project-card:hover,
body[data-theme="office-lux"] .info-card:hover,
body[data-theme="amber-bistro"] .info-card:hover {
  transform: translateY(-5px) translateZ(0) !important;
}

@media (max-width: 920px) {
  .skill-card {
    padding: 24px;
  }

  .skill-demo {
    min-height: 116px;
  }
}

@media (max-width: 760px) {
  .skill-card {
    padding: 22px;
  }

  .skill-demo {
    min-height: 108px;
  }

  body[data-theme="office-lux"] .skill-demo--layout::before,
  body[data-theme="amber-bistro"] .skill-demo--layout::before,
  body[data-theme="office-lux"] .skill-demo--visual::before,
  body[data-theme="amber-bistro"] .skill-demo--visual::before,
  body[data-theme="office-lux"] .skill-demo--visual::after,
  body[data-theme="amber-bistro"] .skill-demo--visual::after {
    animation-duration: 0s;
  }
}

@media (hover: none), (pointer: coarse) {
  .info-card:hover,
  .skill-card:hover,
  .project-card:hover,
  .theme-card:hover,
  .note-card:hover,
  .window-card:hover,
  .preview-ui:hover {
    transform: none !important;
  }
}


/* ---------- V23 targeted polish: theme 02 + theme 03 cleanup ---------- */
body[data-theme="office-lux"] .project-card,
body[data-theme="office-lux"] .skill-card,
body[data-theme="office-lux"] .info-card,
body[data-theme="office-lux"] .contact-panel,
body[data-theme="office-lux"] .resume-card,
body[data-theme="office-lux"] .theme-control,
body[data-theme="office-lux"] .resume-sheet {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(239,245,255,0.9)),
    linear-gradient(135deg, rgba(111,164,255,0.12), rgba(255,255,255,0.0) 46%, rgba(100,146,255,0.08) 100%);
  border-color: rgba(141, 176, 229, 0.34);
  box-shadow:
    0 28px 60px rgba(37, 74, 145, 0.14),
    0 12px 26px rgba(27, 50, 95, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.96),
    inset 0 -1px 0 rgba(190,214,255,0.24);
}

body[data-theme="office-lux"] .project-preview,
body[data-theme="office-lux"] .skill-demo,
body[data-theme="office-lux"] .preview-window,
body[data-theme="office-lux"] .code-window {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.84), rgba(233,242,255,0.74)),
    radial-gradient(circle at 78% 16%, rgba(136,182,255,0.16), transparent 24%);
  border-color: rgba(146, 181, 234, 0.34);
}

body[data-theme="office-lux"] .project-preview .preview-ui {
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(229,239,255,0.6));
  border-color: rgba(255,255,255,0.64);
}

body[data-theme="amber-bistro"] .window-card,
body[data-theme="amber-bistro"] .project-card,
body[data-theme="amber-bistro"] .skill-card,
body[data-theme="amber-bistro"] .info-card,
body[data-theme="amber-bistro"] .resume-card,
body[data-theme="amber-bistro"] .theme-control,
body[data-theme="amber-bistro"] .contact-panel,
body[data-theme="amber-bistro"] .resume-sheet,
body[data-theme="amber-bistro"] .resume-entry,
body[data-theme="amber-bistro"] .timeline {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(245,236,221,0.98), rgba(233,220,201,0.96)),
    radial-gradient(circle at 82% 14%, rgba(255,230,193,0.32), transparent 24%),
    radial-gradient(circle at 16% 0%, rgba(255,248,237,0.38), transparent 32%);
  border: 1px solid rgba(184, 144, 98, 0.32);
  backdrop-filter: none;
  box-shadow:
    0 26px 54px rgba(61, 35, 16, 0.20),
    0 10px 24px rgba(61, 35, 16, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.76),
    inset 0 -1px 0 rgba(181,136,85,0.14);
}

body[data-theme="amber-bistro"] .window-card::before,
body[data-theme="amber-bistro"] .project-card::before,
body[data-theme="amber-bistro"] .skill-card::before,
body[data-theme="amber-bistro"] .info-card::before,
body[data-theme="amber-bistro"] .resume-card::before,
body[data-theme="amber-bistro"] .theme-control::before,
body[data-theme="amber-bistro"] .contact-panel::before,
body[data-theme="amber-bistro"] .resume-sheet::before,
body[data-theme="amber-bistro"] .resume-entry::before,
body[data-theme="amber-bistro"] .timeline::before {
  inset: 10px;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,248,236,0.22);
  filter: none;
  transform: none;
}

body[data-theme="amber-bistro"] .window-card::after,
body[data-theme="amber-bistro"] .project-card::after,
body[data-theme="amber-bistro"] .skill-card::after,
body[data-theme="amber-bistro"] .info-card::after,
body[data-theme="amber-bistro"] .resume-card::after,
body[data-theme="amber-bistro"] .theme-control::after,
body[data-theme="amber-bistro"] .contact-panel::after,
body[data-theme="amber-bistro"] .resume-sheet::after,
body[data-theme="amber-bistro"] .resume-entry::after,
body[data-theme="amber-bistro"] .timeline::after {
  width: 88px;
  height: 88px;
  right: -10px;
  top: -10px;
  background: radial-gradient(circle, rgba(255,241,216,0.28), rgba(255,230,185,0.0) 66%);
  opacity: 0.65;
  filter: blur(0);
}

body[data-theme="amber-bistro"] .window-card {
  transform: rotateX(3deg) rotateY(-4deg);
}

body[data-theme="amber-bistro"] .project-preview,
body[data-theme="amber-bistro"] .skill-demo,
body[data-theme="amber-bistro"] .preview-window,
body[data-theme="amber-bistro"] .code-window,
body[data-theme="amber-bistro"] .process-stage {
  background:
    linear-gradient(180deg, #f8efdf 0%, #ecdfc8 100%);
  border: 1px solid rgba(188, 149, 102, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 16px 28px rgba(78, 49, 25, 0.12);
}

body[data-theme="amber-bistro"] .project-preview::before {
  inset: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,245,229,0.54);
}

body[data-theme="amber-bistro"] .project-preview::after {
  width: 120px;
  height: 120px;
  right: -12px;
  top: -12px;
  border-radius: 999px;
  background: radial-gradient(circle at 38% 38%, rgba(255,248,237,0.28), rgba(255,233,191,0.14) 46%, transparent 68%);
  filter: blur(1px);
}

body[data-theme="amber-bistro"] .project-preview .preview-ui,
body[data-theme="amber-bistro"] .process-stage .preview-window,
body[data-theme="amber-bistro"] .process-stage .code-window {
  inset: 18px;
  background:
    linear-gradient(180deg, rgba(251,244,232,0.98), rgba(241,229,210,0.96)),
    radial-gradient(circle at 78% 18%, rgba(244,206,146,0.18), transparent 18%);
  border: 1px solid rgba(205, 167, 118, 0.24);
  box-shadow:
    0 18px 34px rgba(80, 49, 23, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

body[data-theme="amber-bistro"] .project-preview .preview-ui::before,
body[data-theme="amber-bistro"] .skill-demo::before,
body[data-theme="amber-bistro"] .preview-window::before,
body[data-theme="amber-bistro"] .code-window::before {
  box-sizing: border-box;
}

body[data-theme="amber-bistro"] .preview-ui-top span {
  background: linear-gradient(180deg, rgba(229,205,171,0.98), rgba(209,171,122,0.78));
}

body[data-theme="amber-bistro"] .preview-ui--start .preview-ui-hero,
body[data-theme="amber-bistro"] .preview-ui-main,
body[data-theme="amber-bistro"] .preview-ui-side span,
body[data-theme="amber-bistro"] .preview-ui-footer,
body[data-theme="amber-bistro"] .preview-ui-stack div {
  background:
    linear-gradient(180deg, rgba(255,252,247,0.98), rgba(235,220,196,0.92));
  border: 1px solid rgba(210, 173, 126, 0.18);
  box-shadow: 0 10px 24px rgba(88, 56, 29, 0.10);
}

body[data-theme="amber-bistro"] .preview-ui--impact {
  background:
    radial-gradient(circle at 18% 22%, rgba(255,249,241,0.42), transparent 24%),
    linear-gradient(180deg, rgba(252,245,235,0.96), rgba(239,227,205,0.92));
}

body[data-theme="amber-bistro"] .preview-glow-a {
  background: radial-gradient(circle, rgba(255,244,225,0.88), rgba(250,221,177,0.2) 58%, transparent 72%);
}

body[data-theme="amber-bistro"] .preview-glow-b {
  background: radial-gradient(circle, rgba(255,233,194,0.24), rgba(255,231,196,0.04) 58%, transparent 74%);
}

body[data-theme="amber-bistro"] .preview-float {
  background: linear-gradient(180deg, rgba(255,252,247,0.96), rgba(236,222,197,0.88));
  border: 1px solid rgba(208, 170, 120, 0.18);
  box-shadow: 0 14px 28px rgba(84, 52, 26, 0.10);
}

body[data-theme="amber-bistro"] .skill-demo--layout {
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.55), transparent 26%),
    linear-gradient(180deg, #f8efe2 0%, #ecdfca 100%);
}

body[data-theme="amber-bistro"] .skill-demo--layout::before {
  background:
    linear-gradient(180deg, rgba(255,250,244,0.96), rgba(245,233,212,0.88)),
    radial-gradient(circle at 76% 18%, rgba(237,199,140,0.12), transparent 24%);
  border: 1px solid rgba(219, 185, 139, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.76),
    0 12px 22px rgba(69, 40, 18, 0.10);
}

body[data-theme="amber-bistro"] .skill-demo--layout::after {
  background: radial-gradient(circle, rgba(224,180,118,0.20), rgba(255,255,255,0.02) 60%, transparent 78%);
}

body[data-theme="amber-bistro"] .skill-demo--layout span {
  background: linear-gradient(180deg, rgba(255,252,248,0.98), rgba(233,219,194,0.88));
  border-color: rgba(203, 165, 117, 0.22);
  box-shadow: 0 10px 20px rgba(78, 48, 23, 0.10);
}

body[data-theme="amber-bistro"] .skill-demo--visual {
  background:
    linear-gradient(180deg, rgba(250,243,232,0.98), rgba(236,226,207,0.92)),
    radial-gradient(circle at 82% 20%, rgba(239,196,131,0.16), transparent 24%);
}

body[data-theme="amber-bistro"] .skill-demo--visual::before {
  background: linear-gradient(118deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.02) 38%, rgba(233,197,142,0.12) 74%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(255,247,235,0.34);
}

body[data-theme="amber-bistro"] .skill-demo--visual::after {
  background: radial-gradient(circle at 32% 32%, rgba(255,253,250,0.96), rgba(235,200,146,0.58));
  box-shadow: 0 16px 24px rgba(78, 50, 25, 0.12);
}

body[data-theme="amber-bistro"] .skill-demo--visual span {
  background: linear-gradient(90deg, rgba(233,214,184,0.38), rgba(255,250,243,0.96), rgba(234,204,156,0.34));
  box-shadow: 0 8px 18px rgba(70, 43, 19, 0.08);
}

body[data-theme="amber-bistro"] .skill-demo--pack {
  background:
    linear-gradient(180deg, rgba(251,244,233,0.98), rgba(236,226,207,0.92)),
    radial-gradient(circle at 70% 22%, rgba(233,193,134,0.16), transparent 22%);
}

body[data-theme="amber-bistro"] .skill-demo--pack::before {
  background: linear-gradient(180deg, rgba(255,252,247,0.28), rgba(255,250,244,0.06));
  border: 1px solid rgba(255,247,235,0.24);
}

body[data-theme="amber-bistro"] .skill-demo--pack span {
  background: linear-gradient(135deg, rgba(255,252,248,0.98), rgba(233,219,194,0.88));
  border-color: rgba(203, 165, 117, 0.22);
  box-shadow: 0 10px 20px rgba(78, 48, 23, 0.10);
}

body[data-theme="amber-bistro"] .project-body h3,
body[data-theme="amber-bistro"] .skill-card h3,
body[data-theme="amber-bistro"] .resume-entry strong,
body[data-theme="amber-bistro"] .timeline-item h3,
body[data-theme="amber-bistro"] .contact-panel h2,
body[data-theme="amber-bistro"] .resume-columns h2 {
  color: #2b170c;
}

body[data-theme="amber-bistro"] .project-body p,
body[data-theme="amber-bistro"] .skill-card p,
body[data-theme="amber-bistro"] .timeline-item p,
body[data-theme="amber-bistro"] .resume-entry p,
body[data-theme="amber-bistro"] .hero-text,
body[data-theme="amber-bistro"] .section-head p,
body[data-theme="amber-bistro"] .contact-panel p,
body[data-theme="amber-bistro"] .resume-sheet p {
  color: #5e4328;
}

body[data-theme="amber-bistro"] .project-type,
body[data-theme="amber-bistro"] .skill-subtitle,
body[data-theme="amber-bistro"] .theme-card-top,
body[data-theme="amber-bistro"] .theme-meta-card span,
body[data-theme="amber-bistro"] .note-label {
  color: #a66c35;
}

body[data-theme="amber-bistro"] .project-tags span,
body[data-theme="amber-bistro"] .resume-chip-wrap span,
body[data-theme="amber-bistro"] .process-tags span,
body[data-theme="amber-bistro"] .contact-badges span {
  background: linear-gradient(180deg, rgba(255,248,237,0.92), rgba(238,223,200,0.92));
  border: 1px solid rgba(191, 149, 100, 0.24);
  color: #74461f;
  box-shadow: 0 8px 16px rgba(73, 45, 20, 0.08);
}

body[data-theme="amber-bistro"] .project-card:hover,
body[data-theme="amber-bistro"] .skill-card:hover,
body[data-theme="amber-bistro"] .info-card:hover {
  transform: translateY(-5px) rotate(-0.25deg);
}

body[data-theme="amber-bistro"] .section-head,
body[data-theme="amber-bistro"] .theme-control,
body[data-theme="amber-bistro"] .project-body,
body[data-theme="amber-bistro"] .skill-card,
body[data-theme="amber-bistro"] .resume-sheet,
body[data-theme="amber-bistro"] .resume-entry,
body[data-theme="amber-bistro"] .timeline,
body[data-theme="amber-bistro"] .contact-panel {
  position: relative;
  z-index: 1;
}

/* ---------- v24: amber-bistro transparent warm glass fix ---------- */
body[data-theme="amber-bistro"] .skill-card,
body[data-theme="amber-bistro"] .info-card,
body[data-theme="amber-bistro"] .project-card,
body[data-theme="amber-bistro"] .resume-card,
body[data-theme="amber-bistro"] .contact-panel,
body[data-theme="amber-bistro"] .theme-control,
body[data-theme="amber-bistro"] .window-card,
body[data-theme="amber-bistro"] .note-card,
body[data-theme="amber-bistro"] .resume-sheet,
body[data-theme="amber-bistro"] .resume-entry,
body[data-theme="amber-bistro"] .timeline {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.34), rgba(245, 229, 204, 0.18)),
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(244,206,151,0.08) 52%, rgba(195,143,88,0.06) 100%);
  border: 1px solid rgba(255, 242, 220, 0.28);
  backdrop-filter: blur(18px) saturate(122%);
  box-shadow:
    0 26px 54px rgba(40, 24, 12, 0.22),
    0 10px 24px rgba(40, 24, 12, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.62),
    inset 0 -1px 0 rgba(191,146,93,0.08);
}

body[data-theme="amber-bistro"] .skill-card::before,
body[data-theme="amber-bistro"] .info-card::before,
body[data-theme="amber-bistro"] .project-card::before,
body[data-theme="amber-bistro"] .resume-card::before,
body[data-theme="amber-bistro"] .contact-panel::before,
body[data-theme="amber-bistro"] .theme-control::before,
body[data-theme="amber-bistro"] .window-card::before,
body[data-theme="amber-bistro"] .note-card::before,
body[data-theme="amber-bistro"] .resume-sheet::before,
body[data-theme="amber-bistro"] .resume-entry::before,
body[data-theme="amber-bistro"] .timeline::before {
  background:
    linear-gradient(130deg, rgba(255,255,255,0.22) 0%, rgba(255,247,234,0.12) 26%, rgba(255,238,212,0.06) 48%, transparent 62%),
    radial-gradient(circle at 86% 14%, rgba(255, 220, 167, 0.14), transparent 26%);
}

body[data-theme="amber-bistro"] .skill-card::after,
body[data-theme="amber-bistro"] .info-card::after,
body[data-theme="amber-bistro"] .project-card::after,
body[data-theme="amber-bistro"] .resume-card::after,
body[data-theme="amber-bistro"] .contact-panel::after,
body[data-theme="amber-bistro"] .theme-control::after,
body[data-theme="amber-bistro"] .window-card::after,
body[data-theme="amber-bistro"] .note-card::after,
body[data-theme="amber-bistro"] .resume-sheet::after,
body[data-theme="amber-bistro"] .resume-entry::after,
body[data-theme="amber-bistro"] .timeline::after {
  opacity: 0.34;
  filter: blur(6px);
}

body[data-theme="amber-bistro"] .project-preview,
body[data-theme="amber-bistro"] .skill-demo,
body[data-theme="amber-bistro"] .process-stage {
  background:
    linear-gradient(180deg, rgba(255,249,239,0.22), rgba(245,229,204,0.10)),
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(243,203,145,0.05));
  border: 1px solid rgba(255, 242, 220, 0.24);
  backdrop-filter: blur(12px) saturate(118%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.44),
    0 18px 36px rgba(55, 34, 17, 0.14);
}

body[data-theme="amber-bistro"] .project-preview .preview-ui,
body[data-theme="amber-bistro"] .process-stage .preview-window,
body[data-theme="amber-bistro"] .process-stage .code-window {
  background:
    linear-gradient(180deg, rgba(255,251,244,0.28), rgba(244,229,205,0.14)),
    radial-gradient(circle at 78% 18%, rgba(244,206,146,0.14), transparent 24%);
  border: 1px solid rgba(255, 242, 221, 0.24);
  backdrop-filter: blur(10px) saturate(112%);
  box-shadow:
    0 16px 30px rgba(60, 37, 19, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.50);
}

body[data-theme="amber-bistro"] .preview-ui-top span {
  background: linear-gradient(180deg, rgba(232,205,171,0.72), rgba(204,163,109,0.48));
}

body[data-theme="amber-bistro"] .preview-ui--start .preview-ui-hero,
body[data-theme="amber-bistro"] .preview-ui-main,
body[data-theme="amber-bistro"] .preview-ui-side span,
body[data-theme="amber-bistro"] .preview-ui-footer,
body[data-theme="amber-bistro"] .preview-ui-stack div,
body[data-theme="amber-bistro"] .skill-demo--layout span,
body[data-theme="amber-bistro"] .skill-demo--visual span,
body[data-theme="amber-bistro"] .skill-demo--pack span {
  background: linear-gradient(180deg, rgba(255,254,250,0.68), rgba(235,220,196,0.32));
  border: 1px solid rgba(255, 241, 219, 0.28);
  box-shadow: 0 10px 22px rgba(84, 52, 26, 0.08);
}

body[data-theme="amber-bistro"] .skill-card,
body[data-theme="amber-bistro"] .info-card,
body[data-theme="amber-bistro"] .project-card,
body[data-theme="amber-bistro"] .resume-card,
body[data-theme="amber-bistro"] .contact-panel,
body[data-theme="amber-bistro"] .theme-control,
body[data-theme="amber-bistro"] .window-card,
body[data-theme="amber-bistro"] .resume-sheet,
body[data-theme="amber-bistro"] .resume-entry,
body[data-theme="amber-bistro"] .timeline {
  color: #5d4736;
}

body[data-theme="amber-bistro"] .skill-card h3,
body[data-theme="amber-bistro"] .info-card h3,
body[data-theme="amber-bistro"] .project-body h3,
body[data-theme="amber-bistro"] .resume-entry strong,
body[data-theme="amber-bistro"] .timeline-item h3,
body[data-theme="amber-bistro"] .contact-panel h2 {
  color: #412c1f;
}

body[data-theme="amber-bistro"] .theme-card-top,
body[data-theme="amber-bistro"] .project-type,
body[data-theme="amber-bistro"] .skill-card .skill-subtitle,
body[data-theme="amber-bistro"] .resume-sheet-label,
body[data-theme="amber-bistro"] .timeline-year {
  color: #a86e34;
}

body[data-theme="amber-bistro"] .project-tags span,
body[data-theme="amber-bistro"] .resume-chip-wrap span,
body[data-theme="amber-bistro"] .process-tags span {
  background: rgba(255, 248, 237, 0.30);
  border: 1px solid rgba(255, 239, 214, 0.28);
  color: #8f6033;
  box-shadow: 0 8px 18px rgba(69, 42, 21, 0.10);
}

body[data-theme="amber-bistro"] .project-links a,
body[data-theme="amber-bistro"] .contact-list a,
body[data-theme="amber-bistro"] .resume-sheet-info a,
body[data-theme="amber-bistro"] .contact-list--static a {
  color: #7b4f27;
}

body[data-theme="amber-bistro"] .project-card:hover,
body[data-theme="amber-bistro"] .skill-card:hover,
body[data-theme="amber-bistro"] .info-card:hover {
  transform: translateY(-4px);
}

/* ---------- V25: ALL-THEME OVERHAUL ---------- */
body.theme-morphing .hero-copy,
body.theme-morphing .hero-art,
body.theme-morphing .section-head,
body.theme-morphing .sketch-panel,
body.theme-morphing .project-card,
body.theme-morphing .skill-card,
body.theme-morphing .contact-panel,
body.theme-morphing .resume-sheet {
  opacity: 0.9 !important;
  transform: translateY(4px) scale(0.994) !important;
  filter: none !important;
}

.theme-control,
.theme-meta-card,
.theme-card,
.info-card,
.project-card,
.skill-card,
.resume-card,
.timeline,
.contact-panel,
.resume-sheet {
  overflow: hidden;
}

.theme-card p,
.theme-meta-card small,
.info-card p,
.project-body p,
.skill-card p,
.resume-intro,
.timeline-item p,
.contact-panel p {
  text-wrap: pretty;
}

/* studio / theme 02 */
body[data-theme="office-lux"] .nav-shell,
body[data-theme="office-lux"] .sketch-panel,
body[data-theme="office-lux"] .theme-card,
body[data-theme="office-lux"] .theme-meta-card,
body[data-theme="office-lux"] .resume-entry,
body[data-theme="office-lux"] .back-link {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(240,247,255,0.80)),
    radial-gradient(circle at top right, rgba(89,145,255,0.12), transparent 34%) !important;
  border: 1px solid rgba(108, 137, 196, 0.18) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  box-shadow: 0 22px 56px rgba(28, 70, 156, 0.12), inset 0 1px 0 rgba(255,255,255,0.82) !important;
}
body[data-theme="office-lux"] .theme-control {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(232,242,255,0.84)),
    radial-gradient(circle at 86% 14%, rgba(92,146,255,0.16), transparent 26%) !important;
}
body[data-theme="office-lux"] .theme-meta-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(236,244,255,0.82)) !important;
}
body[data-theme="office-lux"] .hero-copy {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(236,245,255,0.82)),
    radial-gradient(circle at top right, rgba(89,145,255,0.14), transparent 34%) !important;
  box-shadow: 0 28px 70px rgba(76, 115, 190, 0.13), inset 0 1px 0 rgba(255,255,255,0.86) !important;
}
body[data-theme="office-lux"] .project-preview,
body[data-theme="office-lux"] .skill-demo {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(227,238,255,0.72)),
    radial-gradient(circle at top right, rgba(88,139,255,0.10), transparent 34%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 28px rgba(31, 78, 182, 0.08) !important;
}
body[data-theme="office-lux"] .theme-switch {
  background: rgba(255,255,255,0.78) !important;
  border-color: rgba(111,140,198,0.18) !important;
}
body[data-theme="office-lux"] .theme-switch.is-active {
  background: linear-gradient(135deg, #0c47de, #4ba3ff) !important;
  color: #fff !important;
  box-shadow: 0 16px 30px rgba(22, 81, 211, 0.22) !important;
}

/* editorial / theme 03 */
body[data-theme="amber-bistro"] {
  --text: #fff1dd;
  --text-soft: rgba(247, 229, 201, 0.82);
  --panel: rgba(82, 57, 40, 0.28);
  --panel-strong: rgba(76, 51, 35, 0.36);
  --border: rgba(242, 210, 163, 0.17);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}
body[data-theme="amber-bistro"] .nav-shell,
body[data-theme="amber-bistro"] .sketch-panel,
body[data-theme="amber-bistro"] .theme-card,
body[data-theme="amber-bistro"] .theme-meta-card,
body[data-theme="amber-bistro"] .resume-entry,
body[data-theme="amber-bistro"] .back-link {
  background:
    linear-gradient(180deg, rgba(104, 73, 50, 0.18), rgba(31, 20, 14, 0.34)),
    radial-gradient(circle at top right, rgba(255, 222, 178, 0.12), transparent 36%) !important;
  border: 1px solid rgba(242, 210, 163, 0.16) !important;
  backdrop-filter: blur(10px) saturate(122%) brightness(1.04) !important;
  -webkit-backdrop-filter: blur(10px) saturate(122%) brightness(1.04) !important;
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 243, 221, 0.10) !important;
}
body[data-theme="amber-bistro"] .theme-control {
  background:
    linear-gradient(180deg, rgba(96, 67, 47, 0.22), rgba(30, 18, 13, 0.42)),
    radial-gradient(circle at 86% 12%, rgba(255, 214, 156, 0.16), transparent 30%) !important;
}
body[data-theme="amber-bistro"] .theme-control h3,
body[data-theme="amber-bistro"] .theme-control strong,
body[data-theme="amber-bistro"] .theme-card strong,
body[data-theme="amber-bistro"] .project-body h3,
body[data-theme="amber-bistro"] .skill-card h3,
body[data-theme="amber-bistro"] .resume-card h2,
body[data-theme="amber-bistro"] .section-head h2,
body[data-theme="amber-bistro"] .timeline-item h3 {
  color: #fff0d8 !important;
}
body[data-theme="amber-bistro"] .theme-control p,
body[data-theme="amber-bistro"] .theme-meta-card small,
body[data-theme="amber-bistro"] .theme-card p,
body[data-theme="amber-bistro"] .info-card p,
body[data-theme="amber-bistro"] .project-body p,
body[data-theme="amber-bistro"] .skill-card p,
body[data-theme="amber-bistro"] .resume-intro,
body[data-theme="amber-bistro"] .timeline-item p,
body[data-theme="amber-bistro"] .contact-panel p {
  color: rgba(246, 229, 204, 0.82) !important;
}
body[data-theme="amber-bistro"] .theme-meta-card {
  background: linear-gradient(180deg, rgba(243, 229, 206, 0.12), rgba(69, 48, 34, 0.24)) !important;
}
body[data-theme="amber-bistro"] .theme-switch {
  background: rgba(255, 236, 212, 0.08) !important;
  color: #f4e3c6 !important;
  border-color: rgba(242, 210, 163, 0.18) !important;
}
body[data-theme="amber-bistro"] .theme-switch.is-active {
  background: linear-gradient(135deg, #d9a15a, #b56d37) !important;
  color: #fffaf3 !important;
  box-shadow: 0 16px 32px rgba(169, 98, 42, 0.28) !important;
}
body[data-theme="amber-bistro"] .project-preview,
body[data-theme="amber-bistro"] .skill-demo {
  background:
    linear-gradient(180deg, rgba(255, 244, 226, 0.08), rgba(255, 214, 160, 0.05)),
    radial-gradient(circle at top right, rgba(255, 215, 161, 0.12), transparent 38%) !important;
  border-color: rgba(245, 214, 171, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,245,226,0.14), 0 16px 34px rgba(0,0,0,0.14) !important;
}
body[data-theme="amber-bistro"] .project-preview::before {
  border-color: rgba(255, 226, 186, 0.18) !important;
}
body[data-theme="amber-bistro"] .project-preview::after {
  background: radial-gradient(circle, rgba(255, 209, 147, 0.18), transparent 72%) !important;
  filter: none !important;
}
body[data-theme="amber-bistro"] .preview-ui,
body[data-theme="amber-bistro"] .skill-demo--layout,
body[data-theme="amber-bistro"] .skill-demo--visual,
body[data-theme="amber-bistro"] .skill-demo--pack {
  background: linear-gradient(180deg, rgba(255, 244, 227, 0.06), rgba(255, 215, 161, 0.04)) !important;
}
body[data-theme="amber-bistro"] .theme-card,
body[data-theme="amber-bistro"] .skill-card,
body[data-theme="amber-bistro"] .project-card,
body[data-theme="amber-bistro"] .info-card,
body[data-theme="amber-bistro"] .resume-card,
body[data-theme="amber-bistro"] .timeline,
body[data-theme="amber-bistro"] .contact-panel {
  box-shadow: 0 24px 62px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255, 243, 221, 0.10), 0 0 0 1px rgba(242,210,163,0.04) !important;
}

/* neon / theme 04 */
body[data-theme="neon-signal"] {
  --text: #f0f8ff;
  --text-soft: #b8cfea;
  --panel: rgba(8, 14, 30, 0.76);
  --panel-strong: rgba(8, 14, 30, 0.88);
  --border: rgba(95, 238, 255, 0.20);
}
body[data-theme="neon-signal"] .sketch-panel,
body[data-theme="neon-signal"] .theme-card,
body[data-theme="neon-signal"] .theme-meta-card,
body[data-theme="neon-signal"] .resume-entry,
body[data-theme="neon-signal"] .back-link {
  background:
    radial-gradient(circle at top left, rgba(59, 226, 255, 0.10), transparent 30%),
    radial-gradient(circle at bottom right, rgba(207, 97, 255, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(8, 14, 30, 0.90), rgba(9, 15, 33, 0.80)) !important;
  border: 1px solid rgba(94, 238, 255, 0.18) !important;
  backdrop-filter: blur(10px) saturate(122%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(122%) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255,255,255,0.05), 0 0 24px rgba(58,245,255,0.06) !important;
}
body[data-theme="neon-signal"] .sketch-panel::before,
body[data-theme="neon-signal"] .sketch-panel::after,
body[data-theme="neon-signal"] .theme-card::before,
body[data-theme="neon-signal"] .theme-card::after,
body[data-theme="neon-signal"] .back-link::before,
body[data-theme="neon-signal"] .back-link::after {
  display: none !important;
}
body[data-theme="neon-signal"] .nav-shell {
  background:
    radial-gradient(circle at top left, rgba(59, 226, 255, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(207, 97, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(7, 12, 26, 0.84), rgba(8, 14, 29, 0.74)) !important;
}
body[data-theme="neon-signal"] .hero-copy {
  background:
    radial-gradient(circle at top left, rgba(58,245,255,0.10), transparent 30%),
    radial-gradient(circle at bottom right, rgba(207,97,255,0.10), transparent 34%),
    linear-gradient(180deg, rgba(6, 12, 27, 0.84), rgba(7, 13, 29, 0.74)) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}
body[data-theme="neon-signal"] .theme-control {
  background:
    radial-gradient(circle at top left, rgba(58,245,255,0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(207,97,255,0.12), transparent 34%),
    linear-gradient(180deg, rgba(7, 12, 26, 0.88), rgba(8, 14, 30, 0.78)) !important;
}
body[data-theme="neon-signal"] .theme-meta-card {
  background: linear-gradient(180deg, rgba(10, 18, 39, 0.92), rgba(10, 18, 39, 0.74)) !important;
}
body[data-theme="neon-signal"] .theme-switch {
  background: rgba(10, 19, 38, 0.76) !important;
  border-color: rgba(93, 235, 255, 0.18) !important;
}
body[data-theme="neon-signal"] .theme-switch.is-active {
  background: linear-gradient(135deg, #3af5ff, #5875ff 56%, #cf61ff) !important;
  color: #02101a !important;
  box-shadow: 0 0 28px rgba(58,245,255,0.18) !important;
}
body[data-theme="neon-signal"] .project-preview,
body[data-theme="neon-signal"] .skill-demo {
  background:
    radial-gradient(circle at top right, rgba(59, 226, 255, 0.12), transparent 32%),
    radial-gradient(circle at bottom left, rgba(207, 97, 255, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(7, 13, 29, 0.92), rgba(12, 19, 40, 0.82)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 24px rgba(58,245,255,0.08) !important;
}
body[data-theme="neon-signal"] .project-preview::before {
  border-color: rgba(96, 235, 255, 0.20) !important;
}
body[data-theme="neon-signal"] .project-preview::after {
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%) !important;
}

/* orbital / theme 05 */
body[data-theme="orbital-depth"] .sketch-panel,
body[data-theme="orbital-depth"] .theme-card,
body[data-theme="orbital-depth"] .theme-meta-card,
body[data-theme="orbital-depth"] .resume-entry,
body[data-theme="orbital-depth"] .back-link {
  background:
    radial-gradient(circle at top right, rgba(128, 191, 255, 0.14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(94, 240, 208, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(8, 17, 39, 0.82), rgba(13, 24, 58, 0.72)) !important;
  border: 1px solid rgba(131, 177, 255, 0.16) !important;
  backdrop-filter: blur(14px) saturate(132%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(132%) !important;
  box-shadow: 0 28px 76px rgba(2, 6, 20, 0.38), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}
body[data-theme="orbital-depth"] .theme-control {
  background:
    radial-gradient(circle at 16% 10%, rgba(133, 194, 255, 0.12), transparent 28%),
    radial-gradient(circle at 86% 82%, rgba(94, 240, 208, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(8, 16, 36, 0.90), rgba(12, 22, 50, 0.78)) !important;
}
body[data-theme="orbital-depth"] .hero-copy {
  background:
    radial-gradient(circle at top right, rgba(131, 190, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(8, 16, 36, 0.86), rgba(12, 22, 50, 0.72)) !important;
}
body[data-theme="orbital-depth"] .project-preview,
body[data-theme="orbital-depth"] .skill-demo {
  background:
    radial-gradient(circle at top right, rgba(131, 190, 255, 0.16), transparent 34%),
    radial-gradient(circle at bottom left, rgba(94, 240, 208, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(7, 14, 33, 0.92), rgba(12, 22, 49, 0.84)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 48px rgba(1,6,18,0.34) !important;
}
body[data-theme="orbital-depth"] .theme-switch.is-active {
  background: linear-gradient(135deg, #8dbfff, #5ef0d0) !important;
  color: #04111a !important;
  box-shadow: 0 18px 36px rgba(89, 184, 255, 0.18) !important;
}
body[data-theme="orbital-depth"] .hero-art,
body[data-theme="orbital-depth"] .project-card,
body[data-theme="orbital-depth"] .skill-card,
body[data-theme="orbital-depth"] .info-card {
  transform-style: preserve-3d;
}

/* cleaner glass cards + hover polish */
@media (hover: hover) and (pointer: fine) {
  body[data-theme="office-lux"] .project-card:hover,
  body[data-theme="office-lux"] .skill-card:hover,
  body[data-theme="office-lux"] .info-card:hover {
    transform: translateY(-5px);
  }
  body[data-theme="amber-bistro"] .project-card:hover,
  body[data-theme="amber-bistro"] .skill-card:hover,
  body[data-theme="amber-bistro"] .info-card:hover {
    transform: translateY(-6px);
  }
  body[data-theme="neon-signal"] .project-card:hover,
  body[data-theme="neon-signal"] .skill-card:hover,
  body[data-theme="neon-signal"] .info-card:hover {
    transform: translateY(-6px) scale(1.01);
  }
  body[data-theme="orbital-depth"] .project-card:hover,
  body[data-theme="orbital-depth"] .skill-card:hover,
  body[data-theme="orbital-depth"] .info-card:hover {
    transform: translateY(-8px) rotateX(4deg) rotateY(-3deg);
    box-shadow: 0 34px 88px rgba(2, 6, 20, 0.42), inset 0 1px 0 rgba(255,255,255,0.07) !important;
  }
}

/* skill demos: make cards feel intentional in themes 02/03 */
body[data-theme="office-lux"] .skill-demo--layout::before,
body[data-theme="amber-bistro"] .skill-demo--layout::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.40), rgba(255,255,255,0.08)) !important;
}
body[data-theme="office-lux"] .skill-demo--visual::after,
body[data-theme="amber-bistro"] .skill-demo--visual::after {
  opacity: 0.95 !important;
  filter: blur(10px) !important;
}
body[data-theme="office-lux"] .skill-demo--pack::before,
body[data-theme="amber-bistro"] .skill-demo--pack::before {
  opacity: 0.95 !important;
}

@media (max-width: 1100px) {
  body[data-theme="office-lux"] .projects-grid,
  body[data-theme="neon-signal"] .projects-grid,
  body[data-theme="orbital-depth"] .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 920px) {
  body[data-theme="office-lux"] .nav,
  body[data-theme="amber-bistro"] .nav,
  body[data-theme="neon-signal"] .nav,
  body[data-theme="orbital-depth"] .nav {
    background: var(--panel-strong) !important;
    backdrop-filter: blur(14px) saturate(130%) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-theme="office-lux"] .project-card:hover,
  body[data-theme="office-lux"] .skill-card:hover,
  body[data-theme="office-lux"] .info-card:hover,
  body[data-theme="amber-bistro"] .project-card:hover,
  body[data-theme="amber-bistro"] .skill-card:hover,
  body[data-theme="amber-bistro"] .info-card:hover,
  body[data-theme="neon-signal"] .project-card:hover,
  body[data-theme="neon-signal"] .skill-card:hover,
  body[data-theme="neon-signal"] .info-card:hover,
  body[data-theme="orbital-depth"] .project-card:hover,
  body[data-theme="orbital-depth"] .skill-card:hover,
  body[data-theme="orbital-depth"] .info-card:hover {
    transform: none !important;
  }
}


/* ---------- v26: motion polish, clean contacts, amber glass pass ---------- */
.contact-list--clean {
  align-content: start;
}

.contact-list--clean span,
.contact-list--clean a {
  justify-content: flex-start;
}

.btn,
.theme-switch,
.theme-card,
.info-card,
.skill-card,
.project-card,
.note-card,
.contact-list a,
.contact-list span,
.project-tags span,
.resume-chip-wrap span,
.process-tags span,
.contact-badges span,
.back-link {
  transition: background-color .28s ease, border-color .28s ease, color .28s ease, box-shadow .28s ease, filter .28s ease, opacity .28s ease;
}

.btn:hover,
.btn:focus-visible,
.theme-switch:hover,
.theme-switch:focus-visible,
.theme-card:hover,
.theme-card:focus-visible,
.info-card:hover,
.skill-card:hover,
.project-card:hover,
.note-card:hover,
.back-link:hover,
.back-link:focus-visible {
  transform: none !important;
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(1.04);
  box-shadow: 0 16px 34px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
}

.theme-switch:hover,
.theme-switch:focus-visible,
.theme-card:hover,
.theme-card:focus-visible,
.info-card:hover,
.skill-card:hover,
.project-card:hover,
.note-card:hover,
.back-link:hover,
.back-link:focus-visible {
  filter: brightness(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.08);
}

.theme-card.is-selected {
  transform: none !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--button-bg) 34%, transparent), 0 22px 48px rgba(0,0,0,0.16) !important;
}

body[data-theme="amber-bistro"] {
  --amber-glass-strong: rgba(255, 246, 231, 0.12);
  --amber-glass-soft: rgba(251, 210, 154, 0.08);
}

body[data-theme="amber-bistro"] .theme-control,
body[data-theme="amber-bistro"] .theme-meta-card,
body[data-theme="amber-bistro"] .theme-card,
body[data-theme="amber-bistro"] .info-card,
body[data-theme="amber-bistro"] .project-card,
body[data-theme="amber-bistro"] .skill-card,
body[data-theme="amber-bistro"] .resume-card,
body[data-theme="amber-bistro"] .timeline,
body[data-theme="amber-bistro"] .contact-panel,
body[data-theme="amber-bistro"] .resume-sheet,
body[data-theme="amber-bistro"] .resume-entry,
body[data-theme="amber-bistro"] .note-card,
body[data-theme="amber-bistro"] .window-card,
body[data-theme="amber-bistro"] .back-link,
body[data-theme="amber-bistro"] .process-showcase {
  --glass-local-x: 0px;
  --glass-local-y: 0px;
  --glass-local-rx: 0deg;
  --glass-local-ry: 0deg;
}

body[data-theme="amber-bistro"] .theme-control,
body[data-theme="amber-bistro"] .theme-meta-card,
body[data-theme="amber-bistro"] .theme-card,
body[data-theme="amber-bistro"] .info-card,
body[data-theme="amber-bistro"] .project-card,
body[data-theme="amber-bistro"] .skill-card,
body[data-theme="amber-bistro"] .resume-card,
body[data-theme="amber-bistro"] .timeline,
body[data-theme="amber-bistro"] .contact-panel,
body[data-theme="amber-bistro"] .resume-sheet,
body[data-theme="amber-bistro"] .resume-entry,
body[data-theme="amber-bistro"] .note-card,
body[data-theme="amber-bistro"] .window-card,
body[data-theme="amber-bistro"] .back-link,
body[data-theme="amber-bistro"] .process-showcase {
  background:
    linear-gradient(180deg, rgba(255, 247, 235, 0.16), rgba(247, 226, 192, 0.08)),
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(245,203,142,0.05) 52%, rgba(180,122,72,0.03) 100%) !important;
  border-color: rgba(255, 239, 214, 0.20) !important;
  backdrop-filter: blur(10px) saturate(108%) !important;
  box-shadow:
    0 22px 44px rgba(28, 14, 6, 0.16),
    0 8px 18px rgba(28, 14, 6, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.34),
    inset 0 -1px 0 rgba(201,155,98,0.04) !important;
}

body[data-theme="amber-bistro"] .theme-control::before,
body[data-theme="amber-bistro"] .theme-meta-card::before,
body[data-theme="amber-bistro"] .theme-card::before,
body[data-theme="amber-bistro"] .info-card::before,
body[data-theme="amber-bistro"] .project-card::before,
body[data-theme="amber-bistro"] .skill-card::before,
body[data-theme="amber-bistro"] .resume-card::before,
body[data-theme="amber-bistro"] .timeline::before,
body[data-theme="amber-bistro"] .contact-panel::before,
body[data-theme="amber-bistro"] .resume-sheet::before,
body[data-theme="amber-bistro"] .resume-entry::before,
body[data-theme="amber-bistro"] .note-card::before,
body[data-theme="amber-bistro"] .window-card::before,
body[data-theme="amber-bistro"] .back-link::before,
body[data-theme="amber-bistro"] .process-showcase::before {
  transform: translate3d(var(--glass-local-x), var(--glass-local-y), 0);
  transition: transform .28s ease-out, opacity .28s ease-out;
  background:
    linear-gradient(132deg, rgba(255,255,255,0.14) 0%, rgba(255,248,236,0.08) 28%, rgba(255,239,210,0.04) 50%, transparent 66%),
    radial-gradient(circle at 80% 18%, rgba(255, 226, 184, 0.10), transparent 24%) !important;
}

body[data-theme="amber-bistro"] .theme-control::after,
body[data-theme="amber-bistro"] .theme-meta-card::after,
body[data-theme="amber-bistro"] .theme-card::after,
body[data-theme="amber-bistro"] .info-card::after,
body[data-theme="amber-bistro"] .project-card::after,
body[data-theme="amber-bistro"] .skill-card::after,
body[data-theme="amber-bistro"] .resume-card::after,
body[data-theme="amber-bistro"] .timeline::after,
body[data-theme="amber-bistro"] .contact-panel::after,
body[data-theme="amber-bistro"] .resume-sheet::after,
body[data-theme="amber-bistro"] .resume-entry::after,
body[data-theme="amber-bistro"] .note-card::after,
body[data-theme="amber-bistro"] .window-card::after,
body[data-theme="amber-bistro"] .back-link::after,
body[data-theme="amber-bistro"] .process-showcase::after {
  transform: translate3d(calc(var(--glass-local-x) * -0.55), calc(var(--glass-local-y) * -0.55), 0);
  transition: transform .34s ease-out, opacity .34s ease-out;
  opacity: 0.18 !important;
}

body[data-theme="amber-bistro"] .theme-control h3,
body[data-theme="amber-bistro"] .theme-control p,
body[data-theme="amber-bistro"] .theme-meta-card strong,
body[data-theme="amber-bistro"] .theme-card strong,
body[data-theme="amber-bistro"] .process-copy h3,
body[data-theme="amber-bistro"] .process-copy p {
  color: #f3e4d1 !important;
}

body[data-theme="amber-bistro"] .theme-control .eyebrow,
body[data-theme="amber-bistro"] .theme-control small,
body[data-theme="amber-bistro"] .theme-meta-card span,
body[data-theme="amber-bistro"] .theme-card p,
body[data-theme="amber-bistro"] .process-tags span {
  color: #d7bc99 !important;
}

body[data-theme="amber-bistro"] .process-showcase {
  position: relative;
  gap: 34px;
  overflow: visible;
}

body[data-theme="amber-bistro"] .process-stage {
  min-height: 470px;
  border-radius: 38px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(248, 210, 158, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255,249,239,0.14), rgba(245,229,204,0.08)),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(243,203,145,0.03)) !important;
  border: 1px solid rgba(255, 240, 214, 0.18) !important;
  backdrop-filter: blur(8px) saturate(108%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 20px 44px rgba(36, 20, 9, 0.16) !important;
}

body[data-theme="amber-bistro"] .process-stage::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 243, 223, 0.10);
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,0.08), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(246,208,156,0.09), transparent 20%);
  pointer-events: none;
}

body[data-theme="amber-bistro"] .code-window,
body[data-theme="amber-bistro"] .preview-window {
  border-radius: 36px !important;
  backdrop-filter: blur(12px) saturate(112%) !important;
  transition: transform .28s ease-out, box-shadow .28s ease-out, border-color .28s ease-out;
}

body[data-theme="amber-bistro"] .code-window {
  left: 18px;
  top: 18px;
  width: min(100%, 390px);
  transform:
    rotateY(16deg) rotateX(4deg)
    translate3d(calc(var(--pointer-x, 0) * -18px), calc(var(--pointer-y, 0) * -14px), 42px);
}

body[data-theme="amber-bistro"] .preview-window {
  right: 18px;
  bottom: 18px;
  width: min(100%, 500px);
  min-height: 374px;
  transform:
    rotateY(-16deg) rotateX(6deg)
    translate3d(calc(var(--pointer-x, 0) * 22px), calc(var(--pointer-y, 0) * 18px), 80px);
}

body[data-theme="amber-bistro"] .code-window::before,
body[data-theme="amber-bistro"] .preview-window::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 28px;
  border: 1px solid rgba(255, 243, 223, 0.14);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.10), transparent 34%, rgba(255,217,165,0.06) 72%, transparent 100%);
  transform: translate3d(calc(var(--glass-local-x) * 0.8), calc(var(--glass-local-y) * 0.8), 0);
  transition: transform .28s ease-out;
  pointer-events: none;
}

body[data-theme="amber-bistro"] .preview-window {
  background:
    linear-gradient(180deg, rgba(255,251,244,0.22), rgba(244,229,205,0.10)),
    radial-gradient(circle at 76% 18%, rgba(244,206,146,0.12), transparent 24%) !important;
}

body[data-theme="amber-bistro"] .code-window {
  background:
    linear-gradient(180deg, rgba(255,251,244,0.16), rgba(244,229,205,0.08)),
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.08), transparent 20%) !important;
}

body[data-theme="amber-bistro"] .code-lines span {
  background: rgba(255, 250, 241, 0.08);
  border-color: rgba(255, 239, 214, 0.14);
  color: #ead8c0;
}

body[data-theme="amber-bistro"] .preview-canvas::before {
  border-color: rgba(255, 241, 217, 0.10);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent 56%);
}

body[data-theme="amber-bistro"] .preview-hero,
body[data-theme="amber-bistro"] .preview-metrics div,
body[data-theme="amber-bistro"] .panel,
body[data-theme="amber-bistro"] .preview-ui,
body[data-theme="amber-bistro"] .project-preview .preview-ui,
body[data-theme="amber-bistro"] .skill-demo {
  transition: transform .28s ease-out, box-shadow .28s ease-out, border-color .28s ease-out;
}

body[data-theme="amber-bistro"] .preview-hero,
body[data-theme="amber-bistro"] .preview-metrics div,
body[data-theme="amber-bistro"] .panel {
  background: linear-gradient(180deg, rgba(255,254,250,0.40), rgba(235,220,196,0.18)) !important;
  border-color: rgba(255, 239, 214, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), 0 14px 28px rgba(40, 24, 12, 0.08) !important;
}

body[data-theme="amber-bistro"] .float-bit,
body[data-theme="amber-bistro"] .preview-glow,
body[data-theme="amber-bistro"] .preview-float {
  animation-duration: 8s;
}

body[data-theme="amber-bistro"] .theme-switch:hover,
body[data-theme="amber-bistro"] .theme-card:hover,
body[data-theme="amber-bistro"] .info-card:hover,
body[data-theme="amber-bistro"] .skill-card:hover,
body[data-theme="amber-bistro"] .project-card:hover,
body[data-theme="amber-bistro"] .back-link:hover {
  filter: brightness(1.04);
}

@keyframes amberGlassDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(8px, -6px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-theme="amber-bistro"] .theme-control::before,
  body[data-theme="amber-bistro"] .theme-meta-card::before,
  body[data-theme="amber-bistro"] .theme-card::before,
  body[data-theme="amber-bistro"] .info-card::before,
  body[data-theme="amber-bistro"] .project-card::before,
  body[data-theme="amber-bistro"] .skill-card::before,
  body[data-theme="amber-bistro"] .resume-card::before,
  body[data-theme="amber-bistro"] .timeline::before,
  body[data-theme="amber-bistro"] .contact-panel::before,
  body[data-theme="amber-bistro"] .resume-sheet::before,
  body[data-theme="amber-bistro"] .resume-entry::before,
  body[data-theme="amber-bistro"] .note-card::before,
  body[data-theme="amber-bistro"] .window-card::before,
  body[data-theme="amber-bistro"] .back-link::before,
  body[data-theme="amber-bistro"] .process-showcase::before,
  body[data-theme="amber-bistro"] .code-window,
  body[data-theme="amber-bistro"] .preview-window {
    transform: none !important;
  }
}


/* ===== v27 contrast, SEO-ready copy polish, contacts cleanup ===== */
.nav a::after,
.project-links a::after,
.contact-list a::after,
.footer-shell a::after,
.back-link::after {
  display: none !important;
}

.btn:hover,
.btn:focus-visible,
.theme-switch:hover,
.theme-switch:focus-visible,
.theme-card:hover,
.theme-card:focus-visible,
.info-card:hover,
.info-card:focus-visible,
.project-card:hover,
.project-card:focus-visible,
.skill-card:hover,
.skill-card:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  transform: none !important;
}

.contact-list--clean {
  gap: 12px !important;
}

.contact-list--clean span,
.resume-sheet-info span {
  display: none !important;
}

.contact-list--clean a,
.resume-sheet-info a {
  text-decoration: none !important;
}

.contact-list--clean a:hover,
.contact-list--clean a:focus-visible,
.resume-sheet-info a:hover,
.resume-sheet-info a:focus-visible {
  filter: brightness(1.05);
}

/* baseline readable contrast across all themes */
body .section-head p,
body .hero-text,
body .resume-long-intro,
body .resume-entry p,
body .project-body p,
body .skill-card p,
body .info-card p,
body .contact-panel p,
body .theme-card p,
body .theme-meta-card small,
body .timeline-copy p,
body .process-copy p {
  color: var(--text-soft);
}

body[data-theme="sketch-handdrawn"] .skill-subtitle,
body[data-theme="sketch-handdrawn"] .project-type,
body[data-theme="sketch-handdrawn"] .eyebrow {
  color: #5d5244 !important;
}

/* theme 2: cleaner glass + stronger contrast */
body[data-theme="office-lux"] .sketch-panel,
body[data-theme="office-lux"] .theme-card,
body[data-theme="office-lux"] .theme-meta-card,
body[data-theme="office-lux"] .resume-entry,
body[data-theme="office-lux"] .theme-control,
body[data-theme="office-lux"] .process-showcase,
body[data-theme="office-lux"] .contact-panel,
body[data-theme="office-lux"] .resume-sheet {
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(243,248,255,0.92)) !important;
  border-color: rgba(95, 129, 192, 0.18) !important;
  box-shadow: 0 22px 54px rgba(30, 69, 146, 0.12), inset 0 1px 0 rgba(255,255,255,0.62) !important;
}

body[data-theme="office-lux"] h1,
body[data-theme="office-lux"] h2,
body[data-theme="office-lux"] h3,
body[data-theme="office-lux"] strong,
body[data-theme="office-lux"] .contact-panel h2,
body[data-theme="office-lux"] .resume-sheet h1 {
  color: #08162f !important;
}

body[data-theme="office-lux"] p,
body[data-theme="office-lux"] li,
body[data-theme="office-lux"] .theme-card p,
body[data-theme="office-lux"] .theme-meta-card small,
body[data-theme="office-lux"] .process-copy p,
body[data-theme="office-lux"] .resume-entry p,
body[data-theme="office-lux"] .project-body p {
  color: #445b80 !important;
}

body[data-theme="office-lux"] .eyebrow,
body[data-theme="office-lux"] .project-type,
body[data-theme="office-lux"] .note-label,
body[data-theme="office-lux"] .skill-subtitle,
body[data-theme="office-lux"] .theme-card-top,
body[data-theme="office-lux"] .theme-meta-card span,
body[data-theme="office-lux"] .timeline-year {
  color: #305a98 !important;
}

body[data-theme="office-lux"] .btn-light,
body[data-theme="office-lux"] .btn-ghost,
body[data-theme="office-lux"] .theme-switch:not(.is-active) {
  color: #08162f !important;
  background: rgba(255,255,255,0.84) !important;
  border-color: rgba(95, 129, 192, 0.18) !important;
}

body[data-theme="office-lux"] .code-lines span {
  color: #29415f !important;
  background: rgba(255,255,255,0.78) !important;
  border-color: rgba(95, 129, 192, 0.14) !important;
}

/* theme 3: warm transparent glass, no muddy veil, readable text */
body[data-theme="amber-bistro"] {
  --text: #fff0dc;
  --text-soft: #ecd8ba;
}

body[data-theme="amber-bistro"] .theme-control,
body[data-theme="amber-bistro"] .theme-meta-card,
body[data-theme="amber-bistro"] .theme-card,
body[data-theme="amber-bistro"] .info-card,
body[data-theme="amber-bistro"] .project-card,
body[data-theme="amber-bistro"] .skill-card,
body[data-theme="amber-bistro"] .resume-card,
body[data-theme="amber-bistro"] .timeline,
body[data-theme="amber-bistro"] .contact-panel,
body[data-theme="amber-bistro"] .resume-sheet,
body[data-theme="amber-bistro"] .resume-entry,
body[data-theme="amber-bistro"] .note-card,
body[data-theme="amber-bistro"] .window-card,
body[data-theme="amber-bistro"] .back-link,
body[data-theme="amber-bistro"] .process-showcase {
  background: linear-gradient(180deg, rgba(78, 51, 36, 0.40), rgba(44, 28, 20, 0.54)) !important;
  border-color: rgba(255, 235, 204, 0.20) !important;
  backdrop-filter: blur(16px) saturate(112%) !important;
  box-shadow: 0 24px 52px rgba(15, 8, 4, 0.18), inset 0 1px 0 rgba(255,255,255,0.18) !important;
}

body[data-theme="amber-bistro"] .theme-control::before,
body[data-theme="amber-bistro"] .theme-meta-card::before,
body[data-theme="amber-bistro"] .theme-card::before,
body[data-theme="amber-bistro"] .info-card::before,
body[data-theme="amber-bistro"] .project-card::before,
body[data-theme="amber-bistro"] .skill-card::before,
body[data-theme="amber-bistro"] .resume-card::before,
body[data-theme="amber-bistro"] .timeline::before,
body[data-theme="amber-bistro"] .contact-panel::before,
body[data-theme="amber-bistro"] .resume-sheet::before,
body[data-theme="amber-bistro"] .resume-entry::before,
body[data-theme="amber-bistro"] .note-card::before,
body[data-theme="amber-bistro"] .window-card::before,
body[data-theme="amber-bistro"] .back-link::before,
body[data-theme="amber-bistro"] .process-showcase::before {
  opacity: 0.42 !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(245,205,155,0.04) 46%, transparent 72%) !important;
}

body[data-theme="amber-bistro"] .theme-control::after,
body[data-theme="amber-bistro"] .theme-meta-card::after,
body[data-theme="amber-bistro"] .theme-card::after,
body[data-theme="amber-bistro"] .info-card::after,
body[data-theme="amber-bistro"] .project-card::after,
body[data-theme="amber-bistro"] .skill-card::after,
body[data-theme="amber-bistro"] .resume-card::after,
body[data-theme="amber-bistro"] .timeline::after,
body[data-theme="amber-bistro"] .contact-panel::after,
body[data-theme="amber-bistro"] .resume-sheet::after,
body[data-theme="amber-bistro"] .resume-entry::after,
body[data-theme="amber-bistro"] .note-card::after,
body[data-theme="amber-bistro"] .window-card::after,
body[data-theme="amber-bistro"] .back-link::after,
body[data-theme="amber-bistro"] .process-showcase::after {
  opacity: 0.07 !important;
}

body[data-theme="amber-bistro"] h1,
body[data-theme="amber-bistro"] h2,
body[data-theme="amber-bistro"] h3,
body[data-theme="amber-bistro"] strong,
body[data-theme="amber-bistro"] .contact-panel h2,
body[data-theme="amber-bistro"] .resume-sheet h1,
body[data-theme="amber-bistro"] .theme-control h3,
body[data-theme="amber-bistro"] .theme-meta-card strong,
body[data-theme="amber-bistro"] .theme-card strong {
  color: #fff0dc !important;
}

body[data-theme="amber-bistro"] p,
body[data-theme="amber-bistro"] li,
body[data-theme="amber-bistro"] .theme-card p,
body[data-theme="amber-bistro"] .theme-meta-card small,
body[data-theme="amber-bistro"] .process-copy p,
body[data-theme="amber-bistro"] .resume-entry p,
body[data-theme="amber-bistro"] .project-body p,
body[data-theme="amber-bistro"] .skill-card p,
body[data-theme="amber-bistro"] .contact-panel p {
  color: #efddc4 !important;
}

body[data-theme="amber-bistro"] .eyebrow,
body[data-theme="amber-bistro"] .project-type,
body[data-theme="amber-bistro"] .note-label,
body[data-theme="amber-bistro"] .skill-subtitle,
body[data-theme="amber-bistro"] .theme-card-top,
body[data-theme="amber-bistro"] .theme-meta-card span,
body[data-theme="amber-bistro"] .timeline-year {
  color: #d6a164 !important;
}

body[data-theme="amber-bistro"] .theme-switch:not(.is-active),
body[data-theme="amber-bistro"] .btn-light,
body[data-theme="amber-bistro"] .btn-ghost {
  color: #fff0dc !important;
  background: rgba(70, 46, 32, 0.68) !important;
  border-color: rgba(255, 230, 196, 0.16) !important;
}

body[data-theme="amber-bistro"] .btn-dark {
  color: #fff8f1 !important;
  background: linear-gradient(135deg, #d69a55, #a8652d) !important;
  border-color: transparent !important;
}

body[data-theme="amber-bistro"] .process-showcase {
  overflow: hidden !important;
  gap: 28px !important;
}

body[data-theme="amber-bistro"] .process-stage {
  min-height: 440px !important;
  padding: 18px !important;
  background: linear-gradient(180deg, rgba(255,247,233,0.08), rgba(214,171,119,0.05)) !important;
  border-color: rgba(255, 233, 199, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 18px 36px rgba(20, 10, 5, 0.14) !important;
}

body[data-theme="amber-bistro"] .process-stage::before {
  opacity: 0.22 !important;
}

body[data-theme="amber-bistro"] .code-window,
body[data-theme="amber-bistro"] .preview-window {
  border-radius: 34px !important;
  backdrop-filter: blur(12px) saturate(108%) !important;
  border: 1px solid rgba(255, 234, 204, 0.16) !important;
}

body[data-theme="amber-bistro"] .code-window {
  left: 18px !important;
  top: 18px !important;
  width: min(100%, 338px) !important;
  opacity: 0.76;
  background: linear-gradient(180deg, rgba(255,249,239,0.12), rgba(223,183,129,0.06)) !important;
  transform: rotateY(10deg) rotateX(3deg) translate3d(calc(var(--pointer-x, 0) * -14px), calc(var(--pointer-y, 0) * -10px), 22px) !important;
}

body[data-theme="amber-bistro"] .preview-window {
  right: 18px !important;
  bottom: 18px !important;
  width: min(100%, 470px) !important;
  min-height: 340px !important;
  background: linear-gradient(180deg, rgba(255,249,239,0.16), rgba(228,188,136,0.07)) !important;
  transform: rotateY(-8deg) rotateX(3deg) translate3d(calc(var(--pointer-x, 0) * 16px), calc(var(--pointer-y, 0) * 12px), 38px) !important;
}

body[data-theme="amber-bistro"] .code-window::before,
body[data-theme="amber-bistro"] .preview-window::before {
  inset: 12px !important;
  opacity: 0.46 !important;
}

body[data-theme="amber-bistro"] .code-lines {
  opacity: 0.74;
}

body[data-theme="amber-bistro"] .code-lines span {
  color: rgba(255, 244, 226, 0.84) !important;
  background: rgba(63, 43, 31, 0.16) !important;
  border-color: rgba(255, 236, 206, 0.10) !important;
}

body[data-theme="amber-bistro"] .preview-hero,
body[data-theme="amber-bistro"] .preview-metrics div,
body[data-theme="amber-bistro"] .panel,
body[data-theme="amber-bistro"] .preview-ui,
body[data-theme="amber-bistro"] .project-preview .preview-ui,
body[data-theme="amber-bistro"] .skill-demo {
  background: linear-gradient(180deg, rgba(255,251,245,0.34), rgba(236,217,185,0.16)) !important;
  border-color: rgba(255, 236, 206, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 12px 24px rgba(22, 12, 6, 0.08) !important;
}

body[data-theme="amber-bistro"] .preview-glow,
body[data-theme="amber-bistro"] .preview-float,
body[data-theme="amber-bistro"] .float-bit {
  opacity: 0.48 !important;
}

/* theme 4: fix contrast in neon */
body[data-theme="neon-signal"] .sketch-panel,
body[data-theme="neon-signal"] .theme-card,
body[data-theme="neon-signal"] .theme-meta-card,
body[data-theme="neon-signal"] .resume-entry,
body[data-theme="neon-signal"] .theme-control,
body[data-theme="neon-signal"] .process-showcase,
body[data-theme="neon-signal"] .contact-panel,
body[data-theme="neon-signal"] .resume-sheet {
  background: linear-gradient(180deg, rgba(8,16,37,0.92), rgba(10,18,44,0.86)) !important;
  border-color: rgba(96,236,255,0.18) !important;
  box-shadow: 0 24px 56px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

body[data-theme="neon-signal"] h1,
body[data-theme="neon-signal"] h2,
body[data-theme="neon-signal"] h3,
body[data-theme="neon-signal"] strong {
  color: #f2f7ff !important;
}

body[data-theme="neon-signal"] p,
body[data-theme="neon-signal"] li,
body[data-theme="neon-signal"] .theme-card p,
body[data-theme="neon-signal"] .theme-meta-card small,
body[data-theme="neon-signal"] .process-copy p,
body[data-theme="neon-signal"] .resume-entry p,
body[data-theme="neon-signal"] .project-body p,
body[data-theme="neon-signal"] .skill-card p,
body[data-theme="neon-signal"] .contact-panel p {
  color: #cfd8ff !important;
}

body[data-theme="neon-signal"] .eyebrow,
body[data-theme="neon-signal"] .project-type,
body[data-theme="neon-signal"] .note-label,
body[data-theme="neon-signal"] .skill-subtitle,
body[data-theme="neon-signal"] .theme-card-top,
body[data-theme="neon-signal"] .theme-meta-card span,
body[data-theme="neon-signal"] .timeline-year {
  color: #7feaff !important;
}

body[data-theme="neon-signal"] .theme-switch:not(.is-active),
body[data-theme="neon-signal"] .btn-light,
body[data-theme="neon-signal"] .btn-ghost {
  color: #edf6ff !important;
  background: rgba(8,18,42,0.84) !important;
  border-color: rgba(96,236,255,0.18) !important;
}

/* theme 5: stronger readable contrast */
body[data-theme="orbital-depth"] .sketch-panel,
body[data-theme="orbital-depth"] .theme-card,
body[data-theme="orbital-depth"] .theme-meta-card,
body[data-theme="orbital-depth"] .resume-entry,
body[data-theme="orbital-depth"] .theme-control,
body[data-theme="orbital-depth"] .process-showcase,
body[data-theme="orbital-depth"] .contact-panel,
body[data-theme="orbital-depth"] .resume-sheet,
body[data-theme="developer-cockpit"] .sketch-panel,
body[data-theme="developer-cockpit"] .theme-card,
body[data-theme="developer-cockpit"] .theme-meta-card,
body[data-theme="developer-cockpit"] .resume-entry,
body[data-theme="developer-cockpit"] .theme-control,
body[data-theme="developer-cockpit"] .process-showcase,
body[data-theme="developer-cockpit"] .contact-panel,
body[data-theme="developer-cockpit"] .resume-sheet {
  border-color: rgba(114,255,197,0.18) !important;
  box-shadow: 0 24px 54px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

body[data-theme="orbital-depth"] h1,
body[data-theme="orbital-depth"] h2,
body[data-theme="orbital-depth"] h3,
body[data-theme="orbital-depth"] strong,
body[data-theme="developer-cockpit"] h1,
body[data-theme="developer-cockpit"] h2,
body[data-theme="developer-cockpit"] h3,
body[data-theme="developer-cockpit"] strong {
  color: #eefef8 !important;
}

body[data-theme="orbital-depth"] p,
body[data-theme="orbital-depth"] li,
body[data-theme="orbital-depth"] .theme-card p,
body[data-theme="orbital-depth"] .theme-meta-card small,
body[data-theme="orbital-depth"] .process-copy p,
body[data-theme="orbital-depth"] .resume-entry p,
body[data-theme="orbital-depth"] .project-body p,
body[data-theme="orbital-depth"] .skill-card p,
body[data-theme="orbital-depth"] .contact-panel p,
body[data-theme="developer-cockpit"] p,
body[data-theme="developer-cockpit"] li,
body[data-theme="developer-cockpit"] .theme-card p,
body[data-theme="developer-cockpit"] .theme-meta-card small,
body[data-theme="developer-cockpit"] .process-copy p,
body[data-theme="developer-cockpit"] .resume-entry p,
body[data-theme="developer-cockpit"] .project-body p,
body[data-theme="developer-cockpit"] .skill-card p,
body[data-theme="developer-cockpit"] .contact-panel p {
  color: #c4ddd5 !important;
}

body[data-theme="orbital-depth"] .eyebrow,
body[data-theme="orbital-depth"] .project-type,
body[data-theme="orbital-depth"] .note-label,
body[data-theme="orbital-depth"] .skill-subtitle,
body[data-theme="orbital-depth"] .theme-card-top,
body[data-theme="orbital-depth"] .theme-meta-card span,
body[data-theme="orbital-depth"] .timeline-year,
body[data-theme="developer-cockpit"] .eyebrow,
body[data-theme="developer-cockpit"] .project-type,
body[data-theme="developer-cockpit"] .note-label,
body[data-theme="developer-cockpit"] .skill-subtitle,
body[data-theme="developer-cockpit"] .theme-card-top,
body[data-theme="developer-cockpit"] .theme-meta-card span,
body[data-theme="developer-cockpit"] .timeline-year {
  color: #8ff8dc !important;
}

/* cleaner dark-on-light internals inside previews */
body[data-theme="office-lux"] .preview-window,
body[data-theme="amber-bistro"] .preview-window,
body[data-theme="office-lux"] .code-window,
body[data-theme="amber-bistro"] .code-window {
  isolation: isolate;
}

body[data-theme="office-lux"] .preview-browser-top span,
body[data-theme="amber-bistro"] .preview-browser-top span,
body[data-theme="office-lux"] .code-window-top span,
body[data-theme="amber-bistro"] .code-window-top span {
  opacity: 0.85;
}

@media (prefers-reduced-transparency: reduce) {
  body[data-theme="office-lux"] .sketch-panel,
  body[data-theme="amber-bistro"] .sketch-panel,
  body[data-theme="neon-signal"] .sketch-panel,
  body[data-theme="orbital-depth"] .sketch-panel,
  body[data-theme="developer-cockpit"] .sketch-panel {
    backdrop-filter: none !important;
  }
}

/* ===== v28: remove hover lift globally ===== */
@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  .btn:focus-visible,
  .theme-switch:hover,
  .theme-switch:focus-visible,
  .theme-card:hover,
  .theme-card:focus-visible,
  .info-card:hover,
  .info-card:focus-visible,
  .skill-card:hover,
  .skill-card:focus-visible,
  .project-card:hover,
  .project-card:focus-visible,
  .note-card:hover,
  .note-card:focus-visible,
  .back-link:hover,
  .back-link:focus-visible,
  body[data-theme="sketch-handdrawn"] .project-card:hover,
  body[data-theme="sketch-handdrawn"] .skill-card:hover,
  body[data-theme="sketch-handdrawn"] .info-card:hover,
  body[data-theme="office-lux"] .project-card:hover,
  body[data-theme="office-lux"] .skill-card:hover,
  body[data-theme="office-lux"] .info-card:hover,
  body[data-theme="amber-bistro"] .project-card:hover,
  body[data-theme="amber-bistro"] .skill-card:hover,
  body[data-theme="amber-bistro"] .info-card:hover,
  body[data-theme="neon-signal"] .project-card:hover,
  body[data-theme="neon-signal"] .skill-card:hover,
  body[data-theme="neon-signal"] .info-card:hover,
  body[data-theme="orbital-depth"] .project-card:hover,
  body[data-theme="orbital-depth"] .skill-card:hover,
  body[data-theme="orbital-depth"] .info-card:hover {
    transform: none !important;
  }

  .theme-card:hover,
  .info-card:hover,
  .skill-card:hover,
  .project-card:hover,
  .note-card:hover,
  .back-link:hover,
  .theme-switch:hover,
  .btn:hover {
    filter: brightness(1.02);
  }
}


/* ---------- v29: final contrast/process cleanup ---------- */
.btn:hover,
.btn:focus-visible,
.theme-card:hover,
.theme-card.is-selected,
.theme-switch:hover,
.theme-switch.is-active,
.back-link:hover,
body[data-theme] .project-card:hover,
body[data-theme] .skill-card:hover,
body[data-theme] .info-card:hover,
body[data-theme] .resume-entry:hover,
body[data-theme] .note-card:hover {
  transform: none !important;
}

body[data-theme] .btn,
body[data-theme] .theme-switch,
body[data-theme] .theme-card,
body[data-theme] .project-card,
body[data-theme] .skill-card,
body[data-theme] .info-card,
body[data-theme] .resume-entry,
body[data-theme] .note-card,
body[data-theme] .contact-panel,
body[data-theme] .process-showcase,
body[data-theme] .code-window,
body[data-theme] .preview-window {
  transition: background-color .24s ease, border-color .24s ease, box-shadow .24s ease, filter .24s ease, opacity .24s ease;
}

.process-showcase {
  gap: 28px;
  align-items: center;
}

.process-copy {
  max-width: 34rem;
}

.process-copy p {
  max-width: 32rem;
}

.process-stage {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(300px, 1.18fr);
  gap: 18px;
  align-items: center;
  min-height: 430px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 34px;
  overflow: hidden;
  perspective: none;
  transform-style: flat;
}

.code-window,
.preview-window {
  position: relative;
  inset: auto;
  width: auto;
  min-width: 0;
  transform: none !important;
  backdrop-filter: none;
}

.code-window {
  align-self: start;
  z-index: 2;
}

.preview-window {
  align-self: stretch;
  z-index: 1;
  min-height: 340px;
}

.code-lines span {
  white-space: normal;
  overflow: visible;
  line-height: 1.55;
}

.float-bit,
.float-ring {
  opacity: .22;
}

.float-bit {
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  backdrop-filter: none;
}

.float-bit-a { right: 10px; top: 14px; }
.float-bit-b { left: auto; right: 150px; bottom: 10px; }
.float-bit-c { right: 22px; bottom: 86px; }
.float-ring { right: 22px; top: 44px; }

body[data-theme="office-lux"] .theme-card,
body[data-theme="office-lux"] .theme-meta-card,
body[data-theme="office-lux"] .info-card,
body[data-theme="office-lux"] .project-card,
body[data-theme="office-lux"] .skill-card,
body[data-theme="office-lux"] .contact-panel,
body[data-theme="office-lux"] .resume-sheet,
body[data-theme="office-lux"] .resume-entry,
body[data-theme="office-lux"] .timeline,
body[data-theme="office-lux"] .process-showcase,
body[data-theme="office-lux"] .code-window,
body[data-theme="office-lux"] .preview-window {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(238,245,255,0.90)) !important;
  border-color: rgba(124, 158, 215, 0.22) !important;
  box-shadow: 0 20px 42px rgba(38, 72, 133, 0.10), inset 0 1px 0 rgba(255,255,255,0.85) !important;
}

body[data-theme="office-lux"] p,
body[data-theme="office-lux"] .theme-card p,
body[data-theme="office-lux"] .theme-meta-card small,
body[data-theme="office-lux"] .project-body p,
body[data-theme="office-lux"] .skill-card p,
body[data-theme="office-lux"] .contact-panel p,
body[data-theme="office-lux"] .process-copy p {
  color: #3b536f !important;
}

body[data-theme="office-lux"] .process-stage {
  background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(228,239,255,0.74)) !important;
  border-color: rgba(118, 154, 215, 0.18) !important;
}

body[data-theme="office-lux"] .code-lines span {
  color: #274563 !important;
  background: rgba(255,255,255,0.96) !important;
  border-color: rgba(118, 154, 215, 0.16) !important;
}

body[data-theme="office-lux"] .preview-metrics div,
body[data-theme="office-lux"] .panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(226,237,255,0.82)) !important;
  border-color: rgba(118, 154, 215, 0.14) !important;
}

body[data-theme="amber-bistro"] {
  --text: #f6ead8;
  --text-soft: #deceb8;
}

body[data-theme="amber-bistro"] .theme-control,
body[data-theme="amber-bistro"] .theme-meta-card,
body[data-theme="amber-bistro"] .theme-card,
body[data-theme="amber-bistro"] .info-card,
body[data-theme="amber-bistro"] .project-card,
body[data-theme="amber-bistro"] .skill-card,
body[data-theme="amber-bistro"] .resume-card,
body[data-theme="amber-bistro"] .timeline,
body[data-theme="amber-bistro"] .contact-panel,
body[data-theme="amber-bistro"] .resume-sheet,
body[data-theme="amber-bistro"] .resume-entry,
body[data-theme="amber-bistro"] .note-card,
body[data-theme="amber-bistro"] .window-card,
body[data-theme="amber-bistro"] .back-link {
  background: linear-gradient(180deg, rgba(54, 32, 22, 0.92), rgba(31, 18, 13, 0.94)) !important;
  border-color: rgba(229, 193, 143, 0.18) !important;
  backdrop-filter: none !important;
  box-shadow: 0 22px 48px rgba(9, 4, 2, 0.24), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

body[data-theme="amber-bistro"] .theme-control::before,
body[data-theme="amber-bistro"] .theme-meta-card::before,
body[data-theme="amber-bistro"] .theme-card::before,
body[data-theme="amber-bistro"] .info-card::before,
body[data-theme="amber-bistro"] .project-card::before,
body[data-theme="amber-bistro"] .skill-card::before,
body[data-theme="amber-bistro"] .resume-card::before,
body[data-theme="amber-bistro"] .timeline::before,
body[data-theme="amber-bistro"] .contact-panel::before,
body[data-theme="amber-bistro"] .resume-sheet::before,
body[data-theme="amber-bistro"] .resume-entry::before,
body[data-theme="amber-bistro"] .note-card::before,
body[data-theme="amber-bistro"] .window-card::before,
body[data-theme="amber-bistro"] .back-link::before,
body[data-theme="amber-bistro"] .theme-control::after,
body[data-theme="amber-bistro"] .theme-meta-card::after,
body[data-theme="amber-bistro"] .theme-card::after,
body[data-theme="amber-bistro"] .info-card::after,
body[data-theme="amber-bistro"] .project-card::after,
body[data-theme="amber-bistro"] .skill-card::after,
body[data-theme="amber-bistro"] .resume-card::after,
body[data-theme="amber-bistro"] .timeline::after,
body[data-theme="amber-bistro"] .contact-panel::after,
body[data-theme="amber-bistro"] .resume-sheet::after,
body[data-theme="amber-bistro"] .resume-entry::after,
body[data-theme="amber-bistro"] .note-card::after,
body[data-theme="amber-bistro"] .window-card::after,
body[data-theme="amber-bistro"] .back-link::after {
  opacity: 0.18 !important;
}

body[data-theme="amber-bistro"] .process-showcase {
  background: linear-gradient(135deg, rgba(33, 18, 12, 0.98), rgba(22, 12, 8, 0.98)) !important;
  border-color: rgba(223, 178, 117, 0.18) !important;
  box-shadow: 0 26px 58px rgba(8, 3, 1, 0.28), inset 0 1px 0 rgba(255,255,255,0.05) !important;
  backdrop-filter: none !important;
}

body[data-theme="amber-bistro"] .process-showcase::before,
body[data-theme="amber-bistro"] .process-showcase::after,
body[data-theme="amber-bistro"] .process-stage::before,
body[data-theme="amber-bistro"] .process-stage::after {
  content: none !important;
}

body[data-theme="amber-bistro"] .process-copy h3,
body[data-theme="amber-bistro"] .process-copy p,
body[data-theme="amber-bistro"] .process-tags span {
  position: relative;
  z-index: 3;
}

body[data-theme="amber-bistro"] .process-copy h3,
body[data-theme="amber-bistro"] .process-copy p,
body[data-theme="amber-bistro"] .contact-panel h2,
body[data-theme="amber-bistro"] .theme-card strong,
body[data-theme="amber-bistro"] .theme-meta-card strong,
body[data-theme="amber-bistro"] .project-body h3,
body[data-theme="amber-bistro"] .skill-card h3,
body[data-theme="amber-bistro"] .resume-entry strong,
body[data-theme="amber-bistro"] .timeline-item h3 {
  color: #f6ead8 !important;
}

body[data-theme="amber-bistro"] p,
body[data-theme="amber-bistro"] .theme-card p,
body[data-theme="amber-bistro"] .theme-meta-card small,
body[data-theme="amber-bistro"] .project-body p,
body[data-theme="amber-bistro"] .skill-card p,
body[data-theme="amber-bistro"] .contact-panel p,
body[data-theme="amber-bistro"] .process-copy p,
body[data-theme="amber-bistro"] .resume-entry p,
body[data-theme="amber-bistro"] .timeline-item p {
  color: #dcc8af !important;
}

body[data-theme="amber-bistro"] .process-stage {
  padding: 18px;
  background: linear-gradient(180deg, rgba(63, 39, 27, 0.96), rgba(38, 22, 16, 0.96)) !important;
  border-color: rgba(223, 178, 117, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), inset 0 0 0 1px rgba(255,255,255,0.03) !important;
}

body[data-theme="amber-bistro"] .code-window,
body[data-theme="amber-bistro"] .preview-window {
  border-radius: 30px !important;
  border: 1px solid rgba(232, 197, 147, 0.18) !important;
  backdrop-filter: none !important;
}

body[data-theme="amber-bistro"] .code-window {
  background: linear-gradient(180deg, rgba(76, 50, 37, 0.98), rgba(51, 32, 24, 0.98)) !important;
  box-shadow: 0 18px 36px rgba(7, 3, 2, 0.26), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

body[data-theme="amber-bistro"] .code-window-top span {
  background: rgba(255, 230, 195, 0.26) !important;
}

body[data-theme="amber-bistro"] .code-lines span {
  color: #f4e6d2 !important;
  background: rgba(255, 247, 234, 0.06) !important;
  border-color: rgba(232, 197, 147, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

body[data-theme="amber-bistro"] .preview-window {
  background: linear-gradient(180deg, rgba(239, 222, 198, 0.98), rgba(206, 178, 143, 0.96)) !important;
  box-shadow: 0 20px 42px rgba(7, 3, 2, 0.22), inset 0 1px 0 rgba(255,255,255,0.62) !important;
}

body[data-theme="amber-bistro"] .preview-browser-top span {
  background: rgba(92, 62, 41, 0.24) !important;
}

body[data-theme="amber-bistro"] .preview-hero {
  background: linear-gradient(180deg, rgba(255,250,244,0.96), rgba(250,239,221,0.90)) !important;
}

body[data-theme="amber-bistro"] .preview-hero::before,
body[data-theme="amber-bistro"] .preview-hero::after,
body[data-theme="amber-bistro"] .preview-canvas::before {
  background: rgba(160, 116, 67, 0.08) !important;
  border-color: rgba(160, 116, 67, 0.10) !important;
}

body[data-theme="amber-bistro"] .preview-metrics div,
body[data-theme="amber-bistro"] .panel {
  background: linear-gradient(180deg, rgba(255,250,243,0.98), rgba(240,225,202,0.92)) !important;
  border-color: rgba(166, 126, 81, 0.12) !important;
  box-shadow: 0 10px 22px rgba(127, 84, 42, 0.08) !important;
}

body[data-theme="amber-bistro"] .panel::after,
body[data-theme="amber-bistro"] .preview-metrics div::after {
  background: rgba(102, 71, 45, 0.12) !important;
}

body[data-theme="amber-bistro"] .float-bit,
body[data-theme="amber-bistro"] .float-ring {
  opacity: 0.10 !important;
  border-color: rgba(255, 233, 199, 0.18) !important;
  background: linear-gradient(135deg, rgba(255,245,227,0.12), rgba(255,245,227,0.02)) !important;
  box-shadow: none !important;
}

body[data-theme="amber-bistro"] .float-ring {
  border-width: 1px !important;
}

body[data-theme="neon-signal"] p,
body[data-theme="neon-signal"] .theme-card p,
body[data-theme="neon-signal"] .theme-meta-card small,
body[data-theme="neon-signal"] .project-body p,
body[data-theme="neon-signal"] .skill-card p,
body[data-theme="neon-signal"] .contact-panel p,
body[data-theme="neon-signal"] .process-copy p,
body[data-theme="neon-signal"] .resume-entry p,
body[data-theme="neon-signal"] .timeline-item p {
  color: #b9d6eb !important;
}

body[data-theme="neon-signal"] .process-stage {
  background: linear-gradient(180deg, rgba(6, 15, 31, 0.95), rgba(9, 18, 36, 0.88)) !important;
  border-color: rgba(72, 222, 255, 0.18) !important;
}

body[data-theme="neon-signal"] .code-lines span {
  color: #d9f6ff !important;
  background: rgba(12, 24, 49, 0.94) !important;
  border-color: rgba(74, 214, 255, 0.18) !important;
}

body[data-theme="neon-signal"] .preview-window {
  background: linear-gradient(180deg, rgba(12, 23, 48, 0.96), rgba(8, 17, 36, 0.92)) !important;
}

body[data-theme="orbital-depth"] p,
body[data-theme="orbital-depth"] .theme-card p,
body[data-theme="orbital-depth"] .theme-meta-card small,
body[data-theme="orbital-depth"] .project-body p,
body[data-theme="orbital-depth"] .skill-card p,
body[data-theme="orbital-depth"] .contact-panel p,
body[data-theme="orbital-depth"] .process-copy p,
body[data-theme="orbital-depth"] .resume-entry p,
body[data-theme="orbital-depth"] .timeline-item p {
  color: #bfd1ea !important;
}

body[data-theme="orbital-depth"] .process-stage {
  background: linear-gradient(180deg, rgba(10, 17, 33, 0.92), rgba(8, 13, 24, 0.90)) !important;
}

body[data-theme="orbital-depth"] .code-lines span {
  color: #e5eefc !important;
  background: rgba(16, 24, 42, 0.92) !important;
  border-color: rgba(138, 176, 237, 0.18) !important;
}

body[data-theme="orbital-depth"] .preview-window {
  background: linear-gradient(180deg, rgba(17, 24, 43, 0.96), rgba(11, 17, 31, 0.92)) !important;
}

.contact-panel h2 {
  max-width: 18ch;
}

.contact-panel p {
  max-width: 42rem;
}

.contact-list--clean a {
  min-height: 56px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .process-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .preview-window {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .process-stage {
    padding: 14px;
    border-radius: 24px;
  }

  .code-window,
  .preview-window {
    padding: 14px;
    border-radius: 22px !important;
  }

  .preview-window {
    min-height: 260px;
  }
}


/* ---------- v29b: formats wording + studio rework + layout demo cleanup ---------- */
body[data-theme="office-lux"] {
  --bg: linear-gradient(180deg, #f7f7f6 0%, #ececeb 46%, #dfe2e6 100%);
  --text: #111214;
  --text-soft: #50545c;
  --panel: rgba(255,255,255,0.90);
  --panel-strong: rgba(255,255,255,0.96);
  --border: rgba(17, 18, 20, 0.10);
  --shadow: 0 26px 60px rgba(18, 20, 26, 0.08);
  --button-bg: linear-gradient(180deg, #111214 0%, #050607 100%);
  --button-text: #f8f8f8;
  --button-ghost: rgba(17,18,20,0.04);
  --nav-bg: rgba(255,255,255,0.82);
  --nav-border: rgba(17,18,20,0.10);
  --project-a: linear-gradient(135deg, #f4f4f4 0%, #dfe2e6 50%, #adb3bb 100%);
  --project-b: linear-gradient(135deg, #ffffff 0%, #eceff4 52%, #c8cdd5 100%);
  --project-c: linear-gradient(135deg, #f7f7f6 0%, #e4e6ea 50%, #babfc8 100%);
}

body[data-theme="office-lux"] .page-lines {
  border-color: rgba(19, 21, 24, 0.05) !important;
  opacity: 1 !important;
}

body[data-theme="office-lux"] .nav-shell,
body[data-theme="office-lux"] .theme-control,
body[data-theme="office-lux"] .theme-meta-card,
body[data-theme="office-lux"] .theme-card,
body[data-theme="office-lux"] .info-card,
body[data-theme="office-lux"] .project-card,
body[data-theme="office-lux"] .skill-card,
body[data-theme="office-lux"] .contact-panel,
body[data-theme="office-lux"] .resume-sheet,
body[data-theme="office-lux"] .resume-entry,
body[data-theme="office-lux"] .timeline,
body[data-theme="office-lux"] .process-showcase,
body[data-theme="office-lux"] .code-window,
body[data-theme="office-lux"] .preview-window {
  backdrop-filter: none !important;
}

body[data-theme="office-lux"] .brand-mark,
body[data-theme="office-lux"] .btn-dark,
body[data-theme="office-lux"] .theme-switch.is-active {
  background: linear-gradient(180deg, #121315 0%, #050607 100%) !important;
  color: #f8f8f8 !important;
}

body[data-theme="office-lux"] .btn-light,
body[data-theme="office-lux"] .btn-ghost,
body[data-theme="office-lux"] .theme-switch:not(.is-active) {
  background: rgba(255,255,255,0.82) !important;
  color: #131519 !important;
  border-color: rgba(17,18,20,0.08) !important;
}

body[data-theme="office-lux"] .eyebrow,
body[data-theme="office-lux"] .skill-subtitle,
body[data-theme="office-lux"] .theme-card-top,
body[data-theme="office-lux"] .project-type,
body[data-theme="office-lux"] .timeline-year,
body[data-theme="office-lux"] .note-label {
  color: #6a7079 !important;
}

body[data-theme="office-lux"] .window-card,
body[data-theme="office-lux"] .project-preview,
body[data-theme="office-lux"] .preview-window,
body[data-theme="office-lux"] .process-stage {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(232,235,240,0.90)) !important;
  border-color: rgba(17,18,20,0.08) !important;
}

body[data-theme="office-lux"] .art-blob,
body[data-theme="office-lux"] .art-line,
body[data-theme="office-lux"] .preview-metrics div,
body[data-theme="office-lux"] .panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(220,224,230,0.88)) !important;
  border-color: rgba(17,18,20,0.08) !important;
  box-shadow: 0 10px 24px rgba(16, 18, 22, 0.06) !important;
}

body[data-theme="office-lux"] .process-copy h3,
body[data-theme="office-lux"] .process-copy p,
body[data-theme="office-lux"] .contact-panel h2,
body[data-theme="office-lux"] .theme-card strong,
body[data-theme="office-lux"] .theme-meta-card strong,
body[data-theme="office-lux"] .project-body h3,
body[data-theme="office-lux"] .skill-card h3,
body[data-theme="office-lux"] .resume-entry strong,
body[data-theme="office-lux"] .timeline-item h3 {
  color: #111214 !important;
}

body[data-theme="office-lux"] .float-bit,
body[data-theme="office-lux"] .float-ring {
  opacity: .14;
  border-color: rgba(17,18,20,0.10) !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.80), rgba(215,220,228,0.30)) !important;
  box-shadow: 0 18px 34px rgba(16,18,22,0.06) !important;
}

body[data-theme="office-lux"] .skill-demo--layout,
body[data-theme="amber-bistro"] .skill-demo--layout,
body[data-theme="orbital-depth"] .skill-demo--layout {
  min-height: 132px;
  overflow: hidden;
}

body[data-theme="office-lux"] .skill-demo--layout::before,
body[data-theme="amber-bistro"] .skill-demo--layout::before,
body[data-theme="orbital-depth"] .skill-demo--layout::before {
  inset: 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
  animation: none !important;
  transform: none !important;
}

body[data-theme="office-lux"] .skill-demo--layout::after,
body[data-theme="amber-bistro"] .skill-demo--layout::after,
body[data-theme="orbital-depth"] .skill-demo--layout::after {
  left: 24px;
  right: 24px;
  bottom: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 72%);
  filter: blur(10px);
  opacity: .46;
}

body[data-theme="office-lux"] .skill-demo--layout span,
body[data-theme="amber-bistro"] .skill-demo--layout span,
body[data-theme="orbital-depth"] .skill-demo--layout span {
  border-radius: 16px;
  animation-duration: 7.2s !important;
  animation-timing-function: cubic-bezier(.55,.02,.35,1) !important;
  animation-iteration-count: infinite !important;
}

body[data-theme="office-lux"] .skill-demo--layout span {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(218,223,230,0.82)) !important;
  border: 1px solid rgba(17,18,20,0.08) !important;
  box-shadow: 0 12px 22px rgba(16, 18, 22, 0.06) !important;
}

body[data-theme="amber-bistro"] .skill-demo--layout span {
  background: linear-gradient(180deg, rgba(255,248,238,0.96), rgba(229,211,186,0.82)) !important;
  border: 1px solid rgba(156, 118, 74, 0.14) !important;
  box-shadow: 0 12px 22px rgba(48, 24, 13, 0.10) !important;
}

body[data-theme="orbital-depth"] .skill-demo--layout span {
  background: linear-gradient(180deg, rgba(223,239,255,0.92), rgba(146,179,234,0.62)) !important;
  border: 1px solid rgba(140, 178, 236, 0.20) !important;
  box-shadow: 0 14px 26px rgba(5, 16, 38, 0.18) !important;
}

body[data-theme="office-lux"] .skill-demo--layout span:nth-child(1),
body[data-theme="amber-bistro"] .skill-demo--layout span:nth-child(1),
body[data-theme="orbital-depth"] .skill-demo--layout span:nth-child(1) { animation-name: layoutHeaderAdaptive !important; }
body[data-theme="office-lux"] .skill-demo--layout span:nth-child(2),
body[data-theme="amber-bistro"] .skill-demo--layout span:nth-child(2),
body[data-theme="orbital-depth"] .skill-demo--layout span:nth-child(2) { animation-name: layoutMainAdaptive !important; }
body[data-theme="office-lux"] .skill-demo--layout span:nth-child(3),
body[data-theme="amber-bistro"] .skill-demo--layout span:nth-child(3),
body[data-theme="orbital-depth"] .skill-demo--layout span:nth-child(3) { animation-name: layoutTopAdaptive !important; }
body[data-theme="office-lux"] .skill-demo--layout span:nth-child(4),
body[data-theme="amber-bistro"] .skill-demo--layout span:nth-child(4),
body[data-theme="orbital-depth"] .skill-demo--layout span:nth-child(4) { animation-name: layoutBottomAdaptive !important; }

/* ---------- v30: theme 02 + theme 05 rebuild, modern monochrome, no hover jump ---------- */
.theme-card--01 .theme-swatches span:nth-child(1) { background: #ffffff; }
.theme-card--01 .theme-swatches span:nth-child(2) { background: #5f6670; }
.theme-card--01 .theme-swatches span:nth-child(3) { background: #111317; }
.theme-card--04 .theme-swatches span:nth-child(1) { background: #0b0d10; }
.theme-card--04 .theme-swatches span:nth-child(2) { background: #6d737b; }
.theme-card--04 .theme-swatches span:nth-child(3) { background: #eef2f5; }

body[data-theme="office-lux"] {
  --bg: radial-gradient(circle at 16% 8%, #ffffff 0%, #f3f4f6 32%, #e4e7eb 100%) !important;
  --text: #0f1115 !important;
  --text-soft: #5f6670 !important;
  --panel: rgba(255,255,255,0.82) !important;
  --panel-strong: rgba(255,255,255,0.94) !important;
  --border: rgba(17, 19, 24, 0.09) !important;
  --shadow: 0 26px 72px rgba(14, 18, 28, 0.08) !important;
  --display-font: 'Sora', 'Inter', sans-serif !important;
  --body-font: 'Inter', 'Manrope', sans-serif !important;
  --accent-font: 'Space Grotesk', sans-serif !important;
  --button-bg: linear-gradient(135deg, #0d1014 0%, #2d323a 100%) !important;
  --button-text: #f5f7fa !important;
  --button-ghost: rgba(17, 19, 24, 0.05) !important;
  --nav-bg: rgba(255,255,255,0.72) !important;
  --nav-border: rgba(17, 19, 24, 0.08) !important;
  --badge-bg: rgba(255,255,255,0.92) !important;
  --project-a: linear-gradient(135deg, #ffffff 0%, #eceff3 44%, #d2d7dd 100%) !important;
  --project-b: linear-gradient(135deg, #0f1115 0%, #313841 58%, #cdd3da 100%) !important;
  --project-c: linear-gradient(135deg, #fafbfc 0%, #edf0f4 56%, #d4dae1 100%) !important;
  --grid-line: rgba(15,18,25,0.06) !important;
  --noise-opacity: 0.05 !important;
  --hero-overlay:
    radial-gradient(circle at 14% 10%, rgba(255,255,255,0.96), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(82,88,99,0.12), transparent 24%),
    radial-gradient(circle at 54% 88%, rgba(17,20,27,0.08), transparent 34%) !important;
}

body[data-theme="office-lux"] .site-header { padding-top: 20px !important; }
body[data-theme="office-lux"] .nav-shell {
  min-height: 78px !important;
  padding: 12px 16px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(245,246,248,0.72)) !important;
  border: 1px solid rgba(18,21,26,0.08) !important;
  border-radius: 28px !important;
  backdrop-filter: blur(18px) saturate(120%) !important;
  box-shadow: 0 22px 48px rgba(18,21,26,0.08), inset 0 1px 0 rgba(255,255,255,0.8) !important;
}
body[data-theme="office-lux"] .brand-mark {
  border-radius: 16px !important;
  background: linear-gradient(135deg, #111318, #434a54) !important;
  color: #fbfcff !important;
  box-shadow: 0 16px 28px rgba(15,18,24,0.12) !important;
}
body[data-theme="office-lux"] .brand-copy strong,
body[data-theme="office-lux"] .hero-copy h1,
body[data-theme="office-lux"] .section-head h2,
body[data-theme="office-lux"] .process-copy h3,
body[data-theme="office-lux"] .project-body h3,
body[data-theme="office-lux"] .skill-card h3,
body[data-theme="office-lux"] .info-card h3,
body[data-theme="office-lux"] .contact-panel h2,
body[data-theme="office-lux"] .resume-columns h2,
body[data-theme="office-lux"] .resume-entry strong {
  color: #0f1115 !important;
}
body[data-theme="office-lux"] .brand-copy small,
body[data-theme="office-lux"] .eyebrow,
body[data-theme="office-lux"] .note-label,
body[data-theme="office-lux"] .project-type,
body[data-theme="office-lux"] .skill-subtitle,
body[data-theme="office-lux"] .theme-card-top,
body[data-theme="office-lux"] .theme-meta-card span,
body[data-theme="office-lux"] .timeline-year,
body[data-theme="office-lux"] .hero-text,
body[data-theme="office-lux"] .section-head p,
body[data-theme="office-lux"] p,
body[data-theme="office-lux"] .theme-card p,
body[data-theme="office-lux"] .theme-meta-card small,
body[data-theme="office-lux"] .project-body p,
body[data-theme="office-lux"] .skill-card p,
body[data-theme="office-lux"] .contact-panel p,
body[data-theme="office-lux"] .process-copy p,
body[data-theme="office-lux"] .resume-entry p,
body[data-theme="office-lux"] .timeline-item p {
  color: #5b6370 !important;
}
body[data-theme="office-lux"] .nav a {
  color: #17191e !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.16em !important;
}
body[data-theme="office-lux"] .nav a::after { background: #17191e !important; }

body[data-theme="office-lux"] .theme-control,
body[data-theme="office-lux"] .theme-meta-card,
body[data-theme="office-lux"] .theme-card,
body[data-theme="office-lux"] .hero-copy,
body[data-theme="office-lux"] .note-card,
body[data-theme="office-lux"] .window-card,
body[data-theme="office-lux"] .info-card,
body[data-theme="office-lux"] .project-card,
body[data-theme="office-lux"] .skill-card,
body[data-theme="office-lux"] .contact-panel,
body[data-theme="office-lux"] .resume-card,
body[data-theme="office-lux"] .timeline,
body[data-theme="office-lux"] .resume-sheet,
body[data-theme="office-lux"] .resume-entry,
body[data-theme="office-lux"] .process-showcase,
body[data-theme="office-lux"] .code-window,
body[data-theme="office-lux"] .preview-window {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(241,243,246,0.88)) !important;
  border: 1px solid rgba(16,19,24,0.08) !important;
  backdrop-filter: blur(18px) saturate(118%) !important;
  box-shadow:
    0 26px 60px rgba(16,19,24,0.08),
    0 10px 24px rgba(16,19,24,0.04),
    inset 0 1px 0 rgba(255,255,255,0.92) !important;
}

body[data-theme="office-lux"] .hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr) !important;
  gap: 26px !important;
}
body[data-theme="office-lux"] .hero-copy {
  padding: 38px !important;
  border-radius: 34px !important;
}
body[data-theme="office-lux"] .hero-copy h1 {
  max-width: 10ch !important;
  font-size: clamp(3.2rem, 6vw, 5.8rem) !important;
  letter-spacing: -0.07em !important;
}
body[data-theme="office-lux"] .scribble-word {
  color: #2f353d !important;
}
body[data-theme="office-lux"] .scribble-word::after {
  bottom: -8px !important;
  height: 6px !important;
  background: linear-gradient(90deg, rgba(17,19,24,0.15), rgba(17,19,24,0.38), rgba(17,19,24,0.15)) !important;
}
body[data-theme="office-lux"] .hero-notes {
  gap: 14px !important;
}
body[data-theme="office-lux"] .note-card {
  min-height: 126px !important;
  border-radius: 26px !important;
}
body[data-theme="office-lux"] .btn-dark {
  background: linear-gradient(135deg, #0e1116, #353b44) !important;
  border-color: rgba(14,17,22,0.14) !important;
  color: #f8f9fb !important;
  box-shadow: 0 18px 32px rgba(15,18,24,0.16) !important;
}
body[data-theme="office-lux"] .btn-light,
body[data-theme="office-lux"] .btn-ghost,
body[data-theme="office-lux"] .theme-switch,
body[data-theme="office-lux"] .back-link {
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(240,243,247,0.82)) !important;
  border-color: rgba(16,19,24,0.08) !important;
  color: #111318 !important;
}
body[data-theme="office-lux"] .theme-switch.is-active {
  background: linear-gradient(135deg, #111318, #3c434d) !important;
  color: #f7f8fb !important;
  box-shadow: 0 16px 28px rgba(15,18,24,0.16) !important;
}

body[data-theme="office-lux"] .window-card,
body[data-theme="office-lux"] .project-preview,
body[data-theme="office-lux"] .skill-demo,
body[data-theme="office-lux"] .process-stage {
  perspective: 1800px !important;
  transform-style: preserve-3d !important;
}
body[data-theme="office-lux"] .window-card {
  min-height: 438px !important;
  padding: 22px !important;
  border-radius: 38px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(235,238,242,0.86)),
    radial-gradient(circle at 82% 18%, rgba(17,19,24,0.06), transparent 26%) !important;
  transform: rotateX(10deg) rotateY(-12deg) translateZ(18px) !important;
}
body[data-theme="office-lux"] .window-card::before {
  background: linear-gradient(120deg, rgba(255,255,255,0.38), rgba(255,255,255,0.04) 40%, transparent 62%) !important;
}
body[data-theme="office-lux"] .window-card::after {
  content: "";
  position: absolute;
  inset: auto 22px 18px 22px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(17,19,24,0.18), transparent 72%);
  filter: blur(16px);
  transform: translateZ(-32px);
  z-index: -1;
}
body[data-theme="office-lux"] .blob-main {
  background: linear-gradient(135deg, #ffffff 0%, #eceff3 60%, #d4d9df 100%) !important;
}
body[data-theme="office-lux"] .art-blob,
body[data-theme="office-lux"] .preview-ui-main,
body[data-theme="office-lux"] .preview-ui-side span,
body[data-theme="office-lux"] .preview-ui-footer,
body[data-theme="office-lux"] .preview-ui-stack div,
body[data-theme="office-lux"] .preview-ui--start .preview-ui-hero,
body[data-theme="office-lux"] .preview-float-a,
body[data-theme="office-lux"] .preview-float-b,
body[data-theme="office-lux"] .panel,
body[data-theme="office-lux"] .preview-metrics div {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(228,232,238,0.84)) !important;
  border-color: rgba(17,19,24,0.08) !important;
  box-shadow: 0 16px 28px rgba(16,19,24,0.08), inset 0 1px 0 rgba(255,255,255,0.82) !important;
}
body[data-theme="office-lux"] .art-line {
  height: 12px !important;
  background: linear-gradient(90deg, #111318, #747c86) !important;
  opacity: 0.72 !important;
}
body[data-theme="office-lux"] .floating-stamp {
  background: rgba(255,255,255,0.86) !important;
  border: 1px solid rgba(17,19,24,0.08) !important;
  color: #20242b !important;
}
body[data-theme="office-lux"] .floating-scribble {
  width: 168px !important;
  height: 168px !important;
  background: radial-gradient(circle, rgba(17,19,24,0.14), transparent 64%) !important;
  filter: blur(10px) !important;
}
body[data-theme="office-lux"] .orbit-stage,
body[data-theme="office-lux"] .orbit-panel,
body[data-theme="office-lux"] .orbit-cube {
  filter: grayscale(1) saturate(0.2) !important;
}
body[data-theme="office-lux"] .orbit-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(235,239,243,0.82)) !important;
  border-color: rgba(17,19,24,0.08) !important;
  color: #111318 !important;
}
body[data-theme="office-lux"] .orbit-ring {
  border-color: rgba(17,19,24,0.14) !important;
}
body[data-theme="office-lux"] .orbit-cube {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(212,218,226,0.7)) !important;
  border-color: rgba(17,19,24,0.10) !important;
}
body[data-theme="office-lux"] .about-grid {
  grid-template-columns: 1.1fr 0.9fr 0.9fr !important;
  gap: 22px !important;
}
body[data-theme="office-lux"] .projects-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 22px !important;
}
body[data-theme="office-lux"] .project-card:nth-child(1) { grid-column: span 6 !important; }
body[data-theme="office-lux"] .project-card:nth-child(2) { grid-column: span 3 !important; }
body[data-theme="office-lux"] .project-card:nth-child(3) { grid-column: span 3 !important; }
body[data-theme="office-lux"] .project-preview {
  height: 224px !important;
  border-radius: 28px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(235,239,244,0.82)),
    radial-gradient(circle at 86% 16%, rgba(17,19,24,0.10), transparent 26%) !important;
}
body[data-theme="office-lux"] .project-preview::after {
  width: 144px !important;
  height: 144px !important;
  right: 12px !important;
  top: 12px !important;
  border-radius: 30px !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.36), rgba(255,255,255,0.08)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5) !important;
}
body[data-theme="office-lux"] .skill-card {
  min-height: 216px !important;
  border-radius: 30px !important;
}
body[data-theme="office-lux"] .skill-demo {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(235,239,244,0.82)),
    radial-gradient(circle at 84% 18%, rgba(17,19,24,0.10), transparent 24%) !important;
  border-color: rgba(17,19,24,0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.84), 0 18px 30px rgba(16,19,24,0.08) !important;
}
body[data-theme="office-lux"] .skill-demo--layout {
  min-height: 126px !important;
}
body[data-theme="office-lux"] .skill-demo--layout::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.06)),
    radial-gradient(circle at 84% 20%, rgba(17,19,24,0.08), transparent 24%) !important;
  border-color: rgba(17,19,24,0.08) !important;
}
body[data-theme="office-lux"] .skill-demo--layout span {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(217,223,231,0.86)) !important;
  border-color: rgba(17,19,24,0.08) !important;
  box-shadow: 0 14px 26px rgba(16,19,24,0.10) !important;
}
body[data-theme="office-lux"] .skill-demo--visual::before,
body[data-theme="office-lux"] .skill-demo--visual::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(17,19,24,0.08), rgba(255,255,255,0.0)) !important;
}
body[data-theme="office-lux"] .skill-demo--visual span,
body[data-theme="office-lux"] .skill-demo--pack span,
body[data-theme="office-lux"] .skill-demo--motion span {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(215,220,228,0.82)) !important;
  border-color: rgba(17,19,24,0.08) !important;
  box-shadow: 0 12px 24px rgba(16,19,24,0.09) !important;
}
body[data-theme="office-lux"] .process-showcase {
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(235,239,244,0.90)) !important;
}
body[data-theme="office-lux"] .process-stage {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(232,236,242,0.82)),
    radial-gradient(circle at 86% 18%, rgba(17,19,24,0.08), transparent 26%) !important;
  border-color: rgba(17,19,24,0.08) !important;
}
body[data-theme="office-lux"] .code-window,
body[data-theme="office-lux"] .preview-window {
  border-radius: 30px !important;
}
body[data-theme="office-lux"] .code-window {
  background: linear-gradient(180deg, rgba(15,17,22,0.98), rgba(38,42,49,0.96)) !important;
  border-color: rgba(255,255,255,0.08) !important;
  box-shadow: 0 22px 42px rgba(13,15,20,0.20), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}
body[data-theme="office-lux"] .code-window-top span {
  background: rgba(255,255,255,0.22) !important;
}
body[data-theme="office-lux"] .code-lines span {
  color: #eef1f5 !important;
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.10) !important;
}
body[data-theme="office-lux"] .preview-window {
  background: linear-gradient(180deg, rgba(251,252,253,0.96), rgba(236,240,245,0.90)) !important;
}
body[data-theme="office-lux"] .preview-browser-top span {
  background: rgba(17,19,24,0.12) !important;
}
body[data-theme="office-lux"] .preview-hero {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(238,242,247,0.92)) !important;
}
body[data-theme="office-lux"] .process-tags span,
body[data-theme="office-lux"] .project-tags span,
body[data-theme="office-lux"] .resume-chip-wrap span {
  background: rgba(255,255,255,0.86) !important;
  border-color: rgba(17,19,24,0.08) !important;
  color: #20242b !important;
}
body[data-theme="office-lux"] .card-index {
  background: linear-gradient(180deg, #14171c, #3e454f) !important;
  color: #f8f9fb !important;
}

body[data-theme="orbital-depth"] {
  --bg: radial-gradient(circle at 18% 0%, #23262d 0%, #121419 38%, #08090c 100%) !important;
  --text: #f5f6f8 !important;
  --text-soft: #b1b6be !important;
  --border: rgba(255,255,255,0.10) !important;
  --shadow: 0 34px 96px rgba(0,0,0,0.34) !important;
  --display-font: 'Sora', 'Space Grotesk', sans-serif !important;
  --body-font: 'Inter', 'Manrope', sans-serif !important;
  --button-bg: linear-gradient(135deg, #f3f4f7 0%, #cfd4db 100%) !important;
  --button-text: #0c0e12 !important;
  --button-ghost: rgba(255,255,255,0.06) !important;
  --nav-bg: rgba(15,17,22,0.64) !important;
  --nav-border: rgba(255,255,255,0.08) !important;
  --badge-bg: rgba(255,255,255,0.08) !important;
  --grid-line: rgba(255,255,255,0.04) !important;
  --hero-overlay:
    radial-gradient(circle at 16% 14%, rgba(255,255,255,0.12), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.08), transparent 24%),
    radial-gradient(circle at 50% 90%, rgba(255,255,255,0.05), transparent 32%) !important;
}
body[data-theme="orbital-depth"] .nav-shell,
body[data-theme="orbital-depth"] .hero-copy,
body[data-theme="orbital-depth"] .note-card,
body[data-theme="orbital-depth"] .window-card,
body[data-theme="orbital-depth"] .theme-control,
body[data-theme="orbital-depth"] .theme-meta-card,
body[data-theme="orbital-depth"] .theme-card,
body[data-theme="orbital-depth"] .info-card,
body[data-theme="orbital-depth"] .project-card,
body[data-theme="orbital-depth"] .skill-card,
body[data-theme="orbital-depth"] .contact-panel,
body[data-theme="orbital-depth"] .resume-card,
body[data-theme="orbital-depth"] .timeline,
body[data-theme="orbital-depth"] .resume-sheet,
body[data-theme="orbital-depth"] .resume-entry,
body[data-theme="orbital-depth"] .process-showcase,
body[data-theme="orbital-depth"] .code-window,
body[data-theme="orbital-depth"] .preview-window {
  background:
    linear-gradient(180deg, rgba(22,24,30,0.82), rgba(12,14,18,0.88)),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.06), transparent 24%) !important;
  border-color: rgba(255,255,255,0.09) !important;
  backdrop-filter: blur(20px) saturate(120%) !important;
  box-shadow:
    0 32px 78px rgba(0,0,0,0.34),
    0 10px 28px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
}
body[data-theme="orbital-depth"] h1,
body[data-theme="orbital-depth"] h2,
body[data-theme="orbital-depth"] h3,
body[data-theme="orbital-depth"] strong,
body[data-theme="orbital-depth"] .brand-copy strong {
  color: #f6f7fa !important;
}
body[data-theme="orbital-depth"] p,
body[data-theme="orbital-depth"] .theme-card p,
body[data-theme="orbital-depth"] .theme-meta-card small,
body[data-theme="orbital-depth"] .project-body p,
body[data-theme="orbital-depth"] .skill-card p,
body[data-theme="orbital-depth"] .contact-panel p,
body[data-theme="orbital-depth"] .process-copy p,
body[data-theme="orbital-depth"] .resume-entry p,
body[data-theme="orbital-depth"] .timeline-item p,
body[data-theme="orbital-depth"] .brand-copy small {
  color: #aeb4bc !important;
}
body[data-theme="orbital-depth"] .eyebrow,
body[data-theme="orbital-depth"] .project-type,
body[data-theme="orbital-depth"] .note-label,
body[data-theme="orbital-depth"] .skill-subtitle,
body[data-theme="orbital-depth"] .theme-card-top,
body[data-theme="orbital-depth"] .theme-meta-card span,
body[data-theme="orbital-depth"] .timeline-year {
  color: #d8dde5 !important;
}
body[data-theme="orbital-depth"] .brand-mark {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05)) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #f6f7fa !important;
  box-shadow: 0 18px 38px rgba(0,0,0,0.24) !important;
}
body[data-theme="orbital-depth"] .theme-switch,
body[data-theme="orbital-depth"] .btn-light,
body[data-theme="orbital-depth"] .btn-ghost,
body[data-theme="orbital-depth"] .back-link {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04)) !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: #f1f3f7 !important;
}
body[data-theme="orbital-depth"] .btn-dark,
body[data-theme="orbital-depth"] .theme-switch.is-active {
  background: linear-gradient(135deg, #f6f7fa, #d5dae2) !important;
  color: #0e1014 !important;
  border-color: rgba(255,255,255,0.18) !important;
  box-shadow: 0 18px 34px rgba(0,0,0,0.18) !important;
}
body[data-theme="orbital-depth"] .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr) !important;
  gap: 28px !important;
}
body[data-theme="orbital-depth"] .hero-copy {
  border-radius: 34px !important;
  padding: 38px !important;
}
body[data-theme="orbital-depth"] .hero-copy h1 {
  font-size: clamp(3.2rem, 6vw, 5.8rem) !important;
  letter-spacing: -0.07em !important;
  max-width: 10ch !important;
}
body[data-theme="orbital-depth"] .hero-art,
body[data-theme="orbital-depth"] .window-card,
body[data-theme="orbital-depth"] .project-preview,
body[data-theme="orbital-depth"] .skill-demo,
body[data-theme="orbital-depth"] .process-stage {
  perspective: 2200px !important;
  transform-style: preserve-3d !important;
}
body[data-theme="orbital-depth"] .window-card {
  min-height: 448px !important;
  border-radius: 40px !important;
  transform: rotateX(14deg) rotateY(-16deg) translateZ(28px) !important;
}
body[data-theme="orbital-depth"] .window-card::before {
  background: linear-gradient(120deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04) 36%, transparent 62%) !important;
}
body[data-theme="orbital-depth"] .window-card::after {
  content: "";
  position: absolute;
  inset: auto 24px 18px 24px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 68%);
  filter: blur(18px);
  transform: translateZ(-42px);
  z-index: -1;
}
body[data-theme="orbital-depth"] .blob-main,
body[data-theme="orbital-depth"] .art-blob,
body[data-theme="orbital-depth"] .orbit-panel,
body[data-theme="orbital-depth"] .preview-ui-main,
body[data-theme="orbital-depth"] .preview-ui-side span,
body[data-theme="orbital-depth"] .preview-ui-footer,
body[data-theme="orbital-depth"] .preview-ui-stack div,
body[data-theme="orbital-depth"] .preview-ui--start .preview-ui-hero,
body[data-theme="orbital-depth"] .preview-float-a,
body[data-theme="orbital-depth"] .preview-float-b,
body[data-theme="orbital-depth"] .panel,
body[data-theme="orbital-depth"] .preview-metrics div {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05)) !important;
  border-color: rgba(255,255,255,0.10) !important;
  box-shadow: 0 22px 42px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.12) !important;
}
body[data-theme="orbital-depth"] .art-line {
  background: linear-gradient(90deg, rgba(255,255,255,0.72), rgba(255,255,255,0.22)) !important;
}
body[data-theme="orbital-depth"] .orbit-stage {
  filter: grayscale(0.2) saturate(0.3) !important;
}
body[data-theme="orbital-depth"] .orbit-ring {
  border-color: rgba(255,255,255,0.12) !important;
}
body[data-theme="orbital-depth"] .orbit-cube {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04)) !important;
  border-color: rgba(255,255,255,0.10) !important;
  box-shadow: 0 18px 34px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.12) !important;
}
body[data-theme="orbital-depth"] .project-preview {
  height: 226px !important;
  border-radius: 30px !important;
}
body[data-theme="orbital-depth"] .project-preview::after {
  width: 150px !important;
  height: 150px !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02)) !important;
  border-radius: 34px !important;
  right: 14px !important;
  top: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16) !important;
}
body[data-theme="orbital-depth"] .skill-card {
  min-height: 216px !important;
  border-radius: 30px !important;
}
body[data-theme="orbital-depth"] .skill-demo {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03)),
    radial-gradient(circle at 82% 16%, rgba(255,255,255,0.10), transparent 24%) !important;
  border-color: rgba(255,255,255,0.10) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 20px 34px rgba(0,0,0,0.22) !important;
}
body[data-theme="orbital-depth"] .skill-demo--layout::before,
body[data-theme="orbital-depth"] .skill-demo--visual::before,
body[data-theme="orbital-depth"] .skill-demo--pack::before {
  border-color: rgba(255,255,255,0.10) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)) !important;
}
body[data-theme="orbital-depth"] .skill-demo--layout span,
body[data-theme="orbital-depth"] .skill-demo--visual span,
body[data-theme="orbital-depth"] .skill-demo--motion span,
body[data-theme="orbital-depth"] .skill-demo--pack span {
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08)) !important;
  border-color: rgba(255,255,255,0.12) !important;
  box-shadow: 0 14px 28px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.12) !important;
}
body[data-theme="orbital-depth"] .process-showcase {
  background: linear-gradient(135deg, rgba(18,20,25,0.90), rgba(10,12,15,0.94)) !important;
}
body[data-theme="orbital-depth"] .process-stage {
  background:
    linear-gradient(180deg, rgba(22,24,30,0.88), rgba(10,12,16,0.92)),
    radial-gradient(circle at 84% 18%, rgba(255,255,255,0.08), transparent 24%) !important;
  border-color: rgba(255,255,255,0.08) !important;
}
body[data-theme="orbital-depth"] .code-window {
  background: linear-gradient(180deg, rgba(9,11,14,0.98), rgba(17,20,25,0.98)) !important;
  border-color: rgba(255,255,255,0.08) !important;
}
body[data-theme="orbital-depth"] .code-lines span {
  color: #f4f6f9 !important;
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.08) !important;
}
body[data-theme="orbital-depth"] .preview-window {
  background: linear-gradient(180deg, rgba(24,27,34,0.96), rgba(12,14,18,0.94)) !important;
}
body[data-theme="orbital-depth"] .preview-browser-top span {
  background: rgba(255,255,255,0.18) !important;
}
body[data-theme="orbital-depth"] .preview-hero,
body[data-theme="orbital-depth"] .preview-canvas,
body[data-theme="orbital-depth"] .preview-metrics div,
body[data-theme="orbital-depth"] .panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06)) !important;
}
body[data-theme="orbital-depth"] .process-tags span,
body[data-theme="orbital-depth"] .project-tags span,
body[data-theme="orbital-depth"] .resume-chip-wrap span {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05)) !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: #edf0f5 !important;
}

/* hard kill for jumpy hover transforms */
.btn,
.theme-switch,
.theme-card,
.info-card,
.skill-card,
.project-card,
.note-card,
.back-link,
.resume-entry,
.contact-panel {
  translate: none !important;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  .btn:focus-visible,
  .theme-switch:hover,
  .theme-switch:focus-visible,
  .theme-card:hover,
  .theme-card:focus-visible,
  .info-card:hover,
  .info-card:focus-visible,
  .skill-card:hover,
  .skill-card:focus-visible,
  .project-card:hover,
  .project-card:focus-visible,
  .note-card:hover,
  .note-card:focus-visible,
  .back-link:hover,
  .back-link:focus-visible,
  .resume-entry:hover,
  .contact-panel:hover,
  body[data-theme] .btn:hover,
  body[data-theme] .theme-switch:hover,
  body[data-theme] .theme-card:hover,
  body[data-theme] .info-card:hover,
  body[data-theme] .skill-card:hover,
  body[data-theme] .project-card:hover,
  body[data-theme] .note-card:hover,
  body[data-theme] .back-link:hover,
  body[data-theme] .resume-entry:hover,
  body[data-theme] .contact-panel:hover {
    transform: none !important;
    translate: none !important;
  }
}

@media (max-width: 980px) {
  body[data-theme="office-lux"] .hero-grid,
  body[data-theme="orbital-depth"] .hero-grid {
    grid-template-columns: 1fr !important;
  }
  body[data-theme="office-lux"] .projects-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  body[data-theme="office-lux"] .project-card:nth-child(1),
  body[data-theme="office-lux"] .project-card:nth-child(2),
  body[data-theme="office-lux"] .project-card:nth-child(3) {
    grid-column: auto !important;
  }
}

@media (max-width: 760px) {
  body[data-theme="office-lux"] .nav-shell,
  body[data-theme="orbital-depth"] .nav-shell {
    border-radius: 24px !important;
  }
  body[data-theme="office-lux"] .hero-copy,
  body[data-theme="orbital-depth"] .hero-copy {
    padding: 28px !important;
  }
  body[data-theme="office-lux"] .hero-copy h1,
  body[data-theme="orbital-depth"] .hero-copy h1 {
    font-size: clamp(2.5rem, 11vw, 4rem) !important;
  }
  body[data-theme="office-lux"] .projects-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ---------- V31 MODERN CHROME THEME + GLOBAL HOVER FIX ---------- */
.btn:hover,
.btn:focus-visible,
.theme-switch:hover,
.theme-switch:focus-visible,
.theme-card:hover,
.theme-card:focus-visible,
.theme-card.is-selected,
.theme-switch.is-active,
.project-card:hover,
.project-card:focus-within,
.skill-card:hover,
.skill-card:focus-within,
.info-card:hover,
.info-card:focus-within,
body[data-theme="sketch-handdrawn"] .project-card:hover,
body[data-theme="sketch-handdrawn"] .skill-card:hover,
body[data-theme="sketch-handdrawn"] .info-card:hover,
body[data-theme="office-lux"] .project-card:hover,
body[data-theme="office-lux"] .skill-card:hover,
body[data-theme="office-lux"] .info-card:hover,
body[data-theme="amber-bistro"] .project-card:hover,
body[data-theme="amber-bistro"] .skill-card:hover,
body[data-theme="amber-bistro"] .info-card:hover,
body[data-theme="neon-signal"] .project-card:hover,
body[data-theme="neon-signal"] .skill-card:hover,
body[data-theme="neon-signal"] .info-card:hover,
body[data-theme="orbital-depth"] .project-card:hover,
body[data-theme="orbital-depth"] .skill-card:hover,
body[data-theme="orbital-depth"] .info-card:hover {
  transform: none !important;
}

body[data-theme="orbital-depth"] {
  --bg: #090b10;
  --text: #f3f5f8;
  --text-soft: #bcc3cd;
  --panel: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.028));
  --panel-strong: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  --border: rgba(255,255,255,0.14);
  --shadow: 0 38px 110px rgba(0,0,0,0.52);
  --display-font: 'Space Grotesk', 'Sora', sans-serif;
  --body-font: 'Inter', 'Manrope', sans-serif;
  --accent: #f1f4f7;
  --accent-2: #9ea6b1;
  --accent-3: #141922;
  --button-bg: linear-gradient(135deg, #f4f6f8 0%, #cfd5dc 100%);
  --button-text: #090b10;
  --button-ghost: rgba(255,255,255,0.065);
  --nav-bg: rgba(10,12,17,0.78);
  --nav-border: rgba(255,255,255,0.11);
  --badge-bg: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
  --project-a: linear-gradient(135deg, #0d1016 0%, #232833 45%, #d9dde3 100%);
  --project-b: linear-gradient(135deg, #171b23 0%, #2d3340 40%, #f3f5f7 100%);
  --project-c: linear-gradient(135deg, #0e1117 0%, #202531 55%, #8f98a5 100%);
  --grid-line: rgba(255,255,255,0.04);
  --noise-opacity: 0.08;
  --hero-overlay:
    radial-gradient(circle at 20% 14%, rgba(255,255,255,0.14), transparent 24%),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,0.08), transparent 22%),
    radial-gradient(circle at 55% 78%, rgba(107,117,131,0.16), transparent 30%),
    linear-gradient(180deg, rgba(7,9,13,0.82), rgba(7,9,13,0.98));
  background: #090b10;
}
body[data-theme="orbital-depth"]::after {
  background-size: 72px 72px;
  opacity: 0.22;
}
body[data-theme="orbital-depth"] .page-lines {
  border-color: rgba(255,255,255,0.06);
  opacity: 0.52;
}
body[data-theme="orbital-depth"] .nav-shell,
body[data-theme="orbital-depth"] .hero-copy,
body[data-theme="orbital-depth"] .note-card,
body[data-theme="orbital-depth"] .window-card,
body[data-theme="orbital-depth"] .theme-control,
body[data-theme="orbital-depth"] .theme-meta-card,
body[data-theme="orbital-depth"] .theme-card,
body[data-theme="orbital-depth"] .info-card,
body[data-theme="orbital-depth"] .project-card,
body[data-theme="orbital-depth"] .skill-card,
body[data-theme="orbital-depth"] .contact-panel,
body[data-theme="orbital-depth"] .resume-card,
body[data-theme="orbital-depth"] .timeline,
body[data-theme="orbital-depth"] .resume-sheet,
body[data-theme="orbital-depth"] .resume-entry,
body[data-theme="orbital-depth"] .process-showcase,
body[data-theme="orbital-depth"] .code-window,
body[data-theme="orbital-depth"] .preview-window,
body[data-theme="orbital-depth"] .back-link {
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.03)) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 30px 80px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.03) !important;
  backdrop-filter: blur(18px) saturate(120%) !important;
}
body[data-theme="orbital-depth"] .hero-copy,
body[data-theme="orbital-depth"] .theme-control,
body[data-theme="orbital-depth"] .process-showcase {
  position: relative;
  overflow: hidden;
}
body[data-theme="orbital-depth"] .hero-copy::before,
body[data-theme="orbital-depth"] .theme-control::before,
body[data-theme="orbital-depth"] .process-showcase::before,
body[data-theme="orbital-depth"] .project-card::before,
body[data-theme="orbital-depth"] .skill-card::before,
body[data-theme="orbital-depth"] .info-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), transparent 26%, transparent 60%, rgba(255,255,255,0.08) 100%);
  transform: translate3d(calc(var(--pointer-x, 0) * 12px), calc(var(--pointer-y, 0) * -12px), 0);
  opacity: 0.9;
  pointer-events: none;
}
body[data-theme="orbital-depth"] .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
  gap: clamp(28px, 4vw, 56px);
}
body[data-theme="orbital-depth"] .hero-copy {
  padding: clamp(28px, 4vw, 42px);
  border-radius: 34px;
}
body[data-theme="orbital-depth"] .hero-copy h1 {
  max-width: 10ch;
  letter-spacing: -0.065em;
  font-size: clamp(3.3rem, 6.2vw, 6rem);
}
body[data-theme="orbital-depth"] .hero-text,
body[data-theme="orbital-depth"] p,
body[data-theme="orbital-depth"] .theme-card p,
body[data-theme="orbital-depth"] .theme-meta-card small,
body[data-theme="orbital-depth"] .project-body p,
body[data-theme="orbital-depth"] .skill-card p,
body[data-theme="orbital-depth"] .contact-panel p,
body[data-theme="orbital-depth"] .process-copy p,
body[data-theme="orbital-depth"] .resume-entry p,
body[data-theme="orbital-depth"] .timeline-item p {
  color: rgba(232,236,242,0.88) !important;
}
body[data-theme="orbital-depth"] .eyebrow,
body[data-theme="orbital-depth"] .project-type,
body[data-theme="orbital-depth"] .note-label,
body[data-theme="orbital-depth"] .skill-subtitle,
body[data-theme="orbital-depth"] .theme-card-top,
body[data-theme="orbital-depth"] .theme-meta-card span,
body[data-theme="orbital-depth"] .timeline-year,
body[data-theme="orbital-depth"] .brand-copy small,
body[data-theme="orbital-depth"] .nav a {
  color: rgba(196,204,214,0.88) !important;
}
body[data-theme="orbital-depth"] h1,
body[data-theme="orbital-depth"] h2,
body[data-theme="orbital-depth"] h3,
body[data-theme="orbital-depth"] strong,
body[data-theme="orbital-depth"] .brand-copy strong {
  color: #f6f8fb !important;
}
body[data-theme="orbital-depth"] .brand-mark {
  color: #ffffff;
  background: linear-gradient(145deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 18px 40px rgba(0,0,0,0.34);
}
body[data-theme="orbital-depth"] .btn-dark,
body[data-theme="orbital-depth"] .theme-switch.is-active {
  color: #090b10 !important;
  background: linear-gradient(135deg, #f5f7fa 0%, #d0d5dc 100%) !important;
  border-color: rgba(255,255,255,0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.52), 0 16px 40px rgba(0,0,0,0.28) !important;
}
body[data-theme="orbital-depth"] .btn-light,
body[data-theme="orbital-depth"] .btn-ghost,
body[data-theme="orbital-depth"] .theme-switch,
body[data-theme="orbital-depth"] .back-link {
  background: rgba(255,255,255,0.055) !important;
  color: #f3f5f8 !important;
  border-color: rgba(255,255,255,0.13) !important;
}
body[data-theme="orbital-depth"] .window-card,
body[data-theme="orbital-depth"] .project-preview,
body[data-theme="orbital-depth"] .skill-demo,
body[data-theme="orbital-depth"] .process-stage {
  background:
    radial-gradient(circle at 18% 14%, rgba(255,255,255,0.16), transparent 22%),
    radial-gradient(circle at 78% 22%, rgba(255,255,255,0.07), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 28px 60px rgba(0,0,0,0.34);
}
body[data-theme="orbital-depth"] .window-card {
  min-height: 470px;
  border-radius: 38px;
  overflow: hidden;
}
body[data-theme="orbital-depth"] .window-card::before {
  display: none !important;
}
body[data-theme="orbital-depth"] .blob-main,
body[data-theme="orbital-depth"] .art-blob,
body[data-theme="orbital-depth"] .preview-ui-main,
body[data-theme="orbital-depth"] .preview-ui-side span,
body[data-theme="orbital-depth"] .preview-ui-footer,
body[data-theme="orbital-depth"] .preview-ui-stack div,
body[data-theme="orbital-depth"] .preview-ui--start .preview-ui-hero,
body[data-theme="orbital-depth"] .preview-float-a,
body[data-theme="orbital-depth"] .preview-float-b,
body[data-theme="orbital-depth"] .panel,
body[data-theme="orbital-depth"] .preview-metrics div,
body[data-theme="orbital-depth"] .orbit-panel,
body[data-theme="orbital-depth"] .preview-glow,
body[data-theme="orbital-depth"] .preview-float {
  background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(214,220,228,0.18)) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), 0 18px 40px rgba(0,0,0,0.2);
}
body[data-theme="orbital-depth"] .art-line,
body[data-theme="orbital-depth"] .code-lines span,
body[data-theme="orbital-depth"] .skill-demo--layout span,
body[data-theme="orbital-depth"] .skill-demo--visual span,
body[data-theme="orbital-depth"] .skill-demo--motion span,
body[data-theme="orbital-depth"] .skill-demo--pack span {
  background: linear-gradient(90deg, rgba(255,255,255,0.78), rgba(255,255,255,0.18)) !important;
  border-color: rgba(255,255,255,0.16) !important;
}
body[data-theme="orbital-depth"] .floating-stamp {
  background: rgba(12,14,18,0.72) !important;
  color: rgba(243,245,248,0.86) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  backdrop-filter: blur(16px);
}
body[data-theme="orbital-depth"] .orbit-stage {
  filter: none !important;
}
body[data-theme="orbital-depth"] .orbit-ring {
  border-color: rgba(255,255,255,0.16) !important;
}
body[data-theme="orbital-depth"] .orbit-cube {
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(164,172,183,0.18)) !important;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 24px 50px rgba(0,0,0,0.24);
}
body[data-theme="orbital-depth"] .theme-control {
  border-radius: 34px;
}
body[data-theme="orbital-depth"] .theme-grid {
  grid-template-columns: 1.08fr 0.92fr 0.92fr 1.08fr;
}
body[data-theme="orbital-depth"] .about-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
body[data-theme="orbital-depth"] .about-grid .info-card:nth-child(1) { grid-column: span 7; }
body[data-theme="orbital-depth"] .about-grid .info-card:nth-child(2) { grid-column: span 5; }
body[data-theme="orbital-depth"] .about-grid .info-card:nth-child(3) { grid-column: span 4; }
body[data-theme="orbital-depth"] .projects-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
body[data-theme="orbital-depth"] .project-card:nth-child(1) { grid-column: span 4; }
body[data-theme="orbital-depth"] .project-card:nth-child(2) { grid-column: span 4; }
body[data-theme="orbital-depth"] .project-card:nth-child(3) { grid-column: span 4; }
body[data-theme="orbital-depth"] .project-preview {
  min-height: 220px;
}
body[data-theme="orbital-depth"] .skills-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body[data-theme="orbital-depth"] .skill-card {
  min-height: 0;
}
body[data-theme="orbital-depth"] .process-showcase {
  gap: 28px;
}
body[data-theme="orbital-depth"] .process-stage {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  padding: 26px;
  isolation: isolate;
}
body[data-theme="orbital-depth"] .code-window {
  position: absolute;
  left: 24px;
  top: 24px;
  width: min(42%, 310px);
  min-height: 315px;
  background: linear-gradient(180deg, rgba(10,12,17,0.96), rgba(17,20,27,0.86)) !important;
  border-color: rgba(255,255,255,0.08) !important;
  box-shadow: 0 26px 60px rgba(0,0,0,0.42) !important;
  z-index: 2;
}
body[data-theme="orbital-depth"] .code-lines span {
  color: rgba(246,248,251,0.8) !important;
  background: rgba(255,255,255,0.04) !important;
}
body[data-theme="orbital-depth"] .preview-window {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(58%, 520px);
  min-height: 355px;
  background: linear-gradient(180deg, rgba(248,250,252,0.16), rgba(255,255,255,0.06)) !important;
  border-color: rgba(255,255,255,0.15) !important;
  z-index: 3;
}
body[data-theme="orbital-depth"] .preview-browser-top span {
  background: rgba(255,255,255,0.48) !important;
}
body[data-theme="orbital-depth"] .preview-hero,
body[data-theme="orbital-depth"] .preview-canvas,
body[data-theme="orbital-depth"] .preview-metrics div,
body[data-theme="orbital-depth"] .panel {
  opacity: 1 !important;
}
body[data-theme="orbital-depth"] .float-bit,
body[data-theme="orbital-depth"] .float-ring {
  opacity: 0.18 !important;
  z-index: 1;
}
body[data-theme="orbital-depth"] .process-tags span,
body[data-theme="orbital-depth"] .project-tags span,
body[data-theme="orbital-depth"] .resume-chip-wrap span {
  background: rgba(255,255,255,0.06) !important;
  color: rgba(242,245,249,0.92) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
body[data-theme="orbital-depth"] .theme-card--04 .theme-swatches span:nth-child(1) { background: #0b0d10; }
body[data-theme="orbital-depth"] .theme-card--04 .theme-swatches span:nth-child(2) { background: #666f7a; }
body[data-theme="orbital-depth"] .theme-card--04 .theme-swatches span:nth-child(3) { background: #eef2f5; }

@media (max-width: 1100px) {
  body[data-theme="orbital-depth"] .hero-grid {
    grid-template-columns: 1fr;
  }
  body[data-theme="orbital-depth"] .hero-art {
    max-width: none;
    justify-self: stretch;
  }
  body[data-theme="orbital-depth"] .theme-grid,
  body[data-theme="orbital-depth"] .about-grid,
  body[data-theme="orbital-depth"] .projects-grid,
  body[data-theme="orbital-depth"] .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-theme="orbital-depth"] .project-card:nth-child(1),
  body[data-theme="orbital-depth"] .project-card:nth-child(2),
  body[data-theme="orbital-depth"] .project-card:nth-child(3),
  body[data-theme="orbital-depth"] .about-grid .info-card:nth-child(1),
  body[data-theme="orbital-depth"] .about-grid .info-card:nth-child(2),
  body[data-theme="orbital-depth"] .about-grid .info-card:nth-child(3) {
    grid-column: span 1;
  }
}
@media (max-width: 920px) {
  body[data-theme="orbital-depth"] .process-stage {
    min-height: 560px;
  }
  body[data-theme="orbital-depth"] .code-window,
  body[data-theme="orbital-depth"] .preview-window {
    position: absolute;
    width: calc(100% - 48px);
  }
  body[data-theme="orbital-depth"] .code-window {
    top: 20px;
    left: 24px;
  }
  body[data-theme="orbital-depth"] .preview-window {
    right: 24px;
    bottom: 20px;
  }
}
@media (max-width: 640px) {
  body[data-theme="orbital-depth"] .theme-grid,
  body[data-theme="orbital-depth"] .about-grid,
  body[data-theme="orbital-depth"] .projects-grid,
  body[data-theme="orbital-depth"] .skills-grid {
    grid-template-columns: 1fr;
  }
  body[data-theme="orbital-depth"] .process-stage {
    min-height: 520px;
    padding: 16px;
  }
  body[data-theme="orbital-depth"] .code-window,
  body[data-theme="orbital-depth"] .preview-window {
    width: calc(100% - 32px);
    left: 16px;
    right: 16px;
  }
  body[data-theme="orbital-depth"] .code-window {
    min-height: 240px;
  }
  body[data-theme="orbital-depth"] .preview-window {
    min-height: 220px;
  }
}
