/* =============================================
   EVAN FRUEHAUF — styles.css
   Barlow Condensed + Barlow + Space Mono
============================================= */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f4f2ee;
  --bg-alt:    #eceae4;
  --line:      #1a1a1e;
  --text:      #1a1a1e;
  --muted:     #6b6b75;
  --accent:    #e85d26;
  --accent2:   #f5a623;
  --white:     #ffffff;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius:    4px;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --nav-h:     60px;
}

[data-theme="dark"] {
  --bg:      #0f0f11;
  --bg-alt:  #17171b;
  --line:    #2e2e35;
  --text:    #e8e6e0;
  --muted:   #888892;
  --white:   #1a1a1e;
  --shadow:  0 2px 12px rgba(0,0,0,.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  transition: background .25s, color .25s;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code { font-family: var(--font-mono); font-size: .8em; background: var(--bg-alt); padding: 2px 6px; border-radius: 3px; }

/* ── TYPEWRITER CURSOR ── */
.type-cursor {
  display: inline-block; color: var(--accent);
  animation: blink .7s step-end infinite;
  font-weight: 300; margin-left: 1px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── EQ VISUALIZER ── */
.eq-visualizer {
  display: flex; align-items: flex-end; gap: 3px;
  height: 20px; margin: 8px 0 4px;
}
.eq-visualizer span {
  width: 3px; background: var(--accent); border-radius: 2px;
  animation: eq-bounce 1s ease-in-out infinite;
}
.eq-visualizer span:nth-child(1) { animation-duration: .9s;  animation-delay: 0s; }
.eq-visualizer span:nth-child(2) { animation-duration: .7s;  animation-delay: .1s; }
.eq-visualizer span:nth-child(3) { animation-duration: 1.1s; animation-delay: .2s; }
.eq-visualizer span:nth-child(4) { animation-duration: .8s;  animation-delay: .05s; }
.eq-visualizer span:nth-child(5) { animation-duration: 1s;   animation-delay: .15s; }
@keyframes eq-bounce {
  0%, 100% { height: 4px; }
  50%       { height: 18px; }
}
.panel:hover .eq-visualizer span { background: #fff; }


.scanlines {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,.03) 3px,
    rgba(0,0,0,.03) 4px
  );
  opacity: .6;
}
[data-theme="dark"] .scanlines { opacity: .35; }

/* ── CONTAINER ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ── WARNING STRIPE ── */
.warning-stripe {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0px, var(--accent) 10px,
    var(--accent2) 10px, var(--accent2) 20px
  );
  opacity: .85;
}

/* ── NAV ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding: 0 28px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-family: var(--font-head);
  font-weight: 700; letter-spacing: .05em; font-size: 15px; text-transform: uppercase;
}
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); padding: 6px 10px; border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; background: var(--bg-alt); }

.nav-cta {
  background: var(--accent); color: #fff !important;
  border-radius: var(--radius); padding: 7px 14px !important;
}
.nav-cta:hover { background: #c94d1e; }

.nav-right { display: flex; align-items: center; gap: 14px; }

/* theme toggle */
.theme-toggle {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); padding: 4px 0;
}
.toggle-track {
  width: 36px; height: 20px; background: var(--bg-alt);
  border: 1.5px solid var(--line); border-radius: 999px;
  position: relative; transition: background .2s;
}
.toggle-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; background: var(--muted);
  border-radius: 50%; transition: transform .2s, background .2s;
}
[data-theme="dark"] .toggle-thumb { transform: translateX(16px); background: var(--accent); }

/* hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  display: flex; flex-direction: column;
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 0 28px;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.mobile-menu.open { max-height: 400px; padding: 12px 28px 20px; }
.mobile-menu a {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── HERO ── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .04;
}

.hero-inner { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 80px; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
}

.dot-pulse {
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(72px, 14vw, 160px);
  font-weight: 800; line-height: .9;
  letter-spacing: -.01em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic; color: var(--accent);
  display: block;
}

.hero-sub {
  font-size: 18px; color: var(--muted);
  max-width: 520px; margin-bottom: 36px; line-height: 1.6;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.btn-primary {
  font-family: var(--font-head); font-weight: 700;
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: var(--radius);
  transition: background .15s, transform .1s;
  display: inline-block;
}
.btn-primary:hover { background: #c94d1e; text-decoration: none; transform: translateY(-1px); }

.btn-ghost {
  font-family: var(--font-head); font-weight: 700;
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  background: transparent; color: var(--text);
  padding: 13px 28px; border-radius: var(--radius);
  border: 2px solid var(--line);
  transition: border-color .15s, color .15s, transform .1s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; transform: translateY(-1px); }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags span {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  border: 1.5px solid var(--line); color: var(--muted);
  padding: 5px 10px; border-radius: var(--radius);
}

/* ── SECTIONS ── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.sec-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.sec-label::after {
  content: ''; flex: 1; max-width: 60px;
  height: 1px; background: var(--accent); opacity: .4;
}

.sec-intro { color: var(--muted); max-width: 640px; margin-bottom: 40px; }

h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1; text-transform: uppercase;
  letter-spacing: -.01em; margin-bottom: 20px;
}

/* ── ABOUT ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}

.about-text h2 { margin-bottom: 12px; }
.about-intro {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(28px, 4vw, 42px); font-style: italic;
  color: var(--accent); letter-spacing: .01em;
  margin-bottom: 20px; line-height: 1;
}
.headshot-arrow {
  display: inline-block;
  font-size: 28px; color: var(--accent);
  animation: arrow-bounce 1.2s ease-in-out infinite;
  margin-left: 6px; vertical-align: middle;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(6px); }
}
.about-text p { color: var(--muted); margin-bottom: 16px; }

.headshot-wrap {
  float: right; margin: 0 0 20px 28px;
  width: 160px; flex-shrink: 0;
}
.headshot {
  width: 160px; height: 160px; object-fit: cover;
  border-radius: 50%; border: 3px solid var(--line);
}

.about-meta { margin: 28px 0; border-top: 1px solid var(--line); padding-top: 20px; }
.meta-item {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.meta-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

.social-links { margin-top: 24px; }
.social-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.social-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 5px 12px 5px 5px; font-size: 13px; font-weight: 500;
  color: var(--text); transition: border-color .15s, color .15s;
}
.social-pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.social-pill-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
  font-family: var(--font-mono);
}

/* panels */
.about-side { display: flex; flex-direction: column; gap: 14px; }

