/* =========================================================================
   Complete Athlete Management — design system
   Mobile-first. Dark navy + sky-blue accent. Serif display / sans body.
   ========================================================================= */

:root {
  /* palette — pulled from the logo + Claude Design hero wireframe */
  --navy-900: #0a1322;
  --navy-800: #0d1b2e;
  --navy-700: #12243a;
  --navy-600: #18304a;
  --surface:  #14263d;
  --surface-2:#1b3252;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  --accent: #4fa3d4;          /* logo blue */
  --accent-bright: #6dbce8;
  --accent-soft: rgba(79, 163, 212, 0.14);

  --text: #eef3f9;
  --text-muted: #9db0c6;
  --text-dim: #6f86a0;

  --white: #ffffff;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  background: var(--navy-900);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--white); color: var(--navy-900);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 11vw, 130px); }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-bright); margin-bottom: 1.1rem; display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: .7; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
.h-xl  { font-size: clamp(2.7rem, 9vw, 5.6rem); }
.h-lg  { font-size: clamp(2.1rem, 6vw, 3.5rem); }
.h-md  { font-size: clamp(1.55rem, 3.6vw, 2.25rem); }
.lead  { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--text-muted); max-width: 56ch; }
.muted { color: var(--text-muted); }
em.accent, .accent-text { color: var(--accent-bright); font-style: italic; }
.txt-grey { color: var(--text-dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--white); color: var(--navy-900); box-shadow: 0 10px 30px -10px rgba(109, 188, 232, .5); }
.btn--primary:hover { background: var(--accent-bright); color: var(--navy-900); }
.btn--accent { background: var(--accent); color: var(--navy-900); }
.btn--accent:hover { background: var(--accent-bright); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn__play {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid currentColor;
  display: inline-grid; place-items: center; font-size: .7rem;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 14px var(--gutter);
  background: rgba(10, 19, 34, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-scrolled { background: rgba(10, 19, 34, 0.92); border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt b { font-size: .82rem; font-weight: 800; letter-spacing: .14em; }
.brand__txt span { font-size: .58rem; letter-spacing: .34em; color: var(--accent-bright); margin-top: 3px; }

.nav__links { display: none; }
.nav__right { display: flex; align-items: center; gap: .6rem; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: inline-grid; place-items: center; color: var(--text); background: transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-bright); }

.nav__toggle {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: transparent; display: inline-grid; place-items: center; gap: 5px; padding: 0;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.nav__drawer {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
  background: var(--navy-800); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .35s var(--ease);
  z-index: 150; padding: 90px 28px 28px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow);
}
.nav__drawer.is-open { transform: translateX(0); }
.nav__drawer a {
  font-size: 1.2rem; font-weight: 600; padding: 14px 4px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; color: var(--text);
}
.nav__drawer a[aria-current="page"] { color: var(--accent-bright); }
.nav__drawer a.btn { margin-top: 18px; justify-content: center; border-bottom: 0; }
.nav__drawer a.btn--primary { color: var(--navy-900); }
.nav__drawer a.btn--primary:hover { color: var(--navy-900); }
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(4, 9, 17, .6); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease); z-index: 140;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

/* =========================================================================
   HERO  (matches the Claude Design wireframe)
   ========================================================================= */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 600px at 78% -5%, rgba(79,163,212,.22), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(27,50,82,.6), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900) 70%);
}
.hero__inner {
  display: grid; grid-template-columns: 1fr; gap: clamp(36px, 6vw, 60px);
  align-items: center; padding-block: clamp(48px, 9vw, 96px);
}
.hero__title { margin-bottom: 1.6rem; }
.hero__title .grey { color: var(--text-dim); }
.hero__title .care { color: var(--accent-bright); font-style: italic; }
.hero__lead { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { position: relative; }
.hero__card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 45%, rgba(8,15,26,.55)); }

/* rotating hero photos (crossfade) */
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.1s var(--ease); will-change: opacity;
}
.hero__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
}
.hero__badge {
  position: absolute; left: 16px; bottom: 16px; right: 16px; z-index: 2;
  display: flex; align-items: center; gap: .8rem;
  background: rgba(13, 27, 46, .82); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); border-radius: 16px; padding: 12px 14px;
}
.hero__badge img { width: 40px; height: 40px; object-fit: contain; }
.hero__badge b { display: block; font-size: .92rem; font-family: var(--sans); }
.hero__badge span { font-size: .76rem; color: var(--text-muted); }

/* trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; padding-block: 36px; text-align: center;
}
.trust__row .num { font-family: var(--serif); font-size: clamp(2rem, 6vw, 2.8rem); color: var(--white); line-height: 1; }
.trust__row .lbl { font-size: .82rem; color: var(--text-muted); margin-top: 8px; }

/* =========================================================================
   GENERIC SECTIONS
   ========================================================================= */
