/* ==========================================================================
   DJ CAISES, djcaises.com
   Single stylesheet. Mobile-first. No frameworks, no build step.
   Brand colours are sampled directly from DJ Caises' own cover artwork.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/archivo-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --blue: #3b24ee;
  --blue-hi: #5b47f5;
  --blue-deep: #2313b8;
  /* Accent for TEXT on dark surfaces. --blue-hi fails WCAG AA as text
     (3.4:1); this passes at 5.6-6.2:1 while staying in the brand family. */
  --blue-text: #8b7dff;

  /* Surfaces */
  --ink: #08080c;
  --ink-2: #0e0e15;
  --ink-3: #14141d;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text: #f5f5f8;
  --muted: #a6a6b8; /* 8.1:1 on --ink */
  --muted-2: #c3c3d2;

  /* Feedback */
  --ok: #34d399;
  --err: #ff6b6b;

  /* Rhythm */
  --gut: 1.25rem;
  --maxw: 1180px;
  --sec-y: clamp(3.5rem, 9vw, 6.5rem);
  --radius: 14px;
  --radius-lg: 20px;

  /* Type scale */
  --fs-display: clamp(2.75rem, 11vw, 6rem);
  --fs-h1: clamp(2.1rem, 7.5vw, 3.75rem);
  --fs-h2: clamp(1.65rem, 5vw, 2.6rem);
  --fs-h3: clamp(1.1rem, 2.6vw, 1.35rem);
  --fs-body: clamp(1rem, 2.4vw, 1.075rem);
  --fs-lead: clamp(1.075rem, 3vw, 1.3rem);
  --fs-sm: 0.875rem;
  --fs-xs: 0.78rem;

  --shadow: 0 18px 45px -18px rgba(0, 0, 0, 0.85);
  --shadow-blue: 0 16px 40px -16px rgba(59, 36, 238, 0.65);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.015em; }

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul { margin: 0; padding: 0; }

button { font: inherit; }

/* Visible focus everywhere, never removed */
:focus-visible {
  outline: 3px solid var(--blue-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--blue); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: var(--sec-y); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--blue-hi);
  flex: none;
}

