/* ============================================================
   ANDREW ACREE PORTFOLIO — main.css
   ============================================================ */

/* ===========================
   DESIGN TOKENS
=========================== */
:root {
  /* ---- Color ---- */
  --bg:          #0A0A0D;
  --bg-raised:   #111115;
  --bg-elevated: #1A1A1F;
  --bg-card:     #161619;

  --ink:            #222222;   /* site-wide charcoal — default "black" */

  --text-primary:   #F2EFE8;
  --text-secondary: #9996A2;
  --text-muted:     #504E58;

  /* ---- Light surface system (project cards) ---- */
  --surface:    #EDEDED;
  --ink-base:   #121212;
  --ink-sub:    #7f7f7f;

  --c-spotify:  #1DB954;
  --c-bark:     #FF6B35;
  --c-swiftkick:#8B5CF6;
  --c-wrapped:  #F59E0B;
  --c-plated:   #F43F5E;
  --c-personal: #06B6D4;

  --accent: #A78BFA;

  /* ---- Spacing — 8px base unit ---- */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;

  /* ---- Type scale ---- */
  /* xs  = labels, tags, micro UI         */
  /* sm  = secondary body, captions       */
  /* base = primary body                  */
  /* md  = large body, card desc          */
  /* lg  = card titles, sub-heads         */
  /* xl  = section sub-heads              */
  /* 2xl = section titles (static floor)  */
  /* hero-* = fluid display sizes         */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  32px;
  --text-3xl:  40px;
  --text-4xl:  48px;
  --text-5xl:  64px;
  --text-6xl:  80px;

  /* ---- Border radius ---- */
  --radius-sm:  var(--sp-1);   /* 8px  */
  --radius-md:  var(--sp-2);   /* 16px */
  --radius-lg:  var(--sp-3);   /* 24px */

  /* ---- Easing ---- */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Fonts ---- */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'Figtree', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--bg);
  touch-action: pan-y;
}

body {
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  margin: 0;
  cursor: none;
  overflow-x: clip;
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
}

img, canvas { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; font: inherit; color: inherit; cursor: pointer; }

/* ===========================
   CUSTOM CURSOR
=========================== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 8px; height: 8px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 9998;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ===========================
   NAV
=========================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-5);   /* 24px 40px */
  padding-top: max(var(--sp-3), env(safe-area-inset-top));
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  box-shadow: 0 4px 32px rgba(0,0,0,0.14);
  perspective: 400px;
  position: relative;
}

.logo-edge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  border-radius: 1px;
  opacity: 0;
  pointer-events: none;
}

.logo-spin {
  position: relative;
  display: block;
  width: 1em;
  height: 1em;
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.logo-spin > span {
  position: absolute;
  inset: 0;
  backface-visibility: visible;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.14);
  white-space: nowrap;
}

.nav-link {
  font-size: var(--text-xs);          /* 12px */
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(34,34,34,0.5);
  transition: color 0.25s var(--ease);
  position: relative;
}

.nav-link:hover { color: var(--ink); }

.pill-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(34,34,34,0.4);
  text-transform: none;
  transition: color 0.2s ease, font-weight 0.2s ease;
  touch-action: manipulation;
}

.pill-link.is-active {
  font-weight: 700;
  color: var(--ink);
}

/* ===========================
   MOBILE BOTTOM PILL NAV
=========================== */
.pill-nav { display: none; }

@media (max-width: 640px) {
  .nav {
    padding: var(--sp-2) var(--sp-3);
    justify-content: center;
  }
  .nav-links { display: none; }

  /* Bottom pill */
  .pill-nav {
    display: flex;
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: #fff;
    border-radius: 999px;
    padding: 12px 16px;
    gap: 16px;
    align-items: center;
    box-shadow: 0 4px 32px rgba(0,0,0,0.14);
    white-space: nowrap;
  }
}

.nav-type-trigger {
  padding: 0;
  cursor: pointer;
}
.nav-type-trigger::after { display: none; }

/* ===========================
   TYPE PANEL
=========================== */
.type-panel {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  pointer-events: none;
}

.type-panel.is-open {
  pointer-events: all;
}

.type-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,13,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.type-panel.is-open::before {
  opacity: 1;
}

