/* ==========================================================================
   Advances.in — static rebuild
   Single stylesheet. No framework, no build step.
   Palette and type lifted from the original Elementor globals.
   ========================================================================== */

/* --- Fonts (self-hosted, latin + latin-ext) ------------------------------ */

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

/* --- Tokens -------------------------------------------------------------- */

:root {
  --orange: #f27e3f;          /* Elementor primary + accent */
  --orange-ink: #a9501b;      /* AA-safe orange for small text on white (5.4:1) */
  --orange-soft: #fdf1e9;
  --navy: #002352;
  --navy-soft: #0b2f63;
  --blue: #007fff;
  --red: #ff4d54;
  --teal: #0e524a;
  --grey: #54595f;            /* Elementor secondary */
  --text: #5c6066;            /* darkened from #7a7a7a for AA on white */
  --muted: #7a7a7a;
  --line: #e6e8ec;
  --bg: #fff;
  --bg-alt: #f7f8fa;

  /* Brand CTA gradient, supplied as an explicit 13-stop ramp. */
  --grad-from: rgb(248 150 37);
  --grad-to: rgb(30 171 217);
  --brand-gradient: linear-gradient(90deg,
    rgba(248, 150, 37, 1) 0%,
    rgba(236, 154, 68, 1) 8.33%,
    rgba(223, 158, 89, 1) 16.67%,
    rgba(210, 161, 106, 1) 25%,
    rgba(197, 163, 122, 1) 33.33%,
    rgba(183, 166, 136, 1) 41.67%,
    rgba(169, 168, 149, 1) 50%,
    rgba(154, 169, 161, 1) 58.33%,
    rgba(137, 170, 173, 1) 66.67%,
    rgba(119, 171, 184, 1) 75%,
    rgba(99, 171, 195, 1) 83.33%,
    rgba(73, 171, 206, 1) 91.67%,
    rgba(30, 171, 217, 1) 100%);

  --footer-bg: #53b7d6;
  /* White on #53B7D6 measures 2.2:1, below the WCAG AA minimum of 4.5:1.
     Chosen deliberately for brand reasons — see the note in README.md. */
  --footer-ink: #ffffff;

  --hero-top: #f5fcfe;
  --hero-bottom: #ffffff;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --shadow: 0 2px 4px rgb(0 35 82 / 4%), 0 12px 32px rgb(0 35 82 / 7%);
  --shadow-lg: 0 4px 8px rgb(0 35 82 / 5%), 0 24px 56px rgb(0 35 82 / 11%);

  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.89rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.11rem + 0.42vw, 1.44rem);
  --step-2: clamp(1.44rem, 1.28rem + 0.79vw, 1.9rem);
  --step-3: clamp(1.73rem, 1.45rem + 1.36vw, 2.5rem);
  --step-4: clamp(2.07rem, 1.6rem + 2.28vw, 3.4rem);
}

/* --- Reset --------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-weight: 600;
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

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

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

a {
  color: var(--orange-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--navy); }

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

strong { font-weight: 600; color: var(--grey); }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

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

/* --- Layout helpers ------------------------------------------------------ */

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

.wrap--narrow { max-width: 820px; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-ink);
}

.lead { font-size: var(--step-1); line-height: 1.55; color: var(--grey); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 0.7rem 1.4rem;
  background: var(--navy);
  color: #fff;
  font-weight: 500;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.7em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Brand gradient: orange to cyan, left to right.
   background-position shifts on hover so the gradient slides rather than
   cross-fading (gradients are not interpolatable). */
/* The full gradient must be visible at rest, so no background-size trickery
   here — scaling it up would show only the orange half until hover. */
.btn--primary {
  background-image: linear-gradient(90deg,
    var(--grad-from) 0%, var(--grad-to) 100%);
  background-image: var(--brand-gradient);
  /* The 2px transparent border matters: with the default
     background-origin: padding-box the gradient spans only the padding box and
     the border strip gets the REPEATED tile — cyan on the left edge, orange on
     the right. That stray edge line is also why the button looked like it
     stopped at tan instead of reaching cyan. */
  background-origin: border-box;
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 18px rgb(33 170 214 / 30%);
  transition: filter 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn--primary:hover {
  color: #fff;
  filter: saturate(1.12) brightness(0.94);
  box-shadow: 0 10px 28px rgb(33 170 214 / 42%);
}

.btn--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: #fff; }

.btn--ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn__icon { transition: transform 0.18s ease; }
.btn:hover .btn__icon { transform: translateY(2px); }

/* --- Header -------------------------------------------------------------- */

/* Same tint as the top of the page, so the header reads as part of it —
   only the hairline separates them. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--hero-top);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

/* Logo source is vector (SVG); the box below sets the render size and it
   stays crisp at any density. */
.brand { flex: 0 0 auto; line-height: 0; }
.brand img { width: clamp(190px, 18vw, 244px); height: auto; }

.nav { margin-left: auto; }

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

.nav__item { position: relative; }
.nav__item > a:not(.btn),
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.6rem 0.85rem;
  border: 0;
  background: none;
  border-radius: 8px;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.nav__item > a:not(.btn):hover,
.nav__toggle:hover { background: var(--orange-soft); color: var(--orange-ink); }

.nav__item > a:not(.btn)[aria-current='page'] {
  color: var(--orange-ink);
  box-shadow: inset 0 -2px 0 var(--orange);
  border-radius: 8px 8px 0 0;
}

.nav__caret { transition: transform 0.18s ease; }
.nav__toggle[aria-expanded='true'] .nav__caret { transform: rotate(180deg); }

.nav__sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10;
  min-width: 16rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav__toggle[aria-expanded='true'] + .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__sub a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: var(--step--1);
  color: var(--navy);
  text-decoration: none;
}
.nav__sub a:hover { background: var(--orange-soft); color: var(--orange-ink); }

.nav__cta { margin-left: 0.5rem; font-size: var(--step--1); padding: 0.7em 1.4em; }

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  color: var(--navy);
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  /* Top padding deliberately half the bottom — the header sits directly above. */
  padding-block: clamp(1.5rem, 3.5vw, 2.75rem) clamp(3.5rem, 8vw, 6rem);
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
}