.lead { font-size: var(--fs-lead); color: var(--muted-2); line-height: 1.6; }
.muted { color: var(--muted); }
.measure { max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover { background: var(--blue-hi); transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.btn--lg { min-height: 54px; padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px; /* tap target, not a visual change */
  text-decoration: none;
  flex: none;
}
/* Both marks are sized by explicit width so the aspect ratio of the
   approved logo and wordmark is never altered. */
.brand__avatar { width: 30px; height: auto; }
.brand__mark { width: 98px; height: auto; }

@media (min-width: 400px) {
  .brand__avatar { width: 34px; }
  .brand__mark { width: 112px; }
}

.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--muted-2);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav__link[aria-current='page'] { color: #fff; background: rgba(255, 255, 255, 0.1); }

.header-cta { display: none; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-right: -0.4rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle__bars { display: block; width: 20px; height: 12px; position: relative; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.16s ease;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile panel */
.mobile-nav {
  position: fixed;
  inset: 68px 0 0;
  z-index: 99;
  background: var(--ink);
  padding: 1.5rem var(--gut) 2.5rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.mobile-nav[data-open='true'] { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-nav__list { list-style: none; display: grid; gap: 0.25rem; }
.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 0.25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mobile-nav__link[aria-current='page'] { color: var(--blue-text); }
.mobile-nav__link span { color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; }
.mobile-nav .btn { margin-top: 1.75rem; }

body[data-nav-open='true'] { overflow: hidden; }

/* ---------- Hero (full-bleed photo, no flat background) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(94vh, 840px);
  display: flex;
  align-items: flex-end;
  background: var(--ink);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(8, 8, 12, 0.98) 0%, rgba(8, 8, 12, 0.8) 26%, rgba(8, 8, 12, 0.3) 58%, rgba(8, 8, 12, 0.55) 100%),
    linear-gradient(100deg, rgba(8, 8, 12, 0.55) 0%, rgba(8, 8, 12, 0) 55%);
}
.hero__content { position: relative; z-index: 2; width: 100%; padding-block: clamp(3rem, 12vw, 5.5rem); }

.hero__wordmark {
  width: min(100%, 400px);
  height: auto;
  margin-bottom: 1.25rem;
}

.hero__tagline {
  font-size: var(--fs-lead);
  color: var(--muted-2);
  max-width: 46ch;
  margin-bottom: 0;
}

/* Proof strip: static, wrapping, never a marquee. No auto-scrolling tickers. */
.strip {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
}
.strip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  row-gap: 0.5rem;
  padding-block: 1.15rem;
}
.strip__row span:not(.strip__dot) {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.strip__dot { color: var(--blue-hi); font-weight: 700; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

.section-head { margin-bottom: 2.25rem; }
.section-head p { max-width: 56ch; }

.section-head--split {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

/* Mix card */
.mix {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.mix:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.mix__art { position: relative; aspect-ratio: 1 / 1; background: var(--ink-3); }
.mix__art img { width: 100%; height: 100%; object-fit: cover; }
/* YouTube's official artwork ships 16:9, not the 1:1 Mixcloud covers use */
.mix__art--wide { aspect-ratio: 16 / 9; }
.mix--platform .mix__meta { display: flex; align-items: center; gap: 0.4rem; }
.mix__platform-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.mix__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.mix__title { font-size: 1.05rem; margin-bottom: 0.4rem; }
.mix__meta {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.mix__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin-bottom: 1.15rem; }
.mix__tags li {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
}
.mix__body .btn { margin-top: auto; align-self: flex-start; }

/* Click-to-load embed facade. Nothing is requested from Mixcloud
   until the visitor actively chooses to play. */
.embed { position: relative; aspect-ratio: 1 / 1; }
.embed--wide { aspect-ratio: 16 / 9; }
.embed iframe { width: 100%; height: 100%; border: 0; }
.embed__facade {
  position: absolute;
  inset: 0;
  width: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 1.25rem;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  text-align: center;
}
.embed__facade img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.embed__facade::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side at 50% 42%, rgba(8, 8, 12, 0.55), rgba(8, 8, 12, 0.2) 70%),
    linear-gradient(180deg, rgba(8, 8, 12, 0.35) 0%, rgba(8, 8, 12, 0.45) 45%, rgba(8, 8, 12, 0.92) 100%);
  /* Must sit above the artwork <img>, which follows it in DOM order. */
  z-index: 1;
  transition: opacity 0.2s ease;
}
.embed__play {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-blue);
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.embed__facade:hover .embed__play { transform: scale(1.07); background: var(--blue-hi); }
.embed__play svg { width: 26px; height: 26px; margin-left: 4px; fill: #fff; }
.embed__note {
  position: relative;
  z-index: 2;
  align-self: end;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e6e6f0;
  max-width: 32ch;
  line-height: 1.45;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Feature / info card */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0; }
.card__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--blue-text);
  margin-bottom: 0.85rem;
}

/* Split media block */
.split { display: grid; gap: 2rem; align-items: center; }
.split__media img { border-radius: var(--radius-lg); width: 100%; }

/* Portrait treatment. Grades the studio backdrop into the brand blue so the
   photo belongs to the page instead of sitting on it as a bright block. */
.portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.portrait img {
  width: 100%;
  border-radius: 0;
  filter: contrast(1.06) saturate(0.9);
}
.portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(155deg, rgba(59, 36, 238, 0.42) 0%, rgba(59, 36, 238, 0.08) 38%, rgba(8, 8, 12, 0) 58%),
    linear-gradient(0deg, rgba(8, 8, 12, 0.72) 0%, rgba(8, 8, 12, 0) 45%);
}

/* Platform links */
.platforms { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); list-style: none; }
.platform {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 56px;
  padding: 0.6rem 1rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}
.platform:hover { border-color: var(--line-strong); background: var(--ink-3); transform: translateY(-2px); }
.platform svg { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* CTA band */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue) 55%, var(--blue-hi));
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 3.25rem);
  text-align: center;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 0.6rem; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 46ch; margin-inline: auto; }
.cta-band .btn {
  --btn-bg: #fff;
  --btn-fg: var(--blue-deep);
  margin-top: 1.75rem;
}
.cta-band .btn:hover { background: #f0eeff; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6); }

.cta-band__paths { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.75rem; }

/* ---------- Photo mosaic (asymmetric, never a uniform grid) ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  /* Items span different numbers of tracks, so without dense packing the grid
     leaves visible holes where a wide or tall item would not fit. Dense
     backfills those gaps with later items and keeps the layout asymmetric
     without looking broken. */
  grid-auto-flow: dense;
}
.mosaic__item {
  position: relative;
  display: block;
  width: 100%;
  min-height: 140px;
  margin: 0;
  padding: 0;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: default;
}
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__item--wide { grid-column: span 2; }
.mosaic__item--tall { grid-row: span 2; }
.mosaic__item--big { grid-column: span 2; grid-row: span 2; }

.mosaic__trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  transition: transform 0.25s ease;
}
button.mosaic__trigger { cursor: zoom-in; }
.mosaic__trigger:hover img { transform: scale(1.04); }
.mosaic__trigger .mosaic__credit {
  position: absolute;
  left: 0.75rem;
  bottom: 0.65rem;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

@media (min-width: 640px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 165px; }
}
@media (min-width: 820px) {
  .mosaic { grid-auto-rows: 195px; gap: 1rem; }
}

