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

:root {
  --bg: #FAFAF7;
  --bg-warm: #F0EDE5;
  --bg-card: #FFFFFF;
  --border: #E0DCD4;
  --border-hover: #C8C3B8;
  --text-primary: #1A1714;
  --text-secondary: #7A7570;
  --text-muted: #9A9590;
  --accent: #FF6123;
  --accent-soft: rgba(255, 97, 35, 0.10);
  --accent-mid: rgba(255, 97, 35, 0.30);
  --pop: #FF6123;
  --pop-soft: rgba(255, 97, 35, 0.08);
  --cream: #FAFAF7;
  --accent-glow: rgba(255, 97, 35, 0.25);
  --font-serif: 'Archivo Black', sans-serif;
  --font-body: 'Archivo', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 0px;
  --radius-sm: 0px;
}

[data-theme="neon"] {
  --bg: #0a0a0c;
  --bg-warm: #131318;
  --bg-card: #18181f;
  --border: #2a2a35;
  --border-hover: #3d3d4d;
  --text-primary: #e8e6e3;
  --text-secondary: #8a8a99;
  --text-muted: #55556a;
  --accent: #c9f059;
  --accent-soft: #c9f05920;
  --accent-mid: #c9f05940;
  --pop: #59b8f0;
  --pop-soft: #59b8f015;
  --cream: #131318;
  --accent-glow: #c9f05940;
  --font-serif: 'Sora', sans-serif;
  --font-body: 'Sora', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

body, .work-card, .approach-card, .about-box, .tidbit, .chip, .btn, footer {
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.theme-switcher {
  position: fixed;
  top: 4.5rem;
  right: 1.5rem;
  z-index: 99;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}

.theme-switcher:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== PLANE ACTIVE (disable text selection during plane mode) ========== */
html.plane-active {
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: auto;
}

/* ========== PLANE TOGGLE ========== */
.plane-toggle {
  position: fixed;
  top: 7rem;
  right: 1.5rem;
  z-index: 99;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.plane-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.plane-toggle.attractor {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--cream);
  will-change: transform;
}

.plane-toggle.attractor.bouncing {
  animation: nudgeBounce 1.2s ease;
}

.plane-toggle.attractor:hover {
  animation: none;
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.about-prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.about-prose a:hover { opacity: 0.8; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 5rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.2s forwards;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.35s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero h1 .serif-line {
  display: block;
}

.hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  max-width: 480px;
}

.hero-tidbits {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tidbit {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  min-width: 140px;
}

.tidbit-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.tidbit-value {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ========== SECTIONS ========== */
section { padding: 7rem 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  line-height: 1.15;
}

/* ========== WORK CARDS ========== */
.work-section {
  position: relative;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blur-overlay {
  position: fixed;
  inset: 0;
  z-index: 101;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.blur-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.work-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.4s var(--ease-out);
}

.work-card.expanded {
  z-index: 102;
  border-color: var(--accent);
  box-shadow: 0 40px 100px var(--accent-mid);
}

.work-card.expanded .work-card-info h3 {
  color: var(--accent);
}

.work-card-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1.75rem 2rem;
  gap: 2rem;
}

.work-card-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.work-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}

.work-icon.orange { background: var(--accent-soft); }
.work-icon.blue { background: var(--pop-soft); }
.work-icon.green { background: #22c55e18; }

.work-card-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
  transition: color 0.3s;
}

.work-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.work-card-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.work-pills {
  display: flex;
  gap: 0.4rem;
}

.work-pill {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.work-card-arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-out), color 0.3s;
}

.work-card.expanded .work-card-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* Expand section */
.work-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 2s var(--ease-out);
}

.work-card.expanded .work-expand {
  max-height: 600px;
}

.work-expand-inner {
  padding: 0 2.5rem 2.5rem;
}

.work-expand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.work-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.work-image-placeholder.warm { background: linear-gradient(135deg, #f9e4d4, #fce8d8); }
.work-image-placeholder.cool { background: linear-gradient(135deg, #d4e4f9, #d8e8fc); }
.work-image-placeholder.fresh { background: linear-gradient(135deg, #d4f9e4, #d8fce8); }

[data-theme="slate"] .work-image-placeholder.warm { background: linear-gradient(135deg, #e8ddd4, #ece1d8); }
[data-theme="slate"] .work-image-placeholder.cool { background: linear-gradient(135deg, #d4dde8, #d8e1ec); }
[data-theme="slate"] .work-image-placeholder.fresh { background: linear-gradient(135deg, #d4e8dd, #d8ece1); }

.work-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.work-details h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.work-details p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.work-stats {
  display: flex;
  gap: 1.5rem;
}

.work-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.work-stat-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.work-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ========== ABOUT ========== */
.about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
}

.about-prose {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  font-weight: 300;
}

.about-prose p + p { margin-top: 1.25rem; }

.about-prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.about-box-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.about-box-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== APPROACH ========== */
.approach-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.approach-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.approach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px #1a181410;
}

.approach-icon {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  line-height: 1;
}

.work-icon.orange img,
.approach-icon img {
  mix-blend-mode: multiply;
}

.approach-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.approach-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== CONTACT ========== */
.contact {
  text-align: center;
  padding: 6rem 0 220px; /* bottom: extra clearance for card hand */
}
.contact-brutalist { display: none; }

.contact-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.05;
}

.contact-heading em {
  font-style: italic;
  color: var(--accent);
}

.contact-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.contact-btns {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--cream);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px #e85d2620;
}

.btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn.primary:hover {
  background: #d4511e;
  box-shadow: 0 8px 30px #e85d2640;
}

/* ========== FOOTER ========== */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== DOODLE DECORATION ========== */
.doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0.12;
}

.doodle-circle {
  width: 280px;
  height: 280px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: absolute;
  right: -40px;
  top: 20%;
  animation: float 8s ease-in-out infinite;
}

.doodle-squiggle {
  position: absolute;
  left: -60px;
  bottom: 15%;
  width: 120px;
  height: 120px;
  border: 2px solid var(--pop);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes nudgeBounce {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(-5px); }
  40% { transform: translateY(0); }
  55% { transform: translateY(-3px); }
  70% { transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== 3D PLANE OVERLAY (reserved) ========== */
#plane-canvas {
  position: fixed;
  inset: 0;
  z-index: 103;
  pointer-events: none;
}

/* ========== THEME LAYOUT TOGGLES ========== */
.status-bar { display: none; }
.hero-brutalist { display: none; }
.about-brutalist { display: none; }
.hero-panel { display: none; }
.hero-default { display: block; }
.about-default { display: block; }
.teal { color: inherit; }

/* ========== NEON THEME OVERRIDES ========== */

/* Hardcoded color overrides */
[data-theme="neon"] .btn:hover {
  box-shadow: 0 4px 16px #c9f05920;
}
[data-theme="neon"] .btn.primary {
  color: #0a0a0c;
}
[data-theme="neon"] .btn.primary:hover {
  background: #d4f76a;
  box-shadow: 0 8px 30px #c9f05940;
}
[data-theme="neon"] .approach-card:hover {
  box-shadow: 0 12px 40px #c9f05910;
}
[data-theme="neon"] .blur-overlay.active {
  background: rgba(0, 0, 0, 0.5);
}

/* Font weight overrides */
[data-theme="neon"] .hero h1 { font-weight: 700; font-style: normal; margin-left: -0.08em; }
[data-theme="neon"] .hero h1 em { font-style: normal; color: var(--accent); }
[data-theme="neon"] .kern-ri { letter-spacing: 0.03em; }
[data-theme="neon"] .section-heading { font-weight: 600; }
[data-theme="neon"] .contact-heading { font-weight: 700; }
[data-theme="neon"] .work-details h4 { font-weight: 600; }
[data-theme="neon"] .approach-card h3 { font-weight: 600; }

/* Sharp corners */
[data-theme="neon"] .btn { border-radius: 8px; }
[data-theme="neon"] .chip { border-radius: 6px; }
[data-theme="neon"] .work-pill { border-radius: 6px; }
[data-theme="neon"] .hero-badge { border-radius: 6px; }
[data-theme="neon"] .work-card { border-radius: 12px; }
[data-theme="neon"] .tidbit { border-radius: 8px; }
[data-theme="neon"] .about-box { border-radius: 8px; }

/* Theme switcher + plane toggle */
[data-theme="neon"] .theme-switcher {
  top: 4.5rem;
  border-radius: 4px;
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="neon"] .theme-switcher:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px #c9f05940;
}
[data-theme="neon"] .plane-toggle { border-radius: 4px; background: var(--bg-card); border-color: var(--border); }
[data-theme="neon"] .plane-toggle:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 12px #c9f05940; }
[data-theme="neon"] .plane-toggle.attractor { border-radius: 4px; background: var(--bg-card); border-color: var(--accent); color: var(--accent); box-shadow: none; }
[data-theme="neon"] .plane-toggle.attractor:hover { background: var(--bg-card); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 12px #c9f05940; }

/* Grain overlay */
[data-theme="neon"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Hide doodles + hero grid bg */
[data-theme="neon"] .doodle { display: none; }

[data-theme="neon"] .hero::before {
  content: '';
  position: absolute;
  top: 0; right: -10%;
  width: 60%; height: 100%;
  opacity: 0.04;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
}

/* Image placeholder overrides */
[data-theme="neon"] .work-image-placeholder.warm { background: radial-gradient(circle at 30% 40%, #c9f05915 0%, transparent 50%), var(--bg-card); }
[data-theme="neon"] .work-image-placeholder.cool { background: radial-gradient(circle at 30% 40%, #59b8f015 0%, transparent 50%), var(--bg-card); }
[data-theme="neon"] .work-image-placeholder.fresh { background: radial-gradient(circle at 30% 40%, #59f0a015 0%, transparent 50%), var(--bg-card); }

/* SVG stroke fix + icon bg */
[data-theme="neon"] .work-icon svg { stroke: var(--text-primary); }
[data-theme="neon"] .work-icon.orange { background: #c9f05955; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; gap: 2rem; }
  .hero-tidbits { justify-content: flex-start; }
  .about-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .approach-cards { grid-template-columns: 1fr; }
  .work-pills { display: none; }
  .work-expand-grid { grid-template-columns: 1fr; }
  .work-card.expanded .work-card-header { padding: 1.5rem; }
  .work-expand-inner { padding: 0 1.5rem 1.5rem; }
}

/* Destruction system */
.destruct-char {
  display: inline-block;
}
.destruct-word {
  white-space: nowrap;
  display: inline;
}

@media (max-width: 768px) {
  .plane-toggle {
    top: 7rem;
    right: 1.5rem;
  }
}

@media (max-width: 600px) {
  html { overflow-x: hidden; }

  .plane-toggle {
    top: 3.25rem;
  }

  [data-theme="neon"] .theme-switcher {
    top: 0.75rem;
  }
}

/* ========== BOLD THEME OVERRIDES ========== */

/* ── Hero ── */
[data-theme="bold"] .hero {
  overflow: hidden;
  position: relative;
}

[data-theme="bold"] .hero::after {
  content: '';
  position: absolute;
  right: -8vw;
  top: 50%;
  transform: translateY(-50%);
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  background: var(--accent);
  z-index: 0;
  pointer-events: none;
}

[data-theme="bold"] .hero .container {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  padding: 0 3rem;
}

[data-theme="bold"] .doodle { display: none; }

[data-theme="bold"] .hero h1 {
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 1;
}
[data-theme="bold"] .hero h1 em {
  font-style: normal;
  color: var(--accent);
}

[data-theme="bold"] .hero-badge {
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

[data-theme="bold"] .hero-desc {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-secondary);
}

[data-theme="bold"] .hero-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 520px;
}

[data-theme="bold"] .hero-tidbits {
  border-top: 2px solid var(--text-primary);
  padding-top: 1.5rem;
  gap: 3rem;
  justify-content: flex-start;
}

[data-theme="bold"] .tidbit {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

[data-theme="bold"] .tidbit-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

[data-theme="bold"] .tidbit-value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── Section Labels & Headings ── */
[data-theme="bold"] .section-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-style: normal;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

[data-theme="bold"] .section-label {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ── About Section — Dark Zone ── */
[data-theme="bold"] #about {
  background: #1A1714;
  color: #F5F2ED;
}

[data-theme="bold"] #about .section-heading {
  color: #F5F2ED;
}
[data-theme="bold"] #about .section-label {
  color: var(--text-muted);
}

[data-theme="bold"] #about .about-prose {
  color: #9A9590;
}
[data-theme="bold"] #about .about-prose strong {
  color: #F5F2ED;
  font-weight: 600;
}
[data-theme="bold"] #about .about-prose a {
  color: var(--accent);
}

[data-theme="bold"] .about-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
}

[data-theme="bold"] .about-box-title {
  color: var(--accent);
}

[data-theme="bold"] .about-box-text {
  color: #9A9590;
}

[data-theme="bold"] .chip {
  background: rgba(255, 97, 35, 0.12);
  border: 1px solid rgba(255, 97, 35, 0.25);
  border-radius: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
}
[data-theme="bold"] .chip:hover {
  background: rgba(255, 97, 35, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Work Cards ── */
[data-theme="bold"] .work-card {
  border-radius: 0;
}
[data-theme="bold"] .work-card.expanded {
  box-shadow: 0 40px 100px rgba(255, 97, 35, 0.2);
}
[data-theme="bold"] .work-pill {
  border-radius: 0;
  font-family: var(--font-mono);
}
[data-theme="bold"] .work-details h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-style: normal;
}
[data-theme="bold"] .work-icon {
  border-radius: 0;
}

/* ── Approach Cards ── */
[data-theme="bold"] .approach-card {
  border-radius: 0;
}
[data-theme="bold"] .approach-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-style: normal;
}

/* ── Contact — Orange Zone ── */
[data-theme="bold"] .contact {
  background: var(--accent);
  color: white;
}

[data-theme="bold"] .contact-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-style: normal;
  color: white;
}
[data-theme="bold"] .contact-heading em {
  font-style: normal;
  color: white;
}

[data-theme="bold"] .contact-sub {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="bold"] .contact .btn {
  border-radius: 0;
  border: 2px solid white;
  color: white;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
[data-theme="bold"] .contact .btn:hover {
  background: white;
  color: var(--accent);
  box-shadow: none;
  transform: none;
}
[data-theme="bold"] .contact .btn.primary {
  background: white;
  color: var(--accent);
  border-color: white;
}
[data-theme="bold"] .contact .btn.primary:hover {
  background: transparent;
  color: white;
  box-shadow: none;
}

/* ── Buttons (General) ── */
[data-theme="bold"] .btn {
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
[data-theme="bold"] .btn:hover {
  box-shadow: none;
  transform: none;
}
[data-theme="bold"] .btn.primary:hover {
  background: #e55520;
  box-shadow: none;
}

/* ── Theme Switcher & Plane Toggle ── */
[data-theme="bold"] .theme-switcher {
  border-radius: 0;
}
[data-theme="bold"] .plane-toggle {
  border-radius: 0;
}
[data-theme="bold"] .plane-toggle.attractor {
  border-radius: 0;
}

/* ── Footer ── */
[data-theme="bold"] footer {
  font-family: var(--font-mono);
}

/* ── Hide neon grid bg / doodles ── */
[data-theme="bold"] .hero::before { display: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  [data-theme="bold"] .hero::after {
    width: 65vw;
    height: 65vw;
    right: -15vw;
  }
}

@media (max-width: 600px) {
  [data-theme="bold"] .theme-switcher {
    top: 0.75rem;
  }
  [data-theme="bold"] .hero-desc {
    color: #000;
  }
  [data-theme="bold"] .hero::after {
    width: 80vw;
    height: 80vw;
    right: -25vw;
    top: 60%;
  }
}

/* ========== CINEMATIC THEME OVERRIDES ========== */

[data-theme="cinematic"] {
  --bg: #0A0A0A;
  --bg-warm: #111111;
  --bg-card: #161616;
  --border: #222222;
  --border-hover: #333333;
  --text-primary: #E8E6E1;
  --text-secondary: #9A9590;
  --text-muted: #8A8580;
  --accent: #D6001C;
  --accent-soft: rgba(214, 0, 28, 0.15);
  --accent-mid: rgba(214, 0, 28, 0.30);
  --pop: #E8E6E1;
  --pop-soft: rgba(232, 230, 225, 0.08);
  --cream: #111111;
  --accent-glow: rgba(214, 0, 28, 0.25);
  --font-serif: 'Syne', sans-serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Commit Mono', 'Courier New', monospace;
  --radius: 0px;
  --radius-sm: 0px;
}

/* ── Hero ── */
[data-theme="cinematic"] .hero h1 {
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin-left: -0.04em;
}
[data-theme="cinematic"] .hero h1 em {
  font-style: normal;
  color: var(--accent);
}
[data-theme="cinematic"] .kern-ri {
  letter-spacing: 0.01em;
}

[data-theme="cinematic"] .hero-badge {
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

[data-theme="cinematic"] .hero-desc {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-muted);
}

[data-theme="cinematic"] .hero-tidbits {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  gap: 3rem;
}

[data-theme="cinematic"] .tidbit {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

[data-theme="cinematic"] .tidbit-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

[data-theme="cinematic"] .tidbit-value {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
}

/* ── Hero Decorative Elements ── */

/* Scanline overlay */
[data-theme="cinematic"] .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.012) 2px,
    rgba(255,255,255,0.012) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Red glow behind hero — wide ambient wash */
[data-theme="cinematic"] .hero::after {
  content: '';
  position: absolute;
  top: 25vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(214, 0, 28, 0.07) 0%, transparent 65%);
  z-index: 0;
  filter: blur(100px);
  pointer-events: none;
}

[data-theme="cinematic"] .hero {
  overflow: hidden;
}

/* Hide coral doodles */
[data-theme="cinematic"] .doodle { display: none; }

/* ── Section Labels & Headings ── */
[data-theme="cinematic"] .section-heading {
  font-family: var(--font-serif);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-style: normal;
}

[data-theme="cinematic"] .section-label {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ── About ── */
[data-theme="cinematic"] .about-prose {
  font-weight: 300;
  color: var(--text-secondary);
}
[data-theme="cinematic"] .about-prose strong {
  color: var(--text-primary);
  font-weight: 500;
}

[data-theme="cinematic"] .about-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
}

[data-theme="cinematic"] .about-box-title {
  color: var(--accent);
}

[data-theme="cinematic"] .chip {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
}
[data-theme="cinematic"] .chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Work Cards ── */
[data-theme="cinematic"] .work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
}
[data-theme="cinematic"] .work-card:hover {
  border-color: var(--border-hover);
}
[data-theme="cinematic"] .work-card.expanded {
  border-color: var(--accent);
  box-shadow: 0 40px 100px rgba(214, 0, 28, 0.15);
}
[data-theme="cinematic"] .work-pill {
  border-radius: 0;
  font-family: var(--font-mono);
}
[data-theme="cinematic"] .work-details h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: normal;
}

[data-theme="cinematic"] .work-icon.orange { background: rgba(214, 0, 28, 0.15); }
[data-theme="cinematic"] .work-icon.blue { background: rgba(232, 230, 225, 0.08); }
[data-theme="cinematic"] .work-icon.green { background: rgba(214, 0, 28, 0.10); }
[data-theme="cinematic"] .work-icon svg { stroke: var(--text-primary); }

/* Image placeholders */
[data-theme="cinematic"] .work-image-placeholder.warm { background: radial-gradient(circle at 30% 40%, rgba(214,0,28,0.1) 0%, transparent 50%), var(--bg-card); }
[data-theme="cinematic"] .work-image-placeholder.cool { background: radial-gradient(circle at 30% 40%, rgba(100,120,180,0.1) 0%, transparent 50%), var(--bg-card); }
[data-theme="cinematic"] .work-image-placeholder.fresh { background: radial-gradient(circle at 30% 40%, rgba(80,180,120,0.1) 0%, transparent 50%), var(--bg-card); }

/* ── Approach Cards ── */
[data-theme="cinematic"] .approach-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
}
[data-theme="cinematic"] .approach-card:hover {
  box-shadow: 0 12px 40px rgba(214, 0, 28, 0.1);
}
[data-theme="cinematic"] .approach-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: normal;
}

/* ── Contact ── */
[data-theme="cinematic"] .contact-heading {
  font-family: var(--font-serif);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-style: normal;
}
[data-theme="cinematic"] .contact-heading em {
  font-style: normal;
  color: var(--accent);
}

/* ── Buttons ── */
[data-theme="cinematic"] .btn {
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
[data-theme="cinematic"] .btn:hover {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--bg);
  box-shadow: none;
  transform: none;
}
[data-theme="cinematic"] .btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
[data-theme="cinematic"] .btn.primary:hover {
  background: #b00018;
  border-color: #b00018;
  box-shadow: none;
}

/* ── Theme Switcher & Plane Toggle ── */
[data-theme="cinematic"] .theme-switcher {
  border-radius: 0;
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="cinematic"] .theme-switcher:hover {
  border-color: var(--accent);
  color: var(--accent);
}
[data-theme="cinematic"] .plane-toggle {
  border-radius: 0;
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="cinematic"] .plane-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
[data-theme="cinematic"] .plane-toggle.attractor {
  border-radius: 0;
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
}
[data-theme="cinematic"] .plane-toggle.attractor:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Footer ── */
[data-theme="cinematic"] footer {
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
}

/* ── Blur overlay ── */
[data-theme="cinematic"] .blur-overlay.active {
  background: rgba(0, 0, 0, 0.5);
}

/* ── Grain / Texture Overlay ── */
[data-theme="cinematic"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  [data-theme="cinematic"] .theme-switcher {
    top: 0.75rem;
  }
  [data-theme="cinematic"] .hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

/* ========== BRUTALIST THEME OVERRIDES ========== */

[data-theme="brutalist"] {
  --bg: #FFFFFF;
  --bg-warm: #F5F5F5;
  --bg-card: #FFFFFF;
  --border: #0C0C0C;
  --border-hover: #0C0C0C;
  --text-primary: #0C0C0C;
  --text-secondary: #5C584F;
  --text-muted: #5C584F;
  --accent: #0038FF;
  --accent-soft: rgba(0, 56, 255, 0.08);
  --accent-mid: rgba(0, 56, 255, 0.25);
  --pop: #0038FF;
  --pop-soft: rgba(0, 56, 255, 0.06);
  --cream: #FFFFFF;
  --accent-glow: rgba(0, 56, 255, 0.20);
  --font-serif: 'Space Mono', monospace;
  --font-body: 'Literata', Georgia, serif;
  --font-mono: 'Space Mono', monospace;
  --radius: 0px;
  --radius-sm: 0px;
}

[data-theme="brutalist"] .hero-default { display: none; }
[data-theme="brutalist"] .about-default { display: none; }

/* Single-screen flex layout */
[data-theme="brutalist"] #page-home {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  padding-top: 2rem; /* clear fixed status bar */
}
[data-theme="brutalist"] section { padding: 0; }
[data-theme="brutalist"] .reveal { opacity: 1; transform: none; }

[data-theme="brutalist"] .hero-brutalist {
  display: grid;
  grid-template-columns: 2fr 1fr;
  height: 100%;
  min-height: 0;
}
[data-theme="brutalist"] .hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem clamp(1.5rem, 5vw, 3.5rem) 1rem;
  min-height: 0;
  overflow: hidden;
}
[data-theme="brutalist"] .hero-main h1 {
  padding: 0;
}
[data-theme="brutalist"] .hero-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 2px solid var(--border);
  padding: 1.5rem 1.5rem 1rem;
  min-height: 0;
  overflow: hidden;
}
[data-theme="brutalist"] .sidebar-field {
  margin-bottom: 0.5rem;
}
[data-theme="brutalist"] .sidebar-field:last-child {
  margin-bottom: 0;
}
[data-theme="brutalist"] .field-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
[data-theme="brutalist"] .field-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}
[data-theme="brutalist"] .field-value--accent {
  color: var(--accent);
}

[data-theme="brutalist"] .about-brutalist {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
[data-theme="brutalist"] .about-header {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  padding: 0.4rem clamp(1.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-shrink: 0;
}
[data-theme="brutalist"] .about-header span {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
[data-theme="brutalist"] .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
[data-theme="brutalist"] .about-left {
  padding: 0.6rem clamp(1.5rem, 5vw, 3.5rem);
  border-right: 1px solid var(--border);
  overflow: hidden;
  min-height: 0;
}
[data-theme="brutalist"] .about-left .about-prose {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
[data-theme="brutalist"] .about-left .about-prose p + p {
  margin-top: 0.5rem;
}
[data-theme="brutalist"] .about-left .about-prose strong {
  color: var(--text-primary);
  font-weight: 700;
}
[data-theme="brutalist"] .skills-table {
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}
[data-theme="brutalist"] .skills-table-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
[data-theme="brutalist"] .skills-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  line-height: 1.8;
}
[data-theme="brutalist"] .skills-mono > span + span::before {
  content: ' / ';
  color: var(--text-muted);
}
[data-theme="brutalist"] .about-right {
  padding: 0;
  overflow: hidden;
  min-height: 0;
}
[data-theme="brutalist"] .data-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
[data-theme="brutalist"] .data-row:last-child {
  border-bottom: none;
}
[data-theme="brutalist"] .data-row-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
[data-theme="brutalist"] .data-row-value {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
}

[data-theme="brutalist"] .status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 0.6rem clamp(1.5rem, 5vw, 3.5rem);
  background: var(--accent);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border);
}

[data-theme="brutalist"] .hero {
  min-height: 0;
  flex: 5;
  display: block;
  padding-top: 0;
  overflow: hidden;
  border-bottom: 2px solid var(--border);
}

/* Cancel fadeUp animations — brutalist shows everything immediately */
[data-theme="brutalist"] .hero h1,
[data-theme="brutalist"] .hero-badge,
[data-theme="brutalist"] .hero-body {
  opacity: 1;
  animation: none;
}

[data-theme="brutalist"] #about {
  flex: 4;
  min-height: 0;
  overflow: hidden;
  border-bottom: 2px solid var(--border);
  padding: 0;
}

[data-theme="brutalist"] .doodle { display: none; }
[data-theme="brutalist"] .hero::before { display: none; }
[data-theme="brutalist"] .hero::after { display: none; }

[data-theme="brutalist"] .hero-badge {
  display: none;
}

[data-theme="brutalist"] .hero > .container {
  max-width: none;
  padding: 0;
  margin: 0;
}

[data-theme="brutalist"] .hero h1 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem) 0;
}

[data-theme="brutalist"] .hero h1 em {
  font-style: normal;
  color: var(--text-primary);
}

[data-theme="brutalist"] .kern-ri {
  letter-spacing: normal;
}

[data-theme="brutalist"] .hero-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  align-items: stretch;
}

[data-theme="brutalist"] .hero-desc {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 50ch;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem) 0.5rem;
}

