﻿:root {
  color-scheme: dark;
  --bg: #080b0f;
  --panel: rgba(16, 21, 29, 0.82);
  --panel-strong: #111821;
  --line: rgba(220, 234, 255, 0.14);
  --line-strong: rgba(220, 234, 255, 0.24);
  --text: #eef4fb;
  --muted: #9cacba;
  --soft: #c9d6e4;
  --accent: #7fd4ff;
  --accent-2: #b6f0d3;
  --warn: #ffcc66;
  --danger: #ff7c7c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(127, 212, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #080b0f 0%, #0b1016 50%, #080b0f 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(8, 11, 15, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(127, 212, 255, 0.18), rgba(182, 240, 211, 0.08));
  border-radius: 8px;
  color: var(--accent);
  font-weight: 800;
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav-links a {
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--soft);
  font-size: 13px;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 15, 0.96) 0%, rgba(8, 11, 15, 0.7) 42%, rgba(8, 11, 15, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 11, 15, 0.1), rgba(8, 11, 15, 0.98));
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(840px, calc(100% - 36px));
  padding: 12vh clamp(18px, 5vw, 64px) 9vh;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  max-width: 720px;
  color: var(--soft);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  font-weight: 750;
}

.primary-button {
  background: var(--text);
  color: #080b0f;
}

.secondary-button,
.button {
  background: rgba(255, 255, 255, 0.06);
}

.disabled-button {
  opacity: 0.48;
  cursor: not-allowed;
}

main {
  overflow: hidden;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.section.narrow {
  max-width: 1040px;
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  margin-bottom: 34px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip div {
  padding: 24px clamp(18px, 4vw, 44px);
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip small,
.meta-label,
.card-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-strip strong {
  font-size: 18px;
}

.grid-3,
.grid-2,
.work-grid,
.report-grid,
.timeline {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2,
.report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.work-card,
.report-card,
.timeline-card,
.spec-card,
.video-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card,
.timeline-card,
.spec-card {
  padding: 22px;
}

.card p:last-child,
.work-card p:last-child,
.report-card p:last-child,
.timeline-card p:last-child,
.spec-card p:last-child {
  margin-bottom: 0;
}

.work-card img,
.work-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #050608;
}

.compare-slider {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 430px;
  overflow: hidden;
  background: #050608;
  --compare-pos: 50%;
}

.compact-compare-card .compare-slider {
  aspect-ratio: 16 / 9;
  max-height: 340px;
}

.compare-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-slider > img {
  position: absolute;
  inset: 0;
}

.compare-after {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--compare-pos)) 0 0);
}

.compare-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-pos);
  width: 18px;
  transform: translateX(-50%);
  border-left: 2px solid rgba(255, 255, 255, 0.86);
  pointer-events: none;
  z-index: 2;
}

.compare-slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--compare-pos);
  z-index: 3;
  width: 20px;
  height: 58px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(8, 11, 15, 0.86);
  pointer-events: none;
}

.compare-slider input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.compare-label {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(8, 11, 15, 0.72);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.compare-label.before {
  left: 12px;
}

.compare-label.after {
  right: 12px;
}

.work-card.large {
  grid-column: span 2;
}

.work-body,
.report-body {
  padding: 20px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-row span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 700;
}

.status-pill.ready {
  border-color: rgba(182, 240, 211, 0.45);
  color: var(--accent-2);
  background: rgba(182, 240, 211, 0.08);
}

.page-hero {
  padding: clamp(58px, 9vw, 120px) clamp(18px, 5vw, 64px) clamp(34px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.page-hero .lead {
  max-width: 820px;
}

.video-panel {
  background: #050608;
}

.video-panel > video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050608;
}

.video-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(127, 212, 255, 0.18), rgba(182, 240, 211, 0.06)),
    url("../showreel/assets/ref-room-render.png") center / cover;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.play-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(180px, 32vw);
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(8, 11, 15, 0.72);
  font-weight: 900;
}

.video-note {
  padding: 20px;
}

.room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.room-image {
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spec-list {
  display: grid;
  gap: 12px;
}

.spec-card strong {
  display: block;
  margin-bottom: 8px;
}

.report-visual {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #050608;
}

.report-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.82;
}

.metric-table {
  display: grid;
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-table div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
}

.metric-table span {
  color: var(--muted);
}

.measurement-chart {
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #0d131b;
  background-size: 36px 36px;
}

.measurement-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 220px;
}

.measurement-bars span {
  flex: 1;
  min-width: 10px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), rgba(127, 212, 255, 0.18));
}

.timeline {
  position: relative;
}

.timeline-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: start;
}

.timeline-card time {
  color: var(--accent);
  font-weight: 850;
}

.footer {
  padding: 34px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.player-open {
  overflow: hidden;
}

.player-modal[hidden] {
  display: none;
}

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
}

.player-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(340px, 0.72fr);
  width: min(1480px, 100%);
  max-height: 88vh;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #050608;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-media-panel {
  display: grid;
  min-height: min(70vh, 760px);
  background: #000;
}

.player-video,
.player-youtube {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 88vh;
  object-fit: contain;
  background: #000;
}

.player-youtube {
  border: 0;
}

.player-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 88vh;
  object-fit: contain;
  background: #000;
}

.player-video[hidden],
.player-youtube[hidden],
.player-image[hidden] {
  display: none;
}

.player-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(8, 11, 15, 0.78);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.project-detail-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(20px, 3vw, 38px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: #080b0f;
  color: var(--soft);
  overflow: auto;
}

.project-detail-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.player-caption {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 54px);
  line-height: 0.95;
}

.project-detail-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-detail-list {
  display: grid;
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.1);
}

.project-detail-list div {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  background: #080b0f;
}

