/* ==========================================================================
   Adlegion Limited — brand stylesheet
   Brand blue #099FDE sampled directly from the AdLegion logo.
   ========================================================================== */

/* Self-hosted so there is no third-party font CDN call — keeps the site fast
   and avoids sending visitor IPs to Google (relevant under UK/EU GDPR). */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* Brand */
  --blue: #099FDE;
  --blue-600: #0889BF;
  --blue-700: #056B9A;
  --blue-300: #5CC4F0;
  --blue-100: #DCF1FC;

  /* Neutrals */
  --navy: #06182B;
  --navy-800: #0A2239;
  --navy-700: #12314C;
  --ink: #0D1B2A;
  --body: #4A5A6A;
  --muted: #7A8B9C;
  --line: #E6EDF3;
  --line-soft: #EFF4F8;
  --surface: #FFFFFF;
  --surface-2: #F7FBFD;   /* barely-there tint, keeps the page reading as white */
  --surface-3: #FBFDFE;

  /* Type — Archivo's squared, institutional caps echo the ADLEGION wordmark;
     Barlow carries running text at small sizes without fighting it. */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(6, 24, 43, .06), 0 4px 12px rgba(6, 24, 43, .05);
  --shadow-md: 0 2px 4px rgba(6, 24, 43, .05), 0 12px 32px rgba(6, 24, 43, .09);
  --shadow-lg: 0 24px 64px rgba(6, 24, 43, .16);

  --header-h: 84px;
}

/* --------------------------------------------------------- reset + base -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* No scroll-padding here — it would stack with the scroll-margin below and
     scroll ~90px further than needed. */
}

/* scroll-padding on the container is not enough on its own — anchor targets
   still landed under the sticky header. scroll-margin on the targets themselves
   is what actually holds. :where() keeps specificity at zero so any component
   can override it. */
:where(section, article, div)[id] {
  scroll-margin-top: calc(var(--header-h) + 32px);
}

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

img, svg { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin: 0 0 .5em;
  font-weight: 800;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.16rem, 1.8vw, 1.38rem); font-weight: 700; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--blue); color: #fff;
  padding: 12px 20px; border-radius: 8px; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--blue-300);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------------- sections -- */

.section { padding: clamp(68px, 8.5vw, 126px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--alt { background: var(--surface-2); }
.section--dark { background: var(--navy); color: #B6C7D6; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.1rem; }

.eyebrow {
  font-family: var(--font-display);
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-700); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px;
  background: var(--blue); border-radius: 2px;
}
.section--dark .eyebrow { color: var(--blue-300); }

/* The HTML `hidden` attribute must beat component display rules — a class
   selector otherwise overrides the user-agent [hidden] { display: none }. */
[hidden] { display: none !important; }

/* --------------------------------------------------------------- button -- */

.btn {
  font-family: var(--font-display);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: .97rem; font-weight: 650; letter-spacing: -.005em;
  cursor: pointer; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease,
    background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 1px 2px rgba(6, 24, 43, .1), 0 8px 22px rgba(9, 159, 222, .32);
}
.btn--primary:hover {
  background: var(--blue-600); transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(6, 24, 43, .1), 0 14px 30px rgba(9, 159, 222, .4);
}

.btn--ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .28); color: #fff;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .5); transform: translateY(-2px);
}

.btn--outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue-700); transform: translateY(-2px); }

.btn--block { width: 100%; }
.btn--lg { padding: 17px 34px; font-size: 1.02rem; }

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 24, 43, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.site-header .wrap {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}

/* Brand lockup: the mark and ADLEGION wordmark stay as artwork, while the
   descriptor and motto are live text — the baked-in tagline was ~7% of the logo
   height and unreadable in a header at any workable size. */
