/* ==========================================================================
   FORGI.ONE — FINAL DIRECTION: Kyoto Plum (#FF91A4 Salmon Pink)
   Impeccable Hero × Taste Layout × Authentic Stageshow
   ========================================================================== */

:root {
  /* Default Final: Kyoto Plum (Plum Obsidian & #FF91A4 Salmon Pink) */
  --bg-canvas: #110D10;
  --bg-elevated: #1A1418;
  --bg-surface: #231B20;
  --bg-surface-hover: #2D2329;
  --bg-well: #0A0709;
  --bg-topbar: rgba(17, 13, 16, 0.88);

  --ink-primary: #F7F1F3;
  --ink-secondary: #C9B8C0;
  --ink-muted: #96828B;
  --ink-subtle: #78646E;

  --accent: #FF91A4;
  --accent-hover: #FFAAB9;
  --accent-ink: #120D10;
  --accent-soft: rgba(255, 145, 164, 0.14);
  --accent-border: rgba(255, 145, 164, 0.42);

  --secondary-support: #8FC9BA;
  --secondary-support-soft: rgba(143, 201, 186, 0.14);

  --border-hairline: #2E232A;
  --border-strong: #745D6B;
  --shadow-stage: 0 24px 56px -18px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --font-display: 'PP Kyoto', 'PP Editorial New', Georgia, serif;
  --font-sans: 'PP Frama', 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-text: 'PP Frama Text', 'PP Frama', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'PP Frama Text', 'PP Frama', -apple-system, BlinkMacSystemFont, sans-serif;
  --editorial-em-scale: 1.04em;

  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container: 1340px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
}

/* Optional archive preset overrides via ?combo= */
html[data-combo="kyoto-carbon"] {
  --bg-canvas: #121011;
  --bg-elevated: #1A1718;
  --bg-surface: #231F21;
  --bg-surface-hover: #2C272A;
  --bg-well: #0B090A;
  --bg-topbar: rgba(18, 16, 17, 0.88);
  --ink-primary: #F3EEEB;
  --ink-secondary: #B8B0AC;
  --ink-muted: #918884;
  --ink-subtle: #756E6B;
  --secondary-support: #96B3A6;
  --secondary-support-soft: rgba(150, 179, 166, 0.14);
  --border-hairline: #2D282A;
  --border-strong: #574E52;
  --font-display: 'PP Kyoto', 'PP Editorial New', Georgia, serif;
  --font-sans: 'PP Frama', sans-serif;
  --font-text: 'PP Frama Text', 'PP Frama', sans-serif;
  --font-mono: 'PP Frama Text', 'PP Frama', sans-serif;
  --editorial-em-scale: 1.04em;
}

/* Preset 2: PP Right Superfamily + Obsidian Salmon Hairline */
html[data-combo="right-obsidian"] {
  --bg-canvas: #09080A;
  --bg-elevated: #111014;
  --bg-surface: #18161B;
  --bg-surface-hover: #211E25;
  --bg-well: #050406;
  --bg-topbar: rgba(9, 8, 10, 0.88);
  --ink-primary: #F6F3F5;
  --ink-secondary: #B8AFB6;
  --ink-muted: #8C828B;
  --ink-subtle: #6F666E;
  --accent: #FF91A4;
  --accent-hover: #FFAAB9;
  --accent-ink: #120D10;
  --secondary-support: #94C9BE;
  --secondary-support-soft: rgba(148, 201, 190, 0.14);
  --border-hairline: #26222A;
  --border-strong: #6B6271;
  --font-display: 'PP Right Serif', Georgia, serif;
  --font-sans: 'PP Right Grotesk', sans-serif;
  --font-text: 'PP Right Grotesk Text', 'PP Right Grotesk', sans-serif;
  --font-mono: 'PP Right Grotesk Mono', ui-monospace, monospace;
  --editorial-em-scale: 1em;
}

/* Preset 3: Kyoto Plum Obsidian (Matches Default) */
html[data-combo="kyoto-plum"] {
  --bg-canvas: #110D10;
  --bg-elevated: #1A1418;
  --bg-surface: #231B20;
  --bg-surface-hover: #2D2329;
  --bg-well: #0A0709;
  --bg-topbar: rgba(17, 13, 16, 0.88);
  --ink-primary: #F7F1F3;
  --ink-secondary: #C9B8C0;
  --ink-muted: #96828B;
  --ink-subtle: #78646E;
  --accent: #FF91A4;
  --accent-hover: #FFAAB9;
  --accent-ink: #120D10;
  --secondary-support: #8FC9BA;
  --secondary-support-soft: rgba(143, 201, 186, 0.14);
  --border-hairline: #2E232A;
  --border-strong: #745D6B;
  --font-display: 'PP Kyoto', Georgia, serif;
  --font-sans: 'PP Frama', sans-serif;
  --font-text: 'PP Frama Text', 'PP Frama', sans-serif;
  --font-mono: 'PP Frama Text', 'PP Frama', sans-serif;
  --editorial-em-scale: 1.04em;
}

