/* ==========================================================================
   Vision Films — Design tokens
   ========================================================================== */
:root {
  /* Brand colors */
  --color-dark: #121317;
  --color-dark-2: #0b0c0f;
  --color-light: #f9f8f8;
  --color-accent: #687f8f;
  --color-accent-light: #93a7b2;

  /* Semantic tokens */
  --bg-primary: var(--color-dark);
  --bg-deep: var(--color-dark-2);
  --bg-surface: #17181d;
  --bg-surface-raised: #1c1e24;
  --text-primary: var(--color-light);
  --text-muted: rgba(249, 248, 248, 0.64);
  --text-faint: rgba(249, 248, 248, 0.38);
  --border-subtle: rgba(249, 248, 248, 0.1);
  --border-strong: rgba(249, 248, 248, 0.22);
  --accent: var(--color-accent);
  --accent-light: var(--color-accent-light);
  --focus-ring: #b9c7ce;

  /* Typography */
  --font-display: "Geist Sans", "Inter", sans-serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
  --font-accent: "Space Grotesk", "Geist Sans", sans-serif;

  --fs-hero: clamp(2.75rem, 1.35rem + 6.5vw, 7.5rem);
  --fs-h1: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(1.85rem, 1.35rem + 2.2vw, 3.15rem);
  --fs-h3: clamp(1.35rem, 1.15rem + 0.9vw, 1.85rem);
  --fs-lead: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.78rem;

  /* Spacing (8pt rhythm, mid density) */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;

  /* Layout */
  --container-max: 1360px;
  --container-pad: clamp(1.25rem, 4vw, 4rem);
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 14px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 420ms;

  /* Z-index scale */
  --z-grain: 2;
  --z-content: 10;
  --z-nav: 100;
  --z-overlay: 500;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 1ms;
    --dur-base: 1ms;
    --dur-slow: 1ms;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  min-height: 100dvh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

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

/* ==========================================================================
   Grain overlay
   ========================================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-3xl);
}

.section--tight {
  padding-block: var(--space-2xl);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent-light);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 42ch;
  font-weight: 300;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--color-light);
  color: var(--color-dark);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-base) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  min-height: 44px;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--color-light);
  color: var(--color-dark);
  border-color: var(--color-light);
}

.btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
}

.btn--ghost:hover {
  background: rgba(249, 248, 248, 0.06);
  border-color: var(--color-light);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-base) var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-nav);
  padding-block: var(--space-md);
  transition: padding var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out),
    backdrop-filter var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding-block: var(--space-xs);
  background: rgba(18, 19, 23, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border-subtle);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.brand img {
  height: 34px;
  width: auto;
}

.brand-word {
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-desktop a {
  position: relative;
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-block: var(--space-3xs);
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--color-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-out);
}

.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 60;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-light);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 50;
  display: flex;
  align-items: center;
  padding: var(--container-pad);
  visibility: hidden;
  opacity: 0;
}

.nav-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.nav-overlay ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.nav-overlay a {
  font-family: var(--font-accent);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 10vw, 3.5rem);
  display: inline-block;
}

.nav-overlay-footer {
  position: absolute;
  bottom: var(--container-pad);
  left: var(--container-pad);
  right: var(--container-pad);
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: var(--fs-small);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (min-width: 900px) {
  .nav-desktop {
    display: block;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--space-4xl) + var(--space-2xl));
  overflow: hidden;
  isolation: isolate;
}

/* The slate strip forms the bottom edge of the hero, so the section itself
   carries no bottom padding — the gap lives on .hero-body instead. */
.hero-body {
  margin-bottom: var(--space-2xl);
}

@media (min-width: 640px) {
  .hero-body {
    margin-bottom: var(--space-3xl);
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: brightness(0.55) saturate(0.85);
  transform: scale(1);
  animation: heroKenBurns 28s ease-out infinite alternate;
}

@keyframes heroKenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

/* Showreel loop layered over the still. Hidden until it can actually play
   (JS adds .is-playing), so a missing/late file always falls back to the
   image beneath rather than flashing an empty black box. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: brightness(0.55) saturate(0.85);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}

.hero-video.is-playing {
  opacity: 1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 15, 0.15) 0%, rgba(11, 12, 15, 0.55) 75%, var(--bg-deep) 100%);
}

/* Kicker sits tight against the headline so the two read as one unit. It
   lands just before the title lines start their reveal. */
.hero-kicker {
  /* Block-level so the bottom margin is predictable; `fit-content` keeps the
     rule-plus-text hugging its content the way the inline .eyebrow does. */
  display: flex;
  width: fit-content;
  margin-bottom: var(--space-md);
  animation: heroFadeUp 0.9s var(--ease-out) 0.15s both;
}

.hero-title {
  font-size: var(--fs-hero);
  letter-spacing: -0.03em;
  overflow: hidden;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-title .line span {
  display: inline-block;
  will-change: transform;
}

.hero-title em {
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent-light);
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-cue svg {
  width: 14px;
  height: 20px;
  animation: bob 1.8s var(--ease-in-out) infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-kicker,
  .hero-slate {
    animation: none;
  }
}

/* ==========================================================================
   Hero slate — the four disciplines set in ruled cells at the foot of the
   hero, like the fields on a clapperboard. The marquee directly below has
   its own top rule, so this strip only needs one on top.
   ========================================================================== */
.hero-slate {
  border-top: 1px solid var(--border-subtle);
  animation: heroFadeUp 0.9s var(--ease-out) 0.8s both;
}

.hero-slate-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 760px) {
  .hero-slate-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-slate-list li {
  position: relative;
}

/* Column rule, drawn on the cell's leading edge. Cells that open a row skip
   it — two-up on mobile that means every odd cell, four-up only the first. */
.hero-slate-list li::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 1px;
  background: var(--border-subtle);
}

.hero-slate-list li:nth-child(odd)::before {
  display: none;
}

/* Second row of the mobile grid needs its own rule above it. */
.hero-slate-list li:nth-child(n + 3) {
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 760px) {
  .hero-slate-list li:nth-child(odd)::before {
    display: block;
  }

  .hero-slate-list li:first-child::before {
    display: none;
  }

  .hero-slate-list li:nth-child(n + 3) {
    border-top: 0;
  }
}

.hero-slate-list a {
  position: relative;
  display: block;
  padding-block: var(--space-md);
  padding-inline: var(--space-md) var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--dur-base) var(--ease-out);
}

/* Row-opening cells run flush to the container edge so the first label lines
   up with the headline above it. */
.hero-slate-list li:nth-child(odd) > a {
  padding-inline-start: 0;
}

@media (min-width: 760px) {
  .hero-slate-list li:nth-child(odd) > a {
    padding-inline-start: var(--space-md);
  }

  .hero-slate-list li:first-child > a {
    padding-inline-start: 0;
  }
}

.hero-slate-list a::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}

