/* Design tokens from Figma */
:root {
  --bg-dark: #282828;
  --accent: #b5ffe1;
  --text-white: #fefefe;
  --text-muted: #868b93;
  --card-bg: #f9fbfc;
  --input-bg: #f7f7f7;
  --input-border: #ededed;
  --text-dark: #252525;
  --text-dark-secondary: #454545;
  --right-bg: #1e1e1e;
  --font-mono: "JetBrains Mono", monospace;
  --font-sans: "Source Sans 3", system-ui, sans-serif;

  /* Per-project theme (defaults = original dark column) */
  --column-bg: #1a1a1a;
  --column-headline: #fefefe;
  --context-label: rgba(105, 105, 105, 1);
  --column-tag-fg: rgba(255, 255, 255, 1);
  --column-tag-border: rgba(255, 255, 255, 1);
  --column-control-bg: rgba(255, 255, 255, 0.08);
  --column-control-fg: var(--text-muted);
  --column-control-hover-bg: rgba(255, 255, 255, 0.14);
  --column-control-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  --embed-chrome-bg: rgba(17, 17, 17, 0.74);
  --embed-chrome-fg: #fefefe;
  --embed-chrome-border: rgba(255, 255, 255, 0.28);
  --video-card-bg: #0f0f0f;
  --pill-positive-bg: rgba(181, 255, 225, 0.12);
  --pill-positive-fg: #3ddc84;
  --pill-negative-bg: rgba(255, 107, 107, 0.12);
  --pill-negative-fg: #ff6b6b;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.layout {
  display: flex;
  height: 100vh;
  min-height: 100vh;
  width: 100%;
  /* max-width: 1280px; */
  margin: 0 auto;
  overflow: hidden;
}

/* Collapse toggles */
.collapse-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.collapse-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--accent);
}

.left-column .collapse-btn {
  background: var(--column-control-bg);
  color: var(--column-control-fg);
}
.left-column .collapse-btn:hover {
  background: var(--column-control-hover-bg);
  color: var(--accent);
}
.collapse-btn--nav {
  margin: 8px 8px 8px auto;
  align-self: flex-end;
}
.collapse-btn--column {
  position: absolute;
  top: 22px;
  right: 0;
  transform: translateX(50%);
  z-index: 10;
  box-shadow: var(--column-control-shadow);
}
body.nav-collapsed .left-nav .left-nav-brand,
body.nav-collapsed .left-nav .left-nav-links {
  flex: 0 0 0;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  margin: 0;
}
body.nav-collapsed .left-nav {
  flex: 0 0 0;
  min-width: 0;
  overflow: hidden;
  border-right: 0;
  padding: 0;
  gap: 0;
}
body.nav-collapsed .left-nav .collapse-btn--nav {
  margin: 8px auto;
  align-self: center;
}
body.nav-collapsed .left-nav .collapse-btn--nav .collapse-btn-label--expand {
  display: inline;
}
body.nav-collapsed .left-nav .collapse-btn--nav .collapse-btn-label--collapse {
  display: none;
}
.collapse-btn-label--expand {
  display: none;
}
.collapse-btn-label--collapse {
  display: inline;
}
body.column-collapsed .left-column .left-inner {
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  width: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  position: absolute;
}
body.column-collapsed .left-column {
  flex: 0 0 48px;
  min-width: 48px;
}
body.column-collapsed .left-column .collapse-btn--column .collapse-btn-label--expand {
  display: inline;
}
body.column-collapsed .left-column .collapse-btn--column .collapse-btn-label--collapse {
  display: none;
}
body.column-collapsed .left-column .collapse-btn--column {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}
.left-column {
  transition: flex-basis 0.2s ease, min-width 0.2s ease, background-color 0.45s ease;
}
.left-nav-brand,
.left-nav-links,
.left-inner {
  transition: opacity 0.2s ease;
}