.type-panel-inner {
  position: relative;
  width: min(580px, 100vw);
  height: 100%;
  background: #111115;
  border-left: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow: hidden;
}

.type-panel.is-open .type-panel-inner {
  transform: translateX(0);
}

.type-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.type-panel-title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.type-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.type-panel-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.type-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.type-section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Families */
.type-families {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.type-family {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.type-family:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.type-family-name {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
}

.type-family-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Named styles */
.type-styles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.type-style-row {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}

.type-style-row:hover { background: rgba(255,255,255,0.04); padding-left: 10px; padding-right: 10px; margin-left: -10px; margin-right: -10px; }
.type-style-row:last-child { border-bottom: none; }

.type-style-row.copied {
  background: rgba(167,139,250,0.08) !important;
}

.type-style-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.type-style-token {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.type-style-spec {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  letter-spacing: 0;
  flex: 1;
}

.type-copy-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 2px 7px;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.type-style-row:hover .type-copy-badge { opacity: 1; }
.type-style-row.copied .type-copy-badge {
  opacity: 1;
  color: var(--accent);
  border-color: var(--accent);
}

.type-style-preview {
  color: var(--text-primary);
  font-family: var(--font-body);
}

/* Scale */
.type-scale-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.type-scale-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
}

.type-scale-row:hover { background: rgba(255,255,255,0.04); padding-left: 8px; padding-right: 8px; margin-left: -8px; margin-right: -8px; }
.type-scale-row:last-child { border-bottom: none; }
.type-scale-row.copied { background: rgba(167,139,250,0.08); }

.type-scale-token {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  width: 32px;
  flex-shrink: 0;
}

.type-scale-px {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  width: 36px;
  flex-shrink: 0;
}

.type-scale-sample {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: var(--sp-16) var(--sp-5) var(--sp-10) 5vw;
  padding-top: max(var(--sp-16), env(safe-area-inset-top));
  overflow: hidden;
  background: #ccfbf1; /* fallback while WebGL loads */
}

/* Grainient WebGL background canvas */
.grainient-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Arch transition: gradient uses scroll-driven --hero-fade-color, masked to arch shape */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--hero-fade-color, #EDEDED));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0 Q720 120 1440 0 L1440 120 L0 120 Z' fill='white'/%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0 Q720 120 1440 0 L1440 120 L0 120 Z' fill='white'/%3E%3C%2Fsvg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  pointer-events: none;
  z-index: 10;
}

.hero-test-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* 3D canvas — sits transparently over the white bg, no blend mode needed */
.hero-3d {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-3d canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Hero text — hidden until 3D hello loads, then fades up */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 750px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.hero.hello-loaded .hero-inner {
  opacity: 1;
  transform: translateY(0);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: rgba(34,34,34,0.65);
  line-height: 1.75;
  margin-bottom: 10px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 9px;
}

.hero-sub {
  font-size: 18px;
  font-weight: 500;
  color: rgba(34,34,34,0.65);
  line-height: 1.75;
  margin-bottom: calc(var(--sp-5) - 12px);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  border: 1.5px solid rgba(34,34,34,0.4);
  border-radius: 999px;
  padding: var(--sp-1) var(--sp-3);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), gap 0.25s var(--ease);
}

.hero-cta:hover {
  background: rgba(34,34,34,0.06);
  border-color: rgba(34,34,34,0.7);
  gap: var(--sp-2);
}

@media (max-width: 640px) {
  .hero { padding: var(--sp-12) var(--sp-3) var(--sp-8); }
  .hero-name { font-size: 36px; }
}

/* ===========================
   SHARED SECTION ELEMENTS
=========================== */
.section-tag {
  display: inline-block;
  font-size: var(--text-xs);          /* 12px */
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);         /* 16px */
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 5vw, var(--text-5xl));  /* 32px → 64px */
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-sub {
  color: var(--text-secondary);
  font-size: var(--text-base);        /* 16px */
  margin-top: var(--sp-2);            /* 16px */
}

/* ===========================
   WORK CONSTELLATION
=========================== */
.constellation-section {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 120vh;
  min-height: 800px;
  overflow: visible;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}


.constellation-field {
  position: relative;
  width: 700px;
  height: 680px;
  transform-origin: center center;
  transform-style: preserve-3d;
  flex-shrink: 0;
}


