/* ============================================================
   SoD ScreenOnDemand · Website 2026
   Design tokens from design_handoff_case_study/colors_and_type.css
   (source of truth). Single-accent brand: Cyan #34D4E5,
   otherwise only a navy/white scale.
   ============================================================ */

@font-face { font-family: 'Nexa'; src: url('../fonts/Nexa_Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nexa'; src: url('../fonts/Nexa_Bold.otf') format('opentype'); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-VariableFont_slnt_wght.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --sod-navy-900: #0B1626;
  --sod-navy-800: #102034;
  --sod-navy:     #14243A;
  --sod-navy-600: #1D3050;
  --sod-navy-500: #2A4066;

  --sod-white:    #FFFFFF;
  --sod-paper:    #F5F5F3;
  --sod-fog:      #E6E8EC;

  --sod-cyan:     #34D4E5;
  --sod-cyan-600: #1FB5C6;
  --sod-cyan-100: #CBF3F8;

  --fg-1: var(--sod-white);
  --fg-2: rgba(255,255,255,0.72);
  --fg-3: rgba(255,255,255,0.48);

  --fg-ink-1: var(--sod-navy);
  --fg-ink-2: rgba(20,36,58,0.72);
  --fg-ink-3: rgba(20,36,58,0.52);

  --border-1: rgba(255,255,255,0.10);
  --border-2: rgba(255,255,255,0.18);
  --border-ink-1: rgba(20,36,58,0.10);
  --border-ink-2: rgba(20,36,58,0.18);

  --font-display: 'Nexa', 'Archivo', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --shadow-md: 0 6px 20px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.45);
  --shadow-glow-cyan: 0 0 0 1px rgba(52,212,229,0.4), 0 8px 30px rgba(52,212,229,0.25);

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
  /* Site-specific scroll choreography, deliberately longer than the UI tokens */
  --dur-reveal: 700ms;
  --dur-bar: 1200ms;
  --dur-ring: 1400ms;
  --stagger: 90ms;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg-1);
  background: var(--sod-navy);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--sod-cyan); text-decoration: none; }
a:hover { color: var(--sod-cyan-600); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,22,38,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-1);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  height: 72px; display: flex; align-items: center; gap: 40px;
}
.nav-logo img { height: 34px; display: block; }
.nav-logo img.is-badge { height: 48px; }   /* square UK badge: larger so it reads */
.nav-links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--fg-2);
  letter-spacing: 0.02em; white-space: nowrap; transition: color var(--dur-base) var(--ease-out);
}
.nav-links a:hover { color: var(--sod-white); }
.nav-links a.active { color: var(--sod-cyan); }
.nav-cta {
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  color: var(--sod-navy-900) !important; background: var(--sod-cyan);
  padding: 10px 20px; border-radius: var(--radius-pill);
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.nav-cta:hover { background: var(--sod-cyan-100); transform: translateY(-1px); }

/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  margin-left: 4px; padding-left: 16px; border-left: 1px solid var(--border-1);
}
.lang-switch a {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--fg-3);
  padding: 4px 6px; border-radius: var(--radius-md);
}
.lang-switch a:hover { color: var(--sod-white); }
.lang-switch a.is-current { color: var(--sod-cyan); }

/* ---------- Type building blocks ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--sod-cyan); margin-bottom: 20px;
}
.eyebrow .sep { width: 36px; height: 2px; background: var(--sod-cyan); display: inline-block; }

.headline {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 24px;
}
.headline em { font-style: italic; color: var(--sod-cyan); }

.hero-headline {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 28px;
}
.hero-headline em { font-style: italic; color: var(--sod-cyan); }

.lede { font-size: 1.125rem; line-height: 1.7; color: var(--fg-2); max-width: 640px; margin: 0 0 32px; }
.lede strong { color: var(--sod-white); font-weight: 600; }

.card-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.125rem; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em;
}
.card-text { font-size: 0.9rem; line-height: 1.6; color: var(--fg-2); margin: 0; }
.card-text b, .card-text strong { color: var(--sod-white); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section.alt { background: var(--sod-navy-800); }
.section-head { max-width: 760px; margin-bottom: 56px; }

/* Light section: white background so the ad-format videos (white
   video background, no alpha channel) blend in seamlessly. */