/* Left nav (192px) */
.left-nav {
  transition: flex-basis 0.2s ease, min-width 0.2s ease;
  flex: 0 0 192px;
  min-width: 192px;
  height: 100vh;
  background-color: rgba(18, 18, 18, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 48px 24px 64px;
  box-sizing: border-box;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.left-nav:focus,
.left-column:focus,
.right-column:focus {
  outline: none;
}

.left-nav-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.left-nav-links {
  display: block;
  min-width: 0;
}

.wasd-dock {
  margin-top: auto;
  position: sticky;
  bottom: 0;
  background: rgba(18, 18, 18, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 14px 16px;
}

.wasd-grid {
  display: grid;
  grid-template-columns: repeat(3, 24px);
  grid-template-rows: repeat(2, 24px);
  gap: 6px;
  justify-content: center;
}

.wasd-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 4px;
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.06);
}

.wasd-key--w {
  grid-column: 2;
  grid-row: 1;
}

.wasd-key--a {
  grid-column: 1;
  grid-row: 2;
}

.wasd-key--s {
  grid-column: 2;
  grid-row: 2;
}

.wasd-key--d {
  grid-column: 3;
  grid-row: 2;
}

.wasd-hint {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-dark-secondary);
}

body.nav-collapsed .wasd-dock {
  display: none;
}

.nav-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text-white);
  margin: 0;
}

.nav-title {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-muted);
  margin: 0;
}

.nav-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-list .nav-list-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.35;
  color: #686c73;
  text-decoration: none;
  display: block;
  border-left: 2px solid #696969;
  padding: 0 0 0 10px;
}

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

.nav-link--active {
  color: var(--text-white);
  font-weight: 700;
  border-left-color: var(--accent);
  border-bottom: none;
  width: 100%;
}

/* Left column (374px) */
.left-column {
  position: relative;
  flex: 0 0 374px;
  min-width: 374px;
  height: 100vh;
  background-color: var(--column-bg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.left-column::-webkit-scrollbar {
  display: none;
}

.left-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 64px 48px;
  max-width: 374px;
}

.headline {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  color: var(--column-headline);
  margin: 0;
  transition: color 0.35s ease;
}

.block {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.context-block {
  gap: 40px;
}

.context-intro {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  line-height: 22px;
  color: var(--accent);
  margin: 0;
}

.context-intro .muted {
  color: var(--text-muted);
}

.context-intro .accent {
  color: var(--context-label);
}

.impact-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background: unset;
  color: var(--column-tag-fg);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid var(--column-tag-border);
  border-radius: 4px;
  width: fit-content;
}

/* Animated impact bars */
.impact-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ib-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ib-label {
  flex: 0 0 62px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ib-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--pill-positive-bg);
  color: var(--pill-positive-fg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1;
}

.ib-pill--red {
  background: var(--pill-negative-bg);
  color: var(--pill-negative-fg);
}

.problem-text,
.decision-text {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-muted);
  margin: 0;
}

.problem-text p,
.decision-text p {
  margin: 0 0 0.5em;
}

.problem-text .accent,
.decision-text .accent {
  color: var(--accent);
  font-weight: 700;
}

.body-text {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-muted);
  margin: 0;
  transition: color 0.35s ease;
}

.cta-block {
  gap: 32px;
}

.cta-headline {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: var(--column-headline);
  margin: 0;
  transition: color 0.35s ease;
}

.cta-row {
  display: flex;
  gap: 32px;
  align-items: center;
}

.cta-image {
  width: 88px;
  height: 88px;
  min-width: 88px;
  background: var(--text-muted);
  border-radius: 8px;
  opacity: 0.6;
}

.cta-caption {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.impact-footer {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-muted);
}

.impact-footer .accent {
  color: var(--accent);
  font-weight: 700;
}

.impact-footer p {
  margin: 0 0 0.25em;
}