.c-card {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  background: #FFFFFF;
  border-radius: 6px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  box-shadow:
    0 2px 8px rgba(34, 34, 34, 0.06),
    0 8px 32px rgba(34, 34, 34, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.25s ease;
}

.c-constellation-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 9000;
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 210px;
  transform: translateX(-50%) translateY(-100%);
  opacity: 0;
  transition: opacity 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.c-constellation-tooltip.is-visible {
  opacity: 1;
}

.ctt-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.ctt-desc {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}

.constellation-label {
  position: absolute;
  top: 40px;
  left: 5vw;
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 5vw, var(--text-5xl));
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  pointer-events: none;
  z-index: 2;
}

.c-group {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: center center;
  will-change: transform;
  cursor: pointer;
}

.c-card-positioner {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.c-card--img {
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  width: auto !important;
  height: auto !important;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.c-card--img img {
  display: block;
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 160px;
  pointer-events: none;
}

.c-card-positioner.is-hovered {
  z-index: 1000 !important;
}
.c-card-positioner.is-hovered .c-card--img {
  transform: scale(1.18);
}

.c-card:not(.c-card--img):hover {
  box-shadow:
    0 4px 16px rgba(34, 34, 34, 0.10),
    0 16px 48px rgba(34, 34, 34, 0.10);
}

.c-card-accent {
  height: 3px;
  width: 100%;
  flex-shrink: 0;
}

.c-card-label {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 4px 6px;
  font-size: 8px;
  font-weight: 500;
  color: rgba(34, 34, 34, 0.4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ===========================
   MARQUEE STRIP
=========================== */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: var(--sp-2) 0;             /* 16px */
  background: var(--bg-raised);
}

.marquee-track {
  display: flex;
  gap: var(--sp-3);                   /* 24px */
  width: max-content;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-size: var(--text-xs);          /* 12px */
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.marquee-track .marquee-sep {
  color: var(--accent);
  opacity: 0.5;
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

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

/* ===========================
   SPOTIFY CALLOUT SECTION
=========================== */
.callout-section {
  padding: var(--sp-12) var(--sp-5) 0;  /* 96px 40px */
  border-top: 1px solid rgba(255,255,255,0.06);
}

.callout-inner {
  display: grid;
  grid-template-columns: 216px 1fr;      /* 27 * 8px */
  gap: var(--sp-6);                       /* 48px */
  align-items: start;
  max-width: 1200px;
  margin: 0 auto var(--sp-10);            /* 80px */
}

.callout-sidebar {
  padding-top: var(--sp-1);              /* 8px */
}

.callout-label {
  display: block;
  font-size: var(--text-xs);             /* 12px */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);            /* 16px */
  padding-bottom: var(--sp-2);           /* 16px */
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.callout-company {
  font-family: var(--font-display);
  font-size: var(--text-xl);             /* 24px */
  font-weight: 700;
  color: var(--c-spotify);
  margin-bottom: var(--sp-1);            /* 8px */
}

.callout-tenure {
  font-size: var(--text-xs);             /* 12px */
  color: var(--text-muted);
  margin-bottom: var(--sp-2);            /* 16px */
}

.callout-role {
  font-size: var(--text-sm);             /* 14px */
  color: var(--text-secondary);
  line-height: 1.55;
}

.callout-headline {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 6.5vw, var(--text-6xl));  /* 48px → 80px */
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* Focus cards */
.focus-grid {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.focus-card {
  display: grid;
  grid-template-columns: var(--sp-6) 1fr auto;  /* 48px */
  align-items: center;
  gap: var(--sp-4);                              /* 32px */
  padding: var(--sp-4) 0;                        /* 32px */
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: default;
  transition: background 0.2s var(--ease);
}

.focus-card:hover {
  background: rgba(255,255,255,0.02);
  margin: 0 calc(-1 * var(--sp-5));
  padding-left: var(--sp-5);
  padding-right: var(--sp-5);
}

.focus-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);            /* 12px */
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.focus-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-md), 2vw, var(--text-xl));  /* 18px → 24px */
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);           /* 8px */
}

.focus-desc {
  font-size: var(--text-sm);            /* 14px */
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
}

.focus-arrow {
  font-size: var(--text-xl);            /* 24px */
  color: var(--text-muted);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
  flex-shrink: 0;
}

.focus-card:hover .focus-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

@media (max-width: 768px) {
  .callout-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-4);                  /* 32px */
  }

  .callout-headline {
    font-size: clamp(var(--text-3xl), 9vw, var(--text-5xl));  /* 40px → 64px */
  }

  .focus-card {
    grid-template-columns: var(--sp-5) 1fr;  /* 40px */
  }

  .focus-arrow { display: none; }
}

