:root {
  /* Ink / text */
  --ink:        #16233f;   /* headings & primary dark text (deep navy, ≈ SDI ink) */
  --ink-2:      #213170;   /* SDI navy — hover navy / secondary dark */
  --navy:       #213170;   /* SDI black-blue: dark surfaces & solid buttons */
  --ultra-navy: #172947;   /* SDI ultra navy */
  --body:       #636363;   /* SDI grey — supporting body copy */
  --muted:      #909090;   /* SDI hint */
  --line:       #e2e2e2;   /* SDI border / light grey */

  /* Grounds & tints */
  --cream:      #ffffff;   /* white ground (SDI is white space led) */
  --cream-2:    #f5f8ff;   /* SDI secondary tint — section bands */
  --cream-3:    #eef2fb;

  /* Brand & action */
  --blue:       #326fcb;   /* SDI primary */
  --blue-2:     #2452f0;   /* SDI blue-2 */
  --blue-soft:  #e8f0fd;   /* light blue tint (badges, icon tiles) */
  --hover-blue: #447aff;   /* SDI hover blue */
  --sky:        #b5d7ff;   /* SDI sky blue (accents on dark) */
  --sky-2:      #9dc2ff;   /* light-blue accent on imagery */
  --cta-gradient: linear-gradient(90deg, #2452f0, #447aff);
  --footer-gradient: linear-gradient(160deg, #213170, #1f4fb0);

  --font:         "Red Hat Display", Georgia, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad-x: clamp(20px, 5vw, 84px);
  --sect:  clamp(72px, 10vw, 150px);

  /* Radii — SDI pill geometry */
  --radius:    20px;   /* small cards / pillars */
  --radius-lg: 24px;   /* cards, media, panels */
  --radius-xl: 40px;   /* big rounded blocks (statement / CTA / hero banner) */
  --r-pill:    40px;   /* buttons */
  --r-input:   32px;   /* inputs */

  /* Elevation — SDI blue-tinted shadows */
  --shadow:    0 20px 40px rgba(0,84,177,.15);
  --shadow-sm: 0 10px 15px rgba(0,84,177,.10);

  --maxw: 1280px;
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--cream);
  line-height: 1.55;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("../images/grain.png");
  background-size: 260px; opacity: .14; mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 2; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-display); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ----- Layout helpers --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--sect); }
.band { background: var(--cream-2); }
.ink-band {
  background: var(--footer-gradient); color: rgba(255,255,255,.82);
  border-radius: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) 0 0;
}
.ink-band h1, .ink-band h2, .ink-band h3, .ink-band h4 { color: #fff; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font); font-size: .92rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
}
.eyebrow.center-line { justify-content: center; }
.ink-band .eyebrow { color: var(--sky); }

h1 { font-size: clamp(2.7rem, 7vw, 5.2rem); font-weight: 500; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 500; letter-spacing: -.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -.015em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--body); line-height: 1.55; font-weight: 400; }
.muted { color: var(--muted); }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .92em 2em; border-radius: var(--r-pill); border: none;
  font-family: var(--font); font-weight: 500; font-size: 1rem; letter-spacing: 0;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease, filter .3s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
/* Primary = SDI gradient conversion CTA */
.btn--primary { background: var(--cta-gradient); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 30px rgba(0,84,177,.28); }
/* Dark = SDI solid navy → hover blue gradient (signature hover) */
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); background: var(--cta-gradient); box-shadow: var(--shadow-sm); }
/* Ghost = SDI outline: white fill, navy text, soft blue shadow */
.btn--ghost { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
/* Light = white button on dark grounds */
.btn--light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--sm { padding: .64em 1.5em; font-size: .95rem; }
.arrow { transition: transform .3s ease; }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--blue-2); border-bottom: 2px solid var(--blue); padding-bottom: 2px; }
.link-arrow:hover { color: var(--hover-blue); border-color: var(--hover-blue); }

