@import "./base.css";

/* ─── Utilities ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ─── ODE Site Header ─────────────────────────────────────── */
.ode-hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(18,20,23,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ode-anthracite-700);
}
.ode-hd-in {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  height: 84px; display: flex; align-items: center; gap: 28px;
}
.ode-hd-logo { height: 56px; width: auto; flex: none; }
.ode-hd svg { display: inline; flex-shrink: 0; }

.ode-hd-nav { display: flex; gap: 22px; align-items: center; flex-wrap: nowrap; }
.ode-hd-nav a {
  color: var(--ode-gray-200); font-size: 14px; font-weight: 300;
  text-decoration: none; cursor: pointer; position: relative;
  transition: color .12s; padding: 4px 0;
  text-transform: uppercase; letter-spacing: .1em;
}
.ode-hd-nav a:hover { color: #fff; }
.ode-hd-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px;
  height: 2px; background: var(--accent); transition: right .16s ease;
}
.ode-hd-nav a:hover::after { right: 0; }
.ode-hd-nav a.active { color: var(--accent); font-weight: 900; }
.ode-hd-nav a.active::after { display: none; }
.ode-hd-nav a.ib { text-transform: none; letter-spacing: .01em; }

.ode-hd-nav__home { display: inline-flex; align-items: center; }
.ode-hd-nav__home::after { display: none; }
.ode-hd-nav__sep { color: #fff; display: inline-flex; align-items: center; flex-shrink: 0; margin: 0 -8px; }
.ode-hd-nav__op { color: #7A8390; font-size: 16px; font-weight: 300; line-height: 1; flex-shrink: 0; margin: 0 -10px; }
.ode-hd-nav__sep--dim { color: #7A8390; }
.ode-hd-nav .ode-hd-nav__page {
  color: #fff; font-size: 14px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.ode-hd-nav .ode-hd-nav__page::after { display: none; }

.ode-hd-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }

.ode-hd-globe {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  color: var(--ode-gray-200); font-family: inherit;
  font-size: 14px; font-weight: 300; letter-spacing: .1em;
  text-transform: uppercase; transition: color .12s;
}
.ode-hd-globe:hover { color: var(--accent); }
.ode-hd-globe span { line-height: 1; }

.ode-hd-divider { width: 1px; height: 22px; background: #7A8390; }

.ode-hd-social { display: flex; align-items: center; gap: 14px; }
.ode-hd-social a { color: #7A8390; display: inline-flex; transition: color .12s, transform .12s; }
.ode-hd-social a:hover { color: var(--accent); transform: translateY(-1px); }

.ode-hd-burger { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; }

.ode-hd-mobile {
  display: flex; flex-direction: column;
  background: var(--ode-anthracite-900);
  border-bottom: 1px solid var(--ode-anthracite-700);
  padding: 6px 32px 18px;
}
.ode-hd-mobile a {
  color: var(--ode-gray-200); padding: 13px 0; text-decoration: none;
  font-weight: 300; text-transform: uppercase; letter-spacing: .1em;
  font-size: 14px; border-bottom: 1px solid var(--ode-anthracite-800);
}
.ode-hd-mobile a.active { color: var(--accent); font-weight: 900; }
.ode-hd-mobile a.ib { text-transform: none; letter-spacing: .01em; }
.ode-hd-mobile__home { display: flex; align-items: center; gap: 8px; }
.ode-hd-mobile__page {
  display: block; color: #fff; padding: 13px 0;
  font-weight: 700; font-size: 14px; text-transform: uppercase;
  letter-spacing: .1em; border-bottom: 1px solid var(--ode-anthracite-800);
}

@media (max-width: 1200px) {
  .ode-hd-nav, .ode-hd-globe, .ode-hd-divider { display: none; }
  .ode-hd-right .ode-hd-social { display: none; }
  .ode-hd-burger { display: inline-flex; }
  .ode-hd-in { height: 72px; }
  .ode-hd-logo { height: 36px; }
}

/* ─── Snap Zone ───────────────────────────────────────────── */
.snap-zone {
  height: 100svh;
  overflow: hidden;
  position: relative;
}
.snap-track {
  will-change: transform;
}

@media (max-width: 900px) {
  .snap-zone { height: auto; overflow: visible; }
  .snap-track { transform: none !important; }
}

/* ─── Yellow Hero ─────────────────────────────────────────── */
.yh {
  background: var(--accent);
  color: var(--ode-anthracite-900);
  position: relative;
  overflow: hidden;
  height: 100svh;
  padding-top: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.yh-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 32px 48px;
  position: relative;
  z-index: 1;
}
.yh-kicker,
.ifcf-sub,
.pf-sub,
.gal-sub,
.cta__note,
.mwa-kicker {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.yh-kicker {
  color: var(--ode-anthracite-800);
  margin: 0 0 16px;
}
.yh-kicker b,
.ifcf-sub b,
.pf-sub b,
.gal-sub b,
.cta__note b,
.mwa-kicker b {
  font-weight: 300;
}
.yh-title {
  font-family: var(--font-sans);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.012em;
  margin: 0;
  font-size: clamp(30px, 5.2vw, 70px);
  color: var(--ode-anthracite-900);
  text-wrap: balance;
}
.yh-title span {
  display: block;
  padding-bottom: 10px;
}
.yh-frame {
  margin: 46px 0 0;
  overflow: hidden;
  height: 338px;
}
.yh-game {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.yh-intro {
  margin: 24px 0 0;
  column-count: 2;
  column-gap: 56px;
}
.yh-intro p {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--ode-anthracite-800);
  break-inside: avoid;
  text-align: justify;
  text-wrap: pretty;
}
.yh-intro strong {
  font-weight: 700;
  color: var(--ode-anthracite-900);
}

@media (max-width: 1200px) {
  .yh { padding-top: 72px; }
}

@media (max-width: 900px) {
  .yh { height: auto; }
  .yh-in { padding: 32px 20px 44px; }
  .yh-kicker, .ifcf-sub, .pf-sub, .gal-sub, .cta__note, .mwa-kicker { font-size: 17px; }
  .yh-title { font-size: clamp(30px, 8.5vw, 46px); }
  .yh-title span { padding-bottom: 2px; }
  .yh-frame { height: 300px; }
  .yh-intro { column-count: 1; }
}

/* ─── Sections ────────────────────────────────────────────── */
section {
  padding-block: var(--space-16);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

section h2 {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.5vw, 1.625rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ode-anthracite-800);
  margin: 0 0 16px;
}

/* ─── Accent full-screen section ─────────────────────────── */
.accent-full {
  min-height: 100svh;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--color-accent);
  padding-inline: var(--container-pad);
}

.accent-full h2,
.accent-full p {
  max-width: var(--container-max);
  margin-inline: auto;
  width: 100%;
}

/* ─── IFC Formula Section ─────────────────────────────────── */
section.ifcf {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.ifcf { background: #fff; color: var(--fg1); }
.ifcf-in { max-width: 1180px; margin: 0 auto; padding: 92px 32px 64px; }

.ifcf-screen { height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.ifcf-ctx.ifcf-screen { height: 100svh; }
.ifcf-ctx .ifcf-in { padding-top: 36px; padding-bottom: 44px; }

/* Formula screen grid */
.ifcf-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* IFC wordmark */
.ifcf-word {
  font-weight: 900;
  font-size: 300px;
  line-height: .78;
  letter-spacing: -5.5px;
  margin: 0 0 0 -20px;
  padding: 0;
  color: var(--ode-anthracite-900);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Subtitle */
.ifcf-sub {
  width: 508px;
  margin: 27px 0 0;
  color: var(--accent);
}
.ifcf-sub b { color: var(--accent); }

/* Body text */
.ifcf-body { margin: 20px 0 0; font-size: 15px; line-height: 1.7; color: var(--fg2); font-family: var(--font-mono); }
.ifcf-body p { width: 500px; margin: 0 0 11px; break-inside: avoid; text-align: justify; text-wrap: pretty; }

/* Right column: model + "+" */
.ifcf-modelrow { display: flex; align-items: center; gap: 26px; height: 100%; }

/* Video fills all remaining space in the row */
.ifcf-model-video {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  object-fit: contain;
}

/* "+" sign */
.ifcf-plus {
  font-weight: 900;
  font-size: 200px;
  line-height: 1;
  color: var(--ode-anthracite-900);
  flex: none;
  align-self: center;
}

/* ─── KONTEXT accordion screen ────────────────────────────── */
.ifcf-ctx {
  position: relative;
  overflow: hidden;
}

/* Panels: 50svh block centered by the section's flex */
.ifcf-ctx-panels {
  position: relative;
  height: 50svh;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  background: #111;
}

.ifcf-ctx-panel {
  flex: 1 1 0;
  overflow: hidden;
  position: relative;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark overlay for legibility */
.ifcf-ctx-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.4s ease;
  z-index: 1;
}

.ifcf-ctx-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption at bottom of each panel */
.ifcf-ctx-cap {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Expand hovered panel, compress others */
.ifcf-ctx-panels:hover .ifcf-ctx-panel       { flex: 0.6 1 0; }
.ifcf-ctx-panels:hover .ifcf-ctx-panel:hover { flex: 1.8 1 0; }
.ifcf-ctx-panels:hover .ifcf-ctx-panel:hover::after  { background: rgba(0, 0, 0, 0.15); }
.ifcf-ctx-panels:hover .ifcf-ctx-panel:hover .ifcf-ctx-cap { opacity: 1; transform: translateY(0); }

/* KONTEXT heading — overlaid, centered, fades on panel hover */
.ifcf-kontext {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  font-size: clamp(64px, 11vw, 160px);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0;
  padding: 0;
  transition: opacity 0.4s ease;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}

/* "=" below the accordion */
.ifcf-ctx-eq {
  font-weight: 900;
  font-size: 200px;
  line-height: 1;
  color: var(--ode-anthracite-900);
  text-align: center;
  flex: none;
}

/* Vanish when a panel is being hovered */
.ifcf-ctx-panels:hover .ifcf-kontext { opacity: 0; }

@media (max-width: 820px) {
  .ifcf-top { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 900px) {
  section.ifcf { padding: 0; }
  .ifcf-screen { height: auto; overflow: visible; min-height: 0; display: block; }
  .ifcf-in { padding: 56px 20px 40px; }
  .ifcf-top { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .ifcf-word { font-size: clamp(84px, 30vw, 150px); letter-spacing: -2px; margin: 0; line-height: .8; }
  .ifcf-sub { width: auto; max-width: 100%; margin: 16px 0 0; }
  .ifcf-body p { width: auto; max-width: 100%; }
  .ifcf-modelrow { flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 0; }
  .ifcf-model-video { width: min(260px, 72vw); height: auto; aspect-ratio: 671 / 1280; flex: 0 0 auto; align-self: center; }
  .ifcf-plus { font-size: 80px; width: auto; height: auto; margin: 0; align-self: center; }
  .ifcf-ctx-panels { flex-direction: column; }
  .ifcf-ctx-panels:hover .ifcf-ctx-panel       { flex: 0.8 1 0; }
  .ifcf-ctx-panels:hover .ifcf-ctx-panel:hover { flex: 2 1 0; }
}

@media (max-width: 400px) {
  .ifcf-word { font-size: 76px; }
}

/* ─── Portfolio ───────────────────────────────────────────── */
section.portfolio {
  max-width: 100%;
  padding: 0;
  margin: 0;
  background-color: var(--ode-anthracite-900);
  color: var(--ode-gray-200);
}

.pf-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 32px 120px;
}

.pf-header {
  text-align: center;
  margin-bottom: 80px;
}

.pf-header h2 {
  font-family: var(--font-sans);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(48px, 9vw, 80px);
  letter-spacing: -.02em;
  line-height: .9;
  color: var(--ode-gray-100);
  margin: 0 0 28px;
  padding: 0;
}

.pf-sub {
  color: var(--accent);
}


.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 20px;
  align-items: start;
}

.pf-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  cursor: pointer;
}

/* Rectangular card */
.pf-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ode-anthracite-800);
}

.pf-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  opacity: 0;
  transition: opacity .25s;
  z-index: 1;
  border-radius: inherit;
}

.pf-item:hover .pf-card::after { opacity: 1; }

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

.pf-item--zoom .pf-img,
.pf-item--zoom .pf-video {
  transform: scale(1.52);
  transform-origin: center;
}

.pf-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s;
}

/* Centered play button */
.pf-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.pf-chevron {
  width: 48px;
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .6));
  pointer-events: none;
}

/* SVG ring — centered over .pf-play using same anchor */
.pf-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%) rotate(-90deg);
  pointer-events: none;
  z-index: 3;
}

.pf-ring__track {
  fill: none;
  stroke: rgba(255, 255, 255, .35);
  stroke-width: 2;
}

.pf-ring__fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 289.03;
  stroke-dashoffset: 289.03;
  stroke-linecap: butt;
}