/* ===========================
   WORK / A SECTION
=========================== */
.work-section {
  padding: var(--sp-16) var(--sp-5) var(--sp-8);  /* 128px 40px 64px */
}

.work-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto var(--sp-6);          /* 48px */
}

.a-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  margin-bottom: var(--sp-4);          /* 32px */
}

.a-canvas-container {
  width: 100%;
  max-width: 676px;
  height: min(460px, 72vw);
  position: relative;
  will-change: transform;
}

#aCanvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

/* Tooltip */
.project-tooltip {
  position: fixed;
  z-index: 200;
  background: rgba(20, 20, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-3);    /* 16px 24px */
  pointer-events: none;
  min-width: 210px;
  transition: opacity 0.18s var(--ease);
}

.project-tooltip.hidden { opacity: 0; }

.tooltip-bar {
  width: 28px; height: 3px;
  border-radius: 999px;
  margin-bottom: var(--sp-2);          /* 16px */
  background: var(--accent);
}

.tooltip-company {
  font-family: var(--font-display);
  font-size: var(--text-base);         /* 16px */
  font-weight: 700;
  color: var(--text-primary);
}

.tooltip-role {
  font-size: var(--text-xs);           /* 12px */
  color: var(--text-secondary);
  margin-top: 4px;
}

.tooltip-action {
  font-size: var(--text-xs);           /* 12px */
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--sp-2);             /* 16px */
  letter-spacing: 0.02em;
}

/* Legend */
.project-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-1) var(--sp-3);        /* 8px 24px */
  max-width: 520px;
  margin: 0 auto;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--sp-1);                    /* 8px */
  font-size: var(--text-sm);           /* 14px */
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}

.legend-item:hover { color: var(--text-primary); }

.legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .work-section { padding: var(--sp-10) var(--sp-3) var(--sp-6); }
}

/* ===========================
   PROJECT CARDS — horizontal scroll track
=========================== */

/* Tall wrapper — gives the scroll room JS will set via height attr */
.projects-track {
  position: relative;
  z-index: 2;
  margin-top: -96px; /* pulls first card 24px above fold */
}

.projects-list-section {
  background: transparent;
  padding: 40px 0 80px;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ---- Big card shell ---- */
.pcard {
  position: relative;
  font-family: var(--font-body);
  flex-shrink: 0;
  width: 90vw;
  overflow: visible;
}

.pcard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: rgba(0,0,0,0.12) 0px -4px 32px, 0 2px 61px rgba(0,0,0,0.05);
  pointer-events: none;
  z-index: 0;
}

.pcard-inner {
  display: grid;
  grid-template-columns: 1fr 596px;
  position: relative;
  z-index: 1;
}

/* ---- Left panel ---- */
.pcard-left {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  background: var(--surface);
}

.pcard-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 64px;
}

.pcard-logo-img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.pcard-logo-wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-base);
  letter-spacing: -0.01em;
}

/* each labeled section — label left, content right */
.pcard-section {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: start;
  margin-bottom: 64px;
}

/* Role section inner: skills flex-grow + platforms group */
.pcard-role-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: flex-start;
}

.pcard-craft-note {
  border: 1.5px solid #00ABD6;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #1D4D7A;
  line-height: 1.5;
  text-align: left;
  align-self: flex-start;
  max-width: 220px;
}

.pcard-platforms-group {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: start;
  min-width: 200px;
}

.pcard-platforms-group > .label {
  padding-top: 3px;
}

/* label sits in column 1; nudge down to align with first content line */
.pcard-section > .label {
  margin-bottom: 0;
  padding-top: 5px;
}

.pcard-section:last-child {
  margin-bottom: 0;
  flex: 1;
  align-items: start;
}

/* alias — same as .label; keeps existing HTML working */
.pcard-label { display: block; font-size: 11px; font-weight: 400; color: var(--ink-sub); margin-bottom: 8px; }