/* Drifting triangle field — replaces the original particles.js canvas.
   Each .tri carries its own --y/--size/--tint/--dur/--delay/--dy/--spin/--fade
   inline, so ten elements give ten distinct trajectories from one keyframe. */
/* Stacking inside .hero: image (1) < triangles (2) < headline and buttons (3).
   So the triangles pass in front of the oval but never across the type.
   .hero__grid must NOT set a z-index, or it would trap its children in their
   own stacking context and .hero__text could never rise above the motif. */
.hero__motif {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.tri {
  position: absolute;
  top: var(--y);
  left: 0;
  width: var(--size);
  aspect-ratio: 1;
  background: var(--tint);
  opacity: var(--fade);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  will-change: transform;
  animation: tri-drift var(--dur) linear var(--delay) infinite;
}

/* Straight glide, no spin — each triangle's --dy sets its own angle. */
@keyframes tri-drift {
  from { transform: translate(-10vw, 0); }
  to   { transform: translate(110vw, var(--dy)); }
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}

/* Stacked layout: the image leads, then the copy. The DOM keeps the heading
   first so the reading and tab order stay correct. */
.hero__media { order: -1; }
.hero__text { order: 0; }

.hero h1 { margin-bottom: 0.5em; }

/* Same ramp as the buttons. */
.hero__rotator {
  display: inline-grid;
  vertical-align: bottom;
  color: rgb(30 171 217);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero__rotator > span {
    background-image: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.hero__rotator > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.hero__rotator > span.is-active { opacity: 1; transform: translateY(0); }
/* Without JS the first keyword stays visible rather than leaving an empty gap —
   see the <noscript> block in each page head. */

.hero__text { position: relative; z-index: 3; }
.hero__text p { max-width: 34rem; }
/* Intro paragraph steps down a size so the oval carries more of the weight. */
.hero__text .lead { font-size: var(--step-0); line-height: 1.62; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* The morphing blob is the image's own mask: overflow:hidden on a shape whose
   border-radius animates, with the photo filling it via object-fit: cover.
   The visible crop therefore changes as the shape wobbles. */
/* Only the outline moves. No transform is applied here, so the photograph
   inside never rotates, scales or shifts — the crop changes, the image does not.
   The keyframes below are the no-JS fallback; when JS is available site.js adds
   .blob--live and drives border-radius with random values instead, so the shape
   never repeats. */
.hero__media {
  position: relative;
  z-index: 1;                    /* below .hero__motif, so triangles fly over it */
  aspect-ratio: 7 / 5;           /* wider than tall */
  overflow: hidden;
  border-radius: 42% 58% 52% 48% / 46% 44% 56% 54%;
  animation: blob-wobble 9s ease-in-out infinite;
  will-change: border-radius;
}

/* site.js writes border-radius every frame, so neither the keyframes nor a
   transition should be in play — a transition would lag and fight the loop. */
.hero__media.blob--live {
  animation: none;
  transition: none;
}

/* Every pair on an edge sums to <= 100%, so the browser never scales the radii
   down and the outline never squares off. See the comment in site.js. */
@keyframes blob-wobble {
  0%, 100% { border-radius: 42% 56% 52% 44% / 46% 44% 52% 50%; }
  17%      { border-radius: 60% 34% 30% 62% / 58% 62% 34% 38%; }
  34%      { border-radius: 32% 62% 58% 36% / 62% 32% 62% 34%; }
  51%      { border-radius: 56% 38% 62% 32% / 30% 58% 38% 62%; }
  68%      { border-radius: 36% 58% 38% 56% / 60% 40% 54% 34%; }
  85%      { border-radius: 62% 32% 54% 40% / 36% 60% 34% 58%; }
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;   /* keep faces in frame as the shape moves */
}

/* --- Press strip --------------------------------------------------------- */

/* Tight band — it is a credibility strip, not a section of its own. */
.press {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: clamp(1.25rem, 2.4vw, 1.9rem);
}
.press__label {
  margin: 0 0 1rem;
  text-align: center;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.press__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 9vw, 8rem);
}
.press__row img {
  width: auto;
  max-height: 36px;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.press__row a { display: block; line-height: 0; border-radius: 6px; }
.press__row a:hover img,
.press__row a:focus-visible img { filter: grayscale(0); opacity: 1; }

/* --- Steps --------------------------------------------------------------- */

.steps {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step { position: relative; text-align: center; margin: 0; }

.step__figure {
  position: relative;
  width: clamp(88px, 12vw, 118px);
  aspect-ratio: 1;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--orange-soft);
  box-shadow: var(--shadow);
}
.step__figure img { width: 100%; height: 100%; object-fit: cover; }

.step__num {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-ink);
}

.step__title {
  margin: 0;
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1.45;
  color: var(--navy);
}
/* Whole card is the target, so the small label is not the only thing to hit. */
.step__title a {
  color: inherit;
  text-decoration: none;
}
.step__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.step:hover .step__title a,
.step__title a:focus-visible { color: var(--orange-ink); text-decoration: underline; }
.step:hover .step__figure { transform: translateY(-3px); }
.step__figure { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.step:hover .step__figure { box-shadow: var(--shadow-lg); }

/* --- Value cards --------------------------------------------------------- */

/* Four value propositions. No cards, no borders, no shadows — the rhythm comes
   from hairline rules between columns and a coloured rule above each heading. */
.cards {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  position: relative;
  margin: 0;
  padding: 0;
}

/* Hairline divider, drawn in the gutter so it never sits on the first column. */
@media (min-width: 880px) {
  .card + .card::before {
    content: '';
    position: absolute;
    left: calc(clamp(2rem, 4vw, 3.25rem) / -2);
    top: 0.25rem;
    bottom: 0.25rem;
    border-left: 1px solid var(--line);
  }
}

/* Each column steps along the brand gradient, orange through to cyan. */
.card { --accent: var(--grad-from); }
.card:nth-child(2) { --accent: #d98f34; }
.card:nth-child(3) { --accent: #6ba6b8; }
.card:nth-child(4) { --accent: var(--grad-to); }

.card__mark {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 1.15rem;
  color: var(--accent);
}

.card h2,
.card h3 {
  position: relative;
  margin-bottom: 0.55em;
  padding-top: 0.85rem;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}
/* Short accent rule above the heading, tinted to match the column's icon. */
.card h2::before,
.card h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.card p {
  font-size: var(--step-0);
  line-height: 1.68;
  color: var(--text);
  max-width: 24ch;
}

/* --- Page hero (interior pages) ------------------------------------------ */

.page-hero {
  padding-block: clamp(1.5rem, 3.5vw, 2.5rem) clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(46rem 26rem at 82% -20%, rgb(242 126 63 / 12%), transparent 62%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero p { max-width: 44rem; }

/* --- Prose --------------------------------------------------------------- */

.prose { max-width: 74ch; }
.prose h2 {
  margin-top: 2.2em;
  padding-top: 0.2em;
  font-size: var(--step-2);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; font-size: var(--step-1); }
.prose ul, .prose ol { margin-bottom: 1.15em; }
.prose .updated { font-size: var(--step--1); color: var(--muted); }

/* Legal pages: dense numbered clauses read better a touch tighter. */
.prose--legal { line-height: 1.62; }
.prose--legal p { margin-bottom: 0.85em; }
.prose--legal h2 { margin-top: 1.9em; font-size: var(--step-1); }

.callout {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--orange-soft);
}
.callout p { font-size: var(--step--1); }

/* --- FAQ accordion (no JS) ----------------------------------------------- */

.faq { max-width: 56rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 0.85rem;
  box-shadow: 0 1px 2px rgb(0 35 82 / 4%);
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq__body { padding: 0 1.4rem 1.35rem; font-size: var(--step--1); }
.faq__body > :first-child { margin-top: 0; }

/* --- Leadership ---------------------------------------------------------- */

.leader {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.leader__photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.leader__role {
  margin: -0.4rem 0 1.4rem;
  font-weight: 500;
  color: var(--orange-ink);
}
.leader blockquote {
  margin: 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--orange);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--grey);
}

/* Two-column content split — primary column first, aside second. */
.split { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.split > aside h2:first-child,
.split > div h2:first-child { margin-top: 0; }

/* --- Forms --------------------------------------------------------------- */

.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form__row { display: grid; gap: 1.1rem; }

.field { display: grid; gap: 0.4rem; }
.field > label {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--navy);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: var(--step-0);
  color: var(--navy);
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgb(242 126 63 / 20%);
  outline: none;
}
.field textarea { min-height: 9rem; resize: vertical; }

/* Honeypot — visually gone, still reachable by bots that parse the DOM. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form__note { font-size: var(--step--1); color: var(--muted); }

.form__status {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-size: var(--step--1);
}
.form__status:empty { display: none; }
.form__status--ok { background: #e6f0ee; color: var(--teal); }
.form__status--err { background: #ffeced; color: #a32026; }

/* --- Slide-out contact panel --------------------------------------------- */

.panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 120;
  width: min(30rem, 100%);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  box-shadow: -20px 0 60px rgb(0 35 82 / 18%);
  overflow-y: auto;
  transform: translateX(101%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}
.panel.is-open { transform: none; visibility: visible; }

.panel__scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgb(0 35 82 / 45%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.panel__scrim.is-open { opacity: 1; visibility: visible; }

.panel__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.panel h2 { font-size: var(--step-2); margin-bottom: 0.3em; }
.panel .form { max-width: none; }

.panel__details {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  font-style: normal;
  line-height: 1.7;
  color: var(--muted);
}
.panel__details span { padding-inline: 0.35em; opacity: 0.55; }

/* --- Footer -------------------------------------------------------------- */

/* Light cyan footer. White text on #1EABD9 is only 2.7:1, so the type is dark. */
.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--footer-bg);
  color: var(--footer-ink);
  font-size: var(--step--1);
}
.site-footer a { color: var(--footer-ink); text-decoration: none; }
.site-footer a:hover { color: var(--navy); text-decoration: underline; }

.site-footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}

/* White lockup, so the strapline stays legible on the cyan footer. */
.site-footer__brand img { width: 210px; height: auto; }
.site-footer__brand p { margin: 1.2rem 0 1.4rem; max-width: 26rem; line-height: 1.65; }

.social { display: flex; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 10px;
  color: var(--footer-ink);
}
.social a:hover { background: #fff; border-color: #fff; color: var(--footer-bg); }

.site-footer h2 {
  margin-bottom: 1rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--footer-ink);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }

.site-footer__base {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 34%);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: rgb(255 255 255 / 88%);
}

/* --- Scroll reveal ------------------------------------------------------- */

/* A .reveal element is visible by default. JS adds .reveal--armed just before
   observing it, so content can never be stranded invisible by a failed observer,
   a blocked script, or a tool that renders without scrolling. */
.reveal { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal--armed { opacity: 0; transform: translateY(22px); }
.reveal--armed.is-in { opacity: 1; transform: none; }

/* --- Breakpoints --------------------------------------------------------- */

@media (min-width: 640px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (min-width: 900px) {
  /* Media column gets the larger share, and is allowed to bleed a little past
     the wrapper so the oval reads bigger without pushing the text in. */
  .hero__grid { grid-template-columns: 0.84fr 1.16fr; }
  .hero__media { width: 112%; margin-right: -12%; order: 0; }   /* text, then image */
  .leader { grid-template-columns: 320px 1fr; }
  .split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

@media (max-width: 1023px) {
  .burger { display: inline-grid; }

  .nav {
    position: fixed;
    inset: 74px 0 auto;
    z-index: 80;
    margin: 0;
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    padding: 1rem var(--gutter) 2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav__item > a:not(.btn),
  .nav__toggle { width: 100%; justify-content: space-between; padding: 0.8rem 0.6rem; font-size: var(--step-0); }

  .nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 0.1rem 0 0.4rem 0.6rem;
    padding: 0;
  }
  .nav__toggle[aria-expanded='true'] + .nav__sub { display: block; }

  .nav__cta { margin: 0.8rem 0 0; justify-content: center; width: 100%; }
}

@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;
  }
  .reveal--armed { opacity: 1; transform: none; }
  .hero__rotator > span { transition: none; }
  /* Park the decoration rather than letting the blanket 0.01ms rule strobe it. */
  .tri { animation: none; transform: translate(20vw, 0); }
  .hero__media { animation: none; }
}

@media print {
  .site-header, .site-footer, .panel, .panel__scrim, .hero__motif { display: none; }
  body { color: #000; }
}