[data-theme="brutalist"] .hero-tidbits {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  flex-wrap: nowrap;
  border-left: 1px solid var(--border);
  padding: 0 1.5rem;
}

[data-theme="brutalist"] .tidbit {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 1.5rem;
  min-width: auto;
}

[data-theme="brutalist"] .tidbit:last-child {
  margin-bottom: 0;
}

[data-theme="brutalist"] .tidbit-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

[data-theme="brutalist"] .tidbit-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
}

[data-theme="brutalist"] #about > .container {
  max-width: none;
  padding: 0;
}

[data-theme="brutalist"] #about .section-label {
  display: none;
}

[data-theme="brutalist"] #about .section-heading {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-style: normal;
  padding: 1.5rem clamp(1.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

[data-theme="brutalist"] .about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

[data-theme="brutalist"] .about-prose {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
  padding: 2rem clamp(1.5rem, 5vw, 3.5rem);
  border-right: none;
}

[data-theme="brutalist"] .about-prose strong {
  color: var(--text-primary);
  font-weight: 700;
}

[data-theme="brutalist"] .about-sidebar {
  gap: 0;
  padding: 0;
}

[data-theme="brutalist"] .about-box {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 1.2rem 1.5rem;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  align-items: baseline;
}

[data-theme="brutalist"] .about-box:last-child {
  border-bottom: none;
}

[data-theme="brutalist"] .about-box-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0;
}

