/* Fonts (add to every page head):
   https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap
*/

/* ---------- tokens ---------- */
:root {
  --navy: #141a5c;
  --navy-deep: #0c1042;
  --navy-soft: #1d2575;
  --coral: #e5484d;
  --coral-btn: #d63b40;      /* AA with white text */
  --coral-dark: #b92e33;
  --coral-ink: #c2363b;      /* coral text on light backgrounds */
  --lav: #b9bdff;
  --light: #f1f2f7;
  --white: #fff;

  --bg: var(--navy);
  --fg: #fff;
  --muted: rgba(255, 255, 255, .78);
  --line: rgba(255, 255, 255, .18);
  --card-bg: rgba(255, 255, 255, .06);
  --accent: var(--coral);
  --accent-text: #ff7a7e;
  --focus: #fff;
  --err: #ff9a9d;

  --font-serif: "PT Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.1; margin: 0 0 .6em; letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.5rem, 9vw, 7rem); }
h2 { font-size: clamp(2rem, 6vw, 4.5rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-text); }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--coral); color: #fff; }
[hidden] { display: none !important; }
main { display: block; }
section[id], [id].section { scroll-margin-top: 1rem; }

.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: #fff; color: var(--navy); padding: .8rem 1.2rem; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(4.5rem, 12vh, 9rem); background: var(--bg); color: var(--fg); }
.section--dark { --bg: var(--navy); --fg: #fff; background: var(--navy); color: #fff; }
.section--light {
  --bg: var(--light); --fg: var(--navy); --muted: rgba(20, 26, 92, .78); --line: rgba(20, 26, 92, .16);
  --card-bg: #fff; --accent-text: var(--coral-ink); --focus: var(--navy); --err: #b3261e;
  background: var(--light); color: var(--navy);
}
.section--full { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.section--tight { padding-block: clamp(2.5rem, 6vh, 4.5rem); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: clamp(1rem, 2.5vw, 2rem); grid-template-columns: 1fr; }
.stack > * + * { margin-top: 1.25rem; }
.text-center { text-align: center; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- typography ---------- */
.display {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.6rem, 8.5vw, 8rem); line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 .4em; overflow-wrap: break-word; hyphens: auto;
}
.display--xl { font-size: clamp(3rem, 11vw, 10.5rem); line-height: .96; }
.display--md { font-size: clamp(2.1rem, 6vw, 5rem); line-height: 1.05; }
.display--sm { font-size: clamp(1.7rem, 3.8vw, 3rem); line-height: 1.12; }
.accent, .display em, h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
.accent--lav, .section--dark .accent--lav { color: var(--lav); }
.section--light .accent { color: var(--coral); }
.lead { font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.5; color: var(--muted); max-width: 40em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1.5rem;
  font-family: var(--font-sans); font-size: .875rem; font-weight: 500; letter-spacing: .02em; color: var(--fg);
}
.eyebrow::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--coral); flex: none; }
.quote {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 4.6vw, 3.8rem); line-height: 1.15; margin: 0; max-width: 20em;
}
.quote cite { display: block; margin-top: 1.5rem; font: 500 .95rem/1.4 var(--font-sans); color: var(--muted); }
.stat__num { font-family: var(--font-serif); font-size: clamp(3rem, 8vw, 6.5rem); line-height: 1; display: block; color: var(--accent); }
.stat__label { display: block; margin-top: .5rem; color: var(--muted); }
.tag { display: inline-block; padding: .25em .8em; border: 1px solid var(--line); font-size: .8125rem; font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1rem 1.75rem; border: 2px solid transparent; border-radius: 2px;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn--primary { background: var(--coral-btn); color: #fff; border-color: var(--coral-btn); }
.btn--primary:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; transform: translateY(-2px); }
.btn--primary:focus-visible { outline-color: var(--focus); }
.btn--ghost {
  background: none; color: inherit; border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
  padding: 0 0 .3rem; font-weight: 500;
}
.btn--ghost:hover { color: var(--accent-text); transform: none; }
.btn--ghost::after { content: "\2192"; transition: transform .2s var(--ease); }
.btn--ghost:hover::after { transform: translateX(4px); }
.btn--outline { background: none; color: inherit; border-color: currentColor; }
.btn--outline:hover { background: #fff; color: var(--navy); }
.section--light .btn--outline:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: .65rem 1.1rem; font-size: .9rem; }
.btn--lg { padding: 1.2rem 2.2rem; font-size: 1.125rem; }
.link-ghost { border-bottom: 1px solid currentColor; text-decoration: none; padding-bottom: .2rem; font-weight: 500; }

/* ---------- cards, placeholders ---------- */
.card {
  background: var(--card-bg); color: var(--fg); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(1.4rem, 3vw, 2.25rem); transition: transform .3s var(--ease), border-color .3s;
}
.section--light .card { border-color: transparent; box-shadow: 0 1px 0 rgba(20, 26, 92, .06); }
.card:hover { transform: translateY(-4px); }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card--dark { background: var(--navy); color: #fff; --muted: rgba(255,255,255,.78); }
.ph {
  position: relative; display: grid; place-items: center; text-align: center; aspect-ratio: 4 / 3; width: 100%;
  overflow: hidden; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted);
  font-size: .875rem; padding: 1rem;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(185, 189, 255, .08) 14px 15px),
    linear-gradient(160deg, rgba(185, 189, 255, .14), rgba(229, 72, 77, .10));
}
.section--light .ph { background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(20, 26, 92, .07) 14px 15px),
    linear-gradient(160deg, rgba(20, 26, 92, .08), rgba(229, 72, 77, .10)); }