.mosaic-link {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: opacity 0.18s ease;
}
.mosaic-link:hover { opacity: 0.9; }
.mosaic-link .mosaic__item { transition: transform 0.25s ease; }
.mosaic-link:hover .mosaic__item img { transform: scale(1.03); }
.mosaic-link .mosaic__item img { transition: transform 0.25s ease; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vw, 3rem);
  background: rgba(4, 4, 7, 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox__stage { position: relative; max-width: min(92vw, 900px); max-height: 88vh; }
.lightbox__stage img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lightbox__caption {
  margin-top: 0.85rem;
  color: var(--muted-2);
  font-size: 0.9rem;
  text-align: center;
}
.lightbox__close {
  position: fixed;
  top: clamp(0.75rem, 3vw, 1.5rem);
  right: clamp(0.75rem, 3vw, 1.5rem);
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
}
.lightbox__close:hover { background: var(--ink-3); }
.lightbox__close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ---------- Consent banner ---------- */
.consent-banner {
  position: fixed;
  left: 12px;
  right: 84px;
  bottom: 12px;
  z-index: 200;
  max-width: 420px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.consent-banner.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.consent-banner p { font-size: 0.88rem; color: var(--muted-2); margin-bottom: 1rem; }
.consent-banner__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn--consent-accept,
.btn--consent-decline {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
}
.btn--consent-accept { background: var(--blue); color: #fff; }
.btn--consent-accept:hover { background: var(--blue-hi); }
.btn--consent-decline { background: var(--ink-3); color: var(--text); border: 1px solid var(--line-strong); }
.btn--consent-decline:hover { background: #1c1c28; border-color: rgba(255, 255, 255, 0.4); }

@media (min-width: 560px) {
  .consent-banner { left: 20px; right: auto; bottom: 20px; }
}

/* ---------- Accessibility widget ---------- */
.a11y-widget { position: fixed; right: 16px; bottom: 16px; z-index: 210; }
.a11y-toggle {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: var(--shadow-blue);
  cursor: pointer;
}
.a11y-toggle:hover { background: var(--blue-hi); }
.a11y-toggle svg { width: 24px; height: 24px; fill: currentColor; }

.a11y-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(280px, 78vw);
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem 1.35rem;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.9rem;
}
.a11y-panel__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 40px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.a11y-panel__row input { width: 18px; height: 18px; accent-color: var(--blue-hi); flex: none; }
.a11y-panel .btn { margin-top: 0.9rem; width: 100%; min-height: 42px; padding: 0.55rem 1rem; font-size: 0.85rem; }

@media (min-width: 560px) {
  .a11y-widget { right: 20px; bottom: 20px; }
}

/* ---------- Embed, consent-gated states ---------- */
.embed__note--blocked { max-width: 26ch; }
.embed__note--blocked button {
  background: none;
  border: 0;
  padding: 0;
  margin-top: 0.35rem;
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-size: inherit;
}

/* ---------- Footer contact ---------- */
.footer__contact { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 1.1rem; }
.footer__contact a { color: var(--blue-text); font-weight: 700; text-decoration: none; font-size: 0.95rem; }
.footer__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }

.field { display: grid; gap: 0.45rem; }
.field > label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.field__hint a { color: var(--blue-text); text-underline-offset: 3px; }
.req { color: var(--blue-text); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16px, stops iOS zoom-on-focus */
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a6a6b8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 22px;
  padding-right: 2.5rem;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.3); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--blue-hi); background: var(--ink-3); }