@keyframes pf-ring-fill {
  from { stroke-dashoffset: 289.03; }
  to   { stroke-dashoffset: 0; }
}

.pf-ring__fill.is-filling {
  animation: pf-ring-fill 0.9s linear forwards;
}

.pf-badge {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(24, 27, 31, .85);
  border: 1px solid var(--ode-anthracite-600);
  color: var(--ode-gray-300);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  white-space: nowrap;
}

.pf-name {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ode-gray-100);
  margin-top: 14px;
  transition: color .2s;
}

.pf-item:hover .pf-name { color: var(--accent); }

@media (max-width: 900px) {
  .pf-in { padding: 72px 20px 80px; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .pf-header { margin-bottom: 56px; }
}

@media (max-width: 560px) {
  .pf-in { padding: 56px 16px 64px; }
  .pf-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ─── Portfolio Lightbox ──────────────────────────────────── */
.pf-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}

.pf-lb.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pf-lb__bd {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 12, .78);
  cursor: pointer;
}

/* Split panel: media left, text right */
.pf-lb__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 55fr 45fr;
  max-width: 1020px;
  width: 100%;
  max-height: 86vh;
  background: var(--ode-anthracite-900);
  border: 1px solid var(--ode-anthracite-700);
  border-top: 2px solid var(--accent);
  overflow: hidden;
  transform: translateY(10px);
  transition: transform .28s ease;
}