.project-detail-list dt {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-detail-list dd {
  margin: 0;
  color: var(--soft);
  line-height: 1.45;
}

.project-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-detail-tags span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-nav,
  .section-head,
  .room-layout,
  .player-dialog {
    grid-template-columns: 1fr;
  }

  .player-dialog {
    max-height: 92vh;
    overflow: auto;
  }

  .project-detail-panel {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav {
    position: static;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-controls {
    margin-left: auto;
  }

  .signal-strip,
  .grid-3,
  .grid-2,
  .report-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card.large {
    grid-column: auto;
  }

  .hero {
    min-height: 760px;
  }

  .timeline-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    min-width: 0;
  }

  .nav-links a {
    padding: 8px;
    font-size: 12px;
  }

  .signal-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Showreel vault layout */
.portfolio-vault-page {
  background:
    linear-gradient(180deg, #071016 0%, #080b10 42%, #05070a 100%);
}

.portfolio-vault-page .site-nav {
  background:
    linear-gradient(90deg, rgba(6, 10, 14, 0.96), rgba(10, 16, 22, 0.9));
}

.reel-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.language-toggle,
.theme-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.language-toggle button,
.theme-toggle button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.language-toggle button[aria-pressed="true"],
.theme-toggle button[aria-pressed="true"] {
  border-color: rgba(127, 212, 255, 0.36);
  background: rgba(127, 212, 255, 0.13);
  color: var(--text);
}

.reel-page-shell {
  display: grid;
  gap: 24px;
  padding: 24px clamp(16px, 4vw, 58px) 64px;
  overflow: visible;
}

.reel-hero-vault,
.reel-compare-strip,
.shot-library-section {
  width: min(100%, 1760px);
  margin: 0 auto;
}

.reel-hero-vault {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(330px, 0.54fr);
  overflow: hidden;
  border: 1px solid rgba(220, 234, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 24, 32, 0.96), rgba(7, 11, 16, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.reel-stage {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(22px, 3.6vw, 48px);
}

.stage-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-kicker span + span {
  color: var(--muted);
}

.reel-stage h1 {
  max-width: 920px;
  margin-bottom: 0;
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: 0.96;
}

.stage-lead {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--soft);
  font-size: clamp(16px, 1.5vw, 20px);
}

.featured-player {
  overflow: hidden;
  border: 1px solid rgba(220, 234, 255, 0.14);
  border-radius: 8px;
  background: #020407;
}

.featured-player video {
  display: block;
  width: 100%;
  max-height: min(56vh, 590px);
  aspect-ratio: 16 / 8;
  object-fit: contain;
  background: #020407;
}

.reel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reel-metrics div,
.detail-specs div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(220, 234, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.reel-metrics strong,
.reel-metrics span {
  display: block;
}

.reel-metrics strong {
  color: var(--text);
  font-size: 18px;
}

.reel-metrics span,
.detail-specs dt {
  color: var(--muted);
  font-size: 12px;
}

.reel-detail-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(22px, 3vw, 38px);
  border-left: 1px solid rgba(220, 234, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(12, 18, 25, 0.98), rgba(7, 11, 16, 0.98));
}

.reel-detail-panel h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.reel-detail-panel p {
  margin-bottom: 0;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.detail-specs dt,
.detail-specs dd {
  margin: 0;
}

.detail-specs dd {
  margin-top: 4px;
  color: var(--text);
  font-weight: 750;
  line-height: 1.35;
}

.detail-note {
  padding: 16px;
  border: 1px solid rgba(127, 212, 255, 0.18);
  border-radius: 8px;
  background: rgba(127, 212, 255, 0.07);
}

.detail-note h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.pipeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pipeline-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(182, 240, 211, 0.2);
  border-radius: 8px;
  background: rgba(182, 240, 211, 0.08);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.reel-compare-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.compare-module {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.62fr);
  overflow: hidden;
  border: 1px solid rgba(220, 234, 255, 0.14);
  border-radius: 8px;
  background: rgba(13, 18, 25, 0.84);
}

.compare-module .compare-slider {
  aspect-ratio: 16 / 9;
  max-height: 250px;
}

.compare-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
}

.compare-copy .status-pill {
  width: max-content;
}

.compare-copy h2 {
  margin-bottom: 0;
  font-size: 22px;
}

.compare-copy p {
  margin-bottom: 0;
  font-size: 14px;
}

.shot-library-section {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(220, 234, 255, 0.14);
  border-radius: 8px;
  background: rgba(10, 15, 21, 0.76);
}

.vault-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: clamp(18px, 4vw, 50px);
  align-items: end;
}

.vault-section-head h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 52px);
}

.vault-section-head p {
  margin-bottom: 0;
}

