/* ==========================================================================
   LeadoutConcept — site stylesheet

   Values come from the design handoff (README.md + the prototype). Everything
   styles against the tokens in tokens/*.css — no raw hex in components.
   The binding rules are in the handoff's DESIGN_GUIDE.md.

   There are no layout media queries by design: every grid is
   auto-fit + minmax(min(100%, N), 1fr) and every type size is a clamp().
   The only media query is prefers-reduced-motion.
   ========================================================================== */

:root {
  /* Layout */
  --gutter: clamp(20px, 5vw, 56px);
  --pad-page: clamp(56px, 8vw, 104px);   /* page headers and page content */
  --pad-home: clamp(64px, 9vw, 112px);   /* home content sections */
  --pad-band: clamp(56px, 8vw, 96px);    /* navy, tint and white bands */
  --gap-cards: clamp(18px, 2.4vw, 28px);
  --rule-w: 180px;

  /* White on navy at the alpha steps of DESIGN_GUIDE §7. The .28 and .72
     steps are tokens already: --border-inverse and --text-inverse-muted. */
  --white-05: rgba(255, 255, 255, .05);
  --white-06: rgba(255, 255, 255, .06);
  --white-12: rgba(255, 255, 255, .12);
  --white-14: rgba(255, 255, 255, .14);
  --white-24: rgba(255, 255, 255, .24);
  --white-55: rgba(255, 255, 255, .55);
  --white-78: rgba(255, 255, 255, .78);

  /* Hero layer 4: navy veil top and bottom, lighter through the middle. */
  --veil-vertical: linear-gradient(180deg, rgba(27, 21, 97, .55) 0%, rgba(27, 21, 97, .2) 55%, rgba(27, 21, 97, .5) 100%);
  /* The facet motif (DESIGN_GUIDE §8). */
  --clip-facet: polygon(28% 0, 100% 0, 72% 100%, 0 100%);

  --t-base: var(--duration-base) var(--ease-standard);
  --t-slow: var(--duration-slow) var(--ease-standard);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

h1, h2, h3, p, ul, address { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }

/* Zero specificity, so every component class can set its own link colour. */
:where(a) { color: var(--lo-navy); text-decoration: none; }
:where(a:hover) { color: var(--lo-red); }

/* The only place bright blue appears in the UI. */
:focus-visible {
  outline: 1px solid var(--focus-ring);
  outline-offset: 1px;
}

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: var(--gutter);
  z-index: 50;
  padding: 10px 16px;
  background: var(--lo-white);
  color: var(--lo-navy);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

/* 180 × 3px gradient rule — the brand's workhorse accent. */
.rule {
  width: var(--rule-w);
  height: 3px;
  background: var(--gradient-brand);
}

/* Orbitron uppercase label. Size and colour are set where it is used. */
.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* Hexagon portrait mask: vertex top and bottom, never stretched. */
.hex {
  clip-path: var(--clip-hex);
  aspect-ratio: var(--hex-ratio);
  overflow: hidden;
  background: var(--lo-navy);
}
.hex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Translucent parallelogram shards — only ever over navy or the gradient. */
.facet {
  position: absolute;
  top: 0;
  height: 100%;
  clip-path: var(--clip-facet);
  pointer-events: none;
}
.facet--hero-a { right: -4%; width: 38%; background: var(--white-06); }
.facet--hero-b { right: 16%; width: 22%; background: var(--white-05); }
.facet--header { right: -4%; width: 36%; background: var(--white-06); }
.facet--band   { right: -6%; width: 34%; background: var(--white-05); }

/* --------------------------------------------------------------------------
   Buttons — colour-only states, no transform on press
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--t-base), background var(--t-base);
}
.btn--light { background: var(--lo-white); color: var(--lo-navy); }
.btn--light:hover { opacity: .88; }
.btn--ghost {
  background: var(--white-14);
  color: var(--text-inverse);
  box-shadow: inset 0 0 0 1px var(--border-inverse);
}
.btn--ghost:hover { background: var(--white-24); }
.btn--gradient { background: var(--gradient-brand); color: var(--text-inverse); }
.btn--gradient:hover { opacity: .88; }
.btn:disabled { opacity: .6; cursor: progress; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--lo-navy);
  box-shadow: 0 1px 0 var(--white-12);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--gradient-brand);
}
/* Compact boxes, same pixels: the design's 16px logo and 26px link padding
   (underline 18px from the bottom) are replaced by 12px / 12px (underline
   4px from the bottom). Centred in the 74px row, text and underline land on
   exactly the same y-positions on desktop — but when the nav wraps below the
   logo on phones, each row is 39px instead of 67px and the rows carry no
   extra gaps, so the sticky header stays ~140px instead of ~245px. */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 24px;
  min-height: 74px;
}
.site-header__logo {
  display: flex;
  align-items: center;
  padding: 12px 0;
}
.site-header__logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: clamp(14px, 3vw, 34px);
}
.site-nav__link {
  position: relative;
  display: block;
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-inverse);
  opacity: .72;
  transition: opacity var(--t-base);
}
.site-nav__link:hover { opacity: 1; }
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--lo-red);
}
.site-nav__divider {
  width: 1px;
  height: 18px;
  background: var(--border-inverse);
}
.lang {
  display: flex;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
}
.lang__current { color: var(--text-inverse); }
.lang__other {
  color: var(--white-55);
  transition: color var(--t-base);
}
.lang__other:hover { color: var(--text-inverse); }