.section--alt { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.section__head { max-width: 60ch; margin-bottom: clamp(34px, 5vw, 56px); }
.section__head .lead { margin-top: 1rem; }

/* feature / value cards */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-bright); margin-bottom: 18px;
}
.card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .96rem; }

/* numbered process steps */
.steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.step:last-child { border-bottom: 0; }
.step__num {
  font-family: var(--serif); font-size: 1.5rem; color: var(--accent-bright);
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; flex-shrink: 0;
}
.step h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.step p { color: var(--text-muted); max-width: 60ch; }

/* pillars */
.pillars { display: grid; gap: 18px; grid-template-columns: 1fr; }
.pillar {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  background: linear-gradient(180deg, var(--surface), transparent);
}
.pillar h3 { font-size: 1.45rem; color: var(--accent-bright); margin-bottom: .5rem; }
.pillar p { color: var(--text-muted); }

/* services list */
.svc-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.svc {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 22px 22px 22px;
  background: var(--surface); position: relative; transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.svc:hover { border-color: var(--accent); transform: translateY(-3px); }
.svc__n { font-size: .74rem; letter-spacing: .14em; color: var(--text-dim); font-weight: 700; }
.svc h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; margin: 8px 0 6px; letter-spacing: -0.01em; }
.svc p { font-size: .92rem; color: var(--text-muted); }

/* team */
.team-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.member__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy-700); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.member__body { padding: 22px 22px 26px; }
.member__role { color: var(--accent-bright); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.member h3 { font-size: 1.5rem; margin: 6px 0 12px; }
.member p { color: var(--text-muted); font-size: .92rem; }

/* CTA band */
.cta {
  text-align: center; border-radius: var(--radius-lg); padding: clamp(44px, 8vw, 80px) var(--gutter);
  background:
    radial-gradient(700px 380px at 50% -20%, rgba(79,163,212,.28), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--navy-800));
  border: 1px solid var(--line-strong);
}
.cta h2 { margin-bottom: 1rem; }
.cta .lead { margin: 0 auto 2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* contact */
.contact-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text); }
.field input, .field textarea, .field select {
  background: var(--navy-900); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 13px 15px; color: var(--text); font: inherit; width: 100%;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .row .ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); color: var(--accent-bright); display: grid; place-items: center; }
.contact-info .row b { display: block; }
.contact-info .row a { color: var(--text-muted); }
.contact-info .row a:hover { color: var(--accent-bright); }
.form-note { font-size: .85rem; color: var(--text-dim); margin-top: 8px; transition: color .25s var(--ease); }
.form-note.is-ok { color: var(--accent-bright); }
.form-note.is-error { color: #ff9b9b; }
.form-note.is-ok a, .form-note.is-error a { color: inherit; text-decoration: underline; }

/* page hero (interior pages) */
.page-hero { position: relative; padding-block: clamp(70px, 12vw, 120px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 480px at 70% -10%, rgba(79,163,212,.18), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-900));
}
.page-hero .lead { margin-top: 1.2rem; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { border-top: 1px solid var(--line); background: var(--navy-900); padding-block: 54px 30px; }
.footer__top { display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer .brand img { width: 48px; height: 48px; }
.footer__col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.footer__col a { display: block; color: var(--text-muted); padding: 6px 0; font-size: .95rem; }
.footer__col a:hover { color: var(--accent-bright); }
.footer__about { max-width: 38ch; color: var(--text-muted); font-size: .92rem; margin-top: 14px; }
.footer__socials { display: flex; gap: 10px; margin-top: 16px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--text-dim);
}
.footer__bottom a { color: var(--text-dim); }
.footer__bottom a:hover { color: var(--text-muted); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
   BREAKPOINTS
   ========================================================================= */
@media (min-width: 720px) {
  .trust__row { grid-template-columns: repeat(4, 1fr); }
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.1fr .9fr; }
  .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (min-width: 940px) {
  .nav__links { display: flex; align-items: center; gap: 6px; }
  .nav__links a { padding: 10px 16px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--text-muted); transition: color .2s var(--ease), background .2s var(--ease); }
  .nav__links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
  .nav__links a[aria-current="page"] { color: var(--accent-bright); }
  .nav__toggle { display: none; }

  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .hero__card { aspect-ratio: 3 / 4; }
}

/* =========================================================================
   EXPERIENCE LAYER — interactions & motion (progressive, accessible)
   ========================================================================= */

/* slim scroll-progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow: 0 0 14px rgba(79, 163, 212, .55);
}

/* cursor spotlight on cards (desktop pointers only) */
@media (hover: hover) and (pointer: fine) {
  .card, .pillar, .svc, .member { position: relative; isolation: isolate; }
  .card > *, .pillar > *, .svc > *, .member > * { position: relative; z-index: 1; }
  .card::before, .pillar::before, .svc::before, .member::before {
    content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 163, 212, .16), transparent 62%);
    opacity: 0; transition: opacity .4s var(--ease);
  }
  .card:hover::before, .pillar:hover::before, .svc:hover::before, .member:hover::before { opacity: 1; }
}