.shot-grid-vault {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.shot-card-vault {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(220, 234, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.shot-card-vault:hover,
.shot-card-vault.active {
  border-color: rgba(127, 212, 255, 0.45);
  background: rgba(127, 212, 255, 0.09);
}

.shot-card-vault:hover {
  transform: translateY(-2px);
}

.shot-thumb {
  display: block;
  overflow: hidden;
  background: #020407;
}

.shot-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shot-copy {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.shot-copy small {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shot-copy strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.shot-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .reel-hero-vault,
  .compare-module,
  .vault-section-head {
    grid-template-columns: 1fr;
  }

  .reel-detail-panel {
    border-top: 1px solid rgba(220, 234, 255, 0.14);
    border-left: 0;
  }
}

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

  .language-toggle,
  .theme-toggle {
    width: max-content;
  }

  .reel-compare-strip {
    grid-template-columns: 1fr;
  }

  .featured-player video {
    max-height: none;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 620px) {
  .reel-page-shell {
    padding-inline: 12px;
  }

  .reel-stage,
  .reel-detail-panel,
  .shot-library-section {
    padding: 16px;
  }

  .reel-metrics,
  .detail-specs {
    grid-template-columns: 1fr;
  }

  .compare-module .compare-slider {
    max-height: 220px;
  }
}

/* Minimal showreel / Kambiz-inspired project gallery */
.minimal-portfolio-page {
  background: #f4f4f2;
  color: #111318;
}

.minimal-portfolio-page .site-nav {
  background: rgba(244, 244, 242, 0.94);
  border-bottom: 1px solid rgba(17, 19, 24, 0.1);
  color: #111318;
}

.minimal-portfolio-page .brand-symbol {
  overflow: hidden;
  background: #111318 url("./assets/mickey-profile.png") center / cover no-repeat;
  border-color: #111318;
  color: transparent;
  text-indent: -999px;
}

.minimal-portfolio-page .brand-mark small,
.minimal-portfolio-page p {
  color: #5e636b;
}

.minimal-portfolio-page .nav-links a {
  color: #2d3137;
}

.minimal-portfolio-page .nav-links a:hover,
.minimal-portfolio-page .nav-links a.active {
  border-color: rgba(17, 19, 24, 0.18);
  background: rgba(17, 19, 24, 0.055);
  color: #111318;
}

.minimal-portfolio-page .language-toggle,
.minimal-portfolio-page .theme-toggle {
  border-color: rgba(17, 19, 24, 0.14);
  background: rgba(17, 19, 24, 0.035);
}

.minimal-portfolio-page .language-toggle button,
.minimal-portfolio-page .theme-toggle button {
  color: #5e636b;
}

.minimal-portfolio-page .language-toggle button[aria-pressed="true"],
.minimal-portfolio-page .theme-toggle button[aria-pressed="true"] {
  border-color: rgba(17, 19, 24, 0.22);
  background: #111318;
  color: #f4f4f2;
}

.single-reel-shell {
  display: grid;
  gap: 26px;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 56px) 72px;
  overflow: visible;
}

.single-reel-header {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.minimal-eyebrow {
  margin: 0;
  color: #e60045;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.single-reel-header h1 {
  margin: 0;
  color: #111318;
  font-size: clamp(44px, 8vw, 106px);
  line-height: 0.92;
}

.single-reel-header p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(16px, 1.5vw, 20px);
}

.showreel-frame {
  overflow: hidden;
  border: 1px solid rgba(17, 19, 24, 0.12);
  background: #050608;
  box-shadow: 0 26px 70px rgba(17, 19, 24, 0.18);
}

.showreel-frame video,
.showreel-frame iframe {
  display: block;
  width: 100%;
  max-height: min(74vh, 760px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #050608;
  border: 0;
}

.showreel-project-nav,
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 52px);
}

.showreel-project-nav a,
.gallery-filter-bar button {
  border: 0;
  background: transparent;
  color: #5e636b;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.showreel-project-nav a:hover,
.gallery-filter-bar button:hover,
.gallery-filter-bar button.active {
  color: #e60045;
}

.project-gallery-shell {
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
}

.gallery-filter-bar {
  position: sticky;
  top: 72px;
  z-index: 12;
  min-height: 76px;
  padding: 16px 18px;
  background: rgba(244, 244, 242, 0.94);
  border-bottom: 1px solid rgba(17, 19, 24, 0.08);
  backdrop-filter: blur(18px);
}

.works-filter-stack {
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  min-height: 104px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.8vw, 34px);
}

.filter-row > span {
  color: #111318;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  min-width: 84px;
  text-transform: uppercase;
}

.works-filter-stack .filter-row + .filter-row {
  border-top: 1px solid rgba(17, 19, 24, 0.08);
  padding-top: 10px;
}

.project-mosaic {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: minmax(190px, 16vw);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0 12px 12px;
}

.gallery-card {
  position: relative;
  display: block;
  min-height: 190px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #111318;
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gallery-card-wide {
  grid-column: span 2;
}

.gallery-card-tall {
  grid-row: span 2;
}

.gallery-card[hidden] {
  display: none;
}

.works-empty-state {
  max-width: 760px;
  margin: 34px auto 72px;
  padding: 24px clamp(18px, 4vw, 36px);
  border: 1px solid rgba(17, 19, 24, 0.18);
  color: #4b515a;
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}

.works-empty-state[hidden] {
  display: none;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.gallery-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 35%, rgba(0, 0, 0, 0.68) 100%);
  opacity: 0.86;
  transition: opacity 180ms ease;
}

.gallery-card span {
  position: absolute;
  left: clamp(18px, 2vw, 30px);
  right: clamp(18px, 2vw, 30px);
  bottom: clamp(18px, 2vw, 30px);
  z-index: 2;
  display: grid;
  gap: 6px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.gallery-card strong,
.gallery-card small {
  display: block;
}

.gallery-card strong {
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.05;
}

.gallery-card small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

.gallery-card:hover::after {
  opacity: 1;
}

.minimal-footer {
  border-color: rgba(17, 19, 24, 0.12);
  color: #5e636b;
}

@media (max-width: 1180px) {
  .project-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .minimal-portfolio-page .site-nav {
    position: static;
  }

  .gallery-filter-bar {
    position: static;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .project-mosaic {
    grid-auto-rows: minmax(180px, 36vw);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 0;
  }

  .gallery-card-wide,
  .gallery-card-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 540px) {
  .single-reel-header h1 {
    font-size: 44px;
  }

  .project-mosaic {
    grid-template-columns: 1fr;
  }
}

.editorial-shell {
  display: grid;
  gap: clamp(42px, 7vw, 86px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 56px) 78px;
  overflow: visible;
}

.editorial-hero,
.home-title-block {
  display: grid;
  gap: 14px;
}

.editorial-hero {
  max-width: 1000px;
}

.editorial-hero h1,
.home-title-block h1,
.editorial-split h2 {
  margin: 0;
  color: #111318;
}

.editorial-hero h1,
.home-title-block h1 {
  font-size: clamp(46px, 8vw, 110px);
  line-height: 0.92;
}

.editorial-hero p,
.home-title-block p,
.editorial-copy p,
.editorial-split > p {
  max-width: 760px;
  margin: 0;
  color: #5e636b;
  font-size: clamp(16px, 1.5vw, 20px);
}

.home-editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.home-title-block h1 {
  font-size: clamp(68px, 8vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.home-title-block {
  align-content: start;
  min-height: min(62vh, 720px);
  padding-top: clamp(4px, 1vw, 14px);
}

.home-title-block > p:not(.minimal-eyebrow) {
  max-width: 52ch;
  line-height: 1.65;
  text-wrap: pretty;
}

.home-toolchain {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: clamp(32px, 5vw, 64px);
}

.home-toolchain > p {
  margin: 0;
  color: #e60045;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1;
}

.home-toolchain-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(17, 19, 24, 0.2);
  border-bottom: 1px solid rgba(17, 19, 24, 0.2);
}

.home-toolchain-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  min-width: 0;
  min-height: 78px;
  align-items: center;
  gap: 13px;
  padding: 14px 18px 14px 0;
  color: #111318;
  text-align: left;
}

.home-toolchain-item:nth-child(even) {
  border-left: 1px solid rgba(17, 19, 24, 0.2);
  padding-right: 0;
  padding-left: 18px;
}

.home-toolchain-item:nth-child(n + 3) {
  border-top: 1px solid rgba(17, 19, 24, 0.2);
}

.home-toolchain-item img {
  width: auto;
  height: 34px;
  max-width: 34px;
  object-fit: contain;
}

.home-toolchain-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.home-toolchain-item span {
  color: #111318;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

.home-toolchain-role {
  color: #6c727b;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-hero-image,
.reference-feature figure,
.report-feature figure {
  margin: 0;
  overflow: hidden;
  background: #111318;
}

.home-hero-image img {
  width: 100%;
  min-height: min(62vh, 720px);
  object-fit: cover;
  object-position: center 34%;
}

.home-hero-image {
  border: 1px solid rgba(17, 19, 24, 0.16);
}

.minimal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.minimal-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(17, 19, 24, 0.16);
  color: #111318;
  font-weight: 800;
}

.minimal-actions a:first-child {
  background: #111318;
  color: #f4f4f2;
}

.minimal-signal-row,
.minimal-link-grid,
.minimal-data-grid {
  display: grid;
  gap: 1px;
  background: rgba(17, 19, 24, 0.12);
  border: 1px solid rgba(17, 19, 24, 0.12);
}

.minimal-signal-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.minimal-signal-row div,
.minimal-link-grid a,
.minimal-data-grid article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: clamp(18px, 3vw, 32px);
  background: #f4f4f2;
}

.minimal-signal-row small,
.minimal-link-grid span,
.minimal-link-grid small,
.minimal-data-grid small,
.minimal-metric-list span,
.contact-panel span,
.reference-specs span,
.learning-roadmap span,
.minimal-timeline time {
  color: #e60045;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.minimal-signal-row strong,
.minimal-link-grid strong,
.minimal-data-grid strong {
  color: #111318;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.08;
}

.minimal-link-grid .works-card-copy {
  text-transform: none;
}

.minimal-link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.minimal-link-grid a:hover {
  background: #111318;
}

.minimal-link-grid a:hover strong,
.minimal-link-grid a:hover small {
  color: #f4f4f2;
}

.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(26px, 5vw, 74px);
  align-items: start;
}

.editorial-split h2 {
  font-size: clamp(34px, 5.5vw, 78px);
  line-height: 0.96;
}

.editorial-copy {
  display: grid;
  gap: 18px;
}

.about-shell {
  gap: clamp(34px, 5vw, 72px);
}

.about-identity-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.about-identity-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.about-identity-copy h1 {
  max-width: 920px;
  margin: 0;
  color: #111318;
  font-size: clamp(46px, 7vw, 94px);
  line-height: 0.95;
}

.about-identity-copy > p {
  max-width: 780px;
  margin: 0;
  color: #5e636b;
  font-size: clamp(16px, 1.5vw, 20px);
}

.about-id-card,
.about-school-feature {
  border: 1px solid rgba(17, 19, 24, 0.14);
  background: #f4f4f2;
}

.about-id-card {
  display: grid;
  gap: 0;
}

.about-id-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  background: #111318;
}

.about-id-card dl {
  display: grid;
  gap: 1px;
  margin: 0;
  background: rgba(17, 19, 24, 0.12);
}

.about-id-card dl > div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 18px;
  background: #f4f4f2;
}

.about-id-card dt {
  color: #e60045;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-id-card dd {
  min-width: 0;
  margin: 0;
  color: #111318;
  font-weight: 850;
  line-height: 1.2;
}

.about-school-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  gap: 1px;
  overflow: hidden;
  background: rgba(17, 19, 24, 0.12);
}

.about-school-media {
  position: relative;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  background: #111318;
}

.about-school-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.about-school-media figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 9px 11px;
  background: rgba(17, 19, 24, 0.78);
  color: #f4f4f2;
  font-size: 12px;
  font-weight: 850;
}

.about-school-copy {
  position: relative;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 52px);
  background: #f4f4f2;
}

.about-school-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.about-school-copy h2 {
  margin: 0;
  color: #111318;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1;
}

.about-school-copy p:not(.minimal-eyebrow) {
  max-width: 700px;
  margin: 0;
  color: #5e636b;
  font-size: clamp(16px, 1.35vw, 19px);
}

.minimal-tag-section {
  display: grid;
  gap: 16px;
}

