/* =========================================================
   Waypoint Partners, site v3 prototype
   Built on the personal-site-builder starter kit, rethemed to
   the Waypoint palette. Cool paper base, navy ink, one working
   accent (navy) plus three chart marks (sage, coral, gold) used
   only as thin rules, dots and glyphs. Source Serif 4 display in
   sentence case, Source Sans 3 body. Crisp radii with chart ticks.
   ========================================================= */

:root {
  --bg: #F4F7FA;            /* paper */
  --bg-2: #E4E9EE;          /* light, the About panel */
  --bg-3: #D5DFE8;          /* deeper light, the Services panel */
  --white: #FFFFFF;
  --ink: #1E3A57;
  --ink-80: #35526E;        /* body copy */
  --ink-60: rgba(30, 58, 87, 0.74);
  --ink-40: rgba(30, 58, 87, 0.58);
  --line: rgba(41, 79, 116, 0.18);
  --line-strong: rgba(41, 79, 116, 0.30);
  --label: #3F6485;         /* tracked caps on light, 5.6:1 on paper */
  --contour: #47698A;       /* ticks and hairline chart strokes */

  --c1: #294F74;            /* navy, the working accent on light */
  --c2: #6E93B5;            /* route blue on light */
  --c3: #8A6B33;            /* gold ink, arrival and emphasis on light */
  --mark-sage: #5E7F6C;
  --mark-coral: #9E5F41;
  --mark-gold: #C9A868;
  --blue: #A7CCE3;          /* accent on navy */
  --blue-mid: #8FAEC9;      /* decorative strokes on navy only */
  --blue-quiet: #AEC8DE;    /* secondary text on navy, 4.9:1 */
  --blue-text: #CFE3F1;     /* nav and label text on navy */
  --accent: var(--c1);

  --stage: #25476B;         /* hero base, footer */
  --stage-2: #294F74;       /* bearing panel */
  --stage-ink: #EEF3F7;
  --stage-ink-70: #DCE7F0;

  --font-head: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --slow: 1.4s;
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(72px, 9vw, 128px);
  --max: 1160px;
  --marker-col: clamp(28px, 6vw, 72px);
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--stage); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--stage);
  color: var(--ink-80);
  font-family: var(--font-body);
  font-weight: 450;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.wp-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--c1); color: var(--stage-ink); }
html { caret-color: var(--c1); accent-color: var(--c1); }

:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--blue); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- type ---------- */

.label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0;
}
.label--dark { color: var(--blue); }
.label--quiet { color: var(--blue-quiet); }

.giant {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.giant .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; overflow-wrap: anywhere; }
.giant .line > span { display: inline-block; }

.giant--xl { font-size: clamp(56px, 9vw, 148px); line-height: 0.96; letter-spacing: -0.03em; font-variation-settings: 'opsz' 60; }
.giant--lg { font-size: clamp(32px, 3.6vw, 50px); }
.giant--md { font-size: clamp(30px, 3.4vw, 46px); }

.quiet { color: var(--ink-40); }
.on-dark .giant, .giant.on-dark { color: var(--stage-ink); }
.on-dark .quiet { color: var(--blue-quiet); }
.accent-blue { color: var(--blue); }

.lede {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--ink-80);
  max-width: 34em;
  margin: 0;
}

.statement {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.32;
  letter-spacing: -0.014em;
  margin: 0;
  color: var(--ink);
  max-width: 24em;
  text-wrap: pretty;
}
.statement .hl { font-weight: 600; color: var(--c1); }

.body p { margin: 0 0 18px; max-width: 50ch; }
.body p:last-child { margin-bottom: 0; }
.body strong { font-weight: 600; color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.4s;
  will-change: transform;
}
.btn--navy { background: var(--c1); color: var(--stage-ink); border-color: var(--c1); }
.btn--light { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.btn--outline { border-color: var(--blue); color: var(--blue-text); }
.btn:active { transform: scale(0.97); transition-duration: 0.12s; }
.btn svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn--navy:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -18px rgba(41, 79, 116, 0.6); background: var(--ink); border-color: var(--ink); }
  .btn--light:hover { transform: translateY(-2px); background: var(--stage-ink); border-color: var(--stage-ink); }
  .btn--outline:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); }
  .btn:hover svg { transform: translate(3px, -3px); }
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(41, 79, 116, 0);
  border-bottom: 1px solid rgba(238, 243, 247, 0);
  transition: background-color 0.4s, border-color 0.4s;
}
.nav.is-scrolled, .nav.wp-nav-menu-open {
  background: rgba(41, 79, 116, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-color: rgba(238, 243, 247, 0.15);
}
.nav.wp-nav-menu-open { background: var(--stage); }

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.wordmark {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--stage-ink);
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.wordmark svg { width: 26px; height: 26px; flex: none; }

.nav__right { display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-text);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav__links a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--stage-ink); }
  .nav__links a:hover::after { transform: scaleX(1); }
}
.nav .btn { padding: 11px 18px; font-size: 12px; }