.brand {
  flex: none;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 40px; height: 40px; flex: none;
  aspect-ratio: 1 / 1; object-fit: contain; max-width: none;
}
.brand-lockup { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-word {
  height: 20px; width: auto;
  aspect-ratio: 700 / 101; object-fit: contain; max-width: none;
}
.brand--footer { gap: 14px; margin-bottom: 20px; }
.brand--footer .brand-mark { width: 52px; height: 52px; }
.brand--footer .brand-word { height: 22px; }
.brand--footer .brand-line {
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: #E4EEF6;
}
.brand--footer .brand-motto {
  font-family: var(--font);
  font-size: .74rem; letter-spacing: .1em;
  text-transform: lowercase; color: var(--blue-300);
}

/* Homepage: the descriptor introduces the company, the motto signs it off. */
.hero-descriptor {
  font-family: var(--font-display);
  font-size: clamp(.82rem, 1.35vw, .96rem);
  font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue-300);
  margin: 0 0 16px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px; border-radius: 8px;
  color: #C9D8E5; font-size: .94rem; font-weight: 550;
  transition: color .18s ease, background-color .18s ease;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.header-cta { margin-left: 12px; padding: 12px 22px; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 4px auto;
  background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: #AFC2D2;
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column;
  padding-top: clamp(48px, 7vh, 84px);
}

/* atmospheric brand glow + grid */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(9, 159, 222, .30), transparent 62%),
    radial-gradient(760px 480px at 92% 8%, rgba(9, 159, 222, .16), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero-body { flex: 1 1 auto; display: flex; align-items: center; }
.hero-inner { max-width: 830px; }

.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--blue-300); }

.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.6; max-width: 660px; margin-bottom: 32px;
  color: #B9CBDA;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-proof {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-proof div { line-height: 1.3; }