/* Menu button — phones only, see below. */
.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   Mobile menu — client request (21.09.2026), and the stylesheet's one layout
   media query: the design guide has none, but on phones the wrapped nav made
   the sticky header a third of the screen. 768px and up the full nav fits in
   one row in both languages. Gated on (scripting: enabled) — without
   JavaScript the button could not open anything, so the wrapped nav stays.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) and (scripting: enabled) {
  .site-header__inner { flex-wrap: nowrap; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--border-inverse);
    color: var(--text-inverse);
    cursor: pointer;
    transition: background var(--t-base);
  }
  .nav-toggle:hover { background: var(--white-14); }
  .nav-toggle__icon { width: 22px; height: 22px; }
  .nav-toggle__icon--close,
  .is-open .nav-toggle__icon--open { display: none; }
  .is-open .nav-toggle__icon--close { display: block; }

  /* The panel drops from the sticky header over the page. */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 77px);
    max-height: calc(100dvh - 77px);
    overflow-y: auto;
    padding: 8px var(--gutter) 28px;
    background: var(--lo-navy);
    border-top: 1px solid var(--white-12);
    box-shadow: var(--shadow-raised);
  }
  .is-open .site-nav {
    display: flex;
    animation: lo-drop var(--duration-base) var(--ease-standard) both;
  }
  .site-nav__link {
    padding: 18px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--white-12);
  }
  /* Stacked, the active page is underlined under its label only. */
  .site-nav__link[aria-current="page"] {
    opacity: 1;
    text-decoration-line: underline;
    text-decoration-color: var(--lo-red);
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
  }
  .site-nav__link[aria-current="page"]::after { display: none; }
  .site-nav__divider { display: none; }
  .lang {
    gap: 18px;
    padding-top: 22px;
    font-size: 12px;
  }
}

@keyframes lo-drop {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--lo-navy);
  color: var(--text-inverse);
}
.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--gradient-brand);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-top: clamp(44px, 6vw, 72px);
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.site-footer__brand img {
  height: 38px;
  width: auto;
  align-self: flex-start;
  object-fit: contain;
}
.site-footer__claim {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-inverse-muted);
}
.site-footer__heading {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-inverse);
}
.site-footer__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-inverse-muted);
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
}
.site-footer a {
  color: var(--text-inverse-muted);
  transition: color var(--t-base);
}
.site-footer a:hover { color: var(--text-inverse); }
.site-footer__bottom {
  padding-block: clamp(32px, 4vw, 48px) clamp(28px, 3.5vw, 40px);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border-inverse);
  font-size: 13px;
  color: var(--white-55);
}
.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer__legal a { color: var(--white-55); }
.site-footer__legal a:hover { color: var(--text-inverse); }

/* --------------------------------------------------------------------------
   Section titles
   -------------------------------------------------------------------------- */