.pcard-about-text {
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink-base);
  font-weight: 500;
}

/* meta row: skill columns */
.pcard-meta {
  display: flex;
  gap: 24px;
  flex: 1;
}

.pcard-meta-col {
  flex-shrink: 0;
}

.pcard-skill-list {
  list-style: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-base);
  line-height: 1.9;
}

.pcard-platform-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-base);
  line-height: 1.9;
}

.pcard-platform-subs {
  list-style: disc;
  padding-left: 16px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-base);
  line-height: 1.8;
  margin-bottom: 4px;
}

/* highlights list */
.pcard-highlights {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}

/* Wrapper: positions the dot outside the row to the left */
.pcard-hl-wrap {
  position: relative;
}
.pcard-hl-wrap::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-base);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.pcard-hl-wrap:has(.hl-active)::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pcard-highlight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0;
  border-top: 1px solid rgba(18,18,18,0.1);
  cursor: default;
  overflow: hidden;
}

.pcard-hl-wrap:last-child .pcard-highlight-row {
  border-bottom: 1px solid rgba(18,18,18,0.1);
}

.pcard-highlight-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-sub);
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.pcard-highlight-row.hl-active .pcard-highlight-title {
  font-weight: 700;
  color: var(--ink-base);
}

.pcard-highlight-thumbs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  align-items: flex-end;
  height: 100%;
  overflow: hidden;
}

.pcard-thumb {
  width: 40px;
  height: 28px;
  border-radius: 4px;
  background: rgba(18,18,18,0.12);
}

/* Mini thumbnail — flush to bottom border, scales up from bottom on active */
.pcard-thumb-img {
  display: block;
  height: 66px;
  width: auto;
  border-radius: 4px;
  transform-origin: bottom center;
  transform: scale(0.78);
  transition: transform 0.25s var(--ease);
}

.pcard-highlight-row.hl-active .pcard-thumb-img {
  transform: scale(1);
}

/* ---- Right panel ---- */
.pcard-right {
  position: relative;
  overflow: visible;
  padding: 0;
  background: #E5E5E5;
  border-radius: 0 16px 16px 0;
}


.pcard-img-panel {
  position: absolute;
  top: 48px;
  right: 48px;
  bottom: 48px;
  left: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  overflow: visible;
  z-index: 1;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.pcard-img-panel.hl-active {
  opacity: 1;
}

.pcard-img-block {
  width: 100%;
  border-radius: 8px;
  background: rgba(18,18,18,0.12);
  flex-shrink: 0;
}

.pcard-img-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.pcard-img-note {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: #ffffff;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--ink-base);
  line-height: 1.55;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  pointer-events: none;
  z-index: 2;
}

.pcard-img-note .pcard-note-main {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}

.pcard-img-note .pcard-note-sub {
  display: block;
  color: var(--ink-sub);
}

/* ---- Reveal animation for new cards ---- */
.pcard.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-spring);
}

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

/* ---- Compact 50/50 card row (Swiftkick, Plated) ---- */
.pcard-row {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  width: 90vw;
  align-items: stretch;
}

.pcard-row .pcard {
  flex: 1;
  min-width: 0;
}

.pcard--compact .pcard-left {
  border-right: none;
  border-radius: 16px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-bottom: 0;
  padding-right: 0;
  height: 100%;
  box-sizing: border-box;
}

.pcard--compact .pcard-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding-right: 52%;
}

.pcard-compact-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  border-radius: 0 0 16px 0;
}

.pcard--compact .pcard-about-text {
  font-size: 18px;
}

/* Craft + Platforms side-by-side when space allows */
.pcard-craft-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  align-items: flex-start;
  margin-bottom: 64px;
}

.pcard-craft-platforms .pcard-section {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-width: 180px;
  margin-bottom: 0;
  grid-template-columns: none; /* cancel the label-left grid */
}

.pcard-craft-platforms .pcard-section > .label {
  padding-top: 0;
  margin-bottom: 10px;
}