.ph::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: 2.4rem; height: 2.4rem; transform: translate(-50%, -50%);
  background: currentColor; opacity: .35;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ph[data-label]::after { content: attr(data-label); position: relative; top: 1.6rem; }
.ph--portrait { aspect-ratio: 3 / 4; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1; }
.ph--round { aspect-ratio: 1; border-radius: 50%; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label, .field legend, .field .field__label { font-size: .9375rem; font-weight: 500; color: var(--fg); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; padding: .9rem 1rem; font: inherit; color: var(--fg);
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line); border-bottom: 2px solid rgba(255, 255, 255, .5);
  border-radius: 2px; min-height: 3.25rem;
}
.section--light .field input:not([type="checkbox"]):not([type="radio"]), .section--light .field select, .section--light .field textarea {
  background: #fff; border-color: var(--line); border-bottom-color: var(--navy);
}
.field select option { color: var(--navy); }
.field textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input[type="checkbox"], .field input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--coral); margin-right: .6rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field__error { display: none; color: var(--err); font-size: .875rem; font-weight: 500; }
.field--error .field__error { display: block; }
.field--error input:not([type="checkbox"]):not([type="radio"]), .field--error select, .field--error textarea { border-color: var(--err); border-bottom-color: var(--err); }
.form-success {
  padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--coral); border-left-width: 6px; border-radius: 2px;
  background: var(--card-bg); font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.35;
}
.form-success:focus { outline: none; }
.form-status { color: var(--err); font-weight: 500; margin: 0; }