.panel {
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; background: var(--bg);
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s, transform .4s, background .2s, border-color .2s;
  cursor: default;
}
.panel.visible { opacity: 1; transform: none; }
.panel:hover { background: var(--accent); border-color: var(--accent); }
.panel:hover .panel-type { color: rgba(255,255,255,.75); }
.panel:hover .panel-n { color: #fff; }
.panel:hover .panel-sub { color: rgba(255,255,255,.8); }
.panel:hover .panel-link { color: #fff; }
.panel-type {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
  transition: color .2s;
}
.panel-n { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin-bottom: 2px; transition: color .2s; }
.panel-sub { font-size: 12px; color: var(--muted); margin-bottom: 8px; transition: color .2s; }
.panel-link {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .05em; color: var(--accent);
  transition: color .2s;
}

/* ── RESEARCH ── */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.pub-slot {
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 24px; background: var(--bg);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s, transform .4s, border-color .15s;
}
.pub-slot.visible { opacity: 1; transform: none; }
.pub-slot:hover { border-color: var(--accent); }

.pub-type-badge {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  display: inline-block; padding: 3px 8px; border-radius: 3px;
  margin-bottom: 10px; width: fit-content;
}
.pub-published { background: var(--accent); color: #fff; }
.pub-poster { background: var(--line); color: var(--bg); }

.pub-venue { font-size: 11px; color: var(--muted); margin-bottom: 8px; font-family: var(--font-mono); }
.pub-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.2; margin-bottom: 8px; }
.pub-authors { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; margin-top: auto; padding-top: 12px; }
.pub-tags span {
  font-size: 10px; font-family: var(--font-mono);
  letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--muted);
  padding: 3px 7px; border-radius: 3px;
}
.pub-link {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .05em; color: var(--accent);
}

/* poster images */
.poster-slot { padding: 18px; }
.pub-img-link {
  display: block; border: 1.5px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 14px;
  transition: border-color .15s;
  cursor: pointer;
}
.pub-img-link:hover { border-color: var(--accent); }
.pub-poster-img {
  width: 100%; height: 160px; object-fit: cover;
  object-position: top center;
  transition: transform .3s;
}
.pub-img-link:hover .pub-poster-img { transform: scale(1.03); }

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

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 24px; background: var(--bg);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s, transform .4s, border-color .15s;
}
.project-card.visible { opacity: 1; transform: none; }
.project-card:hover { border-color: var(--accent); }
.project-featured { border-color: var(--accent); }

.proj-badge {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  display: inline-block; padding: 3px 8px; border-radius: 3px;
  margin-bottom: 12px; width: fit-content;
}
.proj-badge-alt { background: var(--line); color: var(--bg); }

.project-card h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 22px; margin-bottom: 4px;
}
.proj-role { font-size: 12px; color: var(--muted); margin-bottom: 10px; font-family: var(--font-mono); }
.proj-subtitle { font-size: 10px; color: var(--muted); margin-bottom: 4px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.project-card p.proj-desc { font-size: 14px; color: var(--muted); flex: 1; }
.proj-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.proj-tech span {
  font-size: 10px; font-family: var(--font-mono);
  letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--muted);
  padding: 3px 7px; border-radius: 3px;
}