[data-theme="brutalist"] .about-box-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
}

[data-theme="brutalist"] .chip-grid {
  display: inline;
  gap: 0;
}

[data-theme="brutalist"] .chip {
  display: inline;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 2.2;
}

[data-theme="brutalist"] .chip:hover {
  border: none;
  color: var(--accent);
}

[data-theme="brutalist"] .chip + .chip::before {
  content: ' / ';
  color: var(--text-muted);
}

[data-theme="brutalist"] .section-heading {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  font-style: normal;
}

[data-theme="brutalist"] .section-label {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

[data-theme="brutalist"] .work-card {
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 0;
}

[data-theme="brutalist"] .work-card:hover {
  border-color: var(--border);
}

[data-theme="brutalist"] .work-card.expanded {
  border-color: var(--accent);
  box-shadow: none;
}

[data-theme="brutalist"] .work-pill {
  border-radius: 0;
  border: 2px solid var(--border);
  font-family: var(--font-mono);
}

[data-theme="brutalist"] .work-details h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: normal;
}

[data-theme="brutalist"] .work-icon {
  border-radius: 0;
}

[data-theme="brutalist"] .approach-card {
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 0;
}

[data-theme="brutalist"] .approach-card:hover {
  transform: none;
  box-shadow: none;
  background: var(--bg-warm);
}