.hero-proof b {
  display: block; color: #fff; font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.hero-proof span { font-size: .84rem; color: #8FA6B9; }

/* ------------------------------------------- above-the-fold service rail -- */

.rail {
  flex: none;
  padding: clamp(20px, 2.6vh, 30px) 0 clamp(20px, 2.6vh, 28px);
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .02);
}
.rail-label {
  font-family: var(--font-display);
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: #7E9AB2;
}
.rail-label i { font-style: normal; letter-spacing: 0; text-transform: none; color: #5E7A92; font-size: .8rem; }

.core-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.core-card {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 16px;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.core-card:hover {
  background: rgba(9, 159, 222, .15);
  border-color: rgba(9, 159, 222, .6);
  transform: translateY(-3px);
}

.core-icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(9, 159, 222, .18);
  border: 1px solid rgba(9, 159, 222, .38);
}
.core-icon svg { width: 21px; height: 21px; color: var(--blue-300); }
.core-card:hover .core-icon { background: rgba(9, 159, 222, .3); }

.core-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.core-text b {
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 700;
  letter-spacing: -.018em; line-height: 1.2; color: #fff;
}
.core-text span { font-size: .8rem; line-height: 1.35; color: #90A9BE; }

/* Remaining service lines, kept present but clearly secondary */
.rail-more {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  margin: 16px 0 0;
  font-size: .87rem;
}
.rail-more > span { color: #6E8AA2; margin-right: 2px; }
.rail-more a {
  color: #B4C7D8;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.rail-more a:hover {
  color: #fff;
  border-color: rgba(9, 159, 222, .6);
  background: rgba(9, 159, 222, .14);
}

/* -------------------------------------------------------- service cards -- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: clamp(20px, 2.4vw, 30px);
}

.service {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #CFE6F5;
}

.service-figure {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, #F0F8FD 0%, #E1F1FB 55%, #D3EBF9 100%);
  border-bottom: 1px solid var(--line);
}
.service-figure svg { width: 100%; height: 100%; display: block; }

.service-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(9, 159, 222, .3);
  color: var(--blue-700);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.service-tag--new {
  background: var(--blue); border-color: var(--blue); color: #fff;
}
.service-tag--core {
  background: var(--blue); border-color: var(--blue); color: #fff;
}

.service-body { padding: clamp(24px, 2.4vw, 32px); display: flex; flex-direction: column; flex: 1; }
.service-body h3 { margin-bottom: 10px; }
.service-body > p { font-size: .97rem; margin-bottom: 18px; }

.service-list {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: grid; gap: 9px;
}
.service-list li {
  position: relative; padding-left: 26px;
  font-size: .92rem; line-height: 1.5;
}
.service-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--blue-100);
  box-shadow: inset 0 0 0 1px rgba(9, 159, 222, .35);
}
.service-list li::after {
  content: ""; position: absolute; left: 4.5px; top: .72em;
  width: 6px; height: 3px;
  border-left: 1.8px solid var(--blue-700);
  border-bottom: 1.8px solid var(--blue-700);
  transform: rotate(-45deg);
}

.service-link {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 650; font-size: .93rem; color: var(--blue-700);
}
.service-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.service-link:hover svg { transform: translateX(4px); }

/* ----------------------------------------------------------- industries -- */

.industries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 16px;
}
.industry {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.industry:hover {
  border-color: #BFE3F7;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.industry .ico {
  width: 44px; height: 44px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--blue-100);
  border: 1px solid #C9E7F8;
}
.industry svg { width: 22px; height: 22px; color: var(--blue-700); }
.industry b { display: block; color: var(--ink); font-size: 1.04rem; font-weight: 700; font-family: var(--font-display); letter-spacing: -.015em; margin-bottom: 6px; }
.industry span { font-size: .9rem; color: var(--body); line-height: 1.55; }

/* --------------------------------------------------------------- values -- */

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(20px, 2.5vw, 34px);
}
.value-item { padding-top: 26px; border-top: 3px solid var(--blue); }
.value-item h3 { margin-bottom: 10px; }
.value-item p { font-size: .95rem; }

.stat-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 2px; margin-top: clamp(44px, 5vw, 64px);
  background: var(--line-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: #fff; padding: 30px 26px; }
.stat b {
  display: block; font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -.035em; color: var(--blue); line-height: 1.05; margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: .89rem; color: var(--muted); }

/* -------------------------------------------------------------- contact -- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-aside h2 { margin-bottom: 18px; }
.contact-points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-points li { display: flex; gap: 15px; align-items: flex-start; font-size: .95rem; }
.contact-points .ico {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--blue-100); border: 1px solid #C9E7F8;
}
.contact-points svg { width: 18px; height: 18px; color: var(--blue-700); }
.contact-points b { display: block; color: var(--ink); font-weight: 700; font-family: var(--font-display); }
.contact-points a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 2px; }
.contact-points a:hover { color: var(--blue); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: 0 1px 2px rgba(6, 24, 43, .04), 0 18px 48px rgba(6, 24, 43, .09);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label { font-family: var(--font-display); font-size: .84rem; font-weight: 650; color: var(--ink); letter-spacing: -.005em; }
.field label .req { color: var(--blue); }

.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--surface-3);
  border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.field textarea { resize: vertical; min-height: 118px; }
.field input::placeholder, .field textarea::placeholder { color: #9DAFC0; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(9, 159, 222, .16);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%237A8B9C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 40px;
}

.field-error {
  font-size: .8rem; color: #C62F3B; min-height: 0;
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: #E0616B; background: #FEF6F7;
}

.form-foot { margin-top: 22px; display: grid; gap: 14px; }
.form-note { font-size: .78rem; color: var(--muted); line-height: 1.55; }
.form-note a { color: var(--blue-700); text-decoration: underline; }

.hp { position: absolute; left: -9999px; opacity: 0; }

.form-status { font-size: .92rem; border-radius: 10px; padding: 14px 16px; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-error { background: #FEF2F3; color: #A8262F; border: 1px solid #F5C9CD; }
.form-status.is-info { background: var(--blue-100); color: var(--blue-700); border: 1px solid #B9E2F7; }

.form-success { text-align: center; padding: 26px 10px; }
.form-success .tick {
  width: 62px; height: 62px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--blue-100);
  display: grid; place-items: center;
}
.form-success .tick svg { width: 28px; height: 28px; color: var(--blue); }
.form-success h3 { margin-bottom: 8px; }
.form-success p { font-size: .95rem; }

.btn[aria-busy="true"] { opacity: .72; pointer-events: none; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- footer -- */

.site-footer {
  background: #04121F; color: #8AA0B4;
  padding: clamp(52px, 6vw, 76px) 0 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(min(130px, 100%), 1fr));
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand p { font-size: .92rem; max-width: 340px; }
.footer-col h4 {
  font-family: var(--font-display); color: #fff; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
/* 18px tall links fail the 24px minimum tap target on phones */
.footer-col a, .footer-col .link-button {
  display: inline-block;
  color: #8AA0B4; font-size: .92rem;
  padding: 5px 0; min-height: 28px;
}
.footer-col a:hover { color: var(--blue-300); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .82rem; color: #6B8298;
}
.footer-bottom a { color: #6B8298; display: inline-block; padding: 5px 0; }
.footer-bottom a:hover { color: var(--blue-300); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }

/* ------------------------------------------------------------- reveals --- */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, .8, .3, 1);
}

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

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 1100px) {
  .core-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .core-card { padding: 15px 16px; gap: 13px; }
  .core-icon { width: 40px; height: 40px; }
  .core-text b { font-size: .94rem; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px var(--gutter) 24px;
    background: rgba(6, 24, 43, .98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .4);
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 12px; font-size: 1rem; }
  .header-cta { margin: 10px 0 0; }
  .nav-toggle { display: block; }

  .hero { min-height: 0; padding-bottom: 0; }
  .hero-body { padding-bottom: 44px; }

  .rail { margin-top: 0; }
  .core-grid { grid-template-columns: 1fr; gap: 10px; }

  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-word { height: 15px; }
  .hero-proof { gap: 14px 28px; }
  .hero-proof b { font-size: 1.28rem; }
  .hero-actions .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: flex-start; }
}