.hero-slate-list a:hover,
.hero-slate-list a:focus-visible {
  color: var(--text-primary);
}

.hero-slate-list a:hover::after,
.hero-slate-list a:focus-visible::after {
  transform: scaleX(1);
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  border-block: 1px solid var(--border-subtle);
  padding-block: var(--space-md);
  padding-inline-start: var(--container-pad);
}

.marquee-label {
  flex-shrink: 0;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.marquee-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

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

.marquee-group {
  display: flex;
  flex-shrink: 0;
}

.marquee-item {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.marquee-item::after {
  content: "\00b7";
  margin-inline: var(--space-lg);
  color: var(--border-strong);
  font-size: 1.3em;
}

/* ==========================================================================
   Section headers
   ========================================================================== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: var(--fs-h2);
  max-width: 16ch;
}

/* ==========================================================================
   Services
   ========================================================================== */
.service-list {
  border-top: 1px solid var(--border-subtle);
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-lg);
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--dur-base) var(--ease-out);
  position: relative;
}

.service-row:hover {
  background: rgba(249, 248, 248, 0.03);
}

.service-index {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text-faint);
  min-width: 2ch;
}

.service-main h3 {
  font-size: var(--fs-h3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.service-main p {
  color: var(--text-muted);
  margin-top: var(--space-2xs);
  max-width: 56ch;
  font-size: var(--fs-small);
}

.service-icon {
  width: 26px;
  height: 26px;
  color: var(--accent-light);
  flex-shrink: 0;
}

.service-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}

.service-row:hover .service-arrow {
  background: var(--color-light);
  color: var(--color-dark);
  transform: rotate(45deg);
}

.service-arrow svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .service-row {
    grid-template-columns: 1fr;
    padding-right: 3.25rem;
  }

  .service-index {
    display: block;
    margin-bottom: var(--space-2xs);
  }

  .service-arrow {
    position: absolute;
    top: var(--space-lg);
    right: 0;
    width: 34px;
    height: 34px;
  }

  .service-arrow svg {
    width: 14px;
    height: 14px;
  }
}

