/* ==========================================================================
   CSC Labs — design system
   Single stylesheet for the whole site. Tokens first, then layout, then
   components, then page-specific blocks.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --bg-sunk: #eaeef4;
  --surface: #ffffff;
  --border: #dde3ec;
  --border-strong: #c3ccda;

  --text: #10151f;
  --text-muted: #55617a;
  --text-faint: #7d879b;

  --brand: #0b5cab;
  --brand-hover: #094a8b;
  --brand-soft: #e7f0fa;
  --accent: #0f9d8f;
  --accent-soft: #e2f5f2;

  --focus: #1e7ae0;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 21, 31, .06), 0 1px 3px rgba(16, 21, 31, .04);
  --shadow-md: 0 4px 12px rgba(16, 21, 31, .07), 0 2px 4px rgba(16, 21, 31, .04);
  --shadow-lg: 0 12px 32px rgba(16, 21, 31, .10), 0 4px 8px rgba(16, 21, 31, .05);

  --wrap: 1140px;
  --gap: 1.5rem;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1219;
    --bg-alt: #141a24;
    --bg-sunk: #1a212d;
    --surface: #161d28;
    --border: #27303e;
    --border-strong: #38445a;

    --text: #e9edf4;
    --text-muted: #a3aec2;
    --text-faint: #7f8a9e;

    --brand: #5aa9f0;
    --brand-hover: #7cbcf5;
    --brand-soft: #16263a;
    --accent: #3fcdbb;
    --accent-soft: #102c2a;

    --focus: #6fb4f2;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
  }
}

:root[data-theme="dark"] {
  --bg: #0e1219;
  --bg-alt: #141a24;
  --bg-sunk: #1a212d;
  --surface: #161d28;
  --border: #27303e;
  --border-strong: #38445a;

  --text: #e9edf4;
  --text-muted: #a3aec2;
  --text-faint: #7f8a9e;

  --brand: #5aa9f0;
  --brand-hover: #7cbcf5;
  --brand-soft: #16263a;
  --accent: #3fcdbb;
  --accent-soft: #102c2a;

  --focus: #6fb4f2;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
}

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

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }

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

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

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }

.section__head { max-width: 62ch; margin-bottom: 2.5rem; }
.section__head p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .7rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -.03em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--text); }
.logo__mark { flex-shrink: 0; }
.logo__sub {
  display: block;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: -2px;
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  padding: .5rem .7rem;
  border-radius: var(--radius);
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.nav__link:hover { background: var(--bg-alt); color: var(--text); }
.nav__link[aria-current="page"] { color: var(--brand); font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 1000px) {
  .nav-toggle { display: grid; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: .75rem 1.25rem 1.25rem;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__link { padding: .7rem .8rem; font-size: 1rem; }
  .nav .btn { margin-top: .6rem; width: 100%; }
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); color: #fff; }

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { background: var(--bg-alt); color: var(--text); border-color: var(--text-faint); }

.btn--sm { padding: .5rem .9rem; font-size: .88rem; }
.btn--lg { padding: .9rem 1.7rem; font-size: 1.02rem; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(900px 420px at 78% -8%, var(--brand-soft), transparent 65%),
    radial-gradient(700px 380px at 8% 108%, var(--accent-soft), transparent 62%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero__title { margin-bottom: .5rem; }
.hero__title span { color: var(--brand); }

.hero__lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: 1.9rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--border);
}
.stat__num {
  display: block;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.1;
}
.stat__label {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: block;
  margin-top: .2rem;
}

/* Hero side panel — the "order" card */
.hero__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.panel__title { font-size: .95rem; font-weight: 700; margin: 0; }
.panel__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: .3rem .6rem;
  border-radius: 100px;
}
.panel__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.track { list-style: none; margin: 0; padding: 0; }
.track__item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .6rem 0;
}
.track__icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  margin-top: 1px;
}
.track__item--done .track__icon { background: var(--accent-soft); color: var(--accent); }
.track__item--todo .track__icon { background: var(--bg-sunk); color: var(--text-faint); }
.track__name { font-size: .92rem; font-weight: 600; display: block; }
.track__meta { font-size: .8rem; color: var(--text-faint); }