.minimal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.minimal-tags span {
  padding: 10px 13px;
  border: 1px solid rgba(17, 19, 24, 0.14);
  color: #111318;
  font-weight: 750;
}

.minimal-timeline,
.learning-roadmap {
  display: grid;
  gap: 1px;
  background: rgba(17, 19, 24, 0.12);
  border: 1px solid rgba(17, 19, 24, 0.12);
}

.minimal-timeline article,
.learning-roadmap article {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 52px);
  padding: clamp(20px, 3.5vw, 42px);
  background: #f4f4f2;
}

.minimal-timeline h3,
.learning-roadmap h2 {
  margin: 0 0 8px;
  color: #111318;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.02;
}

.minimal-timeline p,
.learning-roadmap p,
.minimal-data-grid p {
  margin: 0;
  color: #5e636b;
}

.reference-feature,
.report-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 1px;
  background: rgba(17, 19, 24, 0.12);
  border: 1px solid rgba(17, 19, 24, 0.12);
}

.reference-feature figure img,
.report-feature figure img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.reference-specs,
.report-feature > div {
  display: grid;
  align-content: center;
  gap: 1px;
  background: rgba(17, 19, 24, 0.12);
}

.reference-specs article,
.report-feature > div {
  background: #f4f4f2;
}

.reference-specs article {
  display: grid;
  gap: 8px;
  padding: clamp(20px, 3vw, 34px);
}

.reference-specs h2,
.report-feature h2 {
  margin: 0;
  color: #111318;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.02;
}

.reference-specs p,
.report-feature p {
  margin: 0;
  color: #5e636b;
}

.report-feature > div {
  padding: clamp(24px, 4vw, 46px);
}

.minimal-data-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Reference Room case study */
.reference-room-shell {
  max-width: 1480px;
}

.reference-room-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.reference-room-hero-copy {
  display: grid;
  gap: 16px;
}

.reference-room-hero h1,
.section-line-head h2,
.reference-story-grid h2,
.reference-report-cta h2 {
  margin: 0;
  color: #111318;
}

.reference-room-hero h1 {
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.94;
}

.reference-room-hero p,
.section-line-head p,
.reference-story-grid p,
.reference-report-cta p {
  margin: 0;
  color: #5e636b;
  line-height: 1.75;
}

.reference-hero-image {
  margin: 0;
  overflow: hidden;
  background: #111318;
}

.reference-hero-image img {
  display: block;
  width: 100%;
  min-height: 560px;
  object-fit: cover;
}

.reference-room-metrics,
.reference-story-grid,
.reference-process {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(17, 19, 24, 0.12);
  background: rgba(17, 19, 24, 0.12);
}

.reference-room-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reference-room-metrics article,
.reference-story-grid article,
.reference-process article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(18px, 2.7vw, 32px);
  background: #f4f4f2;
}

.reference-room-metrics span,
.reference-story-grid span,
.reference-process span,
.room-mode-panel span {
  color: #e60045;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reference-room-metrics strong,
.reference-process strong {
  color: #111318;
  font-size: clamp(19px, 2vw, 30px);
  line-height: 1.05;
}

.reference-room-metrics p,
.reference-process p {
  margin: 0;
  color: #5e636b;
}

.section-line-head {
  display: grid;
  max-width: 1040px;
  gap: 12px;
}

.section-line-head h2,
.reference-report-cta h2 {
  font-size: clamp(36px, 5vw, 76px);
  line-height: 0.95;
}

.room-mode-section,
.room-gallery-section {
  display: grid;
  gap: 26px;
}

.room-mode-tabs,
.room-gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 42px);
  align-items: center;
  border-bottom: 1px solid rgba(17, 19, 24, 0.12);
  padding-bottom: 18px;
}

.room-mode-tabs button,
.room-gallery-filter button {
  border: 0;
  background: transparent;
  color: #5e636b;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
}

.room-mode-tabs button:hover,
.room-mode-tabs button.active,
.room-gallery-filter button:hover,
.room-gallery-filter button.active {
  color: #e60045;
}

.room-mode-panels {
  border: 1px solid rgba(17, 19, 24, 0.12);
}

.room-mode-panel {
  display: none;
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, 0.72fr);
  gap: 1px;
  background: rgba(17, 19, 24, 0.12);
}

.room-mode-panel.active {
  display: grid;
}

.room-mode-panel img {
  display: block;
  width: 100%;
  min-height: 560px;
  object-fit: cover;
  background: #111318;
}

.room-mode-panel > div {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 50px);
  background: #f4f4f2;
}

.room-mode-panel h3 {
  margin: 0;
  color: #111318;
  font-size: clamp(30px, 4.6vw, 66px);
  line-height: 0.96;
}

.room-mode-panel p {
  margin: 0;
  color: #5e636b;
  line-height: 1.7;
}

.room-view-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: minmax(230px, 18vw);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(17, 19, 24, 0.12);
}

.room-view-card {
  position: relative;
  min-height: 230px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #111318;
  color: #f4f4f2;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.room-view-card[hidden] {
  display: none;
}

.room-view-large {
  grid-column: span 2;
  grid-row: span 2;
}

.room-view-wide {
  grid-column: span 2;
}

.room-view-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.room-view-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 35%, rgba(0, 0, 0, 0.72) 100%);
}

.room-view-card span {
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 2;
  display: grid;
  gap: 5px;
}

.room-view-card strong,
.room-view-card small {
  display: block;
}

.room-view-card strong {
  font-size: clamp(19px, 2vw, 30px);
  line-height: 1.02;
}

.room-view-card small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.room-view-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

.reference-story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reference-story-grid h2 {
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.98;
}

.reference-spec-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reference-process {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reference-report-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(17, 19, 24, 0.12);
}

.reference-report-cta > div {
  display: grid;
  gap: 12px;
}

.reference-report-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  background: #111318;
  color: #f4f4f2;
  font-weight: 850;
}

.room-modal[hidden] {
  display: none;
}

.room-modal {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
}

.room-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 19, 24, 0.74);
  backdrop-filter: blur(18px);
}

.room-modal-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.65fr);
  width: min(1460px, 100%);
  max-height: 90vh;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #050608;
  color: #f4f4f2;
  overflow: hidden;
}

.room-modal-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 90vh;
  object-fit: contain;
  background: #000;
}

.room-modal-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 46px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: #080b0f;
}

.room-modal-copy h2 {
  margin: 0;
  color: #f4f4f2;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.96;
}

.room-modal-copy p {
  margin: 0;
  color: #aeb7c2;
  line-height: 1.65;
}

.room-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 11, 15, 0.86);
  color: #f4f4f2;
  cursor: pointer;
  font-weight: 850;
}