.nav__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--blue); transform: scaleX(0); transform-origin: left center;
}

/* mobile drawer, ported from v2 */
.wp-burger { display: none; width: 42px; height: 42px; padding: 0; margin: -6px -8px -6px 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.wp-burger-rule { display: block; width: 20px; height: 1.5px; background: var(--blue-text); border-radius: 1px;
  transition: transform 240ms var(--ease-out), opacity 160ms ease, background-color 200ms ease; }
.wp-burger[aria-expanded="true"] .wp-burger-rule:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.wp-burger[aria-expanded="true"] .wp-burger-rule:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.wp-burger[aria-expanded="true"] .wp-burger-rule:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
#wp-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--stage);
  border-bottom: 1px solid rgba(238, 243, 247, 0.15); overflow: hidden; display: none;
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path 280ms var(--ease-drawer), visibility 0s linear 280ms; }
#wp-menu.wp-menu-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 280ms var(--ease-drawer), visibility 0s; }
#wp-menu-inner { padding: 8px var(--gutter) 26px; display: flex; flex-direction: column; gap: 2px; }
.wp-menu-link { display: block; padding: 15px 0; font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-text);
  border-bottom: 1px solid rgba(167, 204, 227, 0.16);
  opacity: 0; transform: translateY(-6px); transition: opacity 220ms ease, transform 220ms var(--ease-out); }
#wp-menu.wp-menu-open .wp-menu-link { opacity: 1; transform: translateY(0); }
#wp-menu.wp-menu-open .wp-menu-link:nth-child(1) { transition-delay: 40ms; }
#wp-menu.wp-menu-open .wp-menu-link:nth-child(2) { transition-delay: 80ms; }
#wp-menu.wp-menu-open .wp-menu-link:nth-child(3) { transition-delay: 120ms; }
.wp-menu-cta { margin-top: 18px; justify-content: center; opacity: 0; transform: translateY(-6px);
  transition: opacity 220ms ease 160ms, transform 220ms var(--ease-out) 160ms; }
#wp-menu.wp-menu-open .wp-menu-cta { opacity: 1; transform: translateY(0); }

@media (max-width: 779px) {
  .wp-burger { display: flex; }
  #wp-menu { display: block; }
  .nav__links, .nav .btn--outline { display: none; }
}

/* ---------- hero (shared) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--stage-ink);
  background:
    radial-gradient(60% 46% at 76% 70%, rgba(30, 58, 87, 0.5) 0%, rgba(30, 58, 87, 0) 65%),
    radial-gradient(52% 40% at 24% 22%, rgba(52, 92, 131, 0.45) 0%, rgba(52, 92, 131, 0) 60%),
    radial-gradient(120% 95% at 62% 42%, #294F74 0%, #25476B 80%);
}
.hero__canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(30, 58, 87, 0.38) 0%, rgba(30, 58, 87, 0.14) 48%, rgba(30, 58, 87, 0) 66%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(120px, 16vh, 168px) clamp(120px, 14vh, 160px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}
.hero__text { flex: 1 1 56%; min-width: min(100%, 480px); display: grid; gap: 0; }
.hero__spacer { flex: 1 1 38%; min-height: 1px; }

.hero__kicker { color: var(--blue-text); font-size: 12px; letter-spacing: 0.15em; margin: 0 0 26px; }
.hero__title {
  margin: 0 0 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--stage-ink);
  text-wrap: balance;
}
.hero__title .line { display: block; }
.hero__sub {
  margin: 0;
  font-weight: 450;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.68;
  color: var(--stage-ink-70);
  max-width: 52ch;
}
.hero__partner { margin: 40px 0 0; font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em; color: #B6CEE2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 36px; }

/* entrance: long, eased, staggered through --d */
.hero__fade { opacity: 0; transform: translateY(40px); }
.is-loaded .hero__fade { animation: fade-up 1.4s var(--ease-out) forwards; animation-delay: var(--d, 900ms); }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