.section.light { background: var(--sod-white); color: var(--fg-ink-1); }
.section.light .headline { color: var(--fg-ink-1); }
.section.light .headline em { color: var(--sod-cyan-600); }
.section.light .lede { color: var(--fg-ink-2); }
.section.light .lede strong { color: var(--fg-ink-1); }
.section.light .format-list li { color: var(--fg-ink-2); }
.section.light .format-list .mark { color: var(--sod-cyan-600); }
.section.light video { border: none; box-shadow: none; background: var(--sod-white); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 130px 0 120px;
  background:
    radial-gradient(ellipse 900px 520px at 78% -10%, rgba(52,212,229,0.13), transparent 60%),
    radial-gradient(ellipse 700px 500px at -10% 110%, rgba(42,64,102,0.55), transparent 65%),
    var(--sod-navy-900);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
/* Next to the visual the column is narrower: headline one step smaller
   so it stays within three lines. */
.hero-grid .hero-headline { font-size: clamp(2.1rem, 3.3vw, 3.2rem); }
.hero .chips { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 500; color: var(--fg-2);
  border: 1px solid var(--border-2); border-radius: var(--radius-pill);
  padding: 8px 16px;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sod-cyan); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: 0.9375rem; padding: 14px 30px; border-radius: var(--radius-pill);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.btn-primary { background: var(--sod-cyan); color: var(--sod-navy-900); }
.btn-primary:hover { background: var(--sod-cyan-100); color: var(--sod-navy-900); transform: translateY(-2px); box-shadow: var(--shadow-glow-cyan); }
.btn-ghost { border: 1px solid var(--border-2); color: var(--sod-white); }
.btn-ghost:hover { border-color: var(--sod-cyan); color: var(--sod-cyan); transform: translateY(-2px); }

/* ---------- Hero reel: SoD showreel (9:16 brand video) ----------
   Replaces the former ad-format gallery. Sound starts muted
   (autoplay requirement); the button turns it on. */
.hero-visual { position: relative; width: 100%; max-width: 400px; justify-self: end; }
.hero-reel {
  position: relative; margin: 0; aspect-ratio: 9 / 16;
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border-2);
  transform: perspective(1400px) rotateY(-6deg);
  animation: reel-glow 5s ease-in-out infinite;
}
@keyframes reel-glow {
  0%, 100% { box-shadow: var(--shadow-lg), 0 0 40px rgba(52,212,229,0.10); }
  50% { box-shadow: var(--shadow-lg), 0 0 70px rgba(52,212,229,0.28); }
}
.hero-reel video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; cursor: pointer;
}
.reel-sound {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,22,38,0.8); border: 1px solid var(--border-2);
  color: var(--sod-white); cursor: pointer; backdrop-filter: blur(8px);
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.reel-sound:hover { border-color: var(--sod-cyan); color: var(--sod-cyan); }
.reel-sound svg { width: 20px; height: 20px; }
.reel-sound .on-i { display: none; }
.reel-sound.on .on-i { display: block; }
.reel-sound.on .off-i { display: none; }
.reel-sound.on { color: var(--sod-cyan); border-color: rgba(52,212,229,0.45); }

/* ---------- Card grid ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--sod-navy-800); border: 1px solid var(--border-1);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.section.alt .card { background: var(--sod-navy); }
.card:hover { transform: translateY(-4px); border-color: rgba(52,212,229,0.45); }
.card-num {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: 0.8125rem; color: var(--sod-cyan); margin-bottom: 14px;
}

/* ---------- Sell / don't sell ---------- */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.vs .col-label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; margin-bottom: 16px; color: var(--fg-3);
}
.vs .yes .col-label { color: var(--sod-cyan); }
.vs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vs li { display: flex; gap: 12px; align-items: baseline; font-size: 0.9375rem; }
.vs .no li { color: var(--fg-3); }
.vs .yes li { color: var(--sod-white); font-weight: 500; }
.vs .mark { font-weight: 700; }
.vs .no .mark { color: var(--fg-3); }
.vs .yes .mark { color: var(--sod-cyan); }