/* Right column */
.right-column {
  flex: 1;
  height: 100vh;
  background: var(--right-bg);
  padding: 64px 48px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: background-color 0.45s ease;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

/* Order Summary card */
.order-summary-card {
  width: 188px;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.card-sticky-nav {
  position: relative;
  height: 36px;
  flex-shrink: 0;
}

.card-nav-blur {
  position: absolute;
  inset: 0;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(
    181deg,
    rgba(255, 255, 255, 0.32) 34%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(6px);
}

.card-nav-back {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background: var(--input-bg);
  border-radius: 8px 0 0 0;
}

.card-nav-add {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-dark-secondary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-body {
  padding: 8px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-dark);
  text-align: center;
  margin: 0 auto;
}

.input-list {
  display: flex;
  flex-direction: column;
  background: var(--input-bg);
}

.input-row {
  display: flex;
  align-items: stretch;
  padding: 2px 8px;
  background: var(--input-bg);
}

.input-content {
  flex: 1;
  min-width: 0;
  padding: 8px 4px 8px 8px;
  background: white;
  border-bottom: 0.5px solid var(--input-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.input-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 8px;
  line-height: 12px;
  color: var(--text-dark);
}

.input-placeholder {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 10px;
  line-height: 12px;
  color: var(--text-dark-secondary);
}

.input-add {
  flex-shrink: 0;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-dark-secondary);
  font-size: 14px;
  cursor: pointer;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  margin-top: auto;
}

.btn {
  height: 28px;
  padding: 0 12px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary {
  background: var(--input-border);
  color: var(--text-dark);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}

/* Embeds — scaled-down approach: render at native size, CSS-scale to fit */
.right-column--embed {
  position: relative;
  padding: 0;
}

.embed-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.embed-wrapper .embed-scaler {
  flex-shrink: 0;
  transform-origin: center center;
  border-radius: 24px;
  overflow: hidden;
}

.embed-wrapper .embed-scaler.fp-phone-chrome {
  border-radius: 32px;
}

/* Portrait mobile aspect — black stroke lives on theme layer (portfolio-v2) */
.embed-wrapper .embed-scaler.embed-scaler--mobile-frame {
  border-radius: 24px;
}

.embed-wrapper .embed-scaler img {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  background: #fff;
  object-fit: contain;
  object-position: top center;
}

.embed-wrapper .embed-scaler img[hidden] {
  display: none !important;
  pointer-events: none;
}

.embed-wrapper--phone .embed-scaler img {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.embed-standalone-link {
  position: absolute;
  left: 16px;
  bottom: 16px;
  border: 1px solid var(--embed-chrome-border);
  border-radius: 8px;
  background: var(--embed-chrome-bg);
  color: var(--embed-chrome-fg);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  padding: 10px 14px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.embed-standalone-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Standalone CTA in left column (moved from embed panel) */
.context-block .embed-standalone-link {
  position: static;
  left: auto;
  bottom: auto;
  z-index: auto;
  align-self: flex-start;
}

.right-column--videos {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 18px;
}

.video-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--right-bg);
  padding: 8px 0 12px;
}

.video-filter {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(20, 20, 20, 0.34);
  color: var(--text-white);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.video-filter--active {
  border-color: var(--accent);
  color: #0d0d0d;
  background: var(--accent);
}

.video-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1100px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-card {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--video-card-bg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.creative-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  vertical-align: middle;
}

/* One card per folder: click to expand and see all work from that project */
.creative-group {
  width: 100%;
  border-radius: 10px;
  overflow: visible;
  background: var(--video-card-bg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}

.creative-group-card {
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  text-align: left;
  display: block;
  transition: opacity 0.15s;
}

.creative-group-card:hover {
  opacity: 0.92;
}

.creative-group-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  vertical-align: middle;
}

.creative-group-card .video-meta {
  padding: 14px 16px 16px;
}

.creative-group-gallery {
  display: none;
  padding: 20px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.creative-group--expanded .creative-group-gallery {
  display: block;
}

.creative-group-gallery-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.creative-group-gallery-inner img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.creative-group-close {
  display: block;
  margin: 0 auto;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.34);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}

.creative-group-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.creative-group--expanded {
  grid-column: 1 / -1;
}

.video-meta {
  padding: 14px 16px 16px;
}

.video-title {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.3;
  color: var(--text-white);
}

.video-caption {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: #bcbcbc;
}

.video-card--hidden {
  display: none;
}

@media (max-width: 1024px) {
  .video-grid {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .left-nav {
    flex: none;
    width: 100%;
    min-width: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  body.nav-collapsed .left-nav {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  body.nav-collapsed .left-nav .left-nav-brand,
  body.nav-collapsed .left-nav .left-nav-links {
    flex: 1 1 auto;
    min-height: auto;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    padding: 0;
    margin: 0;
  }

  .left-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 24px;
  }

  .left-nav-brand,
  .left-nav-links {
    display: contents;
  }

  .nav-list {
    margin: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .left-column {
    flex: none;
    width: 100%;
    min-width: 0;
    height: auto;
    overflow: visible;
  }

  body.column-collapsed .left-column {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  body.column-collapsed .left-column .left-inner {
    position: static;
    width: auto;
    min-width: 0;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    padding: 64px 48px;
  }

  .left-inner {
    max-width: 100%;
  }

  .right-column {
    height: auto;
    min-height: 0;
    padding: 40px 24px;
    overflow: visible;
  }

  .right-column--embed {
    padding: 0;
  }

  .right-column--embed .embed-wrapper {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .collapse-btn--nav,
  .collapse-btn--column {
    display: none;
  }

  .wasd-dock {
    display: none;
  }
}

@media (min-width: 901px) {
  .left-nav {
    flex: 0 0 192px;
    min-width: 192px;
  }

  body.nav-collapsed .left-nav {
    flex-basis: 0;
    min-width: 0;
  }

  .left-column {
    flex: 0 0 374px;
    min-width: 374px;
  }

  .right-column {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* -------------------------------------------------------------------------- */
/* Per-project color themes (body[data-page] sets CSS variables for children) */
/* -------------------------------------------------------------------------- */

body[data-page="home"] {
  --accent: #6ee7b7;
  --text-muted: #95b0a8;
  --right-bg: #152220;
  --column-bg: #121d1a;
  --column-headline: #f0fff8;
  --context-label: #5a7a72;
  --column-tag-fg: #e8fff5;
  --column-tag-border: rgba(110, 231, 183, 0.45);
  --column-control-bg: rgba(255, 255, 255, 0.08);
  --column-control-fg: #95b0a8;
  --column-control-hover-bg: rgba(255, 255, 255, 0.12);
  --column-control-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  --embed-chrome-bg: rgba(12, 28, 22, 0.88);
  --embed-chrome-fg: #e8fff5;
  --embed-chrome-border: rgba(110, 231, 183, 0.35);
  --pill-positive-bg: rgba(110, 231, 183, 0.18);
  --pill-positive-fg: #4ade80;
  --pill-negative-bg: rgba(251, 113, 133, 0.15);
  --pill-negative-fg: #fb7185;
}

body[data-page="project-1"] {
  --accent: #c45c3e;
  --text-muted: #5a524d;
  --right-bg: #e8e1d8;
  --column-bg: #f7f2eb;
  --column-headline: #1f1814;
  --context-label: #6b5f56;
  --column-tag-fg: #2c2420;
  --column-tag-border: rgba(31, 24, 20, 0.35);
  --column-control-bg: rgba(0, 0, 0, 0.06);
  --column-control-fg: #6b5f56;
  --column-control-hover-bg: rgba(0, 0, 0, 0.1);
  --column-control-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  --embed-chrome-bg: rgba(47, 38, 32, 0.88);
  --embed-chrome-fg: #fdf8f3;
  --embed-chrome-border: rgba(196, 92, 62, 0.45);
}

body[data-page="project-2"] {
  --accent: #a78bfa;
  --text-muted: #9ca3c4;
  --right-bg: #0f1118;
  --column-bg: #15182a;
  --column-headline: #e8eaff;
  --context-label: #7a7f9a;
  --column-tag-fg: #e8eaff;
  --column-tag-border: rgba(167, 139, 250, 0.45);
  --column-control-bg: rgba(255, 255, 255, 0.08);
  --column-control-fg: #9ca3c4;
  --column-control-hover-bg: rgba(255, 255, 255, 0.12);
  --column-control-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  --embed-chrome-bg: rgba(18, 20, 32, 0.9);
  --embed-chrome-fg: #e8eaff;
  --embed-chrome-border: rgba(167, 139, 250, 0.35);
}

body[data-page="project-3"] {
  --accent: #38bdf8;
  --text-muted: #8ea4b8;
  --right-bg: #121a24;
  --column-bg: #1a2332;
  --column-headline: #e8f4ff;
  --context-label: #6b7d90;
  --column-tag-fg: #e8f4ff;
  --column-tag-border: rgba(56, 189, 248, 0.4);
  --column-control-bg: rgba(255, 255, 255, 0.08);
  --column-control-fg: #8ea4b8;
  --column-control-hover-bg: rgba(255, 255, 255, 0.12);
  --column-control-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  --embed-chrome-bg: rgba(15, 24, 36, 0.9);
  --embed-chrome-fg: #e8f4ff;
  --embed-chrome-border: rgba(56, 189, 248, 0.35);
}

body[data-page="project-4"] {
  --accent: #d97757;
  --text-muted: #6b5d4f;
  --right-bg: #f0ebe4;
  --column-bg: #fbf8f0;
  --column-headline: #3d2e1f;
  --context-label: #8a7b6d;
  --column-tag-fg: #3d2e1f;
  --column-tag-border: rgba(61, 46, 31, 0.28);
  --column-control-bg: rgba(0, 0, 0, 0.06);
  --column-control-fg: #8a7b6d;
  --column-control-hover-bg: rgba(0, 0, 0, 0.09);
  --column-control-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  --embed-chrome-bg: rgba(55, 42, 32, 0.88);
  --embed-chrome-fg: #fdf9f4;
  --embed-chrome-border: rgba(217, 119, 87, 0.4);
}

/* Creative — lavender / purple editorial (reference layout) */
body[data-page="project-5"] {
  --accent: #e879f9;
  --text-muted: #7a5f85;
  --right-bg: #1a0d1f;
  --column-bg: #fce4ff;
  --column-headline: #4a1d5c;
  --context-label: #6b4f75;
  --column-tag-fg: #4a1d5c;
  --column-tag-border: rgba(74, 29, 92, 0.35);
  --column-control-bg: rgba(74, 29, 92, 0.08);
  --column-control-fg: #6b4f75;
  --column-control-hover-bg: rgba(74, 29, 92, 0.14);
  --column-control-shadow: 0 0 0 1px rgba(74, 29, 92, 0.12);
  --embed-chrome-bg: rgba(40, 16, 52, 0.92);
  --embed-chrome-fg: #fce4ff;
  --embed-chrome-border: rgba(232, 121, 249, 0.45);
  --video-card-bg: #140a18;
}

body[data-page="project-6"] {
  --accent: #4dd4d4;
  --text-muted: #8aadae;
  --right-bg: #0a1414;
  --column-bg: #0f1f1f;
  --column-headline: #d9f7f8;
  --context-label: #5a7a7a;
  --column-tag-fg: #d9f7f8;
  --column-tag-border: rgba(77, 212, 212, 0.4);
  --column-control-bg: rgba(255, 255, 255, 0.07);
  --column-control-fg: #8aadae;
  --column-control-hover-bg: rgba(255, 255, 255, 0.11);
  --column-control-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  --embed-chrome-bg: rgba(8, 22, 22, 0.92);
  --embed-chrome-fg: #d9f7f8;
  --embed-chrome-border: rgba(77, 212, 212, 0.4);
}

.context-intro,
.problem-text,
.decision-text,
.impact-footer,
.ib-label {
  transition: color 0.35s ease;
}