/* SplitText line masks in hero A: lines start below their mask and blur into focus (JS drives it) */
.hero__title .line-mask, .hero__title .line { will-change: transform; }

/* scroll cue: one label, one 1px line that sweeps */
.hero__cue {
  position: absolute; z-index: 2; bottom: 0; left: max(var(--gutter), calc(50% - var(--max) / 2));
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.hero__cue-row { display: flex; align-items: center; gap: 13px; }
.hero__cue-dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--blue); display: grid; place-items: center; }
.hero__cue-dot i { width: 4px; height: 4px; border-radius: 50%; background: #8FAE9B; }
.hero__cue-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; color: #B6CEE2; text-transform: uppercase; }
.scroll-cue { display: inline-block; width: 1px; height: 52px; margin-left: 6px; background: rgba(167, 204, 227, 0.3); position: relative; overflow: hidden; }
.scroll-cue::after { content: ''; position: absolute; inset: 0; background: var(--blue); animation: cue 1.8s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- hero variant B: giant wordmark over the chart ---------- */

.hero--wordmark .hero__text { flex: 1 1 62%; }
.hero--wordmark .hero__content, .hero--type .hero__content { padding-block: clamp(112px, 14vh, 150px) clamp(150px, 18vh, 200px); }
.hero__name { margin: 0 0 28px; color: var(--stage-ink); }
.hero__name .line { padding-bottom: 0.08em; margin-bottom: -0.04em; }
.hero__name .char { display: inline-block; transform: translateY(115%) rotate(4deg); opacity: 0; transform-origin: 0 100%; }
.is-loaded .hero__name .char {
  animation: rise 1.4s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + var(--j, 0) * 45ms + 200ms);
}
@keyframes rise { to { transform: translateY(0) rotate(0); opacity: 1; } }
.hero__headline {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--stage-ink);
  max-width: 24em;
  text-wrap: balance;
}
.hero--wordmark .hero__sub { max-width: 46ch; font-size: clamp(17px, 1.3vw, 19px); }
.hero__meta { display: grid; gap: 8px; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(167, 204, 227, 0.22); max-width: 46em; }
.hero__meta-item { margin: 0; font-size: 14px; line-height: 1.5; color: var(--blue-quiet); display: inline-flex; align-items: baseline; gap: 10px; }
.hero__meta-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mark-gold); flex: none; transform: translateY(-2px); }
.hero__meta-item--coral::before { background: var(--mark-coral); }
.hero__meta-label { color: var(--blue-quiet); margin-bottom: 4px; }

/* ---------- hero variant C: typographic, no WebGL ---------- */