@media (max-width: 1100px) {
  .reference-room-hero,
  .room-mode-panel,
  .room-modal-dialog {
    grid-template-columns: 1fr;
  }

  .reference-room-metrics,
  .reference-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-modal-dialog {
    overflow: auto;
  }

  .room-modal-copy {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 720px) {
  .reference-room-metrics,
  .reference-story-grid,
  .reference-process,
  .reference-spec-grid,
  .room-view-grid,
  .reference-report-cta {
    grid-template-columns: 1fr;
  }

  .room-view-large,
  .room-view-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .reference-hero-image img,
  .room-mode-panel img {
    min-height: 360px;
  }

  .reference-report-cta {
    align-items: start;
  }
}

.minimal-metric-list,
.contact-panel {
  display: grid;
  gap: 1px;
  margin-top: 22px;
  background: rgba(17, 19, 24, 0.12);
  border: 1px solid rgba(17, 19, 24, 0.12);
}

.minimal-metric-list div,
.contact-panel a,
.contact-panel article {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: #f4f4f2;
}

.minimal-metric-list strong,
.contact-panel strong {
  color: #111318;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.1;
}

.learning-roadmap article {
  grid-template-columns: 110px minmax(0, 1fr);
}

.contact-panel {
  max-width: 980px;
}

.contact-panel a:hover {
  background: #111318;
}

.contact-panel a:hover strong {
  color: #f4f4f2;
}

@media (max-width: 980px) {
  .home-editorial-hero,
  .about-identity-hero,
  .about-school-feature,
  .editorial-split,
  .reference-feature,
  .report-feature {
    grid-template-columns: 1fr;
  }

  .minimal-signal-row,
  .minimal-link-grid,
  .minimal-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-feature figure img,
  .report-feature figure img,
  .about-school-media,
  .about-school-media img {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  .minimal-signal-row,
  .minimal-link-grid,
  .minimal-data-grid,
  .minimal-timeline article,
  .learning-roadmap article {
    grid-template-columns: 1fr;
  }

  .home-title-block h1,
  .editorial-hero h1,
  .about-identity-copy h1 {
    font-size: 48px;
  }

  .home-title-block {
    min-height: auto;
    padding-top: 0;
  }

  .editorial-split h2 {
    font-size: 36px;
  }

  .about-id-card dl > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .about-school-copy h2 {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  .home-toolchain {
    margin-top: 30px;
    padding-top: 0;
  }
}

/* Interactive learning curve */
.learning-curve-page {
  gap: clamp(28px, 4.5vw, 54px);
  max-width: 1460px;
}

.learning-curve-page .editorial-hero {
  max-width: 1120px;
}

.learning-curve-page .editorial-hero h1 {
  max-width: 1020px;
  font-size: clamp(42px, 6vw, 86px);
}

.growth-curve {
  position: relative;
  min-height: 280px;
  padding: clamp(20px, 3.4vw, 44px) clamp(14px, 3vw, 32px);
  border: 1px solid rgba(17, 19, 24, 0.12);
  overflow: hidden;
}

.curve-line {
  position: absolute;
  inset: 46px 26px auto;
  width: calc(100% - 52px);
  height: 170px;
  pointer-events: none;
}

.curve-line path {
  fill: none;
  stroke: rgba(230, 0, 69, 0.5);
  stroke-dasharray: 8 10;
  stroke-linecap: round;
  stroke-width: 4;
}

.curve-line marker path {
  fill: #e60045;
  stroke: none;
}

.curve-node-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.7vw, 22px);
  align-items: start;
}

.curve-node {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 188px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111318;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.curve-node:nth-child(2),
.curve-node:nth-child(4),
.curve-node:nth-child(6) {
  padding-top: 62px;
}

.node-icon {
  display: grid;
  place-items: center;
  width: clamp(58px, 6vw, 82px);
  height: clamp(58px, 6vw, 82px);
  margin: 0 auto;
  border: 2px solid #111318;
  border-radius: 999px;
  background: #f4f4f2;
  color: #111318;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 950;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.curve-node strong {
  display: block;
  font-size: clamp(16px, 1.7vw, 24px);
  line-height: 1.05;
}

.curve-node small {
  display: block;
  max-width: 170px;
  margin: 0 auto;
  color: #5e636b;
  font-size: 12px;
  line-height: 1.35;
}

.phase-time {
  display: block;
  margin: -2px auto 0;
  color: #8b9098;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.phase-relative-time {
  margin-top: -6px;
  color: #5e636b;
}

.curve-node .phase-time {
  max-width: 180px;
}

.curve-node:hover .node-icon,
.curve-node.active .node-icon {
  border-color: #e60045;
  background: #111318;
  color: #f4f4f2;
  transform: translateY(-4px);
}

.curve-node.active strong {
  color: #e60045;
}

.phase-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(17, 19, 24, 0.12);
  background: rgba(17, 19, 24, 0.12);
}

.phase-summary-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
  padding: clamp(18px, 2.7vw, 32px);
  background: #f4f4f2;
}

.phase-summary-grid span,
.phase-evidence span {
  color: #e60045;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phase-summary-grid strong {
  color: #111318;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.04;
}

.phase-summary-grid .phase-time {
  margin: -4px 0 0;
  color: #7a8088;
}

.phase-summary-grid .phase-relative-time {
  margin-top: -8px;
  color: #5e636b;
}

.phase-summary-grid p {
  margin: 0;
  color: #5e636b;
}

.phase-detail-panel {
  border: 1px solid rgba(17, 19, 24, 0.12);
}

.phase-detail {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 1px;
  background: rgba(17, 19, 24, 0.12);
}

.phase-detail.active {
  display: grid;
}

.phase-detail-copy,
.phase-evidence,
.phase-image-stack {
  background: #f4f4f2;
}

.phase-detail-copy {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 54px);
}

.phase-detail-time {
  width: fit-content;
  margin: -8px 0 2px;
  padding: 7px 10px;
  border: 1px solid rgba(17, 19, 24, 0.14);
  color: #5e636b;
  background: rgba(17, 19, 24, 0.025);
}

.phase-detail-time.phase-relative-time {
  margin-top: -12px;
  border-color: transparent;
  background: transparent;
  padding-inline: 0;
  color: #8b9098;
}

.phase-detail-copy h2 {
  margin: 0;
  color: #111318;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 0.96;
}

.phase-detail-copy p,
.phase-evidence p {
  margin: 0;
  color: #444a52;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.75;
}

.phase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 19, 24, 0.12);
}

.phase-actions a,
.phase-actions button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px 0 16px;
  border: 1px solid #111318;
  background: #111318;
  color: #f4f4f2;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 7px 0 rgba(17, 19, 24, 0.1);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.phase-action-label {
  flex: 0 0 100%;
  color: #e60045;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.phase-actions a::after,
.phase-actions button::after {
  content: "OPEN";
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(244, 244, 242, 0.55);
  color: #f4f4f2;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
}

.phase-actions a[data-action-kind="video"]::after {
  content: "PLAY";
}

.phase-actions a[data-action-kind="youtube"]::after {
  content: "YOUTUBE";
}

.phase-actions button[data-action-kind="gallery"]::after {
  content: "VIEW";
}

.phase-actions a:hover,
.phase-actions button:hover,
.phase-actions a:focus-visible,
.phase-actions button:focus-visible {
  transform: translateY(-2px);
  border-color: #e60045;
  background: #e60045;
  box-shadow: 0 10px 0 rgba(230, 0, 69, 0.16);
}

.phase-actions a:focus-visible,
.phase-actions button:focus-visible {
  outline: 2px solid #111318;
  outline-offset: 3px;
}

.phase-actions a:active,
.phase-actions button:active {
  transform: translateY(0);
  box-shadow: 0 4px 0 rgba(17, 19, 24, 0.12);
}

.phase-actions button {
  appearance: none;
}

.phase-actions span:not(.phase-action-label) {
  background: transparent;
  color: #111318;
}

.phase-evidence {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(22px, 3vw, 38px);
}

.phase-evidence strong {
  color: #111318;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.03;
}

.room-design-panel {
  align-content: start;
}

.room-design-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 8px;
  background: rgba(17, 19, 24, 0.12);
}

.room-design-preview-card {
  position: relative;
  min-height: 190px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #111318;
  cursor: pointer;
}

.room-design-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.room-design-preview-card:hover img {
  transform: scale(1.03);
}

.room-design-preview-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 9px;
  background: rgba(17, 19, 24, 0.78);
  color: #f4f4f2;
  font-size: 11px;
  font-weight: 850;
}

.phase-image-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: rgba(17, 19, 24, 0.12);
}

.web-sample-preview-grid {
  grid-template-rows: 1fr 1fr;
}