/* Preset 4: Anodized Obsidian & Precision Grotesk (All-Sans Architectural) */
html[data-combo="grotesk-obsidian"] {
  --bg-canvas: #09080A;
  --bg-elevated: #111014;
  --bg-surface: #18161B;
  --bg-surface-hover: #211E25;
  --bg-well: #050406;
  --bg-topbar: rgba(9, 8, 10, 0.88);
  --ink-primary: #F6F3F5;
  --ink-secondary: #B8AFB6;
  --ink-muted: #8C828B;
  --accent: #FF91A4;
  --accent-hover: #FFAAB9;
  --accent-ink: #120D10;
  --secondary-support: #94C9BE;
  --secondary-support-soft: rgba(148, 201, 190, 0.14);
  --border-hairline: #26222A;
  --border-strong: #6B6271;
  --font-display: 'PP Right Grotesk', sans-serif;
  --font-sans: 'PP Right Grotesk', sans-serif;
  --font-text: 'PP Mori', 'PP Right Grotesk Text', sans-serif;
  --font-mono: 'PP Fraktion Mono', ui-monospace, monospace;
  --editorial-em-scale: 1em;
}

/* Preset 5: Carbon Superfamily Frame (PP Right Trio on Matte Charcoal) */
html[data-combo="right-carbon"] {
  --bg-canvas: #121011;
  --bg-elevated: #1A1718;
  --bg-surface: #231F21;
  --bg-surface-hover: #2C272A;
  --bg-well: #0B090A;
  --bg-topbar: rgba(18, 16, 17, 0.88);
  --ink-primary: #F3EEEB;
  --ink-secondary: #B8B0AC;
  --ink-muted: #918884;
  --accent: #FF91A4;
  --accent-hover: #FFAAB9;
  --accent-ink: #120D10;
  --secondary-support: #96B3A6;
  --secondary-support-soft: rgba(150, 179, 166, 0.14);
  --border-hairline: #2D282A;
  --border-strong: #574E52;
  --font-display: 'PP Right Serif', Georgia, serif;
  --font-sans: 'PP Right Grotesk', sans-serif;
  --font-text: 'PP Right Grotesk Text', 'PP Right Grotesk', sans-serif;
  --font-mono: 'PP Right Grotesk Mono', ui-monospace, monospace;
  --editorial-em-scale: 1em;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-size: 16px;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section[id],
div[id] {
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-text);
  line-height: 1.58;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-display); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--ink-primary);
  color: var(--bg-canvas);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.shell {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   TOP UTILITY BAR (Impeccable Precision — No Toggles)
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--bg-topbar);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-strong);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.5rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-subtle);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.back-link:hover {
  color: var(--ink-primary);
  border-color: var(--border-strong);
  background-color: var(--bg-elevated);
}

.brand-stamp {
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-stamp span { color: var(--ink-subtle); }

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-secondary);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink-primary);
  background-color: var(--bg-surface);
}

.nav-link--resume {
  color: var(--accent);
  font-weight: 700;
}

.nav-link--resume:hover {
  background-color: var(--accent-soft);
  color: var(--accent-hover);
}

@media (max-width: 720px) {
  .topbar-nav { gap: 0.15rem; }
  .nav-link:not(.nav-link--resume) { display: none; }
}

/* ==========================================================================
   HERO MASTHEAD (Impeccable Architecture)
   ========================================================================== */
.masthead {
  border-bottom: 1px solid var(--border-strong);
  padding-block: clamp(2.5rem, 5.5vw, 4.75rem) clamp(2.25rem, 4.5vw, 3.75rem);
}

.masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.75rem);
  align-items: end;
}

@media (max-width: 900px) {
  .masthead-grid { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-text);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 1.1rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.masthead-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.35rem, 5.1vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.masthead-title .editorial-em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--editorial-em-scale);
  letter-spacing: -0.015em;
  color: var(--accent);
}

html[data-combo="grotesk-obsidian"] .masthead-title .editorial-em,
html[data-combo="grotesk-obsidian"] .section-title em,
html[data-combo="grotesk-obsidian"] .spotlight-title,
html[data-combo="grotesk-obsidian"] .case-title {
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.03em;
}

html[data-combo="right-obsidian"] .section-title,
html[data-combo="right-obsidian"] .spotlight-title,
html[data-combo="right-obsidian"] .case-title,
html[data-combo="right-carbon"] .section-title,
html[data-combo="right-carbon"] .spotlight-title,
html[data-combo="right-carbon"] .case-title {
  font-weight: 500;
}