/* Service detail cards (Ydelser page) */
.service-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

.service-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  background: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  /* No-JS fallback: keep the fixed header from covering a card when it is
     reached via a #hash. JS refines this to a centred position. */
  scroll-margin-top: 120px;
}

.service-card .service-icon {
  width: 34px;
  height: 34px;
}

.service-card h3 {
  font-size: var(--fs-h3);
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.service-card li {
  font-size: var(--fs-small);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.service-card li svg {
  width: 14px;
  height: 14px;
  color: var(--accent-light);
  flex-shrink: 0;
}

@media (min-width: 700px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Case grid (data-driven, extensible)
   ========================================================================== */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.case-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  color: var(--text-primary);
  isolation: isolate;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--case-bg, linear-gradient(150deg, #23303a, #121317));
  transition: transform var(--dur-slow) var(--ease-out);
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(11, 12, 15, 0.92) 0%, rgba(11, 12, 15, 0.1) 55%);
}

.case-card:hover::before {
  transform: scale(1.06);
}

.case-tag {
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: var(--space-2xs);
}

.case-card h3 {
  font-size: var(--fs-h3);
}

.case-card p {
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-top: var(--space-2xs);
}

.case-placeholder-note {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

/* In case-cards the note sits under the video/foto badge instead of
   top-right, so the two labels never collide regardless of card width. */
.case-card .case-placeholder-note {
  top: var(--space-md);
  right: auto;
  left: var(--space-md);
}

.case-add-card {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  text-align: center;
  padding: var(--space-lg);
  font-size: var(--fs-small);
}

@media (min-width: 700px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .case-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Stats / numbers
   ========================================================================== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-xl);
}

.stat-item .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  color: var(--accent-light);
}

.stat-item .label {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: var(--space-3xs);
}

@media (min-width: 700px) {
  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   Process steps
   ========================================================================== */
.process-list {
  display: grid;
  gap: var(--space-lg);
  counter-reset: step;
}

.process-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.process-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--accent-light);
  line-height: 1;
}

.process-item-body h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2xs);
}

.process-item-body p {
  color: var(--text-muted);
  font-size: var(--fs-small);
  max-width: 60ch;
}

@media (max-width: 640px) {
  .process-item {
    grid-template-columns: 1fr;
    gap: var(--space-2xs);
  }

  .process-item::before {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Two-column media/text blocks
   ========================================================================== */
.split {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.split-media {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #23303a, #121317 70%);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.split-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a7b2' stroke-width='0.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-2h6l2 2h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1Z'/%3E%3Ccircle cx='12' cy='14' r='3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 110px;
  opacity: 0.22;
}

.split-media .case-placeholder-note {
  top: auto;
  bottom: var(--space-md);
  right: var(--space-md);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
  }
  .split--reverse > * {
    direction: ltr;
  }
}

/* ==========================================================================
   Values / cards
   ========================================================================== */
.value-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

.value-card {
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.value-card svg {
  width: 28px;
  height: 28px;
  color: var(--accent-light);
  margin-bottom: var(--space-md);
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-2xs);
}

.value-card p {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

@media (min-width: 700px) {
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--bg-deep);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--container-pad);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  border: 1px solid var(--border-subtle);
}

.cta-band h2 {
  font-size: var(--fs-h1);
  max-width: 18ch;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: var(--space-2xl);
}

.contact-info dl {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.contact-info dt {
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-3xs);
}

.contact-info dd a {
  font-size: 1.1rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out);
}

.contact-info dd a:hover {
  border-color: var(--color-light);
}

.map-embed {
  margin-top: var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16/10;
  filter: grayscale(1) invert(0.92) contrast(0.85);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  margin-bottom: var(--space-lg);
}

.form-field label {
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  border-bottom: 1px solid var(--border-strong);
  padding-block: var(--space-xs);
  font-size: 1.05rem;
  transition: border-color var(--dur-base) var(--ease-out);
  min-height: 44px;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-light);
}

/* Match the select's placeholder tint exactly — the browser default
   (~#757575 flat grey) renders visibly thinner than the near-white 38%
   the selects use, so align the inputs to the same colour. */
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-faint);
  opacity: 1;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #c97b6a;
}

/* Selects: strip native chrome so they match the dark theme, add a custom
   chevron, and grey out the label text while the placeholder is selected. */