[data-theme="brutalist"] .approach-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: normal;
}

[data-theme="brutalist"] .contact {
  border-top: 2px solid var(--border);
  border-bottom: none;
  padding: 0;
  text-align: left;
  flex: 0 0 auto;
}
[data-theme="brutalist"] .contact > .container { display: none; }
[data-theme="brutalist"] .contact-brutalist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem clamp(1.5rem, 5vw, 3.5rem);
}
[data-theme="brutalist"] .contact-brutalist h2 {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
  margin: 0;
  white-space: nowrap;
}
[data-theme="brutalist"] .contact-brutalist p {
  display: none; /* hidden in compact bar to leave room for card hand */
}
[data-theme="brutalist"] .contact-brutalist .contact-btns {
  margin-left: auto;
}

[data-theme="brutalist"] .contact-heading {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-style: normal;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

[data-theme="brutalist"] .contact-heading em {
  font-style: normal;
  color: var(--text-primary);
}

[data-theme="brutalist"] .contact-sub {
  font-family: var(--font-body);
  font-style: italic;
}

[data-theme="brutalist"] .contact-btns {
  gap: 0;
}

[data-theme="brutalist"] .btn {
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  margin-left: -2px;
  padding: 0.8rem 2rem;
}

[data-theme="brutalist"] .btn:first-child {
  margin-left: 0;
}

[data-theme="brutalist"] .btn:hover {
  background: var(--text-primary);
  color: var(--bg);
  box-shadow: none;
  transform: none;
}

[data-theme="brutalist"] .btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

[data-theme="brutalist"] .btn.primary:hover {
  background: #002ad4;
  border-color: #002ad4;
  box-shadow: none;
}

[data-theme="brutalist"] .theme-switcher {
  border-radius: 0;
  border: 2px solid var(--border);
  background: var(--bg);
}

[data-theme="brutalist"] .theme-switcher:hover {
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="brutalist"] .plane-toggle {
  border-radius: 0;
  border: 2px solid var(--border);
  background: var(--bg);
}

[data-theme="brutalist"] .plane-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="brutalist"] .plane-toggle.attractor {
  border-radius: 0;
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg);
}

