/* ==========================================================================
   AD Software Systems — site stylesheet
   Hand-authored. No build step: edit this file directly.
   Organisation: tokens → reset → layout → components → pages → utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  /* Brand ramp — deep navy base, electric azure accent */
  --navy-950: #060b16;
  --navy-900: #0b1220;
  --navy-800: #131c2e;
  --navy-700: #1e2a41;
  --navy-600: #2c3b55;

  --azure-400: #4cc2ff;
  --azure-500: #1a9fe8;
  /* azure-600 is the light-theme --accent, so it carries body-sized text
     (links, .eyebrow) and white button labels. It is deliberately darker than
     the brand mid-blue: #0d7fc4 measured only 4.11:1 against --bg and 4.33:1
     under white, both below WCAG AA. This value clears 5:1 on both. The
     lighter azure-400/500 remain for dark backgrounds, where they pass easily. */
  --azure-600: #0b6ea9;
  --azure-700: #08557f;

  --ember-400: #ff9d5c;
  --ember-500: #f97316;

  --slate-50: #f7f9fc;
  --slate-100: #eef2f8;
  --slate-200: #dde4ee;
  --slate-300: #c2cddd;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;

  /* Semantic — light theme defaults */
  --bg: var(--slate-50);
  --bg-raised: #ffffff;
  --bg-sunken: var(--slate-100);
  --bg-inverse: var(--navy-900);

  --text: var(--navy-900);
  --text-muted: var(--slate-600);
  --text-subtle: var(--slate-500);
  --text-inverse: #ffffff;
  --text-inverse-muted: rgba(255, 255, 255, 0.72);

  --accent: var(--azure-600);
  --accent-hover: var(--azure-700);
  --accent-contrast: #ffffff;
  --signal: var(--ember-500);

  --border: var(--slate-200);
  --border-strong: var(--slate-300);

  --shadow-sm: 0 1px 2px rgb(11 18 32 / 0.06), 0 1px 3px rgb(11 18 32 / 0.08);
  --shadow-md: 0 4px 12px rgb(11 18 32 / 0.08), 0 2px 4px rgb(11 18 32 / 0.04);
  --shadow-lg: 0 18px 40px rgb(11 18 32 / 0.12), 0 4px 10px rgb(11 18 32 / 0.06);

  /* Fluid type scale — 320px → 1280px viewport */
  --step--1: clamp(0.83rem, 0.80rem + 0.16vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.20vw, 1.12rem);
  --step-1: clamp(1.20rem, 1.13rem + 0.36vw, 1.42rem);
  --step-2: clamp(1.44rem, 1.32rem + 0.60vw, 1.80rem);
  --step-3: clamp(1.73rem, 1.53rem + 0.98vw, 2.29rem);
  --step-4: clamp(2.07rem, 1.77rem + 1.53vw, 2.91rem);
  --step-5: clamp(2.49rem, 2.03rem + 2.30vw, 3.69rem);

  /* Spacing — 4px base */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --container: 1180px;
  --container-narrow: 760px;

  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui,
    -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --header-height: 4.5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy-950);
    --bg-raised: var(--navy-900);
    --bg-sunken: #030710;
    --bg-inverse: var(--navy-800);

    --text: #eaf0f8;
    --text-muted: #a9b7cc;
    --text-subtle: #8496ae;

    --accent: var(--azure-400);
    --accent-hover: #7bd3ff;
    --accent-contrast: var(--navy-950);
    --signal: var(--ember-400);

    --border: var(--navy-700);
    --border-strong: var(--navy-600);

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 12px rgb(0 0 0 / 0.45);
    --shadow-lg: 0 18px 40px rgb(0 0 0 / 0.55);
  }

  /* The header wordmark (.brand__logo) is a raster brand asset (navy + azure
     on transparent), not a currentColor shape, so the token overrides above
     can't recolor it. Its dark-navy strokes measure ~2:1 contrast against
     this theme's --bg (need 3:1+ for a logotype), and the translucent header
     tints toward --bg in dark mode too — so flatten it to a solid white
     silhouette here rather than let half the wordmark disappear. */
  .brand__logo {
    filter: brightness(0) invert(1);
  }
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-lg));
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-weight: 680;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { text-wrap: pretty; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--accent-hover); }

ul, ol { padding-inline-start: 1.25em; }

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--narrow { max-width: var(--container-narrow); }

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

@media (min-width: 48rem) {
  .section { padding-block: var(--space-4xl); }
}

.section--sunken { background: var(--bg-sunken); }

.section--inverse {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}

.section--inverse h2,
.section--inverse h3 { color: var(--text-inverse); }

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

.stack > * + * { margin-top: var(--space-md); }
.stack-lg > * + * { margin-top: var(--space-lg); }

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

@media (min-width: 62rem) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 40rem) and (max-width: 61.999rem) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* Section heading block */
.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-2xl);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 620;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section--inverse .eyebrow { color: var(--azure-400); }

.lede {
  font-size: var(--step-1);
  color: var(--text-muted);
  line-height: 1.55;
}

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