.masthead-lead {
  font-size: clamp(1.04rem, 1.45vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 58ch;
  margin: 0;
  text-wrap: pretty;
}

.masthead-ledger {
  border-top: 1px solid var(--border-strong);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ledger-cell {
  padding: 1rem 0.75rem 0.25rem 0;
  border-right: 1px solid var(--border-hairline);
}

.ledger-cell:not(:first-child) { padding-left: 0.95rem; }
.ledger-cell:last-child { border-right: none; padding-right: 0; }

.ledger-value {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  display: block;
}

.ledger-label {
  font-family: var(--font-text);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  display: block;
  margin-top: 0.35rem;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-block {
  padding-block: clamp(3.5rem, 6.5vw, 5.75rem);
  border-bottom: 1px solid var(--border-strong);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

.section-header--single {
  grid-template-columns: 1fr;
}

@media (max-width: 820px) {
  .section-header { grid-template-columns: 1fr; gap: 1rem; }
}

.section-index {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.section-title em { font-style: italic; color: var(--ink-secondary); }

.section-desc {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.98rem;
  max-width: 52ch;
  justify-self: end;
  text-wrap: pretty;
}

@media (max-width: 820px) { .section-desc { justify-self: start; } }

/* ==========================================================================
   7 FULL-FEATURED SPOTLIGHT CARDS (Taste × Authentic Live Stage)
   ========================================================================== */
.flagship-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3.6vw, 2.85rem);
}

.spotlight-card {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-stage);
  transition: border-color 0.3s var(--ease-editorial);
}

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

.spotlight-stage-col {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  background: var(--bg-well);
  color: #F4F4F6;
  min-height: 360px;
}

.spotlight-body {
  grid-column: span 6;
  padding: clamp(1.85rem, 3.3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  border-left: 1px solid var(--border-hairline);
}

.spotlight-card.is-reversed .spotlight-stage-col { order: 2; }
.spotlight-card.is-reversed .spotlight-body {
  order: 1;
  border-left: 0;
  border-right: 1px solid var(--border-hairline);
}

@media (max-width: 980px) {
  .spotlight-stage-col,
  .spotlight-body,
  .spotlight-card.is-reversed .spotlight-stage-col,
  .spotlight-card.is-reversed .spotlight-body {
    grid-column: span 12;
    order: initial;
    border-left: 0;
    border-right: 0;
  }
  .spotlight-body { border-top: 1px solid var(--border-hairline); }
}

/* ==========================================================================
   2 HALF-WIDTH CARDS (FilaMatcher & Paul-i-whirl)
   ========================================================================== */
.half-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 3.6vw, 2.85rem);
}

@media (max-width: 920px) {
  .half-grid { grid-template-columns: 1fr; }
}

.half-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-stage);
  transition: border-color 0.3s var(--ease-editorial);
}

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

.half-card .stage-viewport {
  border-bottom: 1px solid var(--border-hairline);
  min-height: 488px;
  flex: 0 0 auto;
}

.half-card-body {
  padding: clamp(1.65rem, 3vw, 2.35rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.35rem;
  flex: 1;
}

/* Shared Card Metadata, Floating Icon Lockup & Actions */
.release-num {
  font-family: var(--font-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.spotlight-lockup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.spotlight-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

@media (max-width: 480px) {
  .spotlight-lockup {
    flex-wrap: wrap;
    row-gap: 0.65rem;
  }
}

.floating-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 22%;
  flex-shrink: 0;
  overflow: hidden;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 18px 34px -8px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.35s var(--ease-spring);
}

.floating-icon-box.is-round-badge {
  padding: 6px;
  background: #171513;
}

.floating-icon-box.is-round-badge img {
  object-fit: contain;
}

.spotlight-card:hover .floating-icon-box,
.half-card:hover .floating-icon-box {
  transform: translateY(-3px);
}

.floating-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.95rem, 3vw, 2.65rem);
  line-height: 1.04;
  color: var(--ink-primary);
}

.spotlight-tagline {
  margin: 0 0 1.25rem;
  color: var(--ink-secondary);
  font-size: 0.97rem;
  line-height: 1.65;
  max-width: 56ch;
  text-wrap: pretty;
}

.spotlight-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.spec-chip {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  color: var(--ink-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-sm);
}

.spotlight-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.78rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-hairline);
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.live-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ink-primary);
  color: var(--bg-canvas);
  border: 1px solid var(--ink-primary);
  font-family: var(--font-text);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.48rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.live-link-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.channel-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  color: var(--ink-secondary);
  border: 1px solid var(--border-hairline);
  font-family: var(--font-text);
  font-size: 0.71rem;
  font-weight: 700;
  padding: 0.48rem 0.78rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.channel-link-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.inspect-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--ink-primary);
  border: 1px solid var(--border-strong);
  font-family: var(--font-text);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.48rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.inspect-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.release-updated {
  font-family: var(--font-text);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

/* ==========================================================================
   STAGE VIEWPORT (Dynamic Space-Filling Live Stage — Consistent Card Inset)
   ========================================================================== */
.stage-viewport {
  --stage-inset: clamp(48px, 6vw, 66px);
  position: relative;
  flex: 1;
  padding: var(--stage-inset);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.045), transparent 65%),
    #0D0D10;
  color: #F4F4F6;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  overflow: hidden;
}

.stage-chrome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
  z-index: 4;
}

.chrome-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.chrome-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.stage-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #D4D4D8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stage-badge .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
}

.stage-url-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #7F7970;
  letter-spacing: 0.04em;
}

.stage-pane {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  min-height: 0;
}

/* ==========================================================================
   STAGE 1: OUT OF THE BIN (Dark Charcoal + Signature Lime-Green Sync Bar)
   ========================================================================== */