/* process steps: light up the step at viewport centre as you scroll */
.step { transition: opacity .45s var(--ease); }
.anim-step .step:not(.is-active) { opacity: .5; }
.step__num { transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease); }
.step.is-active .step__num {
  background: var(--accent); color: var(--navy-900); border-color: var(--accent);
  transform: scale(1.06); box-shadow: 0 0 0 7px var(--accent-soft);
}

/* 3D tilt target */
.hero__card { transition: transform .3s var(--ease); transform-style: preserve-3d; }

@media (prefers-reduced-motion: no-preference) {
  /* hero entrance on load */
  .anim-ready .hero__copy > * { opacity: 0; transform: translateY(26px); animation: heroIn .9s var(--ease) forwards; }
  .anim-ready .hero__copy > .eyebrow { animation-delay: .05s; }
  .anim-ready .hero__copy > .hero__title { animation-delay: .16s; }
  .anim-ready .hero__copy > .hero__lead { animation-delay: .34s; }
  .anim-ready .hero__copy > .hero__actions { animation-delay: .5s; }
  .anim-ready .hero__media { opacity: 0; transform: translateY(30px) scale(.985); animation: heroIn 1s var(--ease) .32s forwards; }

  /* cinematic slow zoom on the active hero photo */
  .hero__slide.is-active { animation: kenburns 7s var(--ease) forwards; }

  /* gentle float on the hero badge */
  .hero__badge { animation: floaty 6s ease-in-out 1.6s infinite; }
}

@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.001); } to { transform: scale(1.085); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* =========================================================================
   EXPERIENCE LAYER 2 — premium interactions
   ========================================================================= */

/* hero ambient aura + cursor glow */
.hero__aura, .hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__aura { overflow: hidden; }
.hero__aura span { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .55; }
.hero__aura span:nth-child(1) { width: 440px; height: 440px; left: -90px; top: -70px; background: radial-gradient(circle, #1b3252, transparent 70%); animation: drift1 20s ease-in-out infinite; }
.hero__aura span:nth-child(2) { width: 400px; height: 400px; right: -70px; top: 16%; background: radial-gradient(circle, rgba(79,163,212,.45), transparent 70%); animation: drift2 24s ease-in-out infinite; }
.hero__aura span:nth-child(3) { width: 320px; height: 320px; left: 32%; bottom: -90px; background: radial-gradient(circle, #16395d, transparent 70%); animation: drift3 28s ease-in-out infinite; }
.hero__glow { opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(109,188,232,.16), transparent 60%); }
.hero:hover .hero__glow { opacity: 1; }
@keyframes drift1 { 50% { transform: translate(40px, 30px) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(-50px, 40px) scale(1.08); } }
@keyframes drift3 { 50% { transform: translate(30px, -40px) scale(1.12); } }

/* headline word-by-word reveal */
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.hero__title .word__in { display: inline-block; will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .anim-ready .hero__copy > .hero__title.split { opacity: 1; transform: none; animation: none; }
  .hero__title.split .word__in { transform: translateY(115%); opacity: 0; animation: wordUp .85s var(--ease) forwards; }
}
@keyframes wordUp { to { transform: none; opacity: 1; } }

/* primary button shine sweep */
.btn { position: relative; overflow: hidden; }
.btn--primary::after { content: ""; position: absolute; top: 0; left: -140%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn--primary:hover::after { animation: shine .9s var(--ease); }
}
@keyframes shine { to { left: 140%; } }

/* tiltable cards keep a smooth transform */
.card, .svc, .pillar, .member { transform-style: preserve-3d; }

/* image zoom on member photos */
.member__photo { overflow: hidden; }
.member__photo img { transition: transform .7s var(--ease); }
.member:hover .member__photo img { transform: scale(1.06); }

/* process connector progress line */
.steps.has-progress { position: relative; }
.steps__line { position: absolute; left: 26px; top: 42px; bottom: 42px; width: 2px; background: var(--line); z-index: 0; border-radius: 2px; }
.steps__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-bright)); box-shadow: 0 0 14px rgba(79,163,212,.7); }
.steps.has-progress .step { position: relative; z-index: 1; }
.steps.has-progress .step__num { background: var(--navy-800); }
.steps.has-progress .step.is-active .step__num { background: var(--accent); }

/* back-to-top button */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(13,27,46,.82); backdrop-filter: blur(8px); color: var(--text);
  display: grid; place-items: center; font-size: 1.25rem; z-index: 120;
  opacity: 0; transform: translateY(18px) scale(.85); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-bright); }