.phase-image-stack figure,
.web-sample-preview-card {
  position: relative;
  min-height: 260px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #111318;
  cursor: pointer;
  text-align: left;
}

.phase-image-stack img,
.web-sample-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.web-sample-preview-card:hover img {
  transform: scale(1.03);
}

.phase-image-stack figcaption,
.web-sample-preview-card span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 10px;
  background: rgba(17, 19, 24, 0.78);
  color: #f4f4f2;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.web-gallery-modal[hidden] {
  display: none;
}

.web-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
}

.web-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 19, 24, 0.72);
  backdrop-filter: blur(16px);
}

.web-gallery-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1420px, 100%);
  max-height: min(92vh, 980px);
  border: 1px solid rgba(17, 19, 24, 0.16);
  background: #f4f4f2;
  overflow: hidden;
}

.web-gallery-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(17, 19, 24, 0.18);
  background: #111318;
  color: #f4f4f2;
  cursor: pointer;
  font-weight: 850;
}

.web-gallery-head {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 44px);
  border-bottom: 1px solid rgba(17, 19, 24, 0.12);
}

.web-gallery-head h2 {
  margin: 0;
  color: #111318;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 0.92;
}

.web-gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.web-gallery-filter button {
  border: 0;
  background: transparent;
  color: #5e636b;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.web-gallery-filter button:hover,
.web-gallery-filter button.active {
  color: #e60045;
}

.web-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: auto;
  background: rgba(17, 19, 24, 0.12);
}

.web-gallery-grid figure {
  display: grid;
  gap: 0;
  margin: 0;
  background: #f4f4f2;
}

.web-gallery-grid figure.hidden {
  display: none;
}

.web-gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111318;
}

.web-gallery-grid figcaption {
  padding: 14px 16px 18px;
  color: #111318;
  font-weight: 850;
}

@media (max-width: 1100px) {
  .curve-node-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .curve-line {
    display: none;
  }

  .curve-node,
  .curve-node:nth-child(2),
  .curve-node:nth-child(4),
  .curve-node:nth-child(6) {
    min-height: auto;
    padding-top: 0;
  }

  .phase-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase-detail {
    grid-template-columns: 1fr;
  }

  .web-sample-preview-grid {
    grid-template-rows: none;
  }
}

@media (max-width: 680px) {
  .curve-node-row,
  .phase-summary-grid {
    grid-template-columns: 1fr;
  }

  .curve-node {
    grid-template-columns: 74px minmax(0, 1fr);
    text-align: left;
  }

  .curve-node small {
    max-width: none;
    margin: 0;
  }

  .node-icon {
    grid-row: span 2;
  }

  .phase-detail-copy h2 {
    font-size: 34px;
  }

  .phase-actions {
    align-items: stretch;
  }

  .phase-actions a,
  .phase-actions button {
    width: 100%;
  }

  .web-gallery-grid {
    grid-template-columns: 1fr;
  }

  .room-design-preview-grid {
    grid-template-columns: 1fr;
  }

  .web-gallery-dialog {
    max-height: 94vh;
  }
}

/* PORTFOLIO V3 DARK THEME
   Scoped override layer: preserve the existing editorial layout and interactions. */
html[data-theme="dark"] .minimal-portfolio-page {
  color-scheme: dark;
  --portfolio-bg: #090b0f;
  --portfolio-surface: #11151b;
  --portfolio-surface-raised: #171c23;
  --portfolio-text: #f3f5f7;
  --portfolio-soft: #c6ccd4;
  --portfolio-muted: #9aa3ae;
  --portfolio-accent: #ff3b68;
  --portfolio-rule: rgba(243, 245, 247, 0.14);
  --portfolio-rule-strong: rgba(243, 245, 247, 0.24);
  --portfolio-media: #050608;
  background: var(--portfolio-bg);
  color: var(--portfolio-text);
}

html[data-theme="dark"] .minimal-portfolio-page .site-nav,
html[data-theme="dark"] .minimal-portfolio-page .gallery-filter-bar {
  background: rgba(9, 11, 15, 0.94);
  border-color: var(--portfolio-rule);
  color: var(--portfolio-text);
}

html[data-theme="dark"] .minimal-portfolio-page .brand-symbol {
  border-color: var(--portfolio-rule-strong);
}

html[data-theme="dark"] .minimal-portfolio-page .home-hero-image {
  border-color: var(--portfolio-rule);
}

html[data-theme="dark"] .minimal-portfolio-page .home-toolchain > p {
  color: var(--portfolio-accent);
}

html[data-theme="dark"] .minimal-portfolio-page .home-toolchain-list {
  border-color: var(--portfolio-rule);
}

html[data-theme="dark"] .minimal-portfolio-page .home-toolchain-item:nth-child(even),
html[data-theme="dark"] .minimal-portfolio-page .home-toolchain-item:nth-child(n + 3) {
  border-color: var(--portfolio-rule);
}

html[data-theme="dark"] .minimal-portfolio-page .home-toolchain-item span {
  color: var(--portfolio-text);
}

html[data-theme="dark"] .minimal-portfolio-page .home-toolchain-role {
  color: var(--portfolio-muted);
}

html[data-theme="dark"] .minimal-portfolio-page h1,
html[data-theme="dark"] .minimal-portfolio-page h2,
html[data-theme="dark"] .minimal-portfolio-page h3,
html[data-theme="dark"] .minimal-portfolio-page strong,
html[data-theme="dark"] .minimal-portfolio-page .filter-row > span,
html[data-theme="dark"] .minimal-portfolio-page .about-id-card dd,
html[data-theme="dark"] .minimal-portfolio-page .contact-panel strong,
html[data-theme="dark"] .minimal-portfolio-page .curve-node,
html[data-theme="dark"] .minimal-portfolio-page .phase-actions span:not(.phase-action-label),
html[data-theme="dark"] .minimal-portfolio-page .web-gallery-grid figcaption {
  color: var(--portfolio-text);
}

html[data-theme="dark"] .minimal-portfolio-page p,
html[data-theme="dark"] .minimal-portfolio-page .brand-mark small,
html[data-theme="dark"] .minimal-portfolio-page .nav-links a,
html[data-theme="dark"] .minimal-portfolio-page .gallery-filter-bar button,
html[data-theme="dark"] .minimal-portfolio-page .works-empty-state,
html[data-theme="dark"] .minimal-portfolio-page .minimal-footer,
html[data-theme="dark"] .minimal-portfolio-page .about-identity-copy > p,
html[data-theme="dark"] .minimal-portfolio-page .about-school-copy p:not(.minimal-eyebrow),
html[data-theme="dark"] .minimal-portfolio-page .minimal-data-grid p,
html[data-theme="dark"] .minimal-portfolio-page .report-feature p,
html[data-theme="dark"] .minimal-portfolio-page .reference-report-cta p,
html[data-theme="dark"] .minimal-portfolio-page .reference-process p,
html[data-theme="dark"] .minimal-portfolio-page .room-gallery-filter button,
html[data-theme="dark"] .minimal-portfolio-page .room-mode-panel p,
html[data-theme="dark"] .minimal-portfolio-page .curve-node small,
html[data-theme="dark"] .minimal-portfolio-page .phase-relative-time,
html[data-theme="dark"] .minimal-portfolio-page .phase-summary-grid p,
html[data-theme="dark"] .minimal-portfolio-page .phase-detail-time,
html[data-theme="dark"] .minimal-portfolio-page .phase-evidence p,
html[data-theme="dark"] .minimal-portfolio-page .web-gallery-filter button {
  color: var(--portfolio-muted);
}