/* fit-content so the gradient spans the words, not the whole container. */
.section-title {
  width: fit-content;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: .95;
  letter-spacing: var(--tracking-display);
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title--sm {
  font-size: clamp(26px, 4vw, 40px);
  line-height: normal;
}
.section-rule { margin-bottom: clamp(36px, 5vw, 56px); }
.section-rule--sm { margin-bottom: clamp(32px, 4.5vw, 52px); }

/* --------------------------------------------------------------------------
   Home — hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-brand-diagonal);
  color: var(--text-inverse);
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 60% 55%;
  filter: saturate(.72);
}
.hero__veil {
  position: absolute;
  inset: 0;
  background: var(--gradient-photo-veil);
}
.hero__veil--vertical { background: var(--veil-vertical); }
.hero__content {
  position: relative;
  padding-block: clamp(72px, 13vw, 150px) clamp(64px, 10vw, 128px);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 9.5vw, 104px);
  line-height: .9;
  letter-spacing: var(--tracking-display);
  text-wrap: wrap;
}
/* The eyebrow is the H1's kicker, so search engines read it with the claim. */
.hero__eyebrow {
  display: block;
  margin-bottom: 28px;
  font-size: 12px;
  line-height: normal;
  color: var(--white-78);
  animation: lo-fade var(--duration-slow) var(--ease-standard) both;
}
.hero__line {
  display: block;
  animation: lo-rise var(--duration-slow) var(--ease-standard) both;
}
/* Children 2–4 of the H1 (child 1 is the eyebrow): 0 / 90 / 180ms. */
.hero__line:nth-child(3) { animation-delay: 90ms; }
.hero__line:nth-child(4) { animation-delay: 180ms; }
.hero__rule { margin-top: clamp(20px, 3vw, 30px); }
.hero__lede {
  max-width: 620px;
  margin-top: clamp(28px, 5vw, 44px);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  color: var(--text-inverse);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

@keyframes lo-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes lo-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Home — service cards
   -------------------------------------------------------------------------- */

.home-section { padding-block: var(--pad-home); }

/* Four cards as two pairs: 4-up on desktop, 2-up mid, 1-up narrow, and never
   3 + 1 — which a flat auto-fit grid of four gives at tablet width. */
.card-grid,
.card-grid__pair {
  display: grid;
  gap: var(--gap-cards);
}
.card-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, calc(390px + var(--gap-cards))), 1fr)); }
.card-grid__pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 195px), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.card::before {
  content: "";
  height: 3px;
  background: var(--gradient-brand);
}
.card:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-2px);
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: clamp(24px, 3vw, 32px);
}
.card__num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  color: var(--lo-red);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: var(--tracking-display);
  color: var(--lo-navy);
}
/* The title link covers the whole card. */
.card__title a { color: inherit; }
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card__title a:focus-visible { outline: none; }
.card__title a:focus-visible::after {
  outline: 1px solid var(--focus-ring);
  outline-offset: 1px;
}
.card__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-body);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Navy band (Home events, About closing)
   -------------------------------------------------------------------------- */

.band {
  position: relative;
  overflow: hidden;
  background: var(--lo-navy);
  color: var(--text-inverse);
}

.events {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: var(--pad-band);
}
.events__eyebrow {
  margin-bottom: 18px;
  color: var(--text-inverse-muted);
}
.events__text {
  font-size: clamp(18px, 2.6vw, 26px);
  line-height: 1.45;
  color: var(--text-inverse);
  text-wrap: pretty;
}
.ref-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ref-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white-06);
  box-shadow: inset 0 0 0 1px var(--white-14);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  color: var(--text-inverse);
}
.ref-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--lo-red);
}

.closing {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 64px);
  padding-block: var(--pad-band);
}
.closing__claim {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.closing__lines {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4.2vw, 44px);
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
}
.closing__wordmark {
  height: clamp(28px, 4vw, 44px);
  width: auto;
  opacity: .9;
}

/* --------------------------------------------------------------------------
   Athletes
   -------------------------------------------------------------------------- */