.hero--type .hero__media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero--type .hero__media::before {
  content: '';
  position: absolute; right: -8%; top: -18%; width: 68vw; height: 92vh;
  background:
    radial-gradient(closest-side, rgba(167, 204, 227, 0.22), transparent 70%) 30% 30% / 62% 62% no-repeat,
    radial-gradient(closest-side, rgba(143, 174, 201, 0.18), transparent 70%) 72% 44% / 60% 70% no-repeat,
    radial-gradient(closest-side, rgba(201, 168, 104, 0.10), transparent 70%) 60% 86% / 64% 46% no-repeat;
  filter: blur(48px);
  opacity: 0;
  animation: aura-in 2.4s var(--ease-out) 0.3s forwards, aura-drift 26s var(--ease-in-out) 2.7s infinite alternate;
  will-change: transform, opacity;
}
@keyframes aura-in { to { opacity: 1; } }
@keyframes aura-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6%, 5%, 0) scale(1.12); } }
.hero__contours { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 2s var(--ease-out) 0.6s; }
.is-loaded .hero__contours { opacity: 1; }
.hero__route { position: absolute; z-index: 1; right: 4%; top: 27%; width: min(44vw, 560px); height: auto; pointer-events: none; overflow: visible; }
.hero__route .route-line { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 1000; stroke-dashoffset: 1000; stroke-linecap: round; transition: stroke-dashoffset 2.6s var(--ease-out) 0.7s; }
.is-loaded .hero__route .route-line { stroke-dashoffset: 0; }
.hero__route .route-dots { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 2 9; stroke-linecap: round; opacity: 0; transition: opacity 1s 3s; }
.is-loaded .hero__route .route-dots { opacity: 0.9; }
.hero__route .pin { opacity: 0; transform: translateY(-14px); transform-box: fill-box; transform-origin: 50% 100%; transition: opacity 1s var(--ease-out), transform 1.4s var(--ease-out); }
.is-loaded .hero__route .pin { opacity: 1; transform: none; }
.hero__route .pin--a { transition-delay: 1.2s; }
.hero__route .pin--b { transition-delay: 2.1s; }
.hero__route .pin--c { transition-delay: 3.1s; }
.hero__route .ring { fill: none; stroke: var(--mark-gold); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-loaded .hero__route .ring { animation: ping 2.6s var(--ease-out) 3.6s infinite; }
@keyframes ping { 0% { opacity: 0.45; transform: scale(1); } 100% { opacity: 0; transform: scale(2.3); } }
.hero__rose { position: absolute; z-index: 1; right: 6%; top: 8%; width: clamp(90px, 10vw, 150px); opacity: 0; transition: opacity 1.6s var(--ease-out) 1s; pointer-events: none; }
.is-loaded .hero__rose { opacity: 0.8; }
.hero__rose .spin { transform-origin: 50% 50%; animation: wpSpin 240s linear infinite; }
@keyframes wpSpin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero__content { padding-block: 128px 140px; }
  .hero__route { right: -6%; top: auto; bottom: 8%; width: 52vw; opacity: 0.7; }
  .hero__rose { display: none; }
}
@media (max-width: 760px) {
  .hero--wordmark .hero__text, .hero--type .hero__text { flex-basis: 100%; }
  .hero__route { display: none; }
}

/* ---------- ambient keyframes (ported) ---------- */

@keyframes wpDriftA { from { transform: translateX(-2.2%); } to { transform: translateX(2.2%); } }
@keyframes wpDash { to { stroke-dashoffset: -11; } }

/* ---------- kit: floating layers and pointer tilt (JS writes the custom properties) ---------- */

[data-float] { transform: translate3d(0, var(--fy, 0px), 0); will-change: transform; transition: transform 0.3s linear; }
[data-tilt] { transform: var(--tilt, none); transform-style: preserve-3d; transition: transform 0.6s var(--ease-out); list-style: none; }

/* ---------- reveal system (kit) ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
  will-change: opacity, transform;
}
[data-reveal="scale"] { transform: translateY(40px) scale(0.94); }
[data-reveal].is-visible { opacity: 1; transform: none; }

.giant[data-reveal] { opacity: 1; transform: none; }
.giant[data-reveal] .line > span { transform: translateY(112%); filter: blur(6px); transition: transform 1.3s var(--ease-out), filter 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms); }
.giant[data-reveal].is-visible .line > span { transform: translateY(0); filter: blur(0); }

/* ---------- main: the passage ---------- */

.main { position: relative; background: var(--bg); }

.route { position: absolute; inset: 0; z-index: 1; pointer-events: none; width: 100%; height: 100%; }
.route__tick { position: absolute; z-index: 2; width: 2px; height: 10px; background: var(--contour); opacity: 0.7; display: none; }
.route__tick--coral { background: var(--mark-coral); opacity: 0.8; }

.edge { display: block; height: 90px; overflow: hidden; position: relative; z-index: 0; }