/* --------------------------------------------------------------------------
   4. Components
   -------------------------------------------------------------------------- */

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-md);
  top: var(--space-md);
  z-index: 200;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.18s var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--accent-contrast);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.72em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out), transform 0.18s var(--ease-out),
    box-shadow 0.18s var(--ease-out);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.btn--on-dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.18s var(--ease-out);
}

.link-arrow:hover::after { transform: translateX(3px); }

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  flex: none;
}

.card__icon svg { width: 1.5rem; height: 1.5rem; }

.card h3 { margin-bottom: var(--space-xs); }

.card p {
  color: var(--text-muted);
  font-size: var(--step-0);
}

.card__foot { margin-top: auto; padding-top: var(--space-md); }

.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: var(--shadow-sm); }

/* Tag list */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin-top: var(--space-md);
}

.tags li {
  font-size: var(--step--1);
  font-weight: 550;
  padding: 0.25em 0.75em;
  border-radius: var(--radius-full);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.section--inverse .tags li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-inverse-muted);
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}

.checklist li {
  position: relative;
  padding-inline-start: 1.85em;
  color: var(--text-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.75em;
  height: 0.42em;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Stat band */
.stats {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}

@media (min-width: 48rem) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat__value {
  display: block;
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
}

.section--inverse .stat__value { color: var(--azure-400); }

.stat__label {
  display: block;
  font-size: var(--step--1);
  color: var(--text-muted);
  margin-top: var(--space-2xs);
}

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

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.site-header[data-scrolled="true"] {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: var(--step-0);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex: none;
}

.brand:hover { color: var(--text); }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.brand__accent { color: var(--accent); }

/* Wordmark image (ADSS2026Trans). Height-constrained, width follows the
   image's intrinsic aspect ratio (set via its width/height attributes) so no
   layout shift occurs while it loads. */
.brand__logo {
  height: 2.25rem;
  width: auto;
  flex: none;
}

/* The logo's dark-navy strokes measure ~2:1 contrast against a near-black
   background (WCAG wants 3:1+ for a logotype), so anywhere the surface is
   always dark regardless of site theme (the footer), flatten it to a solid
   white silhouette instead of letting half the wordmark disappear. Same
   technique as the header's automatic dark-mode override, near the top of
   this file under "@media (prefers-color-scheme: dark)". */
.brand__logo--on-dark {
  filter: brightness(0) invert(1);
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.nav-toggle svg { width: 1.35rem; height: 1.35rem; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.66rem;
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  font-weight: 560;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease-out), background-color 0.16s var(--ease-out);
}

.nav__link:hover {
  color: var(--text);
  background: var(--bg-sunken);
}

.nav__link[aria-current="page"] {
  color: var(--accent);
  font-weight: 640;
}

.nav__cta { margin-inline-start: var(--space-sm); }

/* Mobile nav. Breakpoint is 64rem (not the site's usual 62rem) because the
   primary nav carries 8 items + CTA, which needs ~988px for one row; the burger
   therefore takes over a little earlier than the grid breakpoints do. */
@media (max-width: 63.999rem) {
  .nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg);
    display: none;
  }

  .nav[data-open="true"] { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2xs);
  }

  .nav__link {
    padding: 0.7rem 0.8rem;
    font-size: var(--step-0);
  }

  .nav__cta {
    margin: var(--space-sm) 0 0;
    width: 100%;
  }
}

@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .nav { display: block !important; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      110% 80% at 15% 10%,
      rgba(26, 159, 232, 0.32),
      transparent 60%
    ),
    linear-gradient(
      160deg,
      rgba(6, 11, 22, 0.94) 10%,
      rgba(6, 11, 22, 0.7) 55%,
      rgba(6, 11, 22, 0.92) 100%
    );
}

.hero__inner {
  padding-block: var(--space-4xl);
  max-width: 44rem;
}

@media (min-width: 48rem) {
  .hero__inner { padding-block: calc(var(--space-4xl) * 1.35); }
}

.hero h1 { color: #fff; }

.hero__lede {
  font-size: var(--step-1);
  color: rgba(255, 255, 255, 0.82);
  margin-top: var(--space-lg);
  max-width: 38rem;
}

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

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.4em 1em;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--step--1);
  font-weight: 580;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(6px);
}

.hero__eyebrow::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--azure-400);
  box-shadow: 0 0 0 3px rgba(76, 194, 255, 0.25);
}

/* Compact page hero for interior pages */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      90% 70% at 80% 0%,
      rgba(26, 159, 232, 0.28),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(6, 11, 22, 0.86), rgba(6, 11, 22, 0.96));
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.page-hero__inner {
  padding-block: var(--space-3xl);
  max-width: 46rem;
}

@media (min-width: 48rem) {
  .page-hero__inner { padding-block: var(--space-4xl); }
}