/* ---------- header, logo ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; gap: 1.5rem;
  padding: 1.25rem var(--gutter); pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.logo {
  display: inline-flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .14em; line-height: 1;
  transition: color .3s;
}
.logo:hover { color: #fff; }
.logo__heart { color: var(--coral); width: 1.05em; height: 1.05em; }
.logo.on-light, .logo.on-light:hover { color: var(--navy); }
.topnav { margin-left: auto; display: none; }
.topnav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.topnav a {
  color: #fff; text-decoration: none; font-size: .9375rem; font-weight: 500; padding: .35rem 0; border-bottom: 1px solid transparent;
  text-shadow: 0 0 12px rgba(12, 16, 66, .6);
}
.topnav a:hover, .topnav a[aria-current="page"] { border-bottom-color: var(--coral); color: #fff; }
.site-header__help { margin-left: auto; }
@media (min-width: 1100px) {
  .topnav { display: block; }
  .site-header__help { margin-left: 0; }
}
@media (max-width: 899px) { .site-header__help { display: none; } }
.site-header:has(.logo.on-light) .topnav a { color: var(--navy); text-shadow: none; }
.site-header { transition: background-color .3s, backdrop-filter .3s; }
.is-scrolled .site-header { background: rgba(12, 16, 66, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.is-on-light.is-scrolled .site-header { background: rgba(241, 242, 247, .75); }
.is-on-light .logo, .is-on-light .logo:hover { color: var(--navy); }
.is-on-light .vlabel { color: var(--navy); }
.is-on-light .dotnav { color: var(--navy); }
.is-on-light .topnav a { color: var(--navy); text-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .site-header, .logo, .vlabel, .dotnav { transition: none; }
}

/* vertical label */
.vlabel {
  position: fixed; left: 1.25rem; bottom: 1.5rem; z-index: 40; margin: 0; display: none;
  writing-mode: vertical-rl; transform: rotate(180deg); align-items: center; gap: .8rem;
  font-size: .8125rem; font-weight: 500; letter-spacing: .08em; color: rgba(255, 255, 255, .85); transition: color .3s;
}
.vlabel i { display: block; width: 1px; height: 3.2rem; background: currentColor; opacity: .6; }
.vlabel.on-light { color: var(--navy); }
@media (min-width: 900px) { .vlabel { display: flex; } }

/* dot navigation */
.dotnav { position: fixed; right: 1.4rem; top: 50%; transform: translateY(-50%); z-index: 50; display: none; color: #fff; transition: color .3s; }
.dotnav.on-light { color: var(--navy); }
.dotnav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; justify-items: end; }
.dotnav__dot {
  display: flex; align-items: center; justify-content: flex-end; gap: .75rem; height: 1.6rem; min-width: 1.6rem;
  color: inherit; text-decoration: none;
}
.dotnav__dot::after {
  content: ""; width: .55rem; height: .55rem; border-radius: 50%; border: 1.5px solid currentColor; flex: none;
  transition: transform .3s var(--ease), background-color .3s, border-color .3s;
}
.dotnav__dot:hover::after { transform: scale(1.35); }
.dotnav__dot.is-active::after { background: var(--coral); border-color: var(--coral); transform: scale(1.5); }
.dotnav__label {
  order: -1; font-size: .8125rem; font-weight: 500; white-space: nowrap; opacity: 0; transform: translateX(8px);
  transition: opacity .3s, transform .3s var(--ease); pointer-events: none;
}
.dotnav__dot.is-active .dotnav__label, .dotnav__dot:hover .dotnav__label, .dotnav__dot:focus-visible .dotnav__label { opacity: 1; transform: none; }
@media (min-width: 900px) { .dotnav { display: block; } }