/* ── POKEMON TCG ── */
.card-showcase {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: center; margin-bottom: 20px;
}
.card-note { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

.tcg-card {
  width: 200px; height: 280px; perspective: 1000px; cursor: pointer;
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s, transform .4s;
}
.tcg-card.visible { opacity: 1; transform: none; }

.tcg-inner {
  width: 100%; height: 100%;
  position: relative; transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.tcg-card.flipped .tcg-inner { transform: rotateY(180deg); }

.tcg-front, .tcg-back {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 12px; overflow: hidden;
  border: 2px solid var(--line);
}

.tcg-front { background: var(--bg-alt); display: flex; flex-direction: column; }
.tcg-img-wrap { flex: 1; overflow: hidden; background: var(--bg-alt); min-height: 0; }
.tcg-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 0; border: none; }
.tcg-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  text-align: center; padding: 12px;
}
.tcg-label { padding: 10px 12px; background: var(--bg); }
.tcg-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.tcg-set { display: block; font-size: 10px; color: var(--muted); font-family: var(--font-mono); margin-top: 2px; }
.tcg-hint {
  text-align: center; font-size: 9px; font-family: var(--font-mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 5px; background: var(--bg-alt);
}

.tcg-back {
  background: var(--line); color: var(--bg);
  transform: rotateY(180deg);
  padding: 20px 16px; display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
}
.tcg-type-pip {
  font-size: 10px; font-family: var(--font-mono);
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; width: fit-content; color: #fff;
  font-weight: 700;
}
.tcg-back-name { font-family: var(--font-head); font-weight: 800; font-size: 18px; line-height: 1; }
.tcg-back-rarity { font-size: 9px; font-family: var(--font-mono); opacity: .6; }
.tcg-back-stats { font-size: 9px; font-family: var(--font-mono); opacity: .75; letter-spacing: .04em; }
.tcg-back-notes { font-size: 11px; line-height: 1.4; opacity: .85; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.tcg-back-set { font-size: 9px; font-family: var(--font-mono); opacity: .5; }
.tcg-back-link {
  font-size: 10px; font-family: var(--font-mono); letter-spacing: .06em;
  color: var(--accent2); text-decoration: none; margin-top: 2px;
}
.tcg-back-link:hover { text-decoration: underline; }

/* ── GALLERY ── */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-btn {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 1.5px solid var(--line);
  color: var(--muted); padding: 6px 14px; border-radius: var(--radius);
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent); color: var(--accent); background: var(--bg-alt);
}
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4/3; background: var(--bg-alt);
  border: 1.5px solid var(--line); cursor: pointer;
  opacity: 0; transform: scale(.97);
  transition: opacity .4s, transform .4s, border-color .15s;
}
.gallery-item.visible { opacity: 1; transform: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; border: none; }
.gallery-item:hover { border-color: var(--accent); }

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 12px;
  opacity: 0; transition: opacity .2s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-size: 11px; color: #fff; line-height: 1.4; }

.gallery-error { border-color: var(--line) !important; }
.gallery-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  text-align: center; padding: 16px; line-height: 1.5;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius); border: none; }
.lightbox-caption {
  text-align: center; color: rgba(255,255,255,.6);
  font-size: 12px; font-family: var(--font-mono); margin-top: 12px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed; background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2); color: #fff;
  font-size: 18px; cursor: pointer; border-radius: var(--radius);
  transition: background .15s; padding: 8px 14px;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }

/* ── EXPERIMENTS ── */
.experiments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.experiment-item {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 20px; background: var(--bg);
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s, transform .4s, border-color .15s;
}
.experiment-item.visible { opacity: 1; transform: none; }
.experiment-item:hover { border-color: var(--accent); }

.exp-icon { font-size: 24px; flex-shrink: 0; }
.exp-content h4 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 17px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em;
}
.exp-content p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }
.exp-link { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }

/* ── CONTACT ── */
.contact-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 12px 20px; color: var(--text);
  font-weight: 500; transition: border-color .15s, color .15s;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.contact-icon {
  width: 28px; height: 28px; background: var(--accent); color: #fff;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-family: var(--font-mono); font-weight: 700; flex-shrink: 0;
}

/* ── FOOTER ── */
footer {
  border-top: 2px solid var(--line);
  background: var(--bg-alt);
  padding: 24px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.footer-disclaimer {
  font-size: 10px; letter-spacing: .04em; text-transform: none;
  color: var(--muted); opacity: .6; max-width: 520px; text-align: right;
}

/* ── WARNING STRIPE HOVER ── */
.warning-stripe {
  transition: opacity .2s, height .2s;
}
.warning-stripe:hover { opacity: 1; height: 14px; }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 40px; height: 40px;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 18px; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s, background .15s;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: #c94d1e; transform: translateY(-2px); }

/* ── SCROLL SPY ── */
.nav-links a.nav-active {
  color: var(--accent);
  background: var(--bg-alt);
}

/* ── SCROLL ANIMATIONS ── */
.pub-slot, .project-card, .experiment-item, .panel, .gallery-item, .tcg-card {
  opacity: 0; transform: translateY(16px);
}
.pub-slot.visible, .project-card.visible, .experiment-item.visible,
.panel.visible, .gallery-item.visible, .tcg-card.visible {
  opacity: 1; transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .headshot-wrap { float: none; margin: 0 0 20px 0; }
  .hero-title { font-size: clamp(56px, 18vw, 100px); }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .hero-inner { padding-top: 40px; padding-bottom: 60px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
  .pub-grid, .projects-grid, .experiments-grid { grid-template-columns: 1fr; }
  .card-showcase { gap: 16px; }
  .tcg-card { width: 160px; height: 224px; }
}