.page-hero h1 { color: #fff; }

.page-hero__lede {
  font-size: var(--step-1);
  color: rgba(255, 255, 255, 0.82);
  margin-top: var(--space-md);
}

.page-hero .eyebrow { color: var(--azure-400); }

/* Breadcrumb */
.breadcrumb {
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-md);
}

.breadcrumb a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span { margin-inline: 0.5em; }

/* --------------------------------------------------------------------------
   7. Feature rows (alternating image + copy)
   -------------------------------------------------------------------------- */

.feature {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 56rem) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  .feature--reverse .feature__media { order: 2; }
}

.feature + .feature { margin-top: var(--space-3xl); }

.feature__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature__body h2 { font-size: var(--step-3); }

.feature__body > * + * { margin-top: var(--space-md); }

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  padding-block: var(--space-3xl) var(--space-xl);
  font-size: var(--step--1);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 62rem) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

.footer__title {
  font-size: var(--step--1);
  font-weight: 640;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-xs);
}

.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }

.footer__blurb {
  margin-top: var(--space-md);
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.62);
}

.social {
  display: flex;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin-top: var(--space-md);
}

.social a {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}

.social a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.social svg { width: 1.1rem; height: 1.1rem; }

.footer__bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   9. Forms
   -------------------------------------------------------------------------- */

.form {
  display: grid;
  gap: var(--space-lg);
}

.field { display: grid; gap: var(--space-2xs); }

.field label {
  font-weight: 580;
  font-size: var(--step--1);
}

.field .hint {
  font-size: var(--step--1);
  color: var(--text-subtle);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: border-color 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.field textarea { min-height: 9rem; resize: vertical; }

.field--required label::after {
  content: " *";
  color: var(--signal);
}

/* Honeypot — visually hidden but not display:none, so bots still fill it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--step--1);
}

.form__status[data-state="success"] {
  background: color-mix(in srgb, #16a34a 12%, transparent);
  border: 1px solid color-mix(in srgb, #16a34a 40%, transparent);
}

.form__status[data-state="error"] {
  background: color-mix(in srgb, #dc2626 12%, transparent);
  border: 1px solid color-mix(in srgb, #dc2626 40%, transparent);
}

.form__status[hidden] { display: none; }

/* --------------------------------------------------------------------------
   10. Accordion (events)
   -------------------------------------------------------------------------- */

.accordion { display: grid; gap: var(--space-md); }

.accordion details {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  cursor: pointer;
  font-weight: 620;
  list-style: none;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "+";
  font-size: var(--step-2);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  flex: none;
  transition: transform 0.2s var(--ease-out);
}

.accordion details[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
}

.accordion summary:hover { background: var(--bg-sunken); }

.accordion__body {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-muted);
}

.accordion__body > * + * { margin-top: var(--space-md); }

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--step--1);
  color: var(--text-subtle);
  margin-top: var(--space-sm);
}

.badge {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.badge--past {
  background: var(--bg-sunken);
  /* --text-subtle measured 4.24:1 here, just under AA for 14px semibold.
     --text-muted clears it at ~6.7:1. */
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   11. Page-specific
   -------------------------------------------------------------------------- */

/* MVP credential band */
.mvp {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 56rem) {
  .mvp { grid-template-columns: auto 1fr; gap: var(--space-2xl); }
}

.mvp__seal {
  display: grid;
  place-items: center;
  width: 8rem;
  height: 8rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(26, 159, 232, 0.24), rgba(26, 159, 232, 0.06));
  border: 1px solid rgba(76, 194, 255, 0.32);
  flex: none;
}

.mvp__seal svg { width: 4rem; height: 4rem; color: var(--azure-400); }

/* Partner cards */
.partner {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

.partner__logo {
  display: grid;
  place-items: center;
  height: 6rem;
  padding: var(--space-md);
  background: var(--bg-sunken);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.partner__logo img { max-height: 100%; width: auto; object-fit: contain; }

/* Contact details list */
.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}

.contact-list__label {
  display: block;
  font-size: var(--step--1);
  font-weight: 620;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--space-2xs);
}

.contact-list address { font-style: normal; color: var(--text-muted); }

/* Insights list */
.post-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}

.post-card__meta {
  font-size: var(--step--1);
  color: var(--text-subtle);
  margin-bottom: var(--space-xs);
}

.post-card h3 { font-size: var(--step-1); }

.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

/* Error page */
.error-page {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 60vh;
  padding-block: var(--space-3xl);
}

.error-page__code {
  font-size: clamp(4rem, 18vw, 9rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
  opacity: 0.22;
}

/* --------------------------------------------------------------------------
   12. Scroll reveal (progressive — no JS required to see content)
   -------------------------------------------------------------------------- */

/* Content is visible by default and is only hidden once site.js has actually
   run and added `.reveal-active` to <html>. Gating on anything set earlier
   (e.g. a class written by an inline <head> script) risks hiding the page
   permanently if site.js fails to load. Fail open, never closed. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-active .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  }

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

/* --------------------------------------------------------------------------
   13. Utilities
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  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-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .hero__actions { display: none !important; }
  body { background: #fff; color: #000; }
}