.athlete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: var(--gap-cards);
}
.athlete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.athlete__portrait { width: 100%; }
.athlete__portrait img {
  filter: saturate(.85);
  transition: transform var(--t-slow);
}
.athlete:hover .athlete__portrait img,
.athlete:focus-visible .athlete__portrait img { transform: scale(1.03); }
.athlete__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.athlete__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  color: var(--lo-navy);
}
.athlete__follow {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.and-more {
  margin-top: clamp(32px, 4vw, 44px);
  text-align: center; /* client request: centred under the athlete row */
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Services-page variant: tighter tiles, name only. */
.athlete-grid--compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.athlete-grid--compact .athlete { gap: 14px; }
.athlete-grid--compact .athlete__name { font-size: 14px; }
.athlete-grid--compact + .and-more { margin-top: clamp(30px, 4vw, 42px); }

/* --------------------------------------------------------------------------
   Home — client marquee
   -------------------------------------------------------------------------- */

.clients {
  overflow: hidden;
  background: var(--lo-tint);
  border-top: 1px solid var(--border-hairline);
}
.clients__head { padding-block: clamp(48px, 6vw, 72px) clamp(24px, 3vw, 32px); }
.marquee { padding-bottom: clamp(48px, 6vw, 72px); }
/* The logos appear twice; sliding by -50% makes the loop seamless. 42s for
   eight logos in the design — 52.5s keeps the same pace for ten. */
.marquee__track {
  display: flex;
  width: max-content;
  background: var(--lo-tint); /* the backdrop the logos multiply onto */
  animation: lo-marquee 52.5s linear infinite;
}
/* Every logo is a link: hold still while pointed at or keyboard-focused. */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__cell {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 86px;
  padding: 0 26px;
}
/* multiply drops the white boxes of the logo files into the tint ground. */
.marquee__logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
  mix-blend-mode: multiply;
  transition: filter var(--t-base), opacity var(--t-base);
}
.marquee__cell:hover .marquee__logo,
.marquee__cell:focus-visible .marquee__logo {
  filter: none;
  opacity: 1;
}

@keyframes lo-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Home — contact band
   -------------------------------------------------------------------------- */

.cta {
  background: var(--surface-page);
  border-top: 1px solid var(--border-hairline);
}
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: var(--pad-band);
}
.cta__title {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 36px);
  letter-spacing: var(--tracking-display);
  color: var(--lo-navy);
}
.cta__text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
}
.cta__text a { color: inherit; }
.cta__text a:hover { color: var(--lo-red); }

/* --------------------------------------------------------------------------
   Page header (Services, About us, Contact, Privacy)
   -------------------------------------------------------------------------- */

.page-header {
  position: relative;
  overflow: hidden;
  background: var(--gradient-brand-diagonal);
  color: var(--text-inverse);
}
.page-header__inner {
  position: relative;
  padding-block: var(--pad-page);
}
.page-header__eyebrow {
  margin-bottom: 20px;
  color: var(--white-78);
}
.page-header__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 7.5vw, 80px);
  line-height: .9;
  letter-spacing: var(--tracking-display);
}
/* Privacy: flat navy, no gradient, no facets. */
.page-header--flat { background: var(--lo-navy); }
.page-header--flat .page-header__inner { padding-block: clamp(48px, 6vw, 80px); }
.page-header--flat .page-header__title {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1;
}

.tint { background: var(--lo-tint); }
.band-pad { padding-block: var(--pad-band); }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

/* 330px rather than the handoff's 320px: at 320 three tracks fit the 1048px
   content width (3 + 1). 330 gives the intended 2-up on desktop and tablet. */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(20px, 3vw, 36px);
  padding-block: var(--pad-page);
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}
.service-card::before {
  content: "";
  height: 3px;
  background: var(--gradient-brand);
}
.service-card__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  padding: clamp(26px, 3.4vw, 40px);
}
.service-card__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.service-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: var(--tracking-display);
  color: var(--lo-navy);
}

/* Square gradient markers. */
.bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bullets li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-body);
  text-wrap: pretty;
}
.bullets li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  background: var(--gradient-brand);
}
.bullets--sm { gap: 10px; flex: 1; }
.bullets--sm li { gap: 12px; font-size: 14px; }
.bullets--sm li::before { width: 6px; height: 6px; margin-top: 7px; }

/* --------------------------------------------------------------------------
   About us
   -------------------------------------------------------------------------- */