html[data-theme="dark"] .minimal-portfolio-page .phase-time,
html[data-theme="dark"] .minimal-portfolio-page .phase-detail-time.phase-relative-time,
html[data-theme="dark"] .minimal-portfolio-page .phase-summary-grid .phase-time {
  color: var(--portfolio-soft);
}

html[data-theme="dark"] .minimal-portfolio-page .minimal-eyebrow,
html[data-theme="dark"] .minimal-portfolio-page .gallery-filter-bar button:hover,
html[data-theme="dark"] .minimal-portfolio-page .gallery-filter-bar button.active,
html[data-theme="dark"] .minimal-portfolio-page .minimal-timeline time,
html[data-theme="dark"] .minimal-portfolio-page .about-id-card dt,
html[data-theme="dark"] .minimal-portfolio-page .room-mode-panel span,
html[data-theme="dark"] .minimal-portfolio-page .room-gallery-filter button:hover,
html[data-theme="dark"] .minimal-portfolio-page .room-gallery-filter button.active,
html[data-theme="dark"] .minimal-portfolio-page .curve-node.active strong,
html[data-theme="dark"] .minimal-portfolio-page .phase-evidence span,
html[data-theme="dark"] .minimal-portfolio-page .phase-action-label,
html[data-theme="dark"] .minimal-portfolio-page .web-gallery-filter button:hover,
html[data-theme="dark"] .minimal-portfolio-page .web-gallery-filter button.active {
  color: var(--portfolio-accent);
}

html[data-theme="dark"] .minimal-portfolio-page .nav-links a:hover,
html[data-theme="dark"] .minimal-portfolio-page .nav-links a.active {
  border-color: var(--portfolio-rule-strong);
  background: var(--portfolio-surface-raised);
  color: var(--portfolio-text);
}

html[data-theme="dark"] .minimal-portfolio-page .language-toggle {
  border-color: var(--portfolio-rule);
  background: var(--portfolio-surface);
}

html[data-theme="dark"] .minimal-portfolio-page .language-toggle button {
  color: var(--portfolio-muted);
}

html[data-theme="dark"] .minimal-portfolio-page .language-toggle button[aria-pressed="true"] {
  border-color: var(--portfolio-text);
  background: var(--portfolio-text);
  color: var(--portfolio-bg);
}