/* menu fab */
.menu-fab {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); z-index: 70;
  width: 5.75rem; height: 5.75rem; padding: 0; border: 0; border-radius: 50%;
  background: var(--coral-btn); color: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(12, 16, 66, .45); transition: transform .3s var(--ease), background-color .2s;
}
.menu-fab:hover { transform: scale(1.06); background: var(--coral-dark); }
.menu-fab:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.menu-fab__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: ring-spin 24s linear infinite; }
.menu-fab__ring text { fill: #fff; font: 700 9.5px var(--font-sans); letter-spacing: .02em; text-transform: uppercase; }
.menu-fab__icon { position: relative; display: grid; gap: 6px; width: 1.5rem; }
.menu-fab__icon i { display: block; height: 2px; background: #fff; border-radius: 1px; transition: transform .3s var(--ease); }
.menu-fab:hover .menu-fab__icon i:first-child { transform: translateX(-3px); }
.menu-fab:hover .menu-fab__icon i:last-child { transform: translateX(3px); }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@media (max-width: 599px) { .menu-fab { width: 4.75rem; height: 4.75rem; } }
html.menu-open .menu-fab { visibility: hidden; }

/* menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 100; background: var(--navy-deep); color: #fff; overflow-y: auto;
  display: flex; flex-direction: column;
  visibility: hidden; opacity: 0; clip-path: circle(0% at calc(100% - 3.5rem) calc(100% - 3.5rem));
  transition: clip-path .6s var(--ease), opacity .3s, visibility 0s .6s;
}
.menu.is-open { visibility: visible; opacity: 1; clip-path: circle(150% at calc(100% - 3.5rem) calc(100% - 3.5rem)); transition: clip-path .7s var(--ease), opacity .2s, visibility 0s; }
.menu__top { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem var(--gutter); }
.menu__close {
  display: inline-flex; align-items: center; gap: .6rem; background: none; border: 1px solid var(--line); color: #fff;
  padding: .7rem 1.1rem; font: 500 .9375rem var(--font-sans); cursor: pointer; border-radius: 2px;
}
.menu__close:hover { border-color: #fff; }
.menu__body { display: grid; gap: 2rem; flex: 1; align-content: center; padding-block: 1rem 3rem; }
.menu__list { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu__link {
  display: flex; align-items: baseline; gap: 1rem; padding: .15em 0; text-decoration: none; color: #fff;
  font-family: var(--font-serif); font-size: clamp(2.1rem, 7.5vw, 5.5rem); line-height: 1.12; letter-spacing: -.02em;
  transition: transform .3s var(--ease), color .2s;
}
.menu__num { font: 500 .8125rem var(--font-sans); letter-spacing: .06em; color: var(--lav); min-width: 1.8rem; }
.menu__link:hover { color: var(--coral); transform: translateX(.4rem); }
.menu__link[aria-current="page"] { font-style: italic; color: var(--coral); }
.menu__side { display: grid; gap: 1.5rem; align-content: end; justify-items: start; }
.menu__note { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .menu__body { grid-template-columns: 1.6fr 1fr; gap: 4rem; }
  .menu__side { padding-bottom: .8rem; }
}
.menu.is-open .menu__list li { animation: menu-in .7s var(--ease) both; }
.menu.is-open .menu__list li:nth-child(2) { animation-delay: .05s; }
.menu.is-open .menu__list li:nth-child(3) { animation-delay: .1s; }
.menu.is-open .menu__list li:nth-child(4) { animation-delay: .15s; }
.menu.is-open .menu__list li:nth-child(5) { animation-delay: .2s; }
.menu.is-open .menu__list li:nth-child(6) { animation-delay: .25s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* language switch */
.lang-switch { display: inline-flex; gap: .25rem; }
.lang-switch button {
  background: none; border: 1px solid var(--line); color: #fff; padding: .5rem .85rem; min-width: 2.75rem;
  font: 600 .8125rem var(--font-sans); letter-spacing: .06em; cursor: pointer; border-radius: 2px; transition: background-color .2s, color .2s;
}
.lang-switch button:hover { border-color: #fff; }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #fff; padding-top: clamp(4rem, 9vw, 7rem); --muted: rgba(255,255,255,.78); }
.site-footer__grid { display: grid; gap: 3rem 2rem; grid-template-columns: 1fr; }
.site-footer__tagline { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; margin: 1.5rem 0 1.75rem; }
.site-footer__h { font: 600 .8125rem var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--lav); margin: 0 0 1.2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.site-footer nav a { text-decoration: none; color: #fff; }
.site-footer nav a:hover { color: var(--coral); text-decoration: underline; }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-block: 1.5rem 7rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted);
}
.site-footer__legal p { margin: 0; }
.site-footer__legal a { color: #fff; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: auto; }
}

/* page offset so fixed header never covers first heading */
main > .section:first-child { padding-top: clamp(7rem, 16vh, 11rem); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .menu-fab__ring { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .menu { clip-path: none; }
}