.pf-lb.is-open .pf-lb__panel { transform: translateY(0); }

/* Media column */
.pf-lb__media {
  position: relative;
  background: #06080a;
  overflow: hidden;
}

.pf-lb__media img,
.pf-lb__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text column */
.pf-lb__body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--ode-anthracite-700);
}

.pf-lb__x {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  background: none;
  border: 0;
  color: var(--ode-gray-600);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  transition: color .12s;
}

.pf-lb__x:hover { color: var(--accent); }

/* Scrollable content area */
.pf-lb__scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 24px 36px;
}

.pf-lb__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 28px);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--ode-gray-100);
  margin: 0 0 14px;
}

.pf-lb__kicker {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--ode-gray-300);
  margin: 0 0 24px;
  line-height: 1.4;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ode-anthracite-700);
}

.pf-lb__kicker b { font-weight: 400; }

.pf-lb__text p {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.78;
  color: var(--ode-gray-300);
  margin: 0 0 14px;
  text-wrap: pretty;
}

.pf-lb__text .pf-leistung {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.75;
  color: var(--ode-gray-600);
  border-top: 1px solid var(--ode-anthracite-700);
  padding-top: 16px;
  margin-top: 6px;
  margin-bottom: 0;
}

.pf-lb__text .pf-leistung b {
  font-weight: 600;
  color: var(--ode-gray-300);
}