.field input::placeholder,
.field textarea::placeholder { color: #6f6f83; }

.field[data-invalid='true'] input,
.field[data-invalid='true'] select,
.field[data-invalid='true'] textarea { border-color: var(--err); }

.field__error {
  display: none;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--err);
}
.field[data-invalid='true'] .field__error { display: block; }

.form__row { display: grid; gap: 1.1rem; }

/* Honeypot: hidden from humans, catchable by bots */
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: none;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid;
}
.form-status[data-state='success'],
.form-status[data-state='error'],
.form-status[data-state='notice'] { display: flex; }
.form-status[data-state='success'] { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.45); color: #b6f2dc; }
.form-status[data-state='error'] { background: rgba(255, 107, 107, 0.1); border-color: rgba(255, 107, 107, 0.45); color: #ffc9c9; }
.form-status[data-state='notice'] { background: rgba(91, 71, 245, 0.12); border-color: rgba(91, 71, 245, 0.5); color: #d5cffd; }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: currentColor; }
.form-status a { color: inherit; text-underline-offset: 3px; }
/* Focus is moved here so keyboard and screen-reader users land on the message.
   The box is already a high-contrast alert, so the ring would only add noise. */
.form-status:focus,
.form-status:focus-visible { outline: none; }
.form-status strong { display: block; }

.btn[data-loading='true'] { pointer-events: none; opacity: 0.75; }
.btn__spinner { display: none; width: 17px; height: 17px; }
.btn[data-loading='true'] .btn__spinner { display: block; animation: spin 0.7s linear infinite; }
.btn[data-loading='true'] .btn__label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 0.9rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--blue-hi);
  border-bottom: 2px solid var(--blue-hi);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details > div { padding: 0 1.15rem 1.15rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.3rem, 3.6vw, 1.7rem); margin-top: 2.5rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--muted-2); }
.prose ul { padding-left: 1.15rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--blue-text); text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: clamp(2.5rem, 6vw, 3.5rem) 1.75rem;
}
.footer__grid { display: grid; gap: 2rem; margin-bottom: 2.25rem; }
.footer__brand img.brand__mark-lg { width: 190px; margin-bottom: 1rem; }
.footer__brand p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }

.footer__col h2 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.footer__col ul { list-style: none; display: grid; gap: 0.15rem; }
.footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted-2);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 1.25rem; list-style: none; margin-block: -0.5rem; }
.footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* comfortable tap target */
  color: var(--muted);
  text-decoration: none;
}
.footer__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Error page ---------- */
.error-page { display: grid; place-items: center; text-align: center; padding-block: clamp(4rem, 14vw, 8rem); }
.error-page .code {
  font-size: clamp(4.5rem, 22vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--blue-hi), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 560px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .form__row--2 { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: repeat(3, 1fr); }
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 820px) {
  :root { --gut: 2rem; }

  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split--reverse .split__media { order: 2; }

  .section-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section-head--split > div { max-width: 60%; }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
  .platforms { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Motion & contrast preferences ---------- */
@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;
  }
}

html.a11y-reduced-motion { scroll-behavior: auto; }
html.a11y-reduced-motion *,
html.a11y-reduced-motion *::before,
html.a11y-reduced-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

@media print {
  .site-header, .mobile-nav, .cta-band, .site-footer,
  .consent-banner, .a11y-widget, .lightbox { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Accessibility widget states ---------- */
html.a11y-large-text { font-size: 112.5%; }

html.a11y-high-contrast {
  --ink: #000000;
  --ink-2: #050505;
  --ink-3: #0a0a0a;
  --text: #ffffff;
  --muted: #e6e6f0;
  --muted-2: #f4f4f8;
  --line: rgba(255, 255, 255, 0.4);
  --line-strong: rgba(255, 255, 255, 0.65);
}
html.a11y-high-contrast .portrait::after,
html.a11y-high-contrast .embed__facade::before { display: none; }

html.a11y-underline-links a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