.ootb-panel {
  flex: 1;
  background: #101211;
  border: 1px solid rgba(198, 246, 77, 0.24);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.ootb-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ootb-step {
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9CA3AF;
  background: rgba(255, 255, 255, 0.03);
}

.ootb-step.active {
  border-color: rgba(198, 246, 77, 0.45);
  background: rgba(198, 246, 77, 0.12);
  color: #E5FF9E;
}

.ootb-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.ootb-set-id { font-family: var(--font-mono); font-size: 10px; color: #C6F64D; letter-spacing: 0.05em; }
.ootb-set-name { font-size: 15px; font-weight: 700; color: #F4F4F6; margin-top: 2px; }

.ootb-set-tabs { display: inline-flex; gap: 4px; background: rgba(255,255,255,0.04); padding: 3px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); }
.ootb-tab { border: none; background: transparent; color: #9CA3AF; font-family: var(--font-mono); font-size: 10px; padding: 4px 8px; border-radius: 6px; }
.ootb-tab.active { background: rgba(198, 246, 77, 0.16); color: #E5FF9E; }

.ootb-parts-list { display: flex; flex-direction: column; gap: 6px; }
.ootb-part-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
  color: #E4E4E7;
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: left;
  transition: all 0.2s ease;
}
.ootb-part-row:hover { border-color: rgba(198, 246, 77, 0.45); }
.ootb-part-row.synced { border-color: rgba(198, 246, 77, 0.32); background: rgba(198, 246, 77, 0.07); }
.ootb-sync-pill {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #A1A1AA;
  white-space: nowrap;
}
.ootb-part-row.synced .ootb-sync-pill {
  border-color: rgba(198, 246, 77, 0.45);
  color: #C6F64D;
  background: rgba(198, 246, 77, 0.1);
}

.ootb-sync-box {
  background: #0A0C0B;
  border: 1px solid rgba(198, 246, 77, 0.48);
  border-radius: 10px;
  padding: 10px 12px;
}
.ootb-sync-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #F4F4F6;
  margin-bottom: 7px;
}
.ootb-progress-track { width: 100%; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.ootb-progress-fill { height: 100%; border-radius: 999px; background: #C6F64D; transition: width 0.35s var(--ease-spring); }

/* ==========================================================================
   STAGE 2: CONDITIONER (Pregrading by Sideboard — Electric Blue + Emerald)
   ========================================================================== */
.cond-panel {
  flex: 1;
  background: #07080A;
  border: 1px solid rgba(0, 102, 255, 0.32);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.cond-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.cond-card-title { font-size: 13px; font-weight: 700; color: #F4F4F6; }
.cond-gem-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #34D399;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 9px;
  border-radius: 6px;
}

.cond-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 16px;
  align-items: center;
}
@media (max-width: 520px) { .cond-stage { grid-template-columns: 1fr; } }

.cond-card-frame {
  position: relative;
  width: 124px;
  height: 172px;
  margin: 0 auto;
  border-radius: 10px;
  background: linear-gradient(145deg, #1E2433 0%, #10131B 100%);
  border: 1px solid rgba(0, 102, 255, 0.4);
  padding: 7px;
  overflow: hidden;
}

.cond-card-inner {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 35%, rgba(16, 185, 129, 0.2), transparent 65%), #0D1119;
  border: 1px solid rgba(16, 185, 129, 0.38);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  transition: filter 0.3s ease;
}

.cond-card-art {
  flex: 1;
  margin: 5px 0;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.24), rgba(16, 185, 129, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cond-crosshair-h { position: absolute; left: 0; right: 0; top: 50%; height: 1px; border-top: 1px dashed rgba(16, 185, 129, 0.7); z-index: 4; }
.cond-crosshair-v { position: absolute; top: 0; bottom: 0; left: 50.8%; width: 1px; border-left: 1px dashed rgba(16, 185, 129, 0.7); z-index: 4; transition: left 0.3s var(--ease-spring); }
.cond-scanline {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #0066FF, #10B981, #0066FF, transparent);
  box-shadow: 0 0 14px 2px rgba(16, 185, 129, 0.55);
  z-index: 5;
  animation: opticalSweep 3.2s ease-in-out infinite;
}
@keyframes opticalSweep { 0% { top: 8%; opacity: 0.3; } 50% { top: 90%; opacity: 1; } 100% { top: 8%; opacity: 0.3; } }

.cond-grid-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cond-box { background: #101318; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 8px 10px; }
.cond-box.advice { border-color: rgba(0, 102, 255, 0.45); background: rgba(0, 102, 255, 0.08); }
.cond-box-label { font-family: var(--font-mono); font-size: 9px; color: #94A3B8; text-transform: uppercase; }
.cond-box-val { font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; color: #34D399; margin-top: 2px; }
.cond-controls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cond-mode-btn { font-family: var(--font-mono); font-size: 10px; padding: 4px 9px; border-radius: 7px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.03); color: #CBD5E1; }
.cond-mode-btn.active { background: #0066FF; border-color: #0066FF; color: #FFFFFF; }

/* ==========================================================================
   STAGE 3: WHATCOMP (Dynamic Island Pill + Whatnot Live Stream Beneath)
   ========================================================================== */
.wc-backdrop-stage {
  flex: 1;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(155deg, #2B174D 0%, #592652 55%, #1D1528 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.wc-dynamic-island {
  background: #07080B;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 9px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.wc-live-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-text);
  font-size: 9.5px;
  font-weight: 700;
  color: #D4D4D8;
}
.wc-stop-tag {
  background: rgba(239, 68, 68, 0.18);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.45);
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 8.5px;
}

.wc-card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wc-card-title { font-size: 13.5px; font-weight: 700; color: #FFFFFF; line-height: 1.15; }
.wc-card-set { font-family: var(--font-text); font-size: 9.5px; font-weight: 600; color: #A1A1AA; }
.wc-main-price { font-family: var(--font-text); font-size: 18px; font-weight: 700; color: #22C55E; font-variant-numeric: tabular-nums; }

.wc-tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.wc-tier-btn {
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 3px;
  text-align: center;
  font-family: var(--font-text);
  font-size: 9.5px;
  font-weight: 700;
  color: #D4D4D8;
}
.wc-tier-btn.active { border-color: #22C55E; background: rgba(34, 197, 94, 0.16); color: #86EFAC; }
.wc-tier-code { display: block; font-size: 7.5px; opacity: 0.72; }

.wc-stream-scene {
  flex: 1;
  position: relative;
  border-radius: 12px;
  padding: 10px 12px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 200, 110, 0.16), transparent 58%),
    linear-gradient(160deg, #1A1426 0%, #100C17 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.wc-stream-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.wc-streamer-pill {
  font-size: 10px;
  font-weight: 700;
  color: #F4F4F6;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
}
.wc-viewer-pill {
  font-size: 9px;
  font-weight: 700;
  color: #FFF;
  background: #E11D48;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.wc-stream-table {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding-inline: 4px;
}
.wc-stream-card {
  position: relative;
  width: 66px;
  aspect-ratio: 5 / 7;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(145deg, #312E81 0%, #1E1B4B 48%, #B45309 100%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.65);
  transform: rotate(-4deg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 5px;
}
.wc-stream-card-holo {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.28) 48%, transparent 72%);
  pointer-events: none;
}
.wc-stream-card-label {
  position: relative;
  z-index: 1;
  font-size: 7.5px;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  line-height: 1.1;
}

.wc-stream-chat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: end;
}
.wc-chat-line {
  font-size: 9.5px;
  color: #E4E4E7;
  background: rgba(0, 0, 0, 0.42);
  padding: 3px 8px;
  border-radius: 7px;
  line-height: 1.25;
}
.wc-chat-line span { color: #FDE047; font-weight: 700; margin-right: 4px; }

.wc-stream-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.wc-selector-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.wc-card-chip { font-family: var(--font-text); font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); background: rgba(16,17,22,0.55); color: #FFF; }
.wc-card-chip.active { background: #FFFFFF; color: #101116; border-color: #FFFFFF; }
.wc-bid-pill {
  background: #FACC15;
  color: #18181B;
  font-size: 9.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ==========================================================================
   STAGE 4: RIZZO (Warm Natural Cream Paper + Risograph Hot Pink & Teal Wipe)
   ========================================================================== */
.rizzo-paper-stage {
  flex: 1;
  background: #F4EFE4;
  color: #181715;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
}

.rizzo-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rizzo-wipe-wrap { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rizzo-wipe-canvas { position: relative; flex: 1; min-height: 220px; border-radius: 10px; overflow: hidden; border: 1.5px solid #181715; background: #141418; user-select: none; }
.rizzo-layer-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rizzo-layer-riso { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(0 0 0 48%); overflow: hidden; background: #F5EFE6; }
.rizzo-layer-riso img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.55) brightness(1.04); mix-blend-mode: multiply; }
.rizzo-ink-tint { position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0.72; transition: background 0.3s ease; background: linear-gradient(135deg, #FF2A9D 0%, #00838A 100%); }
.rizzo-halftone { position: absolute; inset: 0; background-image: radial-gradient(rgba(9, 9, 11, 0.36) 1px, transparent 1px); background-size: 4px 4px; pointer-events: none; opacity: 0.55; }
.rizzo-divider-line { position: absolute; top: 0; bottom: 0; left: 48%; width: 2px; background: #FFFFFF; box-shadow: 0 0 10px rgba(0,0,0,0.65); z-index: 4; pointer-events: none; }
.rizzo-tag-left, .rizzo-tag-right { position: absolute; top: 8px; z-index: 5; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 3px; }
.rizzo-tag-left { left: 8px; background: #FFFFFF; color: #181715; border: 1px solid #181715; }
.rizzo-tag-right { right: 8px; background: #FF2A9D; color: #FFFFFF; border: 1px solid #181715; }
.rizzo-range { width: 100%; accent-color: #FF2A9D; cursor: ew-resize; }
.rizzo-drum-row { display: flex; flex-wrap: wrap; gap: 5px; }
.rizzo-drum-btn { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 9.5px; padding: 4px 8px; border-radius: 4px; border: 1px solid rgba(24,23,21,0.25); background: #FFFDF8; color: #181715; }
.rizzo-drum-btn.active { background: #181715; color: #F4EFE4; border-color: #181715; }
.drum-dot { width: 7px; height: 7px; border-radius: 50%; }
.rizzo-phone-col { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px; background: #ECE5D6; border: 1px solid rgba(24,23,21,0.18); border-radius: 10px; padding: 6px; }
.rizzo-phone-col img.phone-shot { width: 100%; flex: 1; min-height: 170px; object-fit: contain; border-radius: 6px; }
.rizzo-app-chip { font-family: var(--font-mono); font-size: 9px; color: #3F3D38; }

/* ==========================================================================
   STAGE 5: ROCSTOCK (Authentic Crimson Header + Cream Multi-Day Restock Grid)
   ========================================================================== */
.roc-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #F4F2ED;
  color: #18181B;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.roc-crimson-bar {
  background: #C40C24;
  color: #FFFFFF;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.roc-bar-left { display: flex; align-items: center; gap: 8px; }
.roc-bar-icon { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; border: 1px solid rgba(255,255,255,0.28); }
.roc-week-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.24);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.roc-drops-tag { background: #FACC15; color: #18181B; font-size: 8.5px; padding: 1px 5px; border-radius: 999px; font-weight: 800; }
.roc-log-btn {
  background: #FFFFFF;
  color: #C40C24;
  border: none;
  border-radius: 999px;
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
}
.roc-log-btn:hover { background: #FEE2E2; }

.roc-drop-banner {
  background: #FFFDF9;
  border-bottom: 1px solid rgba(20, 20, 19, 0.12);
  padding: 7px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
}
.roc-tomorrow-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  background: #FFEDD5;
  color: #EA580C;
  padding: 2px 7px;
  border-radius: 999px;
}

.roc-filter-strip {
  padding: 8px 14px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  background: #ECE9E1;
  border-bottom: 1px solid rgba(20, 20, 19, 0.1);
}
.roc-filter-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(20, 20, 19, 0.16);
  background: #FFFFFF;
  color: #3F3D38;
}
.roc-filter-btn.active {
  background: #C40C24;
  border-color: #C40C24;
  color: #FFFFFF;
}

.roc-cal-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 44px repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto 1fr 1fr;
  font-size: 11px;
}
.roc-cal-head {
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid rgba(20, 20, 19, 0.12);
  border-right: 1px solid rgba(20, 20, 19, 0.08);
  color: #52525B;
}
.roc-cal-head.is-today { background: rgba(196, 12, 36, 0.09); color: #C40C24; }
.roc-time-cell {
  padding: 9px 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #71717A;
  text-align: right;
  border-bottom: 1px solid rgba(20, 20, 19, 0.07);
  border-right: 1px solid rgba(20, 20, 19, 0.1);
}
.roc-slot-cell {
  padding: 5px;
  border-bottom: 1px solid rgba(20, 20, 19, 0.07);
  border-right: 1px solid rgba(20, 20, 19, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 52px;
}
.roc-event-chip {
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 700;
  color: #09090B;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.roc-event-chip.is-green { background: #6EE755; }
.roc-event-chip.is-blue { background: #38BDF8; }
.roc-event-sub {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
}

/* ==========================================================================
   STAGE 6: ROCLUG (Authentic Cobalt Blue #0055A5 + White Event Cards)
   ========================================================================== */
.roclug-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #F4F6FA;
  color: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.roclug-nav-bar {
  background: #FFFFFF;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.roclug-brand-lockup { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #0055A5; }
.roclug-brand-lockup img { width: 22px; height: 22px; border-radius: 5px; }
.roclug-tabs { display: inline-flex; gap: 3px; background: #E2E8F0; padding: 3px; border-radius: 999px; }
.roclug-tab { border: none; background: transparent; color: #475569; font-family: var(--font-text); font-size: 10.5px; padding: 4px 9px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.roclug-tab.active { background: #0055A5; color: #FFFFFF; }

.roclug-hero-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 10px;
  padding: 12px;
  align-items: stretch;
}
@media (max-width: 540px) { .roclug-hero-split { grid-template-columns: 1fr; } }

.roclug-blue-card {
  background: #0055A5;
  color: #FFFFFF;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.roclug-pill {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-text);
  font-size: 10.5px;
  font-weight: 700;
  background: #FFFFFF;
  color: #0055A5;
  padding: 4px 10px;
  border-radius: 999px;
}
.roclug-blue-title { margin: 0; font-size: clamp(20px, 2vw, 24px); font-weight: 700; line-height: 1.12; }
.roclug-blue-sub { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.9); line-height: 1.48; }

.roclug-events-col { display: flex; flex-direction: column; gap: 8px; }
.roclug-photo-card {
  position: relative;
  flex: 1;
  min-height: 104px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
}
.roclug-photo-card img { width: 100%; height: 100%; object-fit: cover; }
.roclug-photo-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 6px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
}
.roclug-event-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  padding: 11px 13px;
}
.roclug-event-tag { font-family: var(--font-text); font-size: 10px; font-weight: 700; color: #0055A5; text-transform: uppercase; letter-spacing: 0.04em; }
.roclug-event-name { font-size: 14.5px; font-weight: 700; margin: 3px 0; color: #0F172A; line-height: 1.2; }
.roclug-event-meta { font-family: var(--font-text); font-size: 11px; color: #475569; line-height: 1.35; }

/* ==========================================================================
   STAGE 7: eSCRAPER (Warm Ivory Collector Checklist + Retro e-Reader Cards)
   ========================================================================== */
.escraper-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #FBF8F1;
  color: #1C1917;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.es-topbar {
  background: #F5F0E4;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(28, 25, 23, 0.1);
  flex-wrap: wrap;
}
.es-count { font-weight: 800; font-size: 14px; }
.es-floor-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: #FFFFFF;
  border: 1px solid rgba(28, 25, 23, 0.14);
  padding: 3px 9px;
  border-radius: 8px;
  color: #15803D;
}
.es-filters {
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
}
.es-tab-group { display: inline-flex; gap: 4px; }
.es-tab { border: 1px solid rgba(28,25,23,0.14); background: #FFFFFF; color: #57534E; font-family: var(--font-mono); font-size: 9.5px; padding: 3px 8px; border-radius: 999px; }
.es-tab.active { background: #1C1917; color: #FBF8F1; border-color: #1C1917; }
.es-sources { display: inline-flex; gap: 6px; font-family: var(--font-mono); font-size: 9px; color: #57534E; }
.es-source-dot { display: inline-flex; align-items: center; gap: 4px; }
.es-source-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #16A34A; }

.es-card-grid {
  position: relative;
  flex: 1;
  max-height: 268px;
  overflow: hidden;
  padding: 12px 14px 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}
.es-card-grid::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: linear-gradient(to bottom, rgba(251, 248, 241, 0), rgba(251, 248, 241, 0.94));
  pointer-events: none;
}
@media (max-width: 560px) { .es-card-grid { grid-template-columns: repeat(2, 1fr); } }

.es-card-tile {
  background: #FFFFFF;
  border: 1px solid rgba(28, 25, 23, 0.12);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.es-card-tile:hover { transform: translateY(-2px); border-color: #D97706; }
.es-card-art {
  width: 100%;
  aspect-ratio: 5 / 7;
  flex: 0 0 auto;
  border-radius: 6px;
  border: 2px solid #FACC15;
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  color: #1C1917;
  font-weight: 700;
  font-size: 9.5px;
}
.es-card-art.unowned { filter: grayscale(1); opacity: 0.72; border-color: #D6D3D1; }
.es-check-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #16A34A;
  color: #FFFFFF;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.es-card-art.unowned .es-check-badge { background: #44403C; }
.es-card-name { font-size: 11px; font-weight: 700; color: #1C1917; line-height: 1.15; }
.es-card-set { font-family: var(--font-mono); font-size: 8.5px; color: #78716C; }
.es-card-price { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #15803D; }

/* ==========================================================================
   HALF-WIDTH CARD STAGES: FILAMATCHER & PAUL-I-WHIRL
   ========================================================================== */
.fm-panel {
  flex: 1;
  background: #0F172A;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.fm-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-toggle-group { display: inline-flex; gap: 4px; background: rgba(255,255,255,0.06); padding: 3px; border-radius: 999px; }
.fm-toggle-btn { border: none; background: transparent; color: #94A3B8; font-family: var(--font-mono); font-size: 10px; padding: 4px 10px; border-radius: 999px; }
.fm-toggle-btn.active { background: #3B82F6; color: #FFFFFF; }
.fm-subject-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fm-target-lockup { display: flex; align-items: center; gap: 12px; }
.fm-sprite-wrap {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}
.fm-sprite-wrap img { width: 100%; height: 100%; object-fit: contain; }
.fm-subject-title { font-size: 16px; font-weight: 700; color: #F8FAFC; }
.fm-swatches { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: stretch; }
.fm-swatch-card {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fm-color-chip { flex: 1; min-height: 82px; border-radius: 7px; margin-bottom: 9px; border: 1px solid rgba(255,255,255,0.2); }
.fm-spool-name { font-size: 10.5px; font-weight: 700; color: #F1F5F9; line-height: 1.2; }
.fm-delta { font-family: var(--font-mono); font-size: 9.5px; color: #93C5FD; margin-top: 3px; }

.pw-panel {
  flex: 1;
  background: #23251E;
  border: 1px solid rgba(217, 232, 92, 0.28);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.pw-set-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0 2px;
}
.pw-set-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}
.pw-set-sub {
  font-size: 17px;
  font-weight: 700;
  color: #F4F4EE;
  letter-spacing: -0.01em;
}
.pw-ev-box {
  background: #191B15;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.pw-ev-label { font-family: var(--font-mono); font-size: 9.5px; color: #D4D4C8; }
.pw-ev-val { font-family: var(--font-mono); font-size: 26px; font-weight: 800; color: #F5F7A3; margin: 2px 0; }
.pw-verdict-btn {
  background: #B8C456;
  color: #161812;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
}
.pw-cards-list { display: flex; flex-direction: column; gap: 5px; }
.pw-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  color: #F4F4EE;
}
.pw-card-row.is-owned { opacity: 0.45; text-decoration: line-through; }

/* ==========================================================================
   SECTION 2: PRODUCT DESIGN WORK (Taste Retrospective + Stageshow Controls)
   ========================================================================== */
.archive-list { display: flex; flex-direction: column; gap: clamp(3rem, 5.5vw, 4.75rem); }

.case-card {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  padding-bottom: clamp(3rem, 5vw, 4.25rem);
  border-bottom: 1px solid var(--border-hairline);
}

.case-card:last-child { padding-bottom: 0; border-bottom: 0; }

.case-media-wrap {
  grid-column: span 7;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0A0908;
  border: 1px solid var(--border-hairline);
  aspect-ratio: 16 / 10;
}

.case-content {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

@media (max-width: 960px) {
  .case-media-wrap,
  .case-content { grid-column: span 12; }
}

.case-media-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(85%) contrast(1.04) brightness(0.92);
  transition: filter 0.85s var(--ease-editorial), transform 1.1s var(--ease-editorial);
}

.case-card:hover .case-media-el {
  filter: grayscale(0%) contrast(1) brightness(1);
  transform: scale(1.02);
}

.case-media-toggle {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(8px);
  color: #F4F4F6;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.case-gallery-bar {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 4;
  display: inline-flex;
  gap: 5px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.case-gallery-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #D4D4D8;
}

.case-gallery-pill.active {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.case-meta { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-text); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.case-company { color: var(--ink-subtle); }
.case-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.05; }
.case-summary { margin: 0; color: var(--ink-secondary); font-size: 0.98rem; line-height: 1.68; }
.case-impact-list { margin: 0; padding: 0 0 0 1.1rem; color: var(--ink-secondary); font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; }
.case-impact-list li::marker { color: var(--accent); }
.case-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.2rem; }
.impact-tag { font-family: var(--font-mono); font-size: 0.69rem; color: var(--ink-primary); background: var(--bg-elevated); border: 1px solid var(--border-hairline); padding: 0.34rem 0.65rem; border-radius: 999px; }
.case-actions { margin-top: 0.25rem; }

/* ==========================================================================
   SECTION 3: ABOUT ME, TOOLBOX, MODAL & FOOTER
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.35fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.portrait-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-hairline); background: var(--bg-elevated); }
.portrait-frame img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(15%) contrast(1.04); transition: filter 0.6s ease; }
.portrait-frame:hover img { filter: grayscale(0%); }
.portrait-caption { display: flex; justify-content: space-between; padding: 0.9rem 1.15rem; font-family: var(--font-text); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-subtle); border-top: 1px solid var(--border-hairline); }

.about-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-bottom: 2.25rem; }
@media (max-width: 640px) { .about-columns { grid-template-columns: 1fr; } }
.about-subhead { margin: 0 0 0.85rem; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.about-copy { margin: 0; color: var(--ink-secondary); font-size: 0.95rem; line-height: 1.7; }
.expertise-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.expertise-list li { font-size: 0.84rem; color: var(--ink-primary); background: var(--bg-elevated); border: 1px solid var(--border-hairline); padding: 0.35rem 0.7rem; border-radius: var(--radius-sm); }

.toolbox-panel { background: var(--bg-elevated); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); padding: 1.5rem; }
.toolbox-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tool-chip { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-primary); background: var(--bg-surface); border: 1px solid var(--border-hairline); padding: 0.42rem 0.78rem; border-radius: var(--radius-sm); transition: border-color 0.2s ease, color 0.2s ease; }
.tool-chip:hover { border-color: var(--accent); color: var(--accent); }

.modal-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(10, 9, 8, 0.82); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.modal-backdrop.is-open { display: flex; }
.modal-dialog { width: min(780px, 100%); max-height: 88vh; overflow-y: auto; background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); position: relative; }
.modal-close { position: sticky; top: 0; float: right; z-index: 4; background: var(--bg-surface); color: var(--ink-primary); border: 1px solid var(--border-hairline); font-family: var(--font-mono); font-size: 0.74rem; padding: 0.4rem 0.75rem; border-radius: var(--radius-sm); }
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-header-row { display: flex; align-items: center; gap: 1.15rem; margin-bottom: 1rem; }
.modal-icon { width: 60px; height: 60px; border-radius: 22%; object-fit: cover; flex-shrink: 0; background: #1B1916; border: 1px solid rgba(255, 255, 255, 0.14); }
.modal-icon.is-round-badge { padding: 6px; object-fit: contain; }
.modal-media { margin: 1.25rem 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-hairline); background: #090807; }
.modal-media img, .modal-media video { width: 100%; max-height: 400px; object-fit: cover; object-position: top center; display: block; }

.site-footer { padding: 3.25rem 0 3.75rem; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.footer-link { font-family: var(--font-text); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-secondary); text-decoration: none; background: transparent; border: 0; padding: 0; transition: color 0.2s ease; }
.footer-link:hover { color: var(--accent); }
.footer-copy { font-family: var(--font-text); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-subtle); }

@media (prefers-reduced-motion: reduce) {
  .cond-scanline { animation: none; }
  .case-media-el, .floating-icon-box { transition: none; }
}