@media (max-width: 700px) {
  .pf-lb { padding: 0; align-items: flex-end; }
  .pf-lb__panel {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    border-top: 2px solid var(--accent);
    transform: translateY(20px);
  }
  .pf-lb__media {
    flex-shrink: 0;
    height: min(48vw, 220px);
  }
  .pf-lb__body {
    flex: 1;
    overflow: hidden;
    border-left: none;
    border-top: 1px solid var(--ode-anthracite-700);
  }
}

/* ─── Gallery ─────────────────────────────────────────────── */
section.gallery {
  --gal-w: min(1116px, calc(100vw - 64px));   /* matches the content width above */
  max-width: 100%;
  padding: 0 0 56px;
  margin: 0;
  background: var(--ode-anthracite-900);
  color: var(--ode-gray-100);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gal-head {
  flex: none;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 32px 20px;
}

.gal-head h2 {
  font-family: var(--font-sans);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(48px, 9vw, 80px);
  letter-spacing: -.02em;
  line-height: .9;
  color: var(--ode-gray-100);
  margin: 0 0 12px;
}

.gal-sub {
  color: var(--accent);
}

.gal-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
}

.gal-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.gal-track {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.gal-slide {
  flex: 0 0 var(--gal-w);
  aspect-ratio: 16 / 9;
  max-height: 78svh;
  position: relative;
  overflow: hidden;
  background: var(--ode-anthracite-800);
}

/* Neighbours stay visible but darkened; the active clip is undimmed */
.gal-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .58);
  transition: background .5s;
  z-index: 1;
  pointer-events: none;
}
.gal-slide.is-active::after { background: rgba(0, 0, 0, 0); }

.gal-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--gal-crop, 1));
}

/* Zoom to crop black bars baked into a source clip; step up the level if bars remain */
.gal-slide--crop-1 { --gal-crop: 1.10; }
.gal-slide--crop-2 { --gal-crop: 1.18; }
.gal-slide--crop-3 { --gal-crop: 1.28; }