/* --- Cards -------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.card--hover:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .96rem; margin-bottom: 0; }

.card__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1.1rem;
}
.card__icon--accent { background: var(--accent-soft); color: var(--accent); }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}
.card__link:hover { gap: .55rem; }
.card__link svg { transition: transform .15s; }

/* Link card — whole card clickable */
.linkcard {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.linkcard:hover { color: inherit; }
.linkcard h3 { color: var(--text); }
.linkcard:hover h3 { color: var(--brand); }

/* --- Feature list ------------------------------------------------------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .7rem;
  color: var(--text-muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f9d8f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .72rem no-repeat;
}
.ticks strong { color: var(--text); font-weight: 600; }

/* --- Brand strip -------------------------------------------------------- */
.brands {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.brands li {
  padding: .45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Page header -------------------------------------------------------- */
.page-head {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(700px 300px at 85% -20%, var(--brand-soft), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.page-head__inner { max-width: 66ch; }
.page-head h1 { margin-bottom: .4rem; }
.page-head p {
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  font-size: .87rem;
  color: var(--text-faint);
}
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .45rem; color: var(--border-strong); }

/* --- Steps / process ---------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.step__num {
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--text-muted); font-size: .96rem; margin-bottom: 0; }
.step__tag {
  display: inline-block;
  margin-top: .7rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-faint);
  background: var(--bg-sunk);
  border-radius: 100px;
  padding: .25rem .7rem;
}

/* --- Table -------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
th, td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
th {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-alt);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-alt); }
td strong { font-weight: 600; }

/* --- Download / file rows ----------------------------------------------- */
.files { display: grid; gap: .9rem; }
.file {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.4rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.file:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.file__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
}
.file__body { flex: 1; min-width: 0; }
.file__name { display: block; font-weight: 650; font-size: 1rem; margin-bottom: .12rem; }
.file:hover .file__name { color: var(--brand); }
.file__desc { font-size: .89rem; color: var(--text-muted); }
.file__meta {
  flex-shrink: 0;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-faint);
  background: var(--bg-sunk);
  border-radius: 100px;
  padding: .3rem .7rem;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .file { flex-wrap: wrap; gap: .8rem; }
  .file__meta { order: 3; }
}

/* --- News --------------------------------------------------------------- */
.news { display: grid; gap: 1.1rem; }
.news__item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) {
  .news__item { grid-template-columns: 1fr; gap: .6rem; }
}
.news__date {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: .2rem;
}
.news__item h3 { margin-bottom: .4rem; }
.news__item p { color: var(--text-muted); font-size: .96rem; margin-bottom: 0; }

/* --- Job listings ------------------------------------------------------- */
.jobs { display: grid; gap: .9rem; }
.job {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.job__body { flex: 1; min-width: 220px; }
.job h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.job__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  font-size: .87rem;
  color: var(--text-muted);
}
.job__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.tag {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .28rem .65rem;
  border-radius: 100px;
  background: var(--brand-soft);
  color: var(--brand);
}
.tag--accent { background: var(--accent-soft); color: var(--accent); }

/* --- Contact ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
@media (max-width: 840px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
}
.contact-row__label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .2rem;
}
.contact-row__value { font-size: 1.02rem; font-weight: 600; }
.contact-row__value a { text-decoration: none; }
.contact-row__value a:hover { text-decoration: underline; }
.contact-row__note { font-size: .87rem; color: var(--text-muted); font-weight: 400; }

/* --- Forms -------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .89rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .7rem .9rem;
  font: inherit;
  font-size: .96rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.field textarea { resize: vertical; min-height: 130px; }
.field__hint { font-size: .82rem; color: var(--text-faint); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.note {
  display: flex;
  gap: .8rem;
  padding: 1rem 1.2rem;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: var(--radius);
  font-size: .92rem;
  color: var(--text-muted);
}
.note svg { flex-shrink: 0; color: var(--brand); margin-top: .15rem; }
.note strong { color: var(--text); }

/* --- CTA band ----------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 62%, var(--accent)));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; margin-bottom: .5rem; }
.cta p {
  color: rgba(255, 255, 255, .9);
  max-width: 55ch;
  margin: 0 auto 1.7rem;
  font-size: 1.05rem;
}
.cta__btns { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.cta .btn--primary { background: #fff; color: var(--brand); }
.cta .btn--primary:hover { background: rgba(255, 255, 255, .9); color: var(--brand); }
.cta .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.cta .btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* --- Prose -------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { color: var(--text-muted); padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--text); }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  margin-top: auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__about { font-size: .92rem; color: var(--text-muted); max-width: 34ch; }
.footer__brand { margin-bottom: 1rem; }
.footer h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .9rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: .5rem; }
.footer__list a {
  font-size: .93rem;
  color: var(--text-muted);
  text-decoration: none;
}
.footer__list a:hover { color: var(--brand); text-decoration: underline; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--border);
  font-size: .87rem;
  color: var(--text-faint);
}
.footer__bottom a { color: var(--text-muted); text-decoration: none; }
.footer__bottom a:hover { color: var(--brand); text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* --- Unavailable destinations -------------------------------------------
   Applied by js/links.js when a configured external service is down, so we
   never hand a customer a link to a dead page. */
.is-unavailable {
  opacity: .62;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}
.is-unavailable:hover { transform: none; box-shadow: var(--shadow-sm); }

/* Suppress "Open catalog →" style affordances on a disabled element —
   they read as clickable and contradict the unavailable note. */
.is-unavailable .card__link { display: none; }

.unavailable-note {
  display: block;
  margin-top: .6rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-faint);
  background: var(--bg-sunk);
  border-radius: 100px;
  padding: .25rem .7rem;
  width: fit-content;
}
.btn .unavailable-note,
.file .unavailable-note { margin-top: 0; }

/* --- Utilities ---------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.stack > * + * { margin-top: 1.1rem; }

/* --- Video embed ---------------------------------------------------------
   Responsive 16:9 YouTube frame. The iframe is loaded lazily and uses the
   privacy-enhanced youtube-nocookie host so no tracking cookie is set until
   the visitor actually presses play. */
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-sunk);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video__caption {
  margin-top: .9rem;
  font-size: .88rem;
  color: var(--text-faint);
  text-align: center;
}

/* --- Brand logo ----------------------------------------------------------
   The logo is a raster crop from the original header artwork (208x45 native).
   It is displayed at ~its native size so it stays sharp on standard displays;
   it will look soft on retina until vector artwork is available. When an SVG
   turns up, swap the <img src> in the header of each page — nothing else
   depends on the file type. */
.logo__img {
  display: block;
  width: 156px;   /* 0.75x native — keeps it crisp and header-appropriate */
  height: auto;
  flex-shrink: 0;
}

/* The mark is a white-background raster, so in dark mode it needs its own
   light plate rather than sitting directly on the dark surface. */
:root[data-theme="dark"] .logo__img {
  background: #fff;
  padding: 4px 6px;
  border-radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo__img {
    background: #fff;
    padding: 4px 6px;
    border-radius: 6px;
  }
}

.site-footer .logo__img { width: 132px; }