/* ---- typewriter caret on accent word ---- */
.hero__title .type { font-style: italic; }
.hero__title .caret {
  display: inline-block; color: var(--accent-bright); font-style: normal; font-weight: 300;
  margin-left: .02em; transform: translateY(.02em);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__title .caret { animation: caretBlink 1s steps(1) infinite; }
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* =========================================================================
   PATHWAY — horizontal pinned scroll experience
   ========================================================================= */
.pathway {
  --pcw: min(80vw, 880px);
  --pch: min(64vh, 540px);
  --pgap: clamp(24px, 4vw, 56px);
  position: relative;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
}
.pathway__sticky { padding-block: clamp(48px, 9vw, 96px); }
.pathway__head { max-width: var(--maxw); margin: 0 auto clamp(22px, 4vh, 44px); padding-inline: var(--gutter); width: 100%; }
.pathway__head .lead { margin-top: 1rem; }

/* default (no-JS / reduced-motion): swipeable horizontal scroll-snap */
.pathway__track {
  display: flex; align-items: center; gap: var(--pgap);
  padding-inline: max(var(--gutter), calc((100vw - var(--pcw)) / 2));
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pathway__track::-webkit-scrollbar { display: none; }
.pathway__card {
  flex: 0 0 auto; width: var(--pcw); height: var(--pch);
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); scroll-snap-align: center;
}
.pcard__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); }
.pathway__card::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,15,26,.20) 0%, rgba(8,15,26,.5) 42%, rgba(8,15,26,.93) 100%); }
.pcard__num { position: absolute; top: 10px; right: 26px; z-index: 2; font-family: var(--serif);
  font-size: clamp(4.5rem, 13vh, 10rem); line-height: 1; color: rgba(255,255,255,.10); pointer-events: none; }
.pcard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(24px, 4vh, 46px); }
.pcard__step { color: var(--accent-bright); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .76rem; margin-bottom: .7rem; }
.pcard__body h3 { font-size: clamp(1.6rem, 4.2vh, 2.7rem); margin-bottom: .6rem; }
.pcard__body p { color: var(--text-muted); max-width: 54ch; font-size: clamp(.95rem, 1.7vh, 1.12rem); }

.pathway__footer { max-width: var(--maxw); margin: clamp(20px, 3vh, 34px) auto 0; padding-inline: var(--gutter); width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pathway__dots { display: flex; gap: 8px; }
.pathway__dots b { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); transition: all .35s var(--ease); }
.pathway__dots b.on { background: var(--accent-bright); width: 28px; border-radius: 6px; box-shadow: 0 0 12px rgba(79,163,212,.6); }
.pathway__hint { display: flex; align-items: center; gap: .6rem; color: var(--text-dim); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.pathway__hint-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .pathway__hint-ico { animation: floaty 2.4s ease-in-out infinite; } }

/* JS-enhanced pinned mode */
.pathway.is-pinned .pathway__sticky {
  position: sticky; top: 0; height: 100vh; padding-block: 0;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.pathway.is-pinned .pathway__track {
  overflow: visible; scroll-snap-type: none; will-change: transform;
}
.pathway.is-pinned .pathway__card { will-change: transform, opacity; }

/* =========================================================================
   FULL-PHOTO FIT — show the whole photo (no head-cropping), fill with a
   blurred copy of the same image so containers keep their exact size/style.
   ========================================================================= */
.media-fit::before, .media-fit-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--photo); background-size: cover; background-position: center;
  filter: blur(26px) brightness(.5) saturate(1.1); transform: scale(1.2);
}
.hero__slides.media-fit > .hero__slide { object-fit: contain; z-index: 1; }
.hero__card.media-fit > img { position: relative; z-index: 1; object-fit: contain; }
.hero__card.media-fit::after { z-index: 2; }
.media-fit-card .pcard__bg { z-index: 1; background-size: contain; background-repeat: no-repeat; transform: none; }
.media-fit-card.pathway__card::after { z-index: 2; }
.media-fit-card .pcard__num, .media-fit-card .pcard__body { z-index: 3; }

/* swipe mode (after first pinned pass): drag affordance for mouse users */
.pathway.is-swipe .pathway__track { cursor: grab; }
.pathway__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }

/* mobile: one pathway card fully in view, no peeking neighbour */
@media (max-width: 720px) {
  .pathway { --pcw: calc(100vw - 32px); --pgap: 16px; }
  .pathway__track { padding-inline: 16px; }
}