/* ---------- Product world ---------- */
.channel {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--sod-cyan); margin-bottom: 14px;
}
.claim {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px;
}
.claim i { font-style: italic; color: var(--sod-cyan); }

/* ---------- Targeting steps ---------- */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.steps .arrow {
  align-self: center; font-size: 1.6rem; color: var(--sod-cyan);
  font-family: var(--font-display); font-weight: 700;
}
.step-num {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: 0.8125rem; color: var(--sod-cyan); margin-bottom: 14px;
}
.examples { margin-top: 48px; }
.examples .label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--fg-3); margin-bottom: 16px;
}
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.example { font-size: 0.9rem; line-height: 1.6; color: var(--fg-2); }
.example b { color: var(--sod-white); }

/* ---------- Impact Score ---------- */
.impact-cols { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; }
.ring-wrap { text-align: center; }
.ring { position: relative; width: 280px; height: 280px; margin: 0 auto 24px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--sod-navy-600); stroke-width: 14; }
.ring .fill {
  fill: none; stroke: var(--sod-cyan); stroke-width: 14; stroke-linecap: round;
  stroke-dasharray: 754; stroke-dashoffset: 754;
  transition: stroke-dashoffset var(--dur-ring) var(--ease-out);
}
.ring.in-view .fill { stroke-dashoffset: 113; } /* 85% visible arc illustrating the scale */
.ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
}
.ring-center .scale {
  font-family: var(--font-display); font-weight: 800; font-size: 3rem;
  letter-spacing: -0.03em; line-height: 1;
}
.ring-center .name {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--fg-2);
}
.ring-note { font-size: 0.8125rem; color: var(--fg-3); max-width: 300px; margin: 0 auto; line-height: 1.6; }
.dims { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Platform ---------- */
.xid { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; }
.kpi {
  font-family: var(--font-display); font-weight: 800; font-size: 3.2rem;
  letter-spacing: -0.03em; line-height: 1; color: var(--sod-cyan); margin-bottom: 14px;
}
.kpi small {
  display: block; font-family: var(--font-body); font-weight: 600;
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--fg-2); margin-top: 12px;
}

/* ---------- DXP logo plaque (technology section) ---------- */
.dxp-head { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; max-width: none; }
.dxp-logo {
  width: 360px; max-width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg); border: 1px solid var(--border-1);
  box-shadow: var(--shadow-md);
}

/* ---------- Ad-formats teaser (home page) ---------- */
.teaser {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
.teaser video {
  width: 100%; border-radius: var(--radius-xl); display: block;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-1);
}
.format-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 10px; }
.format-list li { display: flex; gap: 12px; align-items: baseline; font-size: 0.9375rem; color: var(--fg-2); }
.format-list .mark { color: var(--sod-cyan); font-weight: 700; }

/* ============================================================
   AD-FORMATS PAGE
   Layout carried over 1:1 from the previous website:
   zig-zag blocks with auto-loop video and animated
   metric bars (label above the bar, fill on scroll).
   ============================================================ */
.format-intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }

.format-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  padding: 90px 0;
}
.format-row + .format-row { border-top: 1px solid var(--border-1); }
.format-row .media { order: 0; }
.format-row.flip .media { order: 1; }
.format-row video {
  width: 100%; display: block; border-radius: var(--radius-xl);
  border: 1px solid var(--border-1); box-shadow: var(--shadow-lg);
  background: var(--sod-navy-900);
}
.format-row video, .teaser video { cursor: pointer; }

/* Light showcase area: the format videos have white backgrounds;
   on white the edges disappear entirely (no border, no shadow). */