.intro { padding-block: var(--pad-page); }
.intro__lead {
  max-width: 760px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: var(--tracking-display);
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: pretty;
}
.intro__rule { margin-block: clamp(24px, 3.5vw, 36px); }
.intro__text {
  max-width: 760px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--text-body);
  text-wrap: pretty;
}
.intro__text + .intro__text { margin-top: 16px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: var(--gap-cards);
}
.member {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}
.member::before {
  content: "";
  height: 3px;
  background: var(--gradient-brand);
}
.member__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  padding: clamp(22px, 2.8vw, 30px);
}
.member__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.member__portrait {
  flex: none;
  width: 118px;
}
.member__portrait img { filter: saturate(.8); }
.member__id {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0; /* may shrink beside the portrait on 320px phones */
  overflow-wrap: break-word;
}
.member__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  color: var(--lo-navy);
}
.member__role {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--lo-red);
  text-wrap: balance;
}
.member__langs {
  padding-top: 4px;
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-block: var(--pad-page);
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-info__label {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--lo-navy);
}
.contact-info__value {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
}

.contact-card {
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}
.contact-card::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--gradient-brand);
}
.contact-card__body { padding: clamp(26px, 3.4vw, 40px); }

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  color: var(--lo-navy);
}
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 16px;
}
.form__status {
  font-size: 14px;
  line-height: 1.55;
  color: var(--status-danger);
}
.form__status:empty { display: none; }
.form__submit { align-self: flex-start; }

/* Honeypot: off-screen for people, still in the DOM for bots. */
.form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field__label {
  font-family: var(--font-display);
  font-size: var(--text-size-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--lo-navy);
}
.field__control {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  font-family: var(--font-body);
  font-size: var(--text-size-body);
  font-weight: 300;
  line-height: var(--leading-body);
  color: var(--text-body);
  -webkit-appearance: none;
  appearance: none;
}
.field__control::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
.field__control:user-invalid { box-shadow: inset 0 0 0 1px var(--status-danger); }
textarea.field__control {
  display: block;
  resize: vertical;
}

/* Select with Lucide chevron-down, drawn in navy through a mask. */
.select { position: relative; }
.select .field__control {
  padding-right: 40px;
  cursor: pointer;
}
.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: var(--lo-navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%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' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

/* Thank-you state. JS adds .is-sent; without JS, send.php redirects to
   contact.html#thanks and :target does the same swap. */
.form-thanks {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
  scroll-margin-top: 160px;
}
.form-thanks:target,
.is-sent .form-thanks { display: flex; }
.form-thanks:target ~ .form,
.is-sent .form { display: none; }
.form-thanks:focus { outline: none; }
.form-thanks__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  color: var(--lo-navy);
}
.form-thanks__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Privacy Policy & Legal Notice
   -------------------------------------------------------------------------- */

.legal {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter);
}
.legal__meta {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.legal__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: 100px; /* in-page links land below the sticky header */
}
.legal__heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  overflow-wrap: break-word; /* last resort for long German compounds */
  min-width: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--lo-navy);
}
.legal__num {
  flex: none;
  font-size: 11px;
  color: var(--lo-red);
}
.legal__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  text-wrap: pretty;
}
.legal__intro { font-size: clamp(16px, 2vw, 17px); }
/* Navy link text is too close to the body colour to stand alone: underline. */
.legal a {
  text-decoration-line: underline;
  text-decoration-color: var(--border-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-base), text-decoration-color var(--t-base);
}
.legal a:hover { text-decoration-color: currentColor; }
.legal__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}
.legal__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 10px;
  background: var(--gradient-brand);
}
/* A long cell scrolls inside its box instead of widening the page. */
.legal__table-wrap { overflow-x: auto; }
.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
}
.legal__table th {
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-align: left;
  text-transform: uppercase;
  color: var(--lo-navy);
}
.legal__table td {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: top;
}
.legal__table td:first-child { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Notice pages: the no-JavaScript form fallback (send.php) and 404.html
   -------------------------------------------------------------------------- */

.notice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-block: var(--pad-page);
}
.notice__text {
  max-width: 620px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--text-body);
}
.notice__text + .notice__text { margin-top: -12px; }
.notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   Reduced motion: no entrance animation, and the marquee becomes a static,
   wrapped row showing every logo once.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__line,
  .is-open .site-nav { animation: none; }

  .card,
  .athlete__portrait img { transition: none; }

  .marquee__track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: var(--gutter);
    animation: none;
  }
  .marquee__cell[aria-hidden="true"] { display: none; }
}