/* waypoint markers: ring, ping, dot */
.wpt { position: relative; z-index: 2; width: 13px; height: 13px; margin-top: 5px; }
.wpt > span { position: absolute; border-radius: 50%; box-sizing: border-box; }
.wpt__ring { inset: 0; border: 1.5px solid var(--contour); }
.wpt__ping { inset: -5px; border: 1.5px solid #5B87A8; opacity: 0; }
.wpt__dot { inset: 4px; background: var(--c1); }
.wpt--sage .wpt__dot { background: var(--mark-sage); }
.wpt--dark .wpt__ring { border-color: var(--blue-mid); }
.wpt--dark .wpt__ping { border-color: var(--blue); }
.wpt--dark .wpt__dot { background: var(--blue); }

/* section scaffolding: each leg is a wrap with a marker column and a content column */
.leg { position: relative; padding-block: clamp(36px, 4.5vw, 64px); scroll-margin-top: 80px; }
.leg__grid { position: relative; display: grid; grid-template-columns: var(--marker-col) 1fr; column-gap: 8px; }
.leg .label { margin-bottom: 20px; }
.leg .giant { margin-bottom: 28px; }

/* panels on base: the tinted, rounded surfaces */
.panel {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  padding: clamp(36px, 5vw, 80px) clamp(24px, 4vw, 64px);
}
.panel--services { background: var(--bg-3); }
.panel__tex, .panel__tex-d { position: absolute; z-index: 0; pointer-events: none; border-radius: inherit; }
.panel__tex { inset: 0; overflow: hidden; }
.panel__tex-d { inset: -4% -8%; }
.panel__clip { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }

/* panel content sits above the textures and the route */
.panel > :not(.panel__tex):not(.panel__clip), .contact__grid, .leg__grid > :first-child { position: relative; z-index: 2; }

/* chart card: white, crisp radius, inset corner ticks that draw in */
.chart-card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px -12px rgba(41, 79, 116, 0.18);
}
.tick {
  position: absolute; width: 12px; height: 12px; pointer-events: none;
  border: 0 solid var(--contour); opacity: 0.42;
  transform: scale(0);
  transition: transform 0.7s var(--ease-out);
}
.tick--tl { top: 9px; left: 9px; border-top-width: 1.5px; border-left-width: 1.5px; transform-origin: 0 0; transition-delay: 0.25s; }
.tick--tr { top: 9px; right: 9px; border-top-width: 1.5px; border-right-width: 1.5px; transform-origin: 100% 0; transition-delay: 0.32s; }
.tick--bl { bottom: 9px; left: 9px; border-bottom-width: 1.5px; border-left-width: 1.5px; transform-origin: 0 100%; transition-delay: 0.39s; }
.tick--br { bottom: 9px; right: 9px; border-bottom-width: 1.5px; border-right-width: 1.5px; transform-origin: 100% 100%; transition-delay: 0.46s; }
.is-visible .tick, .is-visible.tick { transform: scale(1); }

/* ---------- WPT 01, About ---------- */

.about__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(258px, 25vw, 306px);
  gap: 40px clamp(40px, 6vw, 88px);
  align-items: start;
}
.about__copy { display: grid; gap: 28px; }
.about__aside { display: grid; gap: 26px; align-self: end; }

.portrait { padding: 12px 12px 0; overflow: hidden; }
.portrait__img { overflow: hidden; border-radius: var(--r-sm); background: var(--bg-2); }
.portrait img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  transform: scale(1.06); transition: transform 2.8s var(--ease-out);
}
.portrait.is-visible img { transform: scale(1); }
.portrait figcaption { padding: 15px 4px 17px; }
.portrait__name { margin: 0 0 5px; font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.2; letter-spacing: -0.012em; color: var(--ink); }