.formats-light { background: var(--sod-white); color: var(--fg-ink-1); }
.formats-light .format-row h2 { color: var(--fg-ink-1); }
.formats-light .format-row h2 em { color: var(--sod-cyan-600); }
.formats-light .format-tagline { color: var(--sod-cyan-600); }
.formats-light .format-desc { color: var(--fg-ink-2); }
.formats-light .bar-label { color: var(--fg-ink-2); }
.formats-light .bar-track { background: var(--sod-fog); }
.formats-light .format-row + .format-row { border-top: 1px solid var(--border-ink-1); }
.formats-light video { border: none; box-shadow: none; background: var(--sod-white); }
.format-row h2 {
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 10px;
}
.format-row h2 em { font-style: italic; color: var(--sod-cyan); }
.format-tagline {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--sod-cyan); margin: 0 0 16px;
}
.format-desc { font-size: 0.9375rem; line-height: 1.65; color: var(--fg-2); margin: 0 0 36px; max-width: 480px; }

/* Metric bars: same mechanism as the previous progress widget.
   Label above the bar; data-max is the BAR WIDTH in % of the track width,
   carried over 1:1 from the old website, not necessarily the label value
   (seconds/days run on the same scale, CTR 0.50% renders with width 5). */
.bars { display: grid; gap: 22px; max-width: 480px; }
.bar-label {
  display: block; font-size: 0.875rem; font-weight: 500; color: var(--fg-2);
  margin-bottom: 8px;
}
.bar-track {
  height: 15px; border-radius: var(--radius-pill);
  background: var(--sod-navy-600); overflow: hidden;
}
.bar-fill {
  height: 100%; width: 0; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--sod-cyan-600), var(--sod-cyan));
  transition: width var(--dur-bar) var(--ease-out);
}

/* ---------- Case tiles (home page) ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-tile { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: var(--fg-1); }
.case-tile:hover { color: var(--fg-1); }
.case-tile img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
  border-bottom: 1px solid var(--border-1);
  transition: transform var(--dur-slow) var(--ease-out);
}
.case-tile:hover img { transform: scale(1.04); }
.case-tile .case-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-tile .case-body .channel { margin-bottom: 0; }
.case-link { margin-top: auto; padding-top: 8px; font-size: 0.875rem; font-weight: 600; color: var(--sod-cyan); }
.case-tile:hover .case-link { color: var(--sod-cyan-100); }

/* ---------- Case detail pages ---------- */
.case-media { margin: 0; }
.case-media video, .case-media img {
  width: 100%; display: block; border-radius: var(--radius-xl);
  border: 1px solid var(--border-2); box-shadow: var(--shadow-lg);
  background: var(--sod-navy-900);
}
.case-media.portrait { max-width: 400px; margin: 0 auto; }
.case-kpi { text-align: left; }
.case-kpi .num {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem); letter-spacing: -0.03em; color: var(--sod-cyan);
}
.case-kpi .num small { font-size: 0.45em; font-weight: 800; margin-left: 4px; }
.case-kpi .lbl {
  margin-top: 12px; font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-2);
}
.case-img {
  width: 100%; display: block; border-radius: var(--radius-lg);
  border: 1px solid var(--border-1);
}
/* Transparent mockup PNGs (cut-out iPhones) without a border */
.case-img.bare { border: none; border-radius: 0; }

/* ---------- About / contact cards ---------- */
.fact .label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--sod-cyan); margin-bottom: 10px;
}
.fact .value { font-size: 0.9375rem; line-height: 1.6; color: var(--fg-2); }
.fact .value strong { color: var(--sod-white); }

/* ---------- Contact / footer ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.footer {
  background: var(--sod-navy-900); border-top: 1px solid var(--border-1);
  padding: 56px 0 40px; margin-top: 0;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.footer img { height: 30px; display: block; }
.footer img.is-badge { height: 46px; }   /* square UK badge */
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.8125rem; color: var(--fg-3); }
.footer-links a:hover { color: var(--sod-cyan); }
.footer-meta { font-size: 0.8125rem; color: var(--fg-3); width: 100%; margin-top: 8px; }