/* ----- Navigation ------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 60; transition: transform .4s ease, padding .3s ease; }
/* Hide on scroll-down (past the hero), reveal on scroll-up — see main.js */
.nav.nav--hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 14px; transition: background .3s ease, box-shadow .3s ease, padding .3s ease, border-radius .3s ease; }
/* On scroll the header adopts a white, rounded "pill" bar with a soft blue shadow */
.nav.is-stuck { padding-top: 10px; }
.nav.is-stuck .nav__inner {
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px);
  border-radius: 999px; box-shadow: 0 10px 30px rgba(0,84,177,.12);
  padding: 10px 16px 10px 22px;
}
.brand { display: inline-flex; align-items: center; gap: .6em; font-family: var(--font-display); font-weight: 600; color: var(--ink); letter-spacing: -.02em; font-size: 1.15rem; line-height: 1; }
.brand img { height: 48px; width: auto; transition: filter .3s ease; }
.brand .brand__txt { display: flex; flex-direction: column; }
.brand small { font-family: var(--font); font-size: .6rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 2.1rem; }
.nav__links a { font-weight: 400; font-size: 1rem; color: var(--ink); position: relative; transition: color .25s ease; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--blue); transition: width .25s ease; }
.nav__links a:hover { color: var(--blue); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: .8rem; }
.nav__burger { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.nav__burger i { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav__burger i:nth-child(1) { top: 15px; } .nav__burger i:nth-child(2) { top: 21px; } .nav__burger i:nth-child(3) { top: 27px; }
body.menu-open .nav__burger i:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .nav__burger i:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger i:nth-child(3) { top: 21px; transform: rotate(-45deg); }
body.hero-page .nav { position: fixed; top: 0; left: 0; right: 0; }
body.hero-page .nav:not(.is-stuck) .brand,
body.hero-page .nav:not(.is-stuck) .nav__links a { color: #fff; }
body.hero-page .nav:not(.is-stuck) .nav__links a:hover { color: var(--sky); }
body.hero-page .nav:not(.is-stuck) .nav__burger i { background: #fff; }
body.hero-page .nav:not(.is-stuck) .brand img { filter: brightness(0) invert(1); }
/* When the mobile drawer is open the panel is light, so use dark items again */
body.hero-page.menu-open .nav:not(.is-stuck) .nav__links a { color: var(--ink); }
body.hero-page.menu-open .nav:not(.is-stuck) .nav__links a:hover { color: var(--blue); }

/* ----- Hero ------------------------------------------------------------- */
.hero { padding-top: clamp(28px, 5vw, 64px); }
.hero__head { max-width: 1000px; }
.hero__title { font-family: var(--font-display); font-size: clamp(2rem, 6.45rem, 5rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.hero__title .accent { color: var(--blue); }
.hero__text { max-width: 56ch; margin-top: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

.hero__banner { position: relative; margin-top: clamp(36px, 5vw, 64px); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/7; min-height: 320px; }
.hero__banner img { width: 100%; height: 100%; object-fit: cover; }
.hero__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(23,41,71,.62)); }
.hero__banner-card { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 32px; box-shadow: var(--shadow); }
.hero__banner-card .hb-stat b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 500; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.hero__banner-card .hb-stat span { font-size: .85rem; color: var(--body); }

/* ----- Hero with cycling background image (homepage) -------------------- */
.hero--media { position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: 100vh; min-height: 100svh;
  padding-block: clamp(104px, 16vh, 172px) clamp(56px, 9vh, 104px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.5s ease; will-change: opacity; }
.hero__slide.is-active { opacity: 1; }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,22,42,.66) 0%, rgba(12,22,42,.80) 55%, rgba(12,22,42,.88) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero--media .hero__head { max-width: 900px; }
.hero--media .hero__title,
.hero--media h1 { color: #fff; font-size: clamp(2.4rem, 8vw, 5rem); text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero--media .hero__title .accent,
.hero--media h1 .accent { color: var(--sky); }
.hero--media .hero__text,
.hero--media .lead { color: rgba(255,255,255,.92); text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.hero--media .eyebrow { color: var(--sky); text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.hero--media .breadcrumb, .hero--media .breadcrumb a { color: rgba(255,255,255,.8); }
/* Desktop hero slide images (landscape) — shared by every page's media hero */
.hero__slide--1 { background-image: url('../images/image-1.jpeg'); }
.hero__slide--2 { background-image: url('../images/image-2.jpeg'); }
.hero__slide--3 { background-image: url('../images/image-3.jpeg'); }

/* Trust / partners */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px,5vw,54px); justify-content: center; }
.trust span { font-family: var(--font-display); font-weight: 500; color: var(--ink); opacity: .34; letter-spacing: -.02em; font-size: 1.1rem; }
.trust img { height: clamp(38px, 5.5vw, 60px); width: auto; object-fit: contain; opacity: .92; transition: opacity .25s ease, transform .25s ease; }
.trust img:hover { opacity: 1; transform: translateY(-3px); }

/* ----- Section heading -------------------------------------------------- */
.head { max-width: 780px; }
.head.center { margin-inline: auto; }
.head .eyebrow { margin-bottom: 1rem; }
.head p { margin-top: 1.1rem; }
.head h2 + p { color: var(--body); }

/* ----- Pillars (numbered) ----------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 3.2rem; }
.pillars.three { grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 32px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.band .pillar { background: #fff; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pillar__num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; letter-spacing: -.02em; color: var(--blue); line-height: 1; }
.pillar h3 { margin-top: .7rem; font-size: 1.2rem; }
.pillar p { margin-top: .55rem; font-size: .96rem; }

/* Process infographic (replaces the text steps on programs.html) */
.process-figure { display: block; margin: clamp(2.4rem, 5vw, 3.6rem) auto 0; max-width: 1040px; }
.process-figure img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .process-figure { max-width: 460px; } }

/* ----- Alternating feature rows ----------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 120px); }
.feature.reverse .feature__media { order: 2; }
.feature__media { border-radius: var(--radius-lg); box-shadow: var(--shadow); position: relative; overflow: hidden; aspect-ratio: 4/3.2; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.feature__media:hover img { transform: scale(1.05); }
.feature__media .tag { position: absolute; left: 18px; top: 18px; background: var(--blue); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 500; font-size: .82rem; z-index: 2; }
/* Plain media: no card frame, whole image shown (not cropped), fills the column */
.feature__media--plain { background: transparent; border-radius: 0; box-shadow: none; overflow: visible; aspect-ratio: auto; max-height: none; }
.feature__media--plain img { width: 100%; height: auto; object-fit: contain; transition: none; }
.feature__media--plain:hover img { transform: none; }
.feature ul.ticks { margin-top: 1.4rem; display: grid; gap: .8rem; }
.feature ul.ticks li { display: flex; gap: .7em; align-items: flex-start; color: var(--ink-2); }
.feature ul.ticks svg { flex: none; margin-top: 3px; }

/* ----- Big statement ---------------------------------------------------- */
.statement { position: relative; border-radius: var(--radius-xl); overflow: hidden; padding: clamp(48px,8vw,120px) clamp(28px,6vw,90px); color: #fff; }
.statement img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.statement::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(23,41,71,.82), rgba(36,82,240,.42)); z-index: 1; }
.statement > * { position: relative; z-index: 2; }
.statement h2 { color: #fff; font-size: clamp(2.1rem, 5.5vw, 4.2rem); max-width: 20ch; }
.statement .accent { color: var(--sky-2); }

/* ----- Stats ------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 1.6vw, 1.4rem); }
.stat { padding: clamp(22px, 3vw, 42px) clamp(16px, 2.4vw, 30px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); text-align: center; }
.ink-band .stat { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
/* number + sign kept on one baseline row */
.stat b { display: flex; justify-content: center; align-items: baseline; gap: .04em; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.ink-band .stat b { color: #fff; }
.stat b .accent { color: var(--blue); font-size: .6em; font-weight: 600; }
.ink-band .stat b .accent { color: var(--sky); }
.stat > span { display: block; margin-top: .55rem; color: var(--body); font-weight: 500; font-size: clamp(.86rem, 1vw, .98rem); line-height: 1.4; }
.ink-band .stat > span { color: rgba(255,255,255,.72); }

/* ----- Cards ------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 3.2rem; }
.cards.two { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-inline: auto; }
.card { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { aspect-ratio: 5/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 24px 26px 28px; }
.card__body h3 { font-size: 1.25rem; }
.card__role { color: var(--blue); font-weight: 600; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.card__body p { margin-top: .6rem; font-size: .96rem; }
.pcard .card__media { aspect-ratio: 16/10; }
.pcard .badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-2); font-weight: 600; font-size: .78rem; }

/* ----- Quote ------------------------------------------------------------ */
.quote { max-width: 940px; margin-inline: auto; text-align: center; }
.quote p { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.3; color: var(--ink); font-weight: 500; letter-spacing: -.02em; }
.quote footer { margin-top: 1.8rem; color: var(--muted); font-weight: 500; }

/* ----- CTA banner ------------------------------------------------------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-xl); color: #fff; padding: clamp(48px, 7vw, 100px); text-align: center; }
.cta img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(23,41,71,.88), rgba(36,82,240,.55)); z-index: 1; }
.cta > * { position: relative; z-index: 2; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); max-width: 58ch; margin: 1.1rem auto 0; }
.cta .hero__actions { justify-content: center; }

/* ----- Newsletter ------------------------------------------------------- */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.news form { display: flex; gap: .6rem; margin-top: 1.6rem; flex-wrap: wrap; }
.field { flex: 1 1 240px; padding: 1em 1.4em; border-radius: 999px; border: 2px solid var(--line); background: #fff; font: inherit; color: var(--ink); transition: border-color .25s ease, box-shadow .25s ease; }
.field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,84,177,.14); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .7rem; }
/* Honeypot (hidden from users, bait for bots) + submission status */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-status { margin-top: .5rem; font-weight: 600; font-size: .95rem; }
.form-status.is-error { color: #c0261b; }
.form-status.is-ok { color: var(--blue); }
.ink-band .form-status.is-ok, .side-card .form-status.is-ok { color: #cfe0ff; }
.is-loading { opacity: .7; pointer-events: none; }

/* ----- Cookie consent bar ----------------------------------------------- */
.cookie-bar { position: fixed; left: clamp(12px,3vw,24px); right: clamp(12px,3vw,24px); bottom: clamp(12px,3vw,24px);
  z-index: 150; max-width: 720px; margin-inline: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 24px 60px rgba(18,41,74,.24); padding: 16px 20px;
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
  transform: translateY(18px); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.cookie-bar.is-in { transform: none; opacity: 1; }
.cookie-bar__txt { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-2); flex: 1 1 300px; }
.cookie-bar__txt a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.cookie-bar__act { display: flex; gap: .6rem; flex: none; }
@media (max-width: 520px) { .cookie-bar__act { width: 100%; } .cookie-bar__act .btn { flex: 1; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .cookie-bar { transition: none; } }

/* ----- Forms ------------------------------------------------------------ */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { font-weight: 500; color: var(--ink); font-size: .92rem; display: block; margin-bottom: .45rem; }
.form input, .form select { width: 100%; padding: .95em 1.3em; border-radius: var(--r-input); border: 2px solid var(--line); background: #fff; font: inherit; color: var(--ink); transition: border-color .25s ease, box-shadow .25s ease; }
.form textarea { width: 100%; padding: .95em 1.3em; border-radius: 22px; border: 2px solid var(--line); background: #fff; font: inherit; color: var(--ink); transition: border-color .25s ease, box-shadow .25s ease; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,84,177,.14); }
.form textarea { min-height: 150px; resize: vertical; }

/* ----- Interior page hero ---------------------------------------------- */
.phero { padding-top: clamp(30px, 5vw, 64px); }
.phero .head { max-width: 900px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--blue); }

/* ----- Accordion -------------------------------------------------------- */
.accordion { max-width: 860px; margin-inline: auto; }
.acc { border-bottom: 1px solid var(--line); }
.acc__q { width: 100%; text-align: left; background: none; border: 0; padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.1rem; letter-spacing: -.015em; }
.acc__q .plus { flex: none; width: 24px; height: 24px; position: relative; }
.acc__q .plus::before, .acc__q .plus::after { content: ""; position: absolute; background: var(--blue); border-radius: 2px; transition: transform .3s; }
.acc__q .plus::before { left: 0; right: 0; top: 11px; height: 2px; }
.acc__q .plus::after { top: 0; bottom: 0; left: 11px; width: 2px; }
.acc.is-open .plus::after { transform: scaleY(0); }
.acc__a { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.acc__a p { padding-bottom: 1.4rem; }

/* ----- Footer (gradient, rounded top — SDI signature) ------------------- */
.footer { background: var(--footer-gradient); color: rgba(255,255,255,.74); padding-top: clamp(64px, 9vw, 110px); border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0; }
.footer a { color: rgba(255,255,255,.74); transition: color .25s ease; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer .brand { color: #fff; }
.footer .brand img { height: 72px; background: #fff; border-radius: 12px; padding: 8px; }
.footer .brand small { color: rgba(255,255,255,.55); }
.footer h4 { color: #fff; font-family: var(--font); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .7rem; }
.footer__note { max-width: 36ch; margin-top: 1.1rem; font-size: .95rem; }
.socials { display: flex; gap: .7rem; margin-top: 1.5rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; transition: .25s; }
.socials a:hover { background: var(--hover-blue); color: #fff; border-color: var(--hover-blue); transform: translateY(-2px); }
.footer__bottom { padding-block: 26px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .88rem; margin-top: clamp(40px,6vw,72px); }

/* ----- Mobile drawer chrome (built in JS; hidden on desktop) ------------ */
.nav__backdrop { position: fixed; inset: 0; background: rgba(23,41,71,.5); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease; z-index: 54; }
.nav__backdrop[hidden] { display: block; }         /* keep it in flow so it can transition */
body.menu-open .nav__backdrop { opacity: 1; visibility: visible; }
.nav__drawer-head { display: none; align-items: center; justify-content: space-between; padding-bottom: 1rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line); }
.nav__drawer-title { font-weight: 600; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; }
.nav__close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; display: grid; place-items: center; transition: .25s; }
.nav__close:hover { border-color: var(--blue); color: var(--blue); }
.drawer-cta { display: none; }

/* ----- Scroll reveal (gated on .js) ------------------------------------- */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .09s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .27s; }

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 980px) {
  .nav__links, .nav__cta .btn--primary { display: none; }
  .nav__burger { display: block; }
  .pillars, .pillars.three { grid-template-columns: repeat(2, 1fr); }
  .feature, .news { grid-template-columns: 1fr; }
  .feature.reverse .feature__media { order: -1; }
  .feature__media { max-height: 440px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .hero__banner { aspect-ratio: 4/3; }

  /* Full-height slide-in drawer */
  .nav__links {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(86vw, 360px); height: 100vh; height: 100dvh; overflow-y: auto;
    background: var(--cream);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 18px 24px 28px; gap: 0; transform: translateX(100%); transition: transform .35s ease;
    box-shadow: -24px 0 60px -30px rgba(0,0,0,.35); z-index: 56;
  }
  body.menu-open .nav__links { display: flex; transform: translateX(0); }
  body.menu-open { overflow: hidden; }              /* scroll-lock the page behind */
  .nav__drawer-head { display: flex; }
  .nav__links a:not(.btn) {
    font-size: 1.18rem; font-weight: 500; color: var(--ink);
    padding: 1rem .2rem; border-bottom: 1px solid var(--line);
  }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links a:not(.btn):hover { color: var(--blue); }
  .nav__links a:not(.btn)[aria-current="page"] { color: var(--blue); }
  .drawer-cta { display: inline-flex; justify-content: center; margin-top: 1.5rem; }
  /* keep the sticky pill from clipping the drawer trigger area */
  .nav.is-stuck .nav__inner { border-radius: 999px; }
}
@media (max-width: 580px) {
  .pillars, .pillars.three, .cards, .cards.two { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  /* compact horizontal stat cards: number left, label right */
  .stats { grid-template-columns: 1fr; gap: .7rem; }
  .stat { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 1rem;
    text-align: left; padding: 15px 18px; }
  .stat b { justify-content: flex-start; font-size: clamp(2rem, 9vw, 2.6rem); }
  .stat > span { margin-top: 0; }
}

/* Mobile hero: text drops to the lower area, background uses its own portrait
   (mobile-sized) images, and the stats become compact info cards. */
@media (max-width: 640px) {
  .hero--media { align-items: flex-end; padding-bottom: clamp(36px, 7vh, 80px); }
  .hero__slide--1 { background-image: url('../images/image-1-mobile.jpeg'); }
  .hero__slide--2 { background-image: url('../images/image-2-mobile.jpeg'); }
  .hero__slide--3 { background-image: url('../images/image-3-mobile.jpeg'); }

  .hero__banner-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: .7rem;
    background: transparent; border: 0; box-shadow: none; padding: 0;
  }
  .hero__banner-card .hb-stat {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 14px 12px; text-align: center;
  }
  .hero__banner-card .hb-stat b { font-size: 1.6rem; }
  .hero__banner-card .hb-stat span { font-size: .8rem; }
  .hero__banner-card .hb-stat:nth-child(3) { grid-column: 1 / -1; }
  .hero__banner-card .btn { grid-column: 1 / -1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .feature__media img, .card__media img { transition: none; }
  .hero__slide { transition: none; }
}