.stat-wrap { position: relative; z-index: 3; margin-bottom: calc(-1 * clamp(64px, 8vw, 110px)); }
.stat-rings { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; width: 360px; height: 360px; }
.stat-rings circle { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.is-visible .stat-rings circle { opacity: 1; }
.is-visible .stat-rings circle:nth-of-type(1) { transition-delay: 0.6s; }
.is-visible .stat-rings circle:nth-of-type(2) { transition-delay: 0.9s; }
.is-visible .stat-rings .spin circle { transition-delay: 1.2s; }
.stat-rings .spin { transform-origin: 180px 180px; animation: wpSpin 300s linear infinite; }
.stat { padding: 24px 32px 24px; z-index: 1; display: grid; gap: 20px; }
.stat__kicker { color: var(--c3); margin-bottom: -4px; }
.stat__row + .stat__row { padding-top: 22px; border-top: 1px solid var(--line); }
.stat__desc { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-80); text-wrap: pretty; }
.stat__sound--coral .stat__line, .stat__sound--coral .stat__tick { background: var(--mark-coral); }
.stat__row:nth-child(3) .stat__line { transition-delay: 0.6s; }
.stat__row:nth-child(3) .stat__tick { transition-delay: 1.9s; }
.stat__num { font-family: var(--font-head); font-weight: 600; font-size: clamp(44px, 4.4vw, 60px); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__sound { display: flex; align-items: center; margin-top: 12px; }
.stat__line { height: 2px; flex: 1; background: var(--c3); opacity: 0.85; transform-origin: left center; transform: scaleX(0); transition: transform 1.4s var(--ease-out) 0.35s; }
.stat__tick { width: 2px; height: 9px; background: var(--c3); opacity: 0; margin-left: 1px; transition: opacity 0.4s 1.6s; }
.is-visible .stat__line { transform: scaleX(1); }
.is-visible .stat__tick { opacity: 0.85; }
.stat .label { margin: 14px 0 0; }

/* ---------- WPT 02, Services ---------- */

.panel--services { padding-top: clamp(96px, 11vw, 150px); }
.services__lede { margin-bottom: clamp(36px, 4vw, 52px); }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px clamp(28px, 4vw, 56px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  padding: 34px 34px 36px;
  display: grid;
  gap: 0;
  transition: transform 0.9s var(--ease-out), box-shadow 0.9s var(--ease-out), border-color 0.3s, opacity var(--slow) var(--ease-out);
  transform-style: preserve-3d;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: 0 40px 70px -40px rgba(41, 79, 116, 0.45); }
}
.card__rule { display: block; width: 28px; height: 2px; background: var(--c1); margin: 0 0 16px; transform-origin: left center; transform: scaleX(0); transition: transform 1.1s var(--ease-out) 0.3s; }
.card.is-visible .card__rule { transform: scaleX(1); }
.card__rule--sage { background: var(--mark-sage); }
.card__rule--coral { background: var(--mark-coral); }
.card__rule--gold { background: var(--c3); }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.card__head .label:last-child { color: var(--ink-40); font-variant-numeric: tabular-nums; }
.card h3 { margin: 0 0 12px; font-family: var(--font-head); font-weight: 600; font-size: 23px; line-height: 1.25; letter-spacing: -0.012em; color: var(--ink); }
.card p { margin: 0; font-size: 16.5px; line-height: 1.68; color: var(--ink-80); }
.needle { position: absolute; top: 18px; right: 18px; opacity: 0.34; }

/* ---------- WPT 03, Bearing: the contained dark panel ---------- */

.reel { position: relative; padding-block: clamp(36px, 4.5vw, 64px); scroll-margin-top: 80px; }
.reel__panel {
  position: relative;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin: 0 auto;
  min-height: clamp(400px, 60vh, 580px);
  border-radius: var(--r-lg);
  background: var(--stage-2);
  color: var(--stage-ink);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-content: center;
  padding: clamp(64px, 8vw, 110px) clamp(24px, 6vw, 120px);
  text-align: center;
  transform: scale(0.88) translateY(60px);
  opacity: 0;
  transition: transform 1.6s var(--ease-out), opacity 1.2s var(--ease-out);
  will-change: transform;
}
[data-reveal="reel"] { opacity: 1; transform: none; }
[data-reveal="reel"].is-visible .reel__panel { transform: none; opacity: 1; }

.reel__contours { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(62% 128% at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,1) 82%);
  mask-image: radial-gradient(62% 128% at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,1) 82%); }
.reel__contours > div { position: absolute; inset: 0; pointer-events: none; }
.reel__contours > div:nth-child(2), .reel__contours > div:nth-child(3) { inset: -8% -14%; }

.reel__track { position: absolute; left: 0; right: 0; bottom: 6%; z-index: 0; overflow: hidden; pointer-events: none; }
.reel__row {
  display: flex; width: max-content;
  font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1; white-space: nowrap;
  font-size: clamp(48px, 8vw, 128px);
  color: transparent; -webkit-text-stroke: 1px rgba(167, 204, 227, 0.13);
  animation: reel-left 56s linear infinite;
}
.reel__row span { padding-right: 0.5em; }
.reel__row span::after { content: '\00b7'; margin-left: 0.5em; opacity: 0.6; }
@keyframes reel-left { to { transform: translateX(-50%); } }