/* ---- Mobile collapse ---- */
@media (max-width: 820px) {
  .pcard-left {
    padding: 28px 24px;
  }
  .pcard-meta {
    grid-template-columns: 1fr 1fr;
  }
  .pcard-row {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .projects-list-section { padding: var(--sp-3) var(--sp-2) var(--sp-10); }
  .pcard-meta { gap: 12px; }
  .pcard-meta-col { flex: 1; min-width: 0; }
  .pcard-craft-note { width: 100%; max-width: none; }
}

/* ---- Responsive project cards ---- */
@media (max-width: 1150px) {
  /* Card fills more of the screen */
  .pcard { width: 92vw; }
  .pcard-row { width: 92vw; }

  /* Stack left + right panels vertically */
  .pcard-inner { grid-template-columns: 1fr; }
  .pcard-left {
    padding: 32px 28px;
    border-right: none;
    border-radius: 16px 16px 0 0;
  }
  /* Remove flex-grow on last section so highlights sit tight above image */
  .pcard-section:last-child { flex: 0 0 auto; }
  .pcard-right {
    display: block;
    height: 520px;
    background: #E5E5E5;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
  }
  /* Fixed-height panels: all same size, image scales to fit centered */
  .pcard-img-panel {
    position: absolute;
    inset: 16px;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
    transition: opacity 0.3s var(--ease);
  }
  .pcard-img-panel.hl-active { opacity: 1; }
  .pcard-img-photo {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
  }

  /* Label above content (single column) */
  .pcard-section {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }
  .pcard-section > .label {
    padding-top: 0;
    margin-bottom: 10px;
  }

  /* Smaller about text */
  .pcard-about-text { font-size: 18px; }
  .pcard-logo { margin-bottom: 36px; }

  /* Highlights take full width */
  .pcard-highlights { max-width: none; }
  .pcard-highlight-thumbs { display: none; }

  .pcard-platforms-group { min-width: 0; }
}

/* kept for legend scroll target IDs (no visible rendering change) */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);           /* 14px */
  font-weight: 600;
  color: var(--c, var(--accent));
  transition: gap 0.25s var(--ease);
}

.card-link:hover { gap: var(--sp-1); }   /* 8px */

@media (max-width: 640px) {
  .projects-list-section { padding: var(--sp-2) var(--sp-3) var(--sp-10); }

  .pcard:not(.pcard--compact) .pcard-left { padding-bottom: 0; }
  .pcard-hl-wrap:last-child .pcard-highlight-row { border-bottom: none; }

  /* Compact cards: equal L/R padding, image stays in corner */
  .pcard--compact .pcard-left { padding-right: 24px; }
  .pcard--compact .pcard-section { padding-right: 0; }
  .pcard-compact-img { width: 52%; }

  .constellation-section { height: auto; min-height: 300px; }
}

/* ===========================
   ABOUT
=========================== */
.about-section {
  padding: var(--sp-4) var(--sp-5) var(--sp-16);  /* 32px 40px 128px */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);                    /* 64px */
  max-width: 1160px;
  margin: 0 auto;
  align-items: center;
}

.about-content .section-title { margin-bottom: var(--sp-3); }  /* 24px */

.about-bio {
  color: var(--text-secondary);
  font-size: var(--text-base);         /* 16px */
  line-height: 1.8;
  margin-bottom: var(--sp-2);         /* 16px */
}

.about-cta {
  display: inline-block;
  margin-top: var(--sp-2);            /* 16px */
  font-size: var(--text-base);         /* 16px */
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.2s var(--ease);
}

.about-cta:hover { opacity: 0.65; }

.balloons-wrapper { width: 100%; }

.balloons-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 480px;
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

/* ===========================
   PRINCIPLE PILLS
=========================== */
.principle-pill {
  position: absolute;
  top: 0;
  left: 0;
  padding: var(--sp-1) var(--sp-2);    /* 8px 16px */
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: var(--text-xs);           /* 12px */
  font-weight: 500;
  color: var(--text-secondary);
  width: 44%;
  text-align: center;
  line-height: 1.4;
  cursor: default;
  user-select: none;
  pointer-events: none;
  will-change: transform;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.principle-pill.pill-active {
  background: rgba(167,139,250,0.1);
  border-color: rgba(167,139,250,0.35);
  color: var(--accent);
}

.balloons-label {
  position: absolute;
  bottom: var(--sp-2);                 /* 16px */
  right: var(--sp-2);                  /* 16px */
  font-size: var(--text-xs);           /* 12px */
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  pointer-events: none;
}

@media (max-width: 900px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: var(--sp-6);                  /* 48px */
    padding-bottom: var(--sp-10);     /* 80px */
  }
  .balloons-container { max-height: 400px; }
}