[data-theme="brutalist"] footer {
  display: none;
}

[data-theme="brutalist"] .work-image-placeholder {
  border: 1px solid var(--border);
}
[data-theme="brutalist"] .work-image-placeholder.warm { background: #DDD8CE; }
[data-theme="brutalist"] .work-image-placeholder.cool { background: #D0D4DC; }
[data-theme="brutalist"] .work-image-placeholder.fresh { background: #CED8D0; }

@media (max-width: 900px) {
  [data-theme="brutalist"] #page-home {
    height: auto;
    overflow: visible;
  }
  [data-theme="brutalist"] .hero-brutalist {
    grid-template-columns: 1fr;
  }
  [data-theme="brutalist"] .hero-sidebar {
    border-left: none;
    border-top: 2px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.5rem clamp(1.5rem, 5vw, 3.5rem);
  }
  [data-theme="brutalist"] .hero-body {
    grid-template-columns: 1fr;
  }
  [data-theme="brutalist"] .hero-tidbits {
    border-left: none;
    border-top: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.5rem clamp(1.5rem, 5vw, 3.5rem);
  }
  [data-theme="brutalist"] .about-grid {
    grid-template-columns: 1fr;
  }
  [data-theme="brutalist"] .about-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  [data-theme="brutalist"] .about-content {
    grid-template-columns: 1fr;
  }
  [data-theme="brutalist"] .about-prose {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  [data-theme="brutalist"] .contact-brutalist {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

@media (max-width: 600px) {
  [data-theme="brutalist"] .status-bar {
    position: static;
    top: auto;
  }
  [data-theme="brutalist"] #page-home {
    padding-top: 0; /* status bar is now in flow, not fixed */
  }
  [data-theme="brutalist"] .theme-switcher {
    top: 0.75rem;
  }
}

/* ========== RETRO THEME OVERRIDES ========== */

[data-theme="retro"] {
  --bg: #FDF6EC;
  --bg-warm: #F5EED8;
  --bg-card: #FDF6EC;
  --border: #D4CBBA;
  --border-hover: #B8AD99;
  --text-primary: #1A1A16;
  --text-secondary: #6D6A5E;
  --text-muted: #9E9888;
  --accent: #D94230;
  --accent-soft: #D9423018;
  --accent-mid: #D9423040;
  --pop: #1A5C52;
  --pop-soft: #1A5C5215;
  --cream: #FDF6EC;
  --accent-glow: #E8A82535;
  --font-serif: 'Shrikhand', cursive;
  --font-body: 'Bitter', serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 10px;
  --radius-sm: 6px;
}

/* Hero — Split layout */
[data-theme="retro"] .hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: 1fr;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 0;
}

[data-theme="retro"] .doodle { display: none; }
[data-theme="retro"] .hero::before { display: none; }

[data-theme="retro"] .hero::after { display: none; }
[data-theme="retro"] .hero .container::after {
  content: '';
  position: absolute;
  bottom: -8vw; left: -6vw;
  width: 28vw; height: 28vw;
  border: 4px solid #E8A825;
  border-radius: 50%;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

[data-theme="retro"] .hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 5rem clamp(1.5rem, 5vw, 3.5rem) 4rem;
  position: relative;
  max-width: none;
  margin: 0;
}

[data-theme="retro"] .hero-badge {
  border-radius: 0;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  animation: none;
  opacity: 1;
  transform: rotate(-3deg);
  font-family: 'IBM Plex Mono', monospace;
}
[data-theme="retro"] .hero-badge::before {
  content: '\25CF';
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  animation: none;
  font-size: 0.45rem;
}

[data-theme="retro"] .hero h1 {
  font-family: 'Shrikhand', cursive;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
[data-theme="retro"] .hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  display: inline-block;
}
[data-theme="retro"] .hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 0.04em; left: 0; right: 0;
  height: 0.13em;
  background: #E8A825;
}

[data-theme="retro"] .hero-body {
  display: block;
}

[data-theme="retro"] .hero-tidbits {
  display: none;
}

[data-theme="retro"] .hero-desc {
  font-family: 'Bitter', serif;
  font-weight: 300;
}

/* Sections */
[data-theme="retro"] .section-label {
  color: #E8A825;
}

[data-theme="retro"] .section-heading {
  font-family: 'Shrikhand', cursive;
  font-weight: 400;
  font-style: normal;
}

/* About — deep teal bg */
[data-theme="retro"] #about {
  background: #0F3E37;
  color: #F0EBE0;
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

[data-theme="retro"] #about .section-heading {
  color: #F0EBE0;
}

[data-theme="retro"] .about-prose {
  color: rgba(240,235,224,0.7);
}
[data-theme="retro"] .about-prose strong {
  color: #F0EBE0;
}
[data-theme="retro"] .about-prose a {
  color: #E8A825;
}

[data-theme="retro"] .about-box {
  background: rgba(255,255,255,0.04);
  border: none;
  border-left: 3px solid #E8A825;
  border-radius: 0;
}

[data-theme="retro"] .about-box-title {
  color: #E8A825;
}

[data-theme="retro"] .about-box-text {
  color: rgba(240,235,224,0.8);
}

[data-theme="retro"] .chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
  color: rgba(240,235,224,0.7);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
}
[data-theme="retro"] .chip:hover {
  border-color: #E8A825;
  color: #F0EBE0;
}

