/* ==========================================================
   HST Service Providers — shared styles
   (tokens, header + submenu, CTAs, reveal, footer)
   ========================================================== */
:root {
  --ink: #03060d;
  --ink-2: #081223;
  --signal: #4db2ff;
  --hst-green: #8dc63f;
  --taram: #74be44;
  --sun: #fff200;
  --paper: #f3f6fa;
  --muted: #9fb0c6;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
body { overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 1.25rem) var(--pad) 1.25rem;
  transition: background .4s ease, color .4s ease, padding .4s ease;
}
.site-header.is-scrolled {
  background: rgba(3, 6, 13, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: calc(env(safe-area-inset-top, 0px) + .8rem); padding-bottom: .8rem;
}
/* Desktop: more breathing room above logo and menu (mobile unchanged) */
@media (min-width: 761px) {
  .site-header { padding-top: calc(env(safe-area-inset-top, 0px) + 2.4rem); padding-bottom: 1.4rem; }
  .site-header.is-scrolled { padding-top: calc(env(safe-area-inset-top, 0px) + 1rem); padding-bottom: 1rem; }
}
.site-header.on-sun { background: rgba(255, 242, 0, .92); color: #000; }
.brand img { height: clamp(30px, 3.2vw, 40px); width: auto; transition: filter .4s ease; }
.site-header.on-sun .brand img { filter: brightness(0); }
.site-header.on-light { background: rgba(244, 246, 239, .92); color: #0c1a0a; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.on-light .brand img { filter: brightness(0); }
.site-header.on-light .nav__link::after { background: #0c1a0a; }
.site-header.on-light .subnav { background: rgba(244, 246, 239, .97); color: #0c1a0a; border-color: rgba(0, 0, 0, .12); }
.site-header.on-light .subnav a:hover, .site-header.on-light .subnav a:focus-visible, .site-header.on-light .subnav a[aria-current="page"] { background: rgba(116, 190, 68, .18); }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.75rem); }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem 0; border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; font-stretch: 112%; font-weight: 500; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.nav__link:hover::after, .nav__link:focus-visible::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-header.on-sun .nav__link::after { background: #000; }
.nav__toggle svg { width: 12px; height: 12px; transition: transform .3s ease; }
.has-sub.is-open .nav__toggle svg { transform: rotate(180deg); }

/* Second level */
.has-sub { position: relative; }
.subnav {
  position: absolute; top: 100%; left: -.9rem; margin: .7rem 0 0; padding: .5rem;
  list-style: none; min-width: 250px;
  background: rgba(3, 6, 13, .94); color: var(--paper);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(159, 176, 198, .16); border-radius: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
.subnav li { opacity: 0; transform: translateX(-8px); transition: opacity .3s ease, transform .3s ease; }
.subnav a {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .75rem .85rem; border-radius: 9px; text-decoration: none;
  font-stretch: 108%; font-weight: 500; font-size: .95rem;
  transition: background .25s ease;
}
.subnav a svg { width: 16px; height: 16px; opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .25s ease; }
.subnav a:hover, .subnav a:focus-visible, .subnav a[aria-current="page"] { background: rgba(77, 178, 255, .12); }
.subnav a:hover svg, .subnav a:focus-visible svg { opacity: 1; transform: none; }

.has-sub.is-open .subnav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.has-sub.is-open .subnav li { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .has-sub:hover .subnav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .has-sub:hover .subnav li { opacity: 1; transform: none; }
  .has-sub:hover .nav__toggle svg { transform: rotate(180deg); }
}
.subnav li:nth-child(2) { transition-delay: .05s; }
.subnav li:nth-child(3) { transition-delay: .1s; }
.site-header.on-sun .subnav { background: rgba(255, 242, 0, .97); color: #000; border-color: rgba(0, 0, 0, .14); }
.site-header.on-sun .subnav a:hover, .site-header.on-sun .subnav a:focus-visible, .site-header.on-sun .subnav a[aria-current="page"] { background: rgba(0, 0, 0, .08); }

/* ---------- Mobile menu ---------- */
.menu-toggle {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; margin-right: -10px; padding: 0;
  align-items: center; justify-content: center;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.menu-toggle__bars { position: relative; width: 26px; height: 12px; }
.menu-toggle__bars i {
  position: absolute; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), width .45s cubic-bezier(.2,.7,.2,1), top .45s cubic-bezier(.2,.7,.2,1);
}
.menu-toggle__bars i:first-child { top: 0; width: 26px; }
.menu-toggle__bars i:last-child { top: 10px; width: 16px; }
.menu-toggle:hover .menu-toggle__bars i:last-child { width: 26px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i { width: 26px; top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 45; overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, #0a1a33 0%, var(--ink) 72%);
  color: var(--paper);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s cubic-bezier(.65,0,.25,1);
}
.mnav[hidden] { display: none; }
.mnav.is-open { clip-path: inset(0 0 0 0); }
.mnav__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.mnav__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(3,6,13,.82) 0%, rgba(3,6,13,.45) 70%, rgba(3,6,13,.25) 100%); }
/* Scan line that draws the menu in */
.mnav__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--signal) 20%, #d8f0ff 50%, var(--hst-green) 80%, transparent);
  box-shadow: 0 0 24px 4px rgba(77,178,255,.55), 0 0 80px 10px rgba(77,178,255,.2);
  opacity: 0;
}
.mnav.is-open .mnav__scan { animation: mnav-scan .7s cubic-bezier(.65,0,.25,1) forwards; }
@keyframes mnav-scan { 0% { top: 0; opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.mnav__inner {
  position: relative; z-index: 2; height: 100%; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 6.5rem) var(--pad) calc(env(safe-area-inset-bottom, 0px) + 2rem);
}
.mnav__group {
  display: flex; align-items: center; gap: .8rem; margin: 0 0 .6rem;
  font-size: .82rem; font-stretch: 115%; font-weight: 500; color: var(--signal);
  opacity: 0; transition: opacity .4s ease .35s;
}
.mnav__group::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.mnav.is-open .mnav__group { opacity: 1; }
.mnav__list { list-style: none; margin: 0; padding: 0; }
.mnav__list--other { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid rgba(159,176,198,.18); }
.mnav__list li {
  opacity: 0; transform: translateX(-18px);
  transition: opacity .45s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(.26s + var(--i) * .09s);
}
.mnav.is-open .mnav__list li { opacity: 1; transform: none; }
.mnav__list a {
  display: flex; align-items: baseline; gap: 1rem; padding: .55rem 0; min-width: 0;
  text-decoration: none; color: var(--paper);
}
.mnav__idx { width: 1.6rem; flex: none; font-size: .78rem; font-weight: 600; color: var(--signal); font-variant-numeric: tabular-nums; }
.mnav__label {
  flex: 1 1 auto; min-width: 0; text-wrap: balance; overflow-wrap: anywhere;
  font-size: clamp(1.5rem, 6.8vw, 2.6rem); line-height: 1.08;
  font-stretch: 118%; font-weight: 640; letter-spacing: -.025em;
  transition: color .25s ease;
}
.mnav__word { display: inline-block; white-space: nowrap; }
.mnav__list a:hover .mnav__label, .mnav__list a:focus-visible .mnav__label { color: var(--signal); }
.mnav__list a[aria-current="page"] .mnav__label { color: var(--signal); }
.mnav__list a[aria-current="page"] .mnav__idx::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .35rem; border-radius: 50%; background: var(--hst-green); vertical-align: middle; }
.mnav__contact {
  list-style: none; margin: auto 0 0; padding: 2rem 0 0; display: grid; gap: .3rem;
  font-size: .92rem; color: var(--muted);
  opacity: 0; transition: opacity .5s ease; transition-delay: calc(.3s + var(--i) * .09s);
}
.mnav.is-open .mnav__contact { opacity: 1; }
.mnav__contact a { text-decoration: none; }
.mnav__contact a:hover { color: var(--paper); }

/* Header while the menu is open: always the dark theme */
html.menu-open { overflow: hidden; }
html.menu-open .site-header,
html.menu-open .site-header.on-sun,
html.menu-open .site-header.on-light {
  background: transparent; color: var(--paper);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html.menu-open .site-header .brand img { filter: none; }
/* switch header colours just after the scan line has passed it */
html.menu-open .site-header { transition: color .3s ease .16s, padding .4s ease; }
html.menu-open .site-header .brand img { transition-delay: .16s; }

@media (max-width: 760px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .mnav, .mnav__list li, .mnav__group, .mnav__contact { transition: none; }
  .mnav.is-open .mnav__scan { animation: none; }
}

/* ---------- Type helpers ---------- */
.section-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4.4vw, 3.9rem); line-height: 1.02;
  font-stretch: 122%; font-weight: 650; letter-spacing: -.028em;
  text-wrap: balance;
}
.section-lead { margin: 0 0 2.25rem; color: #c9d5e4; font-size: clamp(1rem, 1.2vw, 1.12rem); max-width: 34rem; }

/* ---------- CTAs ---------- */
.cta {
  display: inline-flex; align-items: center; gap: .9rem;
  padding: 1rem 1.6rem; border-radius: 999px;
  font-stretch: 112%; font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 1px solid currentColor;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s ease, border-color .35s ease;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--cta-fill); transform: translateY(101%);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.cta:hover::before, .cta:focus-visible::before { transform: none; }
.cta svg { width: 18px; height: 18px; transition: transform .35s ease; }
.cta:hover svg { transform: translateX(4px); }
.cta--signal { color: var(--paper); border-color: var(--signal); --cta-fill: var(--signal); }
.cta--signal:hover, .cta--signal:focus-visible { color: var(--ink); }
.cta--field { color: var(--paper); border-color: var(--taram); --cta-fill: var(--taram); }
.cta--field:hover, .cta--field:focus-visible { color: #0b1a06; }
.cta--sport {
  color: var(--sun); background: #000; border: 0; border-radius: 10px;
  transform: skewX(-12deg); --cta-fill: var(--paper);
}
.cta--sport > span, .cta--sport > svg { transform: skewX(12deg); }
.cta--sport:hover > svg { transform: skewX(12deg) translateX(4px); }
.cta--sport:hover, .cta--sport:focus-visible { color: #000; }
.cta--sport:focus-visible { outline-color: #000; }

/* Slash rule from the Sportagyum identity */
.slash-rule {
  height: 16px;
  background: repeating-linear-gradient(-62deg, currentColor 0 1.5px, transparent 1.5px 9px);
}

/* ---------- Scroll reveal ---------- */
.rw { display: inline-block; will-change: opacity, transform; transition: color .25s linear; }
.rw.rw--i { display: inline; will-change: opacity; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 2;
  background: var(--ink); border-top: 1px solid rgba(159,176,198,.14);
  padding: 4.5rem var(--pad) calc(env(safe-area-inset-bottom, 0px) + 2rem);
  color: var(--muted); font-size: .92rem;
}
.footer__grid {
  display: grid; gap: 3rem;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
}
.footer__brand img { height: 36px; width: auto; margin-bottom: 1.25rem; }
.footer__brand p { margin: 0; max-width: 34ch; }
.footer__col h2 { margin: 0 0 1rem; color: var(--paper); font-size: .95rem; font-weight: 600; font-stretch: 112%; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--paper); }
.footer__base {
  margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid rgba(159,176,198,.14);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem;
}
.footer__grid > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Load-in word reveal (hero statements) ---------- */
.rw.w {
  opacity: 0; filter: blur(8px); transform: translateY(.35em);
  transition: opacity .9s ease, filter .9s ease, transform .9s cubic-bezier(.2,.7,.2,1), color .25s linear;
}
.is-ready .rw.w { opacity: 1; filter: blur(0); transform: none; }
@media (prefers-reduced-motion: reduce) { .rw.w { transition: none; } }

/* Line drawings scrubbed by scroll: <svg data-reveal="draw"> with pathLength="1" on shapes */
[data-reveal="draw"] :is(path, circle, rect, line, polyline, polygon) {
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--d, 0));
}
@media (prefers-reduced-motion: reduce) { [data-reveal="draw"] { --d: 1 !important; } }

/* ---------- Cookie consent bar ---------- */
.cc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: rgba(3, 6, 13, .97); color: var(--paper);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(77, 178, 255, .35);
  box-shadow: 0 -18px 40px -20px rgba(0, 0, 0, .6);
  transform: translateY(100%); transition: transform .45s cubic-bezier(.2,.7,.2,1);
  font-size: .92rem; line-height: 1.5;
  max-height: 100vh; max-height: 100svh; overflow-y: auto;
}
.cc.is-visible { transform: none; }
.cc[hidden] { display: none; }
.cc::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal) 30%, var(--hst-green) 70%, transparent);
}
.cc__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem 2.5rem; align-items: center;
  max-width: 1500px; margin: 0 auto;
  padding: 1.25rem var(--pad) calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
}
.cc__title { margin: 0 0 .3rem; font-size: 1rem; font-weight: 600; font-stretch: 112%; }
.cc__text p { margin: 0; color: #c9d5e4; max-width: 78ch; }
.cc__text a { color: var(--paper); text-underline-offset: 3px; }
.cc__text a:hover { color: var(--signal); }
.cc__actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.cc__btn {
  font: inherit; font-weight: 600; font-stretch: 110%; font-size: .9rem;
  padding: .75rem 1.25rem; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--paper); border: 1px solid rgba(243, 246, 250, .45);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.cc__btn:hover { border-color: var(--paper); background: rgba(243, 246, 250, .08); }
.cc__btn--primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cc__btn--primary:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.cc__panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cc__panel[hidden] { display: none; }
.cc__row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1rem 1.2rem; border: 1px solid rgba(159, 176, 198, .2); border-radius: 12px;
}
.cc__row h3 { margin: 0 0 .25rem; font-size: .95rem; font-weight: 600; }
.cc__row p { margin: 0; color: var(--muted); font-size: .86rem; }
.cc__always { flex: none; font-size: .8rem; color: var(--hst-green); font-weight: 600; padding-top: .15rem; }
.cc__switch {
  flex: none; position: relative; width: 46px; height: 26px; border-radius: 999px; cursor: pointer;
  background: rgba(159, 176, 198, .3); border: 0; padding: 0; transition: background .25s ease;
}
.cc__switch span {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); transition: transform .25s ease;
}
.cc__switch[aria-checked="true"] { background: var(--signal); }
.cc__switch[aria-checked="true"] span { transform: translateX(20px); }
.cc.is-expanded .cc__inner { align-items: start; }

.linklike { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover, .footer__base a:hover { color: var(--paper); }
.footer__legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }

@media (max-width: 860px) {
  .cc__inner { grid-template-columns: 1fr; }
  .cc__actions { justify-content: stretch; }
  .cc__btn { flex: 1 1 auto; }
  .cc__panel { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cc { transition: none; } }