/* Caption sits inside each slide, so it travels with the clip and fades as the
   slide leaves centre (opacity is tied to .is-active, timed to the slide travel) */
.gal-cap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px 40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
  color: #fff;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.gal-slide.is-active .gal-cap { opacity: 1; }

.gal-cap__meta {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.6vw, 21px);
  line-height: 1.25;
}
.gal-cap__title { font-weight: 900; }
.gal-cap__sep { margin: 0 .5em; font-weight: 300; opacity: .55; }
.gal-cap__desc { font-weight: 300; }

.gal-cap__count {
  margin: 0;
  flex: none;
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.3vw, 17px);
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--ode-gray-100);
}
.gal-cap__cur { font-weight: 900; }

.gal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  transition: transform .15s;
}
.gal-btn:hover { transform: translateY(-50%) scale(1.12); }

.gal-chevron {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, .6));
}
.gal-btn--prev .gal-chevron { transform: rotate(180deg); }

.gal-btn--prev { left: max(10px, calc(50% - var(--gal-w) / 2 - 60px)); }
.gal-btn--next { right: max(10px, calc(50% - var(--gal-w) / 2 - 60px)); }

@media (max-width: 900px) {
  .gal-head { padding: 84px 20px 16px; }
  .gal-btn { width: 40px; }
  .gal-btn--prev { left: 10px; }
  .gal-btn--next { right: 10px; }
}

/* ─── Contact CTA ─────────────────────────────────────────── */
.cta {
  position: relative;
  max-width: 100%;
  margin: 0;
  padding: 0 24px;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  background: var(--accent);
  color: var(--ode-anthracite-900);
}

.cta__shout {
  font-family: var(--font-sans);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--ode-anthracite-900);
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 8rem);
  transform: scale(calc(0.28 + var(--cta-p, 1) * 0.72));
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
}

.cta__note {
  color: var(--ode-anthracite-800);
  margin: 0;
}

.cta__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.cta__btn {
  font-family: var(--font-sans);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  color: var(--ode-gray-100);
  background: var(--ode-anthracite-900);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 12px 26px;
  cursor: pointer;
  transition: background var(--ease-default), transform var(--ease-default);
}
.cta__btn:hover {
  background: var(--ode-anthracite-700);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .cta { gap: 18px; }
}

/* ─── Footer (inside the yellow CTA) ──────────────────────── */
.site-footer {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding: 20px 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ode-anthracite-900);
}

.site-footer__copy {
  margin: 0;
  color: var(--ode-anthracite-800);
}

.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__sep {
  color: var(--ode-anthracite-800);
  opacity: .5;
}

.site-footer a {
  color: var(--ode-anthracite-900);
  text-decoration: none;
  transition: opacity var(--ease-default);
}
.site-footer a:hover {
  opacity: .6;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .site-footer {
    justify-content: center;
    text-align: center;
  }
}

/* ─── Mini-Web-Apps ───────────────────────────────────────── */
section.mwa {
  max-width: 100%;
  padding: 0;
  margin: 0;
  background: var(--color-dark);
  color: var(--ode-gray-200);
}

.mwa-head {
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 32px 0;
  text-align: center;
}

.mwa-kicker {
  color: var(--accent);
  margin: 0 0 20px;
}

.mwa-head h2 {
  font-family: var(--font-sans);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(48px, 9vw, 80px);
  letter-spacing: -.02em;
  line-height: .92;
  color: #fff;
  margin: 0;
}

.mwa-lead {
  max-width: 720px;
  margin: 24px auto 0;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ode-gray-300);
}

.mwa-stack {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 32px 120px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Shared card chrome */
.lv, .ov, .sun {
  width: 100%;
  background: var(--ode-anthracite-900);
  border: 2px dotted rgba(255, 255, 255, .45);
  border-radius: 16px;
  padding: 26px;
}

.lv-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 10px;
}
.lv-bar-l { min-width: 0; }

.lv-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.lv-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  animation: lv-pulse 1.6s ease-in-out infinite;
}
@keyframes lv-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 204, 0, .5); }
  50%      { opacity: .5; box-shadow: 0 0 0 6px rgba(255, 204, 0, 0); }
}

.lv h3, .ov h3, .sun h3 {
  font-family: var(--font-sans);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(22px, 3vw, 30px);
  color: #fff;
  margin: 0 0 10px;
}