/* Work Cards */
[data-theme="retro"] .work-card {
  border-radius: var(--radius);
}

[data-theme="retro"] .work-icon.orange {
  background: #D9423018;
}

[data-theme="retro"] .work-pill {
  border-radius: 0;
  font-family: 'IBM Plex Mono', monospace;
}

[data-theme="retro"] .work-details h4 {
  font-family: 'Shrikhand', cursive;
  font-weight: 400;
  font-style: normal;
}

[data-theme="retro"] .work-image-placeholder.warm {
  background: linear-gradient(135deg, #F5EED8 0%, #EDE5C8 100%);
}
[data-theme="retro"] .work-image-placeholder.cool {
  background: linear-gradient(135deg, #D4E8E2 0%, #C4DCD6 100%);
}
[data-theme="retro"] .work-image-placeholder.fresh {
  background: linear-gradient(135deg, #E8E4C8 0%, #DCD8B8 100%);
}

/* Approach Cards */
[data-theme="retro"] .approach-card {
  border-radius: var(--radius);
}
[data-theme="retro"] .approach-card h3 {
  font-family: 'Shrikhand', cursive;
  font-weight: 400;
  font-style: normal;
}

/* Contact */
[data-theme="retro"] .contact {
  background: var(--bg);
}

[data-theme="retro"] .contact-heading {
  font-family: 'Shrikhand', cursive;
  font-weight: 400;
  font-style: normal;
}
[data-theme="retro"] .contact-heading em {
  font-style: normal;
  color: #1A5C52;
}
[data-theme="retro"] .contact-heading .teal { color: #1A5C52; }

/* Buttons */
[data-theme="retro"] .btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  border-radius: 0;
  border: 2px solid #1A5C52;
  color: #1A5C52;
  background: transparent;
}
[data-theme="retro"] .btn:hover {
  background: #1A5C52;
  color: #F0EBE0;
  box-shadow: none;
  transform: none;
}
[data-theme="retro"] .btn.primary {
  background: #D94230;
  border-color: #D94230;
  color: white;
}
[data-theme="retro"] .btn.primary:hover {
  background: #b83525;
  border-color: #b83525;
  box-shadow: none;
}

/* Tidbit */
[data-theme="retro"] .tidbit {
  border-radius: 0;
  background: #1A5C52;
  border-color: #1A5C52;
  color: #F0EBE0;
}
[data-theme="retro"] .tidbit-label {
  color: #E8A825;
}
[data-theme="retro"] .tidbit-value {
  color: #F0EBE0;
}

/* Footer */
[data-theme="retro"] footer {
  background: #1A5C52;
  border-top: none;
}
[data-theme="retro"] footer span {
  color: rgba(240,235,224,0.5);
}

/* Theme Switcher */
[data-theme="retro"] .theme-switcher {
  border-radius: 0;
  border: 2px solid #1A5C52;
  background: var(--bg);
  color: #1A5C52;
}
[data-theme="retro"] .theme-switcher:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Plane Toggle */
[data-theme="retro"] .plane-toggle {
  border-radius: 0;
  background: var(--bg);
  border: 2px solid #1A5C52;
  color: #1A5C52;
}
[data-theme="retro"] .plane-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
[data-theme="retro"] .plane-toggle.attractor {
  border-radius: 0;
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
}
[data-theme="retro"] .plane-toggle.attractor:hover {
  background: #D9423018;
}

/* Retro teal panel — right side of split hero */
[data-theme="retro"] .hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #1A5C52;
  padding: 4rem 2.5rem 14rem;
  margin-bottom: -10rem;
  color: #F0EBE0;
  position: relative;
}

/* Faded circle decoration in panel */
[data-theme="retro"] .hero-panel::before {
  content: '';
  position: absolute;
  top: 3rem; right: 2rem;
  width: 120px; height: 120px;
  border: 3px solid rgba(232,168,37,0.18);
  border-radius: 50%;
  pointer-events: none;
}

/* Diagonal mustard stripe across panel */
[data-theme="retro"] .hero-panel::after {
  content: '';
  position: absolute;
  top: -20%; left: -40%;
  width: 200%; height: 30px;
  background: #E8A825;
  opacity: 0.07;
  transform: rotate(-35deg);
  pointer-events: none;
}

[data-theme="retro"] .hero-panel .tidbit {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
[data-theme="retro"] .hero-panel .tidbit:last-child {
  margin-bottom: 0;
}

[data-theme="retro"] .hero-panel .tidbit-label {
  color: #E8A825;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.15rem;
}

[data-theme="retro"] .hero-panel .tidbit-value {
  color: #F0EBE0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 900px) {
  [data-theme="retro"] .hero {
    grid-template-columns: 1fr;
  }
  [data-theme="retro"] .hero-panel {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 2rem;
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  [data-theme="retro"] .theme-switcher {
    top: 0.75rem;
  }
}