/* ==========================================================================
   Legal documents (privacy policy, terms)
   ========================================================================== */

.legal-hero {
  background: var(--navy);
  color: #B9CBDA;
  padding: clamp(48px, 7vw, 82px) 0 clamp(40px, 5vw, 60px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.legal-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 16px; }
.legal-hero p { max-width: 64ch; font-size: 1.04rem; }
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .88rem; color: #8FA6B9;
}
.legal-meta b { color: #fff; font-weight: 600; }

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding: clamp(48px, 6vw, 76px) 0 clamp(64px, 8vw, 100px);
}

.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); min-width: 0; }
.legal-toc h2 {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc a {
  display: block; padding: 6px 10px; border-radius: 7px;
  font-size: .87rem; line-height: 1.35; color: var(--body);
  border-left: 2px solid var(--line);
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.legal-toc a:hover { color: var(--blue-700); border-left-color: var(--blue); background: var(--surface-2); }

.legal-body { max-width: 72ch; min-width: 0; }
.legal-body > section { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-body > section + section { margin-top: clamp(38px, 4vw, 54px); }

.legal-body h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.62rem);
  padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.legal-body h2 .num {
  display: inline-block; min-width: 1.9em;
  color: var(--blue); font-variant-numeric: tabular-nums;
}
.legal-body h3 {
  font-size: 1.02rem; margin: 26px 0 10px;
  color: var(--ink); letter-spacing: -.012em;
}
.legal-body p, .legal-body li { font-size: .97rem; }
.legal-body ul, .legal-body ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.legal-body li { margin-bottom: .45em; }
.legal-body li::marker { color: var(--blue); }
.legal-body a { text-decoration: underline; text-underline-offset: 2px; }

.legal-table-wrap { overflow-x: auto; margin: 0 0 1.3em; }
.legal-body table {
  width: 100%; min-width: min(480px, 100%);
  border-collapse: collapse;
  font-size: .89rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.legal-body th, .legal-body td {
  padding: 11px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.legal-body th {
  background: var(--surface-2); color: var(--ink);
  font-family: var(--font-display); font-weight: 700;
  font-size: .82rem; letter-spacing: .01em;
}
.legal-body tr:last-child td { border-bottom: 0; }

.callout {
  padding: 18px 20px; margin: 0 0 1.3em;
  background: var(--blue-100);
  border: 1px solid #B9E2F7;
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  font-size: .93rem; color: var(--blue-700);
}
.callout strong { color: var(--ink); }

/* Anything still needing Adlegion's input before this page goes live. */
.todo {
  background: #FFF3CD; color: #8A6100;
  border: 1px dashed #E0B44C; border-radius: 5px;
  padding: 1px 7px; font-size: .92em; font-weight: 600;
}

@media (max-width: 900px) {
  /* `1fr` is minmax(auto, 1fr): its floor is the content's min-content width,
     so the tables' min-width pushed this column wider than the phone screen.
     minmax(0, 1fr) lets the column shrink and the table scroll instead. */
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
  .legal-toc ol { grid-template-columns: 1fr 1fr; display: grid; }
}
@media (max-width: 560px) {
  .legal-toc ol { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Photographic treatment
   ========================================================================== */

/* Real photography sits behind the hero as a bottom-anchored skyline band.
   The navy gradient above it keeps headline contrast well clear of AA. */
.hero-photo {
  position: absolute; inset: auto 0 0 0;
  height: min(58%, 420px);
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 42%, transparent 100%);
          mask-image: linear-gradient(to top, #000 42%, transparent 100%);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
  opacity: .62;
  filter: saturate(115%) contrast(104%);
}
/* Ties the photograph into the brand blue instead of letting it read as stock. */
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(6, 24, 43, .82) 0%, rgba(6, 24, 43, .28) 45%, transparent 100%),
    linear-gradient(105deg, rgba(9, 159, 222, .22), transparent 62%);
}

/* Framed photo/graphic panel used by the feature bands. */
.figure-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 2px 6px rgba(6, 24, 43, .08), 0 26px 60px rgba(6, 24, 43, .16);
}
.figure-panel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure-panel--wide { aspect-ratio: 16 / 10; }

.figure-badge {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(6, 24, 43, .18);
}
.figure-badge svg { width: 20px; height: 20px; color: var(--blue-700); flex: none; }
.figure-badge b { display: block; font-family: var(--font-display); font-size: .92rem; color: var(--ink); }
.figure-badge span { font-size: .8rem; color: var(--muted); }

/* ==========================================================================
   Direct relationships / quality band
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}
.split--flip > *:first-child { order: 2; }

.direct-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 22px; }
.direct-list li { display: flex; gap: 16px; align-items: flex-start; }
.direct-list .num {
  flex: none; width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--blue); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: .86rem;
  box-shadow: 0 6px 16px rgba(9, 159, 222, .3);
}
.direct-list b { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; letter-spacing: -.015em; }
.direct-list p { font-size: .94rem; margin: 0; }

/* ==========================================================================
   Trust + testimonials
   ========================================================================== */

.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 14px;
  margin-bottom: clamp(36px, 4vw, 52px);
}
.trust-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-display);
  font-size: .86rem; font-weight: 650; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.trust-chip svg { width: 15px; height: 15px; color: var(--blue); }

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(18px, 2.2vw, 26px);
}
.quote {
  display: flex; flex-direction: column;
  padding: clamp(26px, 2.6vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.quote-stars { display: flex; gap: 5px; margin-bottom: 18px; }
.quote-stars svg { width: 24px; height: 24px; color: #F5A623; filter: drop-shadow(0 1px 1px rgba(154, 98, 0, .25)); }

.quote blockquote {
  margin: 0 0 22px; padding: 0;
  font-size: 1.02rem; line-height: 1.62; color: var(--ink);
}
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after { content: "\201D"; }

.quote-by {
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 13px;
}
.quote-avatar {
  flex: none; width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue-100);
  border: 1px solid #C9E7F8;
  font-family: var(--font-display); font-weight: 800;
  font-size: .82rem; color: var(--blue-700);
}
.quote-by b { display: block; font-size: .9rem; color: var(--ink); font-family: var(--font-display); }
.quote-by span { font-size: .82rem; color: var(--muted); }

/* ==========================================================================
   Responsible gambling note
   ========================================================================== */

.rg-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  padding: 20px 24px;
  margin-top: clamp(38px, 4vw, 56px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
}
.rg-note .ico {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px; background: #fff; border: 1px solid var(--line);
}
.rg-note svg { width: 20px; height: 20px; color: var(--blue-700); }
.rg-note div { flex: 1 1 340px; min-width: 0; }
.rg-note b { display: block; font-family: var(--font-display); color: var(--ink); font-size: .95rem; margin-bottom: 3px; }
.rg-note p { margin: 0; font-size: .87rem; line-height: 1.75; }
.rg-note a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 2px; }

.site-footer .rg-note {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .12);
  border-left-color: var(--blue);
  margin: 0 0 34px;
}
.site-footer .rg-note .ico { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.site-footer .rg-note svg { color: var(--blue-300); }
.site-footer .rg-note b { color: #fff; }
.site-footer .rg-note p { color: #8AA0B4; }
.site-footer .rg-note a { color: var(--blue-300); }

/* Registered company details in the footer */
.footer-legal-block {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .8rem; line-height: 1.7; color: #6B8298;
}
.footer-legal-block b { color: #8AA0B4; font-weight: 600; }

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */

.cc {
  position: fixed; z-index: 300;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  margin-inline: auto;
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(6, 24, 43, .16), 0 32px 70px rgba(6, 24, 43, .24);
  padding: 22px clamp(20px, 3vw, 28px);
  transform: translateY(18px); opacity: 0;
  transition: transform .3s cubic-bezier(.22, .8, .3, 1), opacity .3s ease;
}
.cc[hidden] { display: none; }
.cc.is-in { transform: none; opacity: 1; }

.cc h2 { font-size: 1.06rem; margin-bottom: 8px; }
.cc p { font-size: .89rem; line-height: 1.6; margin-bottom: 0; }
.cc p a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 2px; }

.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cc-actions .btn { padding: 12px 22px; font-size: .9rem; flex: 1 1 auto; }
.cc-actions .btn--text {
  background: none; border-color: transparent; color: var(--body);
  flex: 0 0 auto; text-decoration: underline; text-underline-offset: 3px;
}
.cc-actions .btn--text:hover { color: var(--blue-700); transform: none; }

.cc-prefs { margin-top: 18px; display: grid; gap: 10px; }
.cc-prefs[hidden] { display: none; }
.cc-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cc-row b { display: block; font-family: var(--font-display); font-size: .9rem; color: var(--ink); }
.cc-row span { font-size: .82rem; line-height: 1.5; color: var(--body); }
.cc-row input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
.cc-row input:disabled { opacity: .55; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > *:first-child { order: 0; }
  .hero-photo { height: min(46%, 300px); }
}
@media (max-width: 560px) {
  .cc-actions .btn { flex: 1 1 100%; }
  .figure-badge { left: 12px; right: 12px; bottom: 12px; padding: 12px 13px; }
}

/* Footer button that has to look like the links beside it */
.link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: .92rem; color: #8AA0B4; text-align: left;
}
.link-button:hover { color: var(--blue-300); }

/* Two testimonials centre better than a three-up grid would */
.quotes--two {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  max-width: 980px; margin-inline: auto;
}
.quotes--two .quote blockquote { font-size: .99rem; }

/* ==========================================================================
   Newsletter — listing grid, article cards, subscribe form, article body
   ========================================================================== */

/* Newspaper-style index: one lead story, then a dense list — headline is
   always the dominant element, photos are small and secondary. */

.newsletter-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  padding-bottom: clamp(28px, 3vw, 40px);
  margin-top: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.newsletter-lead .service-tag { position: static; margin-bottom: 12px; }
.newsletter-lead h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.18; margin-bottom: 12px; }
.newsletter-lead h2 a { color: var(--ink); }
.newsletter-lead h2 a:hover { color: var(--blue-700); }
.newsletter-lead .dek { font-size: 1.02rem; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.newsletter-lead-thumb {
  display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}
.newsletter-lead-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) {
  .newsletter-lead { grid-template-columns: 1fr; }
  .newsletter-lead-thumb { order: -1; max-width: 220px; }
}

.newsletter-list { display: flex; flex-direction: column; }
.newsletter-row {
  display: flex; gap: 18px; align-items: flex-start;
  padding: clamp(18px, 2vw, 24px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.newsletter-row-thumb {
  flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
}
.newsletter-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.newsletter-row-body { min-width: 0; }
.newsletter-row .service-tag { position: static; margin-bottom: 8px; font-size: .66rem; padding: 3px 10px; }
.newsletter-row h3 { font-size: 1.04rem; margin-bottom: 6px; line-height: 1.35; }
.newsletter-row h3 a { color: var(--ink); }
.newsletter-row h3 a:hover { color: var(--blue-700); }
.newsletter-row p { font-size: .88rem; color: var(--muted); line-height: 1.5; margin-bottom: 8px; }
.newsletter-row-meta {
  display: flex; gap: 6px; font-size: .78rem; color: var(--muted);
}
.newsletter-row-meta span + span::before { content: "\00b7"; margin-right: 6px; }

.newsletter-empty {
  padding: clamp(32px, 4vw, 48px); text-align: center;
  background: var(--surface-2); border-radius: var(--radius-lg);
  color: var(--muted); margin-top: clamp(32px, 4vw, 48px);
}

.subscribe-card {
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(28px, 3vw, 40px);
  background: var(--navy);
  border-radius: var(--radius-lg);
  color: #B9CBDA;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}
.subscribe-card h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 10px; }
.subscribe-card p { font-size: .96rem; }
.subscribe-form { display: flex; flex-direction: column; gap: 12px; }
.subscribe-form .field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-form input[type="email"] {
  flex: 1 1 200px; min-width: 0;
  padding: 13px 16px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06); color: #fff; font: inherit;
}
.subscribe-form input[type="email"]::placeholder { color: #7C93A6; }
.subscribe-form input[type="email"]:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 1px; }
.subscribe-consent { display: flex; gap: 9px; align-items: flex-start; font-size: .82rem; color: #8FA6B9; }
.subscribe-consent input { margin-top: 3px; flex: none; }
.subscribe-consent a { color: #B9CBDA; text-decoration: underline; text-underline-offset: 2px; }
.subscribe-status { font-size: .85rem; min-height: 1.2em; }
.subscribe-status[data-state="error"] { color: #FFB4A9; }
.subscribe-status[data-state="success"] { color: #7CE0B8; }
@media (max-width: 760px) {
  .subscribe-card { grid-template-columns: 1fr; }
}

.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .88rem; color: #8FA6B9;
}
.article-meta b { color: #fff; font-weight: 600; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
}
.article-body { max-width: 72ch; min-width: 0; }
.article-body h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 1.6em 0 .6em; color: var(--ink); }
.article-body h2:first-child { margin-top: 0; }
.article-body p, .article-body li { font-size: 1.02rem; line-height: 1.68; }
.article-body p { margin: 0 0 1.2em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.article-body li { margin-bottom: .5em; }
.article-body li::marker { color: var(--blue); }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-lede { font-size: 1.12rem; color: var(--muted); margin-bottom: 1.6em; }

.article-hero-figure { margin: 0 0 1.8em; max-width: 260px; }
.article-hero-img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius); display: block;
  border: 1px solid var(--line);
}
.article-hero-figure figcaption { font-size: .74rem; color: var(--muted); margin-top: 8px; }
.article-hero-figure figcaption a { text-decoration: underline; text-underline-offset: 2px; }

/* Article masthead — kicker + byline, newspaper-style */
.eyebrow--link:hover { color: #fff; }
.article-masthead .kicker {
  display: block; font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-300); margin-bottom: 10px;
}
.article-masthead .dek { max-width: 64ch; font-size: 1.06rem; }
.article-masthead .byline {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .84rem; color: #8FA6B9;
}
.article-masthead .byline span:first-child { color: #fff; font-weight: 600; }
.article-masthead .byline span + span::before { content: "\00b7"; margin-right: 6px; }

.article-aside {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: flex; flex-direction: column; gap: 20px;
}
.article-aside-card {
  padding: 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.article-aside-card h3 { font-size: .92rem; color: var(--ink); margin-bottom: 10px; }
.article-aside-card p { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
