/* Reset, typography, layout helpers, buttons, section backgrounds, waves. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
strong { font-weight: 700; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.section--white :focus-visible, .section--cream :focus-visible, .section--gold :focus-visible { outline-color: var(--ocean); }

.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;
}
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--gold); color: var(--navy); padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none; transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

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

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 1.75rem; height: 1.75rem; }

/* Eyebrow labels */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 1.75rem; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow--dark { color: var(--sunset-dark); }
.eyebrow--navy { color: var(--navy); }

.text-sunset { color: var(--sunset); }
.text-sunset-dark { color: var(--sunset-dark); }

/* Buttons */
.btn {
  --btn-bg: transparent; --btn-fg: inherit; --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.8rem 1.35rem; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-border);
  font-weight: 700; font-size: 0.98rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur), color var(--dur);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--lg { min-height: 56px; padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy); --btn-border: var(--gold); box-shadow: 0 10px 28px -10px rgba(244, 184, 96, 0.7); }
.btn--gold:hover { --btn-bg: var(--gold-soft); box-shadow: 0 16px 36px -12px rgba(244, 184, 96, 0.85); }
.btn--outline { --btn-fg: var(--cream); --btn-border: rgba(250, 235, 208, 0.55); }
.btn--outline:hover { --btn-border: var(--cream); --btn-bg: rgba(250, 235, 208, 0.08); }
.btn--deep { --btn-bg: var(--navy); --btn-fg: var(--cream); --btn-border: var(--navy); }
.btn--deep:hover { --btn-bg: var(--deep-sea); --btn-border: var(--deep-sea); box-shadow: var(--shadow-card); }
.btn .icon { transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon:last-child { transform: translateX(3px); }

/* Sections */
.section { position: relative; padding-block: var(--section-y); }
.section--navy {
  color: var(--cream);
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(232, 137, 58, 0.16), transparent 70%),
    radial-gradient(70% 60% at 0% 100%, rgba(31, 122, 196, 0.22), transparent 70%),
    var(--navy);
}
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }
.section--gold { background: var(--gold); color: var(--navy); }

/* Wave divider: draws the previous section's colour as a soft wave across the top. */
.has-wave::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: clamp(28px, 4.5vw, 72px);
  background: var(--wave-from, var(--navy)); pointer-events: none; z-index: 1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V34C1300 70 1140 78 960 50S600 6 420 30 120 72 0 44Z'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V34C1300 70 1140 78 960 50S600 6 420 30 120 72 0 44Z'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
}

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head h2 + p, .section-head__lead { margin-top: 1.1rem; font-size: var(--fs-lead); color: var(--ink-soft); }
.section--navy .section-head__lead { color: var(--sky); }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.section-head--row > div:first-child { max-width: 720px; }


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