.reel__quote { position: relative; z-index: 1; margin: 0; display: grid; gap: 22px; justify-items: center; }
.reel__quote .wpt { margin: 0 auto 10px; }
.reel__quote-text {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(27px, 3.2vw, 46px);
  line-height: 1.28;
  letter-spacing: -0.018em;
  color: #FFFFFF;
  max-width: 17em;
  text-wrap: balance;
}
.reel__quote .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  filter: blur(6px);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms + 350ms);
  will-change: transform, opacity;
}
.is-visible .reel__quote .word { opacity: 1; transform: none; filter: none; }

/* ---------- WPT 04, Destination ---------- */

.contact__grid { display: grid; grid-template-columns: 1fr minmax(280px, 360px); gap: 64px; align-items: center; }
.contact__copy .lede { max-width: 46ch; margin-bottom: 40px; }
.contact__action { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.terminus { position: relative; display: inline-block; width: 30px; height: 30px; flex: 0 0 auto; }
.terminus svg { display: block; }
.terminus .gold-ring { position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--mark-gold); opacity: 0; }

.mini { padding: 20px 20px 14px; background: rgba(255, 255, 255, 0.78); }
.mini svg { display: block; width: 100%; }
.mini__route { fill: none; stroke: var(--c2); stroke-width: 1.5; stroke-dasharray: 3 7; stroke-linecap: round; }
.mini__dot { opacity: 0.22; transition: opacity 0.9s var(--ease-out), r 0.6s; }
.mini__dot.is-fixed { opacity: 1; }
.mini__text { font-family: var(--font-body); font-size: 9.5px; letter-spacing: 2px; fill: var(--contour); font-weight: 600; }
.mini .label { margin: 10px 0 4px; text-align: center; }

/* ---------- marquee ---------- */

.marquee {
  padding: 40px 0 56px;
  overflow: hidden;
  background: var(--bg);
  position: relative; z-index: 2;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 28px; padding: 0 28px;
  font-family: var(--font-head); font-weight: 500; font-size: clamp(16px, 1.3vw, 21px); letter-spacing: 0.01em;
  white-space: nowrap; color: var(--ink-60);
}
.marquee__item::after {
  content: ''; width: 10px; height: 13px; flex: none;
  background: var(--c2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 C7.6 2 4.5 5.2 4.5 9.3 C4.5 14.6 12 22 12 22 C12 22 19.5 14.6 19.5 9.3 C19.5 5.2 16.4 2 12 2 Z M12 6.4 a2.9 2.9 0 1 0 0 5.8 a2.9 2.9 0 1 0 0 -5.8 Z' fill-rule='evenodd'/%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 2 C7.6 2 4.5 5.2 4.5 9.3 C4.5 14.6 12 22 12 22 C12 22 19.5 14.6 19.5 9.3 C19.5 5.2 16.4 2 12 2 Z M12 6.4 a2.9 2.9 0 1 0 0 5.8 a2.9 2.9 0 1 0 0 -5.8 Z' fill-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
}
.marquee__item:nth-child(3n+1)::after { background: var(--mark-sage); }
.marquee__item:nth-child(3n+2)::after { background: var(--mark-coral); }
.marquee__item:nth-child(3n)::after { background: var(--c3); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- footer: moored ---------- */

.footer { background: var(--stage); color: var(--stage-ink); padding-block: clamp(56px, 7vw, 96px) 40px; position: relative; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.footer .giant { color: var(--stage-ink); }
.footer .giant a { color: var(--blue); transition: color 0.3s; }
.footer__links { display: grid; gap: 14px; justify-items: start; }
.footer__links a {
  font-family: var(--font-body); font-weight: 600; font-size: 11.5px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--blue-text); display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 1px solid transparent; transition: border-color 0.25s ease, color 0.3s;
}
.footer__links a svg { width: 14px; height: 14px; }
.footer__bottom {
  border-top: 1px solid rgba(238, 243, 247, 0.15);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 14px 40px; flex-wrap: wrap; align-items: center;
  font-family: var(--font-body); font-weight: 600; font-size: 11.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue-text);
}
.footer__bottom .wordmark { text-transform: none; letter-spacing: 0.01em; }
.footer__coords { color: var(--blue-quiet); font-variant-numeric: tabular-nums; }
.footer__copy { flex-basis: 100%; margin: 12px 0 0; font-weight: 500; letter-spacing: 0.12em; color: var(--blue-quiet); }
@media (hover: hover) and (pointer: fine) {
  .footer .giant a:hover { color: var(--stage-ink); }
  .footer__links a:hover { border-bottom-color: var(--blue); color: var(--stage-ink); }
}

/* ---------- position-fix preloader (ported) ---------- */

#wp-loader { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 95% at 62% 42%, #294F74 0%, #25476B 82%);
  transition: opacity .7s ease, transform .7s cubic-bezier(.4,0,.2,1); }