html[data-theme="dark"] .minimal-portfolio-page .showreel-frame {
  border-color: var(--portfolio-rule);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .minimal-portfolio-page .works-filter-stack .filter-row + .filter-row,
html[data-theme="dark"] .minimal-portfolio-page .minimal-footer,
html[data-theme="dark"] .minimal-portfolio-page .room-gallery-filter,
html[data-theme="dark"] .minimal-portfolio-page .phase-actions,
html[data-theme="dark"] .minimal-portfolio-page .web-gallery-head {
  border-color: var(--portfolio-rule);
}

html[data-theme="dark"] .minimal-portfolio-page .works-empty-state,
html[data-theme="dark"] .minimal-portfolio-page .about-school-feature,
html[data-theme="dark"] .minimal-portfolio-page .minimal-tags span,
html[data-theme="dark"] .minimal-portfolio-page .reference-report-cta,
html[data-theme="dark"] .minimal-portfolio-page .growth-curve,
html[data-theme="dark"] .minimal-portfolio-page .phase-detail-time {
  border-color: var(--portfolio-rule);
}

html[data-theme="dark"] .minimal-portfolio-page .minimal-actions a,
html[data-theme="dark"] .minimal-portfolio-page .phase-actions button,
html[data-theme="dark"] .minimal-portfolio-page .web-gallery-close {
  border-color: var(--portfolio-rule-strong);
  background: var(--portfolio-surface-raised);
  color: var(--portfolio-text);
}

html[data-theme="dark"] .minimal-portfolio-page .minimal-actions a:hover,
html[data-theme="dark"] .minimal-portfolio-page .minimal-actions a:first-child,
html[data-theme="dark"] .minimal-portfolio-page .reference-report-cta a,
html[data-theme="dark"] .minimal-portfolio-page .phase-actions button:hover,
html[data-theme="dark"] .minimal-portfolio-page .web-gallery-close:hover {
  border-color: var(--portfolio-text);
  background: var(--portfolio-text);
  color: var(--portfolio-bg);
}

html[data-theme="dark"] .minimal-portfolio-page .minimal-data-grid,
html[data-theme="dark"] .minimal-portfolio-page .about-id-card dl,
html[data-theme="dark"] .minimal-portfolio-page .learning-roadmap,
html[data-theme="dark"] .minimal-portfolio-page .report-feature,
html[data-theme="dark"] .minimal-portfolio-page .reference-process,
html[data-theme="dark"] .minimal-portfolio-page .room-mode-panels,
html[data-theme="dark"] .minimal-portfolio-page .room-view-grid,
html[data-theme="dark"] .minimal-portfolio-page .contact-panel,
html[data-theme="dark"] .minimal-portfolio-page .phase-summary-grid,
html[data-theme="dark"] .minimal-portfolio-page .phase-detail-panel,
html[data-theme="dark"] .minimal-portfolio-page .phase-detail,
html[data-theme="dark"] .minimal-portfolio-page .phase-image-stack,
html[data-theme="dark"] .minimal-portfolio-page .room-design-preview-grid,
html[data-theme="dark"] .minimal-portfolio-page .web-gallery-grid {
  border-color: var(--portfolio-rule);
  background: var(--portfolio-rule);
}

html[data-theme="dark"] .minimal-portfolio-page .minimal-data-grid article,
html[data-theme="dark"] .minimal-portfolio-page .about-id-card dl > div,
html[data-theme="dark"] .minimal-portfolio-page .about-school-feature,
html[data-theme="dark"] .minimal-portfolio-page .about-school-copy,
html[data-theme="dark"] .minimal-portfolio-page .learning-roadmap article,
html[data-theme="dark"] .minimal-portfolio-page .report-feature > div,
html[data-theme="dark"] .minimal-portfolio-page .reference-process article,
html[data-theme="dark"] .minimal-portfolio-page .room-mode-panel > div,
html[data-theme="dark"] .minimal-portfolio-page .contact-panel article,
html[data-theme="dark"] .minimal-portfolio-page .phase-summary-grid article,
html[data-theme="dark"] .minimal-portfolio-page .phase-image-stack,
html[data-theme="dark"] .minimal-portfolio-page .web-gallery-grid figure {
  background: var(--portfolio-surface);
}

html[data-theme="dark"] .minimal-portfolio-page .report-feature figure,
html[data-theme="dark"] .minimal-portfolio-page .reference-hero-image,
html[data-theme="dark"] .minimal-portfolio-page .about-id-card img,
html[data-theme="dark"] .minimal-portfolio-page .about-school-media,
html[data-theme="dark"] .minimal-portfolio-page .room-mode-panel img,
html[data-theme="dark"] .minimal-portfolio-page .room-view-card,
html[data-theme="dark"] .minimal-portfolio-page .room-design-preview-card,
html[data-theme="dark"] .minimal-portfolio-page .web-sample-preview-card,
html[data-theme="dark"] .minimal-portfolio-page .web-gallery-grid img {
  background: var(--portfolio-media);
}

html[data-theme="dark"] .minimal-portfolio-page .minimal-link-grid a:hover,
html[data-theme="dark"] .minimal-portfolio-page .contact-panel a:hover {
  background: var(--portfolio-text);
  color: var(--portfolio-bg);
}

html[data-theme="dark"] .minimal-portfolio-page .minimal-link-grid a:hover strong,
html[data-theme="dark"] .minimal-portfolio-page .minimal-link-grid a:hover small,
html[data-theme="dark"] .minimal-portfolio-page .contact-panel a:hover strong {
  color: var(--portfolio-bg);
}

html[data-theme="dark"] .minimal-portfolio-page .node-icon {
  border-color: var(--portfolio-rule-strong);
  background: var(--portfolio-surface);
  color: var(--portfolio-text);
}

html[data-theme="dark"] .minimal-portfolio-page .curve-node:hover .node-icon,
html[data-theme="dark"] .minimal-portfolio-page .curve-node.active .node-icon {
  border-color: var(--portfolio-accent);
  background: var(--portfolio-accent);
  color: var(--portfolio-bg);
}

html[data-theme="dark"] .minimal-portfolio-page .curve-line path {
  stroke: rgba(255, 59, 104, 0.55);
}

html[data-theme="dark"] .minimal-portfolio-page .curve-line marker path {
  fill: var(--portfolio-accent);
}

html[data-theme="dark"] .minimal-portfolio-page .phase-actions button {
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .minimal-portfolio-page .phase-actions button:focus-visible {
  border-color: var(--portfolio-accent);
  background: var(--portfolio-accent);
  color: var(--portfolio-bg);
  outline-color: var(--portfolio-text);
  box-shadow: 0 10px 0 rgba(255, 59, 104, 0.16);
}

html[data-theme="dark"] .minimal-portfolio-page .phase-actions button:active {
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .minimal-portfolio-page .web-gallery-backdrop,
html[data-theme="dark"] .minimal-portfolio-page .room-modal-backdrop {
  background: rgba(0, 0, 0, 0.78);
}

html[data-theme="dark"] .minimal-portfolio-page .web-gallery-dialog {
  border-color: var(--portfolio-rule-strong);
  background: var(--portfolio-surface);
}

html[data-theme="dark"] .minimal-portfolio-page .room-modal-dialog,
html[data-theme="dark"] .minimal-portfolio-page .room-modal-copy {
  border-color: var(--portfolio-rule);
  background: var(--portfolio-bg);
}

html[data-theme="dark"] .minimal-portfolio-page .room-modal-copy p {
  color: var(--portfolio-muted);
}

html[data-theme="dark"] .minimal-portfolio-page .room-modal-close {
  border-color: var(--portfolio-rule-strong);
  background: var(--portfolio-surface-raised);
  color: var(--portfolio-text);
}

/* DARK SURFACE COVERAGE
   Components that own a light surface must switch with their inherited text. */
html[data-theme="dark"] .minimal-portfolio-page .minimal-signal-row div,
html[data-theme="dark"] .minimal-portfolio-page .minimal-link-grid a,
html[data-theme="dark"] .minimal-portfolio-page .about-id-card,
html[data-theme="dark"] .minimal-portfolio-page .minimal-timeline article,
html[data-theme="dark"] .minimal-portfolio-page .reference-room-metrics article,
html[data-theme="dark"] .minimal-portfolio-page .reference-story-grid article,
html[data-theme="dark"] .minimal-portfolio-page .minimal-metric-list div,
html[data-theme="dark"] .minimal-portfolio-page .phase-detail-copy,
html[data-theme="dark"] .minimal-portfolio-page .phase-evidence,
html[data-theme="dark"] .minimal-portfolio-page .contact-panel a {
  background: var(--portfolio-surface);
}

html[data-theme="dark"] .minimal-portfolio-page .minimal-signal-row,
html[data-theme="dark"] .minimal-portfolio-page .minimal-link-grid,
html[data-theme="dark"] .minimal-portfolio-page .minimal-timeline,
html[data-theme="dark"] .minimal-portfolio-page .reference-room-metrics,
html[data-theme="dark"] .minimal-portfolio-page .reference-story-grid,
html[data-theme="dark"] .minimal-portfolio-page .minimal-metric-list {
  border-color: var(--portfolio-rule);
  background: var(--portfolio-rule);
}

/* DARK TEXT COVERAGE */
html[data-theme="dark"] .minimal-portfolio-page .minimal-tags span {
  border-color: var(--portfolio-rule);
  color: var(--portfolio-text);
}

/* DARK INTERACTIVE HIERARCHY
   Keep primary actions and selected controls as legible in dark mode as in light mode. */
html[data-theme="dark"] .minimal-portfolio-page .theme-toggle {
  border-color: var(--portfolio-rule);
  background: var(--portfolio-surface);
}

html[data-theme="dark"] .minimal-portfolio-page .theme-toggle button {
  color: var(--portfolio-muted);
}

html[data-theme="dark"] .minimal-portfolio-page .theme-toggle button[aria-pressed="true"] {
  border-color: var(--portfolio-text);
  background: var(--portfolio-text);
  color: var(--portfolio-bg);
}

html[data-theme="dark"] .minimal-portfolio-page .showreel-project-nav a {
  color: var(--portfolio-muted);
}

html[data-theme="dark"] .minimal-portfolio-page .showreel-project-nav a:hover,
html[data-theme="dark"] .minimal-portfolio-page .showreel-project-nav a:focus-visible {
  color: var(--portfolio-accent);
}

html[data-theme="dark"] .minimal-portfolio-page .room-mode-tabs {
  border-color: var(--portfolio-rule);
}

html[data-theme="dark"] .minimal-portfolio-page .room-mode-tabs button {
  color: var(--portfolio-muted);
}

html[data-theme="dark"] .minimal-portfolio-page .room-mode-tabs button:hover,
html[data-theme="dark"] .minimal-portfolio-page .room-mode-tabs button.active,
html[data-theme="dark"] .minimal-portfolio-page .room-mode-tabs button:focus-visible {
  color: var(--portfolio-accent);
}

html[data-theme="dark"] .minimal-portfolio-page .phase-actions a,
html[data-theme="dark"] .minimal-portfolio-page .phase-actions button {
  border-color: var(--portfolio-text);
  background: var(--portfolio-text);
  color: var(--portfolio-bg);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .minimal-portfolio-page .phase-actions a::after,
html[data-theme="dark"] .minimal-portfolio-page .phase-actions button::after {
  border-color: rgba(9, 11, 15, 0.48);
  color: var(--portfolio-bg);
}

html[data-theme="dark"] .minimal-portfolio-page .phase-actions a:hover,
html[data-theme="dark"] .minimal-portfolio-page .phase-actions button:hover,
html[data-theme="dark"] .minimal-portfolio-page .phase-actions a:focus-visible,
html[data-theme="dark"] .minimal-portfolio-page .phase-actions button:focus-visible {
  border-color: var(--portfolio-accent);
  background: var(--portfolio-accent);
  color: var(--portfolio-bg);
  box-shadow: 0 10px 0 rgba(255, 59, 104, 0.16);
}

html[data-theme="dark"] .minimal-portfolio-page .phase-actions a:hover::after,
html[data-theme="dark"] .minimal-portfolio-page .phase-actions button:hover::after,
html[data-theme="dark"] .minimal-portfolio-page .phase-actions a:focus-visible::after,
html[data-theme="dark"] .minimal-portfolio-page .phase-actions button:focus-visible::after {
  border-color: rgba(9, 11, 15, 0.48);
  color: var(--portfolio-bg);
}

html[data-theme="dark"] .minimal-portfolio-page .phase-actions a:focus-visible,
html[data-theme="dark"] .minimal-portfolio-page .phase-actions button:focus-visible {
  outline-color: var(--portfolio-text);
}

html[data-theme="dark"] .minimal-portfolio-page .phase-actions a:active,
html[data-theme="dark"] .minimal-portfolio-page .phase-actions button:active {
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.24);
}

@media (prefers-reduced-motion: reduce) {
  .minimal-portfolio-page *,
  .minimal-portfolio-page *::before,
  .minimal-portfolio-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