@media (max-width: 640px) {
  .about-section { padding: 0 var(--sp-3) var(--sp-10); }
}

/* ===========================
   CONTACT
=========================== */
/* ===========================
   FOOTER
=========================== */
.footer {
  padding: var(--sp-8) var(--sp-5);
  padding-bottom: max(var(--sp-8), env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.footer-thanks {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.footer-link {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}

.footer-link:hover { color: var(--text-primary); }

.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .footer { padding-bottom: calc(var(--sp-8) + 40px + env(safe-area-inset-bottom)); }
  .footer-inner { flex-direction: column; gap: var(--sp-3); text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ===========================
   TEXT UTILITIES
=========================== */

/* Subdued 12px label — reusable across all surfaces.
   Default color works on dark backgrounds; override per context below. */
.label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* On light surfaces (project cards) */
.pcard .label { color: var(--ink-sub); }

/* ===========================
   LINE REVEAL
=========================== */
.line-reveal { overflow: hidden; }

.line-reveal .line-inner {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.8s var(--ease-out),
    opacity 0.5s var(--ease-out);
}

.line-reveal.visible .line-inner            { transform: translateY(0); opacity: 1; }
.line-reveal.visible .line-inner:nth-child(2) { transition-delay: 0.1s; }
.line-reveal.visible .line-inner:nth-child(3) { transition-delay: 0.2s; }
.line-reveal.visible .line-inner:nth-child(4) { transition-delay: 0.3s; }

/* ===========================
   SCROLL REVEAL
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

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

.projects-grid .project-card.reveal {
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-spring);
  transform: translateY(36px) scale(0.97);
}

.projects-grid .project-card.reveal.visible {
  transform: translateY(0) scale(1);
}

/* ===========================
   MAGNETIC ELEMENTS
=========================== */
.magnetic {
  display: inline-block;
  transition: transform 0.35s var(--ease-spring);
}

/* ===========================
   UTILITY
=========================== */
.hidden { opacity: 0 !important; }
[id] { scroll-margin-top: var(--sp-4); }  /* 32px */

/* ===========================
   PRINCIPLES / TUMBLE WALL
=========================== */
.principles-section {
  background: transparent;
  padding: var(--sp-10) 0 0;
  position: relative;
  min-height: 770px;
  overflow: hidden;
}

.principles-header {
  padding: 0 var(--sp-5) var(--sp-12) 5vw;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.principles-header .section-title {
  color: var(--ink-base);
}

.principles-header .section-title .line-inner {
  color: var(--ink-base);
}

.tumble-wall-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: default;
  z-index: 1;
}

.tumble-wall-wrap canvas {
  display: block;
  position: absolute;
  inset: 0;
  touch-action: pan-y;
}

@media (max-width: 640px) {
  .principles-section { min-height: 630px; }
  .principles-header { padding-left: var(--sp-3); }
  .constellation-label { left: var(--sp-3); }
}

/* ===========================
   INTRO CURTAIN
=========================== */
#intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: clip-path;
  clip-path: inset(0% 0% 0% 0%);
}

#intro-hello {
  font-family: 'Pacifico', cursive;
  font-size: clamp(72px, 11vw, 180px);
  color: #ffffff;
  user-select: none;
}

/* ===========================
   FX TUNER PANEL
=========================== */
.fx-panel {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: rgba(10,10,13,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  width: 240px;
  font-family: var(--font-body);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  overflow: hidden;
  transition: opacity 0.2s;
}

.fx-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fx-panel-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.fx-panel-toggle {
  font-size: 16px;
  line-height: 1;
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s;
}
.fx-panel-toggle:hover { color: rgba(255,255,255,0.9); }

.fx-panel-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  row-gap: 4px;
  column-gap: 8px;
  cursor: default;
}

.fx-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  grid-column: 1;
  grid-row: 1;
}

.fx-val {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  grid-column: 2;
  grid-row: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 28px;
}

.fx-slider {
  grid-column: 1 / -1;
  grid-row: 2;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.fx-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.fx-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