#wp-loader.wp-loader-done { opacity: 0; transform: translateY(-1.5%); pointer-events: none; }
#wp-loader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
#wp-loader-compass { animation: wpLoaderSettle 1.1s cubic-bezier(.34,1.16,.5,1) forwards; }
#wp-loader-ring { stroke-dasharray: 289; stroke-dashoffset: 289; animation: wpLoaderDraw 1s ease forwards .15s; }
#wp-loader-star { opacity: 0; animation: wpLoaderStar .7s ease forwards .8s; }
@keyframes wpLoaderDraw { to { stroke-dashoffset: 0; } }
@keyframes wpLoaderStar { from { opacity: 0; } to { opacity: .9; } }
@keyframes wpLoaderSettle { from { transform: rotate(-10deg) scale(.9); } to { transform: rotate(0) scale(1); } }
#wp-loader-coord { font-family: var(--font-body); font-variant-numeric: tabular-nums; font-size: 15px; letter-spacing: .3em; color: var(--stage-ink); white-space: pre; }
#wp-loader-label { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; letter-spacing: .36em; color: var(--blue-quiet); transition: color .4s ease; }
#wp-loader-label.wp-fixed { color: var(--mark-gold); }

/* ---------- voyage HUD (ported) ---------- */

#wp-hud { position: fixed; right: 24px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; opacity: 0; transition: opacity .55s ease; pointer-events: none; }
#wp-hud.wp-hud-active { opacity: .7; }
#wp-hud-leg { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; letter-spacing: .22em; color: var(--blue-quiet); transition: color .4s ease; }
#wp-hud-coord { font-family: var(--font-body); font-size: 11.5px; font-weight: 500; letter-spacing: .16em; color: #B7D0E4; font-variant-numeric: tabular-nums; white-space: pre; transition: color .4s ease; }
#wp-hud.wp-hud-dark #wp-hud-leg { color: var(--contour); }
#wp-hud.wp-hud-dark #wp-hud-coord { color: #2F4F72; }
@media (max-width: 820px) { #wp-hud { display: none; } }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .about__split { grid-template-columns: 1fr; }
  .about__aside { width: 100%; align-self: start; }
  .portrait { max-width: 264px; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --marker-col: 18px; }
  .cards { grid-template-columns: 1fr; }
  .stat-wrap { margin-bottom: 0; }
  .panel--services { padding-top: clamp(48px, 8vw, 96px); }
  .reel__panel { width: min(100% - 2 * var(--gutter), var(--max)); }
}
@media (max-width: 699px) { .mini-wrap { display: none; } }

/* ---------- preferences ---------- */

@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--stage); }
  .mini { background: var(--white); }
}
@media (prefers-contrast: more) {
  .mini { background: var(--white); border-color: var(--c1); }
  .chart-card { border-color: var(--c1); }
  .tick, .needle { opacity: 0; }
  .label:not(.label--dark) { color: var(--ink); }
  .label--dark { color: #FFFFFF; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  [data-reveal], .giant[data-reveal] .line > span, .hero__name .char, .hero__fade, .reel__quote .word, .tick, .card__rule, .stat__line, .stat__tick, .stat-rings circle, .hero__contours, .hero__rose, .hero__route .pin, .hero__route .route-dots { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero__route .route-line { stroke-dashoffset: 0 !important; }
  .hero__route .ring { animation: none !important; opacity: 0 !important; }
  .hero--type .hero__media::before { opacity: 1; }
  .reel__panel { transform: none; opacity: 1; }
  .portrait img { transform: none; }
  .marquee__track, .reel__row, .scroll-cue::after, .stat-rings .spin, .hero__rose .spin { animation: none !important; }
  #wp-loader-compass, #wp-loader-ring, #wp-loader-star { animation: none; }
  #wp-loader-ring { stroke-dashoffset: 0; } #wp-loader-star { opacity: .9; }
  .btn:active, .card:hover { transform: none; }
}