.form-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  color: var(--text-primary);
  /* select is excluded from the reset's `font: inherit`, so it falls back to
     the UA font (Arial/400) — restore the body font to match the inputs. */
  font-family: var(--font-body);
  font-weight: 300;
  /* The global reset zeroes borders for input/textarea but not select, so
     the UA box border lingers on 3 sides — strip it back to a single
     underline to match the Navn/Email fields. */
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  padding-inline: 0 2rem;
  /* Match the inputs' inherited line-height so the field heights line up
     (inputs get 1.6 via `font: inherit`; select is excluded from that reset). */
  line-height: 1.6;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a7b2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.15rem center;
  background-size: 18px;
}

.form-field select:has(option[value=""]:checked) {
  color: var(--text-faint);
}

.form-field option {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
}

.label-optional {
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-faint);
}

.form-error {
  font-size: 0.78rem;
  color: #e0a394;
  min-height: 1em;
}

.form-status {
  margin-top: var(--space-md);
  font-size: var(--fs-small);
  color: var(--accent-light);
}

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

/* ==========================================================================
   Team (Om os) — two founder profile cards, side by side on desktop
   ========================================================================== */
.team-grid {
  display: grid;
  gap: var(--space-2xl);
  grid-template-columns: 1fr;
}

.team-card .photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #23303a, #121317 70%);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
}

.team-card .photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a7b2' stroke-width='0.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-2h6l2 2h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1Z'/%3E%3Ccircle cx='12' cy='14' r='3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 84px;
  opacity: 0.22;
}

.team-card .photo:has(img)::before {
  display: none;
}

.team-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-card .photo .case-placeholder-note {
  top: auto;
  bottom: var(--space-md);
  right: var(--space-md);
}

.team-card .eyebrow {
  margin-bottom: var(--space-2xs);
}

.team-card h3 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.team-card p + p {
  margin-top: var(--space-sm);
}

@media (min-width: 800px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

/* ==========================================================================
   Gallery — dense masonry grid of varied-format placeholders. No captions
   by design; a single note above the grid covers all tiles at once. Runs
   edge-to-edge (no container max-width) so the imagery gets full breadth.
   ========================================================================== */
.gallery-wrap {
  padding-inline: var(--container-pad);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  isolation: isolate;
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gallery-bg, linear-gradient(150deg, #23303a, #121317));
  transition: transform var(--dur-slow) var(--ease-out);
}

/* Drop a real <img> straight into a .gallery-item and it just works: fills
   the tile and the gradient placeholder disappears automatically. */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item:has(img)::before {
  display: none;
}

.gallery-item:hover::before {
  transform: scale(1.06);
}

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

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

.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(11, 12, 15, 0.55);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.gallery-badge svg {
  width: 14px;
  height: 14px;
  color: var(--accent-light);
}

.gallery-number {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(11, 12, 15, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  backdrop-filter: blur(4px);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
  }
}

@media (min-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 320px;
    gap: var(--space-md);
  }
}

@media (min-width: 1500px) {
  .gallery-grid {
    grid-auto-rows: 380px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  padding-block: var(--space-2xl) var(--space-lg);
}

.footer-top {
  display: grid;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.footer-brand img {
  height: 30px;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 34ch;
  font-size: var(--fs-small);
}

.footer-cols {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(2, 1fr);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: var(--fs-small);
  color: var(--text-muted);
  transition: color var(--dur-base) var(--ease-out);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-faint);
  font-size: 0.78rem;
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1.2fr 2fr;
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Reveal animation utility hooks (driven by GSAP in main.js)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.is-ready {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero {
  padding-top: calc(var(--space-4xl) + var(--space-lg));
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero h1 {
  font-size: var(--fs-h1);
  max-width: 20ch;
  margin-top: var(--space-md);
}

.page-hero .lead {
  margin-top: var(--space-md);
}

/* ==========================================================================
   Case cards → clickable links (case grid on homepage + cases.html)
   ========================================================================== */
.case-card {
  cursor: pointer;
}

.case-card-cue {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-top: var(--space-md);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.case-card-cue svg {
  width: 15px;
  height: 15px;
  transition: transform var(--dur-base) var(--ease-out);
}

.case-card:hover .case-card-cue,
.case-card:focus-visible .case-card-cue {
  opacity: 1;
  transform: none;
}

.case-card:hover .case-card-cue svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Case detail (hidden per-case pages) — one 16:9 video + ten 16:9 photos
   ========================================================================== */
.case-detail-top {
  padding-top: calc(var(--space-4xl) + var(--space-lg));
  padding-bottom: var(--space-xl);
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  transition: color var(--dur-base) var(--ease-out);
}

.case-back:hover {
  color: var(--text-primary);
}

.case-back svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-base) var(--ease-out);
}

.case-back:hover svg {
  transform: translateX(-3px);
}

.case-detail-head h1 {
  font-size: var(--fs-h1);
  max-width: 18ch;
  margin-top: var(--space-md);
}

.case-detail-head .lead {
  margin-top: var(--space-md);
  max-width: 52ch;
}

/* Shared 16:9 media frame — placeholder art that a real <video>/<img>
   quietly replaces (see :has() rules below). */
.case-video,
.case-shot {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(150deg, #23303a, #121317 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  isolation: isolate;
}

.case-video video,
.case-video img,
.case-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-video:has(video) .case-slot-icon,
.case-video:has(video) .case-slot-note,
.case-video:has(img) .case-slot-icon,
.case-video:has(img) .case-slot-note,
.case-shot:has(img) .case-slot-icon,
.case-shot:has(img) .case-slot-note,
.case-shot:has(img) .case-shot-number {
  display: none;
}

.case-slot-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  opacity: 0.6;
}

.case-video .case-slot-icon svg {
  width: 58px;
  height: 58px;
}

.case-shot .case-slot-icon svg {
  width: 40px;
  height: 40px;
}

.case-slot-note {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.case-video .case-slot-note {
  font-size: var(--fs-small);
  letter-spacing: 0.16em;
}

.case-shot-number {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(11, 12, 15, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  backdrop-filter: blur(4px);
}

.case-video-wrap {
  padding-bottom: var(--space-2xl);
}

/* YouTube facade: thumbnail poster + play button, swapped for the player
   iframe on click (see initCaseVideoFacades). */
.case-video--yt {
  cursor: pointer;
}

.case-yt-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: block;
}

.case-yt-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-video--yt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 15, 0) 40%, rgba(11, 12, 15, 0.45) 100%);
  transition: background var(--dur-base) var(--ease-out);
  pointer-events: none;
}

.case-video--yt:hover::after {
  background: rgba(11, 12, 15, 0.3);
}

.case-yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(11, 12, 15, 0.55);
  border: 1px solid rgba(249, 248, 248, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}

.case-yt-facade:hover .case-yt-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--accent);
  border-color: var(--accent-light);
}