.lv-bar-r {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.lv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ode-gray-200);
  background: var(--ode-anthracite-800);
  border: 1px solid var(--ode-anthracite-600);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.lv-btn:hover {
  background: var(--accent);
  color: var(--ode-anthracite-900);
  border-color: var(--accent);
}
.lv-btn svg { width: 15px; height: 15px; }
.lv-btn span { display: inline-flex; align-items: center; }
.lv-btn[hidden] { display: none; }

/* Media stage — one fixed height across all four cards */
.lv-stage, .ov-stage, .sun-stage {
  position: relative;
  height: 540px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0c0e;
}

/* Click-to-load poster (cards 1 & 4) */
.lv-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  border: 0;
  color: var(--ode-gray-200);
  background-color: #0a0c0e;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 34px 34px;
}
.lv-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ode-anthracite-900);
  transition: transform .18s;
}
.lv-poster:hover .lv-play { transform: scale(1.08); }
.lv-play svg { width: 30px; height: 30px; }
.lv-poster-label {
  font-family: var(--font-sans);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 14px;
  color: #fff;
}
.lv-poster-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ode-gray-600);
}

/* Iframe injected on load — scaled 125% to clip the embed's chrome */
.lv-zoom {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.lv-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Card intro — full-width justified block under the header (all cards) */
.mwa-intro {
  margin: 0 0 22px;
}
.mwa-intro p {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ode-gray-300);
  margin: 0;
  text-align: justify;
  text-wrap: pretty;
}

/* ── Overlay compare (card 2) ── */

.ov-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-color: #0f1114;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 34px 34px;
}
.ov-scene .ov-layer:first-child { opacity: 1; }
.ov-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ov-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.ov-scene.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ov-projs {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ov-proj-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ode-gray-200);
  background: rgba(24, 27, 31, .82);
  border: 1px solid var(--ode-anthracite-600);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .15s, color .15s, border-color .15s;
}
.ov-proj-switch svg { width: 13px; height: 13px; }
.ov-proj-switch.is-active {
  background: var(--accent);
  color: var(--ode-anthracite-900);
  border-color: var(--accent);
}

.ov-slider-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px 16px;
  background: linear-gradient(0deg, rgba(10, 12, 14, .85), transparent);
}
.ov-slider-dock .ov-slider { flex: 1; min-width: 0; }

.ov-end {
  flex: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ode-gray-200);
  background: rgba(24, 27, 31, .82);
  border: 1px solid var(--ode-anthracite-600);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  transition: background .15s, color .15s, border-color .15s;
}
.ov-end:hover, .ov-end.is-active {
  background: var(--accent);
  color: var(--ode-anthracite-900);
  border-color: var(--accent);
}

/* Autoplay toggle icon swap */
.ov-auto .ic-pause { display: none; }
.ov-auto.is-on .ic-play { display: none; }
.ov-auto.is-on .ic-pause { display: inline-flex; }
.ov-auto.is-on {
  background: var(--accent);
  color: var(--ode-anthracite-900);
  border-color: var(--accent);
}

/* Shared range slider (cards 2 & 3) */
.ov-slider, .sun-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
  cursor: pointer;
}
.ov-slider::-webkit-slider-thumb, .sun-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--ode-anthracite-900);
  cursor: pointer;
}
.ov-slider::-moz-range-thumb, .sun-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--ode-anthracite-900);
  cursor: pointer;
}

/* ── Sun study (card 3) ── */
.sun-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sun-readout {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  background: rgba(24, 27, 31, .7);
  border: 1px solid var(--ode-anthracite-600);
  border-radius: 999px;
  padding: 8px 14px;
  backdrop-filter: blur(4px);
}
.sun-readout svg { width: 16px; height: 16px; color: var(--accent); }

.sun-controls {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sun-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sun-tick {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ode-gray-600);
  flex: none;
}

@media (max-width: 900px) {
  .mwa-head { padding: 72px 20px 0; }
  .mwa-stack { padding: 44px 20px 80px; gap: 44px; }
  .lv, .ov, .sun { padding: 18px; }
  .lv-bar { flex-direction: column; gap: 14px; }
  .lv-bar-r { width: 100%; }
  .lv-stage, .ov-stage, .sun-stage { height: 62vw; max-height: 440px; }
}

@media (max-width: 640px) {
  .ov-slider-dock { flex-wrap: wrap; justify-content: space-between; }
  .ov-slider-dock .ov-slider { order: -1; flex-basis: 100%; }
  .ov-end { font-size: 11px; padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lv-dot { animation: none; }
}