/* ---------- Legal pages (Imprint) ---------- */
.legal-wrap { max-width: 760px; }
.legal { font-size: 0.95rem; line-height: 1.7; color: var(--fg-2); }
.legal p { margin: 0 0 18px; }
.legal strong { color: var(--sod-white); font-weight: 600; }

/* ============================================================
   JOBS PAGE
   Team photos from the company Instagram (@screen_on_demand), benefits
   and the two roles from the job-ad PDFs as
   full HTML instead of a PDF download.
   ============================================================ */
.team-grid { display: grid; grid-template-columns: 420px 1fr; gap: 72px; align-items: center; }

/* Collage: square tiles, the right column slightly offset.
   Uniform black-and-white ties the Instagram photos to the
   navy/cyan brand; hover brings the colour back. */
.team-mosaic { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.team-mosaic .col { display: flex; flex-direction: column; gap: 14px; }
.team-mosaic .col:last-child { padding-top: 28px; }
.team-mosaic img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  border-radius: var(--radius-lg); border: 1px solid var(--border-2);
  box-shadow: var(--shadow-md);
  filter: grayscale(1);
  transition: filter var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.team-mosaic img:hover { filter: grayscale(0); transform: translateY(-3px); }
.team-mosaic figcaption {
  grid-column: 1 / -1; margin-top: 2px;
  font-size: 0.8125rem; color: var(--fg-3); text-align: center;
}

.team-facts { display: flex; gap: 56px; flex-wrap: wrap; }

.job { padding: 40px; }
.job + .job { margin-top: 24px; }
.job:hover { transform: none; }
.job-head {
  display: flex; gap: 32px; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border-1);
}
.job-title {
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 10px;
}
.job-meta { font-size: 0.875rem; color: var(--fg-2); }
.job-apply { flex: 0 0 auto; white-space: nowrap; }
.job-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.job-label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--sod-cyan); margin-bottom: 16px;
}
.job .format-list { margin: 0; }
.job-note {
  margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--border-1);
  font-size: 0.875rem; line-height: 1.6; color: var(--fg-2);
}
.job-note strong { color: var(--sod-white); font-weight: 600; }

.open-application {
  display: flex; gap: 32px; align-items: center; justify-content: space-between;
  padding: 36px 40px;
}
.open-application:hover { transform: none; }

/* ---------- Scroll reveal ----------
   Hidden only when JS is active (html.js, set in <head>),
   so the page stays fully visible without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js .reveal.in-view { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: var(--stagger); }
.js .reveal.d2 { transition-delay: calc(var(--stagger) * 2); }
.js .reveal.d3 { transition-delay: calc(var(--stagger) * 3); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bar-fill, .ring .fill { transition: none; }
  .hero-reel { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  /* Nav width (~960px) no longer fits between 721 and 1000px in the
     viewport, so the section links are reduced already here. */
  /* Hide only the section anchors (direct children); keep the CTA, the
     "always" pages and the nested language switch reachable. */
  .nav-links > a:not(.nav-cta):not(.always) { display: none; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .dxp-head { grid-template-columns: 1fr; gap: 32px; }
  .dxp-logo { justify-self: start; width: 320px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { justify-self: center; }
  .steps { grid-template-columns: 1fr; }
  .steps .arrow { transform: rotate(90deg); justify-self: center; }
  .impact-cols, .teaser { grid-template-columns: 1fr; gap: 48px; }
  .team-grid { grid-template-columns: 1fr; gap: 48px; }
  .team-mosaic { max-width: 420px; }
  .team-facts { gap: 40px; }
  .job-cols { grid-template-columns: 1fr; gap: 32px; }
  .job-head { flex-direction: column; }
  .open-application { flex-direction: column; align-items: flex-start; }
  .bgrid, .format-intro, .contact-grid, .case-grid { grid-template-columns: 1fr; }
  .format-row { grid-template-columns: 1fr; gap: 40px; padding: 64px 0; }
  .format-row.flip .media { order: 0; }
  .xid { grid-column: auto; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; gap: 20px; }
  .nav-links { gap: 16px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .dims, .vs { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 88px 0 80px; }
}
