/* Athletic Development and Recovery Ltd
   Layout: a narrow navy header with the logo, a full-width team photo,
   then alternating text-and-photo sections on white, and a navy footer
   carrying the company's legal details. */
:root {
  color-scheme: light;
  --blue: #00B0F0;        /* the logo's blue */
  --navy: #002060;        /* "and recovery" in the logo */
  --grey: #4A4A4A;        /* body text, a little darker than the logo grey for reading */
  --mist: #EEF7FC;        /* pale blue panels */
  --line: #D5E3EC;
  --white: #FFFFFF;
  --slab: Rockwell, "Rockwell Nova", "Roboto Slab", Georgia, serif;   /* like the lettering in the logo */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
  --gut: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--grey);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: #00648A; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--slab); color: var(--navy); line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }

/* Header */
.site-head { background: var(--navy); color: var(--white); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--white); text-decoration: none; }
.brand img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 3px var(--white); }
.brand span { font-family: var(--slab); font-size: 1.05rem; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.25; }
.brand small { display: block; font-size: 0.78rem; letter-spacing: 0.3em; color: var(--blue); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 6px 0; display: inline-block; }
.nav a:hover { color: var(--blue); }

/* Opening photo */
.hero { position: relative; background: var(--navy); }
.hero img { width: 100%; max-height: 520px; object-fit: cover; object-position: center 30%; }
.hero-text { background: var(--navy); color: var(--white); }
.hero-text .wrap { padding-block: 28px 34px; display: grid; gap: 10px; }
.hero-text h1 { color: var(--white); font-size: clamp(2rem, 5.5vw, 3.4rem); letter-spacing: 0.04em; }
.hero-text p { color: #D9ECF7; font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 40em; }
.hero-text .cta { justify-self: start; margin-top: 8px; }

.cta {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.cta:hover { background: var(--white); color: var(--navy); }

/* Sections */
.section { padding-block: clamp(44px, 7vw, 80px); }
.section.tint { background: var(--mist); }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.split.flip .copy { order: 2; }
.copy { display: grid; gap: 16px; max-width: 36em; }
.photo img { width: 100%; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 32, 96, 0.18); }
.photo.portrait { max-width: 380px; justify-self: center; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: "";
  position: absolute; left: 2px; top: 0.55em;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue);
}
@media (max-width: 760px) {
  .split, .split.flip { grid-template-columns: minmax(0, 1fr); }
  .split.flip .copy { order: 0; }
}

/* About */
.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 8px; }
.cred { border-top: 4px solid var(--blue); background: var(--white); padding: 14px 16px; }
.cred h3 { font-size: 1rem; margin-bottom: 4px; }
.cred p { font-size: 0.95rem; }