.case-yt-play svg {
  width: 30px;
  height: 30px;
  color: var(--color-light);
  margin-left: 4px;
}

.case-yt-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.case-gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.case-gallery-head h2 {
  font-size: var(--fs-h2);
}

.case-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-3xl);
}

@media (min-width: 700px) {
  .case-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .case-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-gallery .case-shot {
  cursor: zoom-in;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.case-gallery .case-shot:hover {
  border-color: var(--border-strong);
}

.case-gallery .case-shot:hover .case-slot-icon {
  opacity: 0.9;
}

/* ==========================================================================
   Lightbox — enlarge a gallery photo over a dimmed backdrop, slide with
   minimalist prev/next arrows. Built once and reused (see initCaseLightbox).
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, var(--space-lg));
  padding: clamp(1rem, 4vw, var(--space-2xl));
  background: rgba(11, 12, 15, 0.9);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base) var(--ease-out);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 100%;
}

.lightbox-frame {
  width: min(88vw, calc(82vh * 16 / 9));
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  cursor: default;
  transform: scale(0.985);
  transition: transform var(--dur-base) var(--ease-out);
}

.lightbox.is-open .lightbox-frame {
  transform: scale(1);
}

.lightbox-frame .case-slot-icon {
  opacity: 0.7;
}

.lightbox-counter {
  font-size: var(--fs-small);
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Minimalist controls — thin outlined circles, near-transparent until hover */
.lightbox-nav,
.lightbox-close {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  background: rgba(11, 12, 15, 0.35);
  opacity: 0.7;
  transition: opacity var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}

.lightbox-nav {
  width: 56px;
  height: 56px;
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  opacity: 1;
  background: rgba(249, 248, 248, 0.1);
  border-color: var(--color-light);
}

.lightbox-nav:active {
  transform: scale(0.94);
}

.lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, var(--space-xl));
  right: clamp(1rem, 3vw, var(--space-xl));
  width: 46px;
  height: 46px;
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .lightbox {
    gap: var(--space-2xs);
    padding-inline: var(--space-2xs);
  }

  .lightbox-frame {
    width: min(94vw, calc(70vh * 16 / 9));
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-nav svg {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================================
   Responsive container padding safety
   ========================================================================== */
@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--space-3xl) + var(--space-lg));
  }
}