/* Contact */
.contact { background: var(--navy); color: var(--white); }
.contact h2 { color: var(--white); }
.contact .wrap { display: grid; gap: 18px; }
.contact p { color: #D9ECF7; max-width: 36em; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 1.15rem; }
.contact-list a { color: var(--white); font-weight: 600; overflow-wrap: anywhere; }
.contact-list span { display: block; font-size: 0.85rem; color: var(--blue); letter-spacing: 0.08em; text-transform: uppercase; }

/* Footer: the company's legal details */
.site-foot { background: #00174A; color: #B8C7DE; font-size: 0.9rem; }
.site-foot .wrap { padding-block: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.site-foot p { max-width: 46em; }
.site-foot a { color: var(--white); }

/* Privacy page */
.doc { padding-block: clamp(36px, 6vw, 64px); }
.doc .wrap { max-width: 780px; display: grid; gap: 14px; }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.doc h2 { font-size: 1.35rem; margin-top: 18px; }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.doc .updated { color: #6B6B6B; font-size: 0.95rem; }

/* Particle logo at the top of the page (see js/hero.js) */
.hero3d {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  height: min(calc(100svh - 92px), 900px);
  background:
    radial-gradient(60% 55% at 50% 34%, rgba(0, 176, 240, 0.22), rgba(0, 176, 240, 0) 70%),
    linear-gradient(180deg, var(--navy) 0%, #00143F 100%);
  color: var(--white);
  touch-action: pan-y;
  cursor: crosshair;
}
.hero3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fallback {
  position: absolute; left: 50%; top: 32%;
  width: min(44vh, 62vw, 380px); height: auto;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.hero3d.gl-on .hero-fallback { display: none; }
.hero3d-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gut) clamp(28px, 5vh, 56px);
  display: grid; justify-items: center; gap: 12px;
  text-align: center;
  pointer-events: none;
}
.hero3d-text .cta { pointer-events: auto; margin-top: 6px; }
.eyebrow {
  font-size: clamp(0.72rem, 1.6vw, 0.85rem);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
}
.hero3d h1 { color: var(--white); font-size: clamp(2rem, 5.2vw, 3.6rem); letter-spacing: 0.03em; }
.hero3d .lede { color: #D9ECF7; font-size: clamp(1rem, 2vw, 1.25rem); max-width: 38em; }
.hero-hint {
  position: absolute; top: 18px; right: var(--gut);
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: opacity 0.8s;
}
.hero-hint.gone { opacity: 0; }
.hero3d:not(.gl-on) .hero-hint { display: none; }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } .hero3d { cursor: auto; } }
@media (max-width: 700px) {
  .hero3d { height: auto; min-height: 0; }
  .hero3d-text { position: relative; padding-top: min(100vw, 460px); }
  .hero-hint { top: 10px; }
}

/* Scroll journey (see js/journey.js). Without the script it is one screen showing the squad photo. */
.journey { position: relative; background: #00143F; height: 100svh; min-height: 520px; }
.journey.on { height: 1400svh; }
.journey-stick { position: sticky; top: 0; height: 100svh; min-height: 520px; overflow: hidden; }
.journey:not(.on) .journey-stick { position: relative; }
.j-img {
  position: absolute; left: 0; top: 0;
  max-width: none; width: auto; height: auto;
  transform-origin: 0 0;
  will-change: transform, opacity, filter;
}
.journey:not(.on) #jSquad { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.journey:not(.on) .j-img:not(#jSquad), .journey:not(.on) .j-word, .journey:not(.on) .j-final, .journey:not(.on) .j-line:not(#jl1) { display: none; }
.journey.on .j-img:not(#jSquad), .journey.on .j-word, .journey.on .j-final, .journey.on .j-line { visibility: hidden; opacity: 0; }
.j-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 20, 63, 0.5) 0%, rgba(0, 20, 63, 0) 25%, rgba(0, 20, 63, 0) 50%, rgba(0, 20, 63, 0.8) 78%, rgba(0, 20, 63, 0.95) 100%),
    radial-gradient(120% 90% at 50% 45%, rgba(0, 20, 63, 0) 55%, rgba(0, 20, 63, 0.6) 100%);
}
.j-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(45% 45% at 50% 50%, rgba(0, 176, 240, 0.28), rgba(0, 176, 240, 0) 70%);
}
.j-line {
  position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(48px, 10vh, 110px);
  margin: 0 auto; max-width: 32em;
  text-align: center; color: var(--white);
  font-family: var(--slab); font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 20, 63, 0.8), 0 2px 24px rgba(0, 20, 63, 0.9);
}
.j-kicker {
  display: block; margin-bottom: 10px;
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(0.75rem, 1.4vw, 0.9rem); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue);
}
@media (min-aspect-ratio: 11/10) {
  .j-left { right: auto; left: clamp(24px, 7vw, 120px); bottom: auto; top: 50%; translate: 0 -50%; text-align: left; max-width: min(28vw, 26rem); }
}
.j-word {
  position: absolute; left: 50%; top: 50%; margin: 0;
  font-family: var(--slab); font-weight: 700;
  font-size: clamp(3rem, 12vw, 9rem); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--white); white-space: nowrap;
  transform: translate(-50%, -50%);
  will-change: transform, opacity, filter;
}
.j-word:nth-of-type(even) { color: var(--blue); }
.j-final {
  position: absolute; left: 50%; top: 50%; margin: 0; width: min(90vw, 40rem);
  text-align: center; color: var(--white);
  font-family: var(--slab); font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: 1.15;
  transform: translate(-50%, -50%);
}
.j-final strong { color: var(--blue); }
.j-progress { position: absolute; left: var(--gut); right: var(--gut); bottom: 22px; height: 2px; background: rgba(255, 255, 255, 0.18); }
.j-progress span { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }
.journey:not(.on) .j-progress { display: none; }

/* Recovery and lifestyle education: crops from Al's athlete guides */
.edu { background: #00143F; color: #D9ECF7; }
.edu h2 { color: var(--white); }
.edu-head { margin-bottom: clamp(24px, 4vw, 40px); }
.edu-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); align-items: start; }
.edu-card { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); transition: transform 0.4s; }
.edu-card:nth-child(2) { margin-top: clamp(0px, 4vw, 48px); }
.edu-card:nth-child(3) { margin-top: clamp(0px, 8vw, 96px); }
.edu-card img { width: 100%; }
@media (hover: hover) { .edu-card:hover { transform: translateY(-6px); } }
@media (max-width: 760px) {
  .edu-cards { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin: 0 auto; }
  .edu-card:nth-child(n) { margin-top: 0; }
}
.edu-label { color: var(--white); font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.edu-label span { font-family: var(--sans); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.edu-cards + .edu-label { margin-top: clamp(48px, 7vw, 120px); }
