/* ==========================================================================
   TykeSkater homepage — V2 "Bold and expressive"
   Type: Archivo (italic, condensed width axis) for display, Lato for text.
   The slanted display type and slanted photo crops echo the italic wordmark.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --blue: #006cba;          /* brand blue: white text passes AA (5.4:1) */
  --blue-deep: #00508c;     /* hover / pressed */
  --ice: #ebf5fb;           /* pale ice */
  --frost: #f7fbfe;         /* frost white page background */
  --white: #ffffff;
  --ink: #100717;           /* brand ink */
  --ink-soft: #3b4658;      /* secondary text on light, 9:1 on white */
  --line: #cfe3f2;          /* icy hairlines */
  --ghost: #bfdcf1;         /* giant decorative words on white */

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-text: "Lato", "Segoe UI", Helvetica, Arial, sans-serif;
  --stretch: 75%;

  /* Type scale */
  --fs-hero: clamp(2.75rem, 1rem + 6vw, 7.5rem);
  --fs-giant: clamp(4.5rem, 1rem + 15vw, 17rem);
  --fs-h2: clamp(2.25rem, 1.3rem + 3.6vw, 4.75rem);
  --fs-h3: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  --fs-lead: clamp(1.15rem, 1rem + 0.55vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max: 100rem;
  --header-h: 4rem;
  --header-top: 0.75rem;
  --ease-glide: cubic-bezier(0.16, 0.84, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--header-top) + 1rem);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--frost);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: var(--blue-deep); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: var(--stretch);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

main:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.on-blue :focus-visible { outline-color: var(--white); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
}
.skip-link:focus { top: 1rem; color: var(--white); outline-color: var(--ink); }

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

/* Full-bleed 12-column grid. Mobile: gutter | content | gutter.
   Desktop lines: 1 = full-start, 2..14 = content columns, 15 = full-end. */
.ice__grid,
.inline__grid {
  display: grid;
  grid-template-columns:
    [full-start] var(--gutter)
    [content-start] minmax(0, 1fr)
    [content-end] var(--gutter)
    [full-end];
}
@media (min-width: 64em) {
  .ice__grid,
  .inline__grid {
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [content-start] repeat(12, minmax(0, calc(var(--max) / 12)))
      [content-end] minmax(var(--gutter), 1fr)
      [full-end];
  }
}

/* Small uppercase label with a short "skate track" rule */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-text);
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.kicker::before {
  content: "";
  flex: none;
  width: 2.5rem;
  height: 2px;
  background: currentColor;
}
.on-blue .kicker { color: var(--white); }

/* Display-type pull line */
.pull {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-stretch: var(--stretch);
  font-size: var(--fs-h3);
  line-height: 1.05;
  color: var(--blue);
}
.on-blue .pull { color: var(--white); }

/* Giant decorative word, glides sideways on scroll (JS sets --gx) */
.bigword {
  grid-column: full;
  margin: 0;
  padding-inline: var(--gutter);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: var(--stretch);
  font-size: var(--fs-giant);
  line-height: 0.8;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ghost);
  pointer-events: none;
  user-select: none;
  position: relative;
  z-index: 2;            /* stays above the photos it overlaps */
}
.bigword span {
  display: inline-block;
  transform: translate3d(var(--gx, 0px), 0, 0);
  will-change: transform;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.95rem 1.65rem;
  border: 2px solid transparent;
  border-radius: 3px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn .icon { transition: transform 0.4s var(--ease-glide); }
.btn:hover .icon { transform: translateX(0.3rem); }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-deep); color: var(--white); }

.btn--light { background: var(--white); color: var(--blue); }
.btn--light:hover { background: var(--ice); color: var(--blue-deep); }

.btn--ghost { border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--blue); }

/* Frosted caption chip on photos */
.chip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  background: rgba(247, 251, 254, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Scroll reveal: only hidden when JS has enabled motion */
.motion [data-reveal] {
  opacity: 0;
  transform: translate3d(-2.5rem, 0, 0);
  transition: opacity 0.9s var(--ease-glide), transform 1.1s var(--ease-glide);
}
.motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Section: header
   A floating frosted-ice bar over the hero video. It turns more opaque once
   the page scrolls, hides while scrolling down and returns on scroll up
   (JS adds .is-scrolled / .is-hidden). Desktop nav from 70em.
   ========================================================================== */
.site-header {
  position: fixed;
  top: var(--header-top);
  left: 0;
  right: 0;
  z-index: 50;
  padding-inline: clamp(0.5rem, 2vw, 1.5rem);
  pointer-events: none;
  transition: transform 0.5s var(--ease-glide);
}
.site-header.is-hidden:not(.is-open):not(:focus-within) {
  transform: translate3d(0, calc(-100% - var(--header-top) - 0.5rem), 0);
}

.site-header__bar {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  width: min(100%, var(--max));
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 0 0.5rem 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
  background: rgba(247, 251, 254, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0.5rem 1.5rem -1rem rgba(0, 50, 90, 0.35);
  transition: background-color 0.35s, box-shadow 0.35s;
}
.site-header.is-scrolled .site-header__bar,
.site-header.is-open .site-header__bar {
  background: rgba(247, 251, 254, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1rem 2.5rem -1.25rem rgba(0, 50, 90, 0.45);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header__bar { background: rgba(247, 251, 254, 0.97); }
}

.site-header__logo { display: block; padding: 0.5rem 0; }
.site-header__logo img { width: clamp(9.5rem, 7.5rem + 6vw, 11.5rem); }

/* Menu toggle (only shown when JS is available) */
.site-header__toggle { display: none; }
.js .site-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s;
}
.js .site-header__toggle:hover { background: rgba(0, 108, 186, 0.08); }

.site-header__toggle-icon,
.site-header__toggle-icon::before,
.site-header__toggle-icon::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-glide), background-color 0.2s, width 0.35s var(--ease-glide);
}
.site-header__toggle-icon { position: relative; }
.site-header__toggle-icon::before,
.site-header__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.site-header__toggle-icon::before { top: -6px; }
.site-header__toggle-icon::after { top: 6px; width: 0.8rem; }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon { background: transparent; }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon::after { width: 1.25rem; transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu panel (visible without JS, collapsible with JS) */
.site-header__menu {
  flex-basis: 100%;
  padding: 0.25rem 0.75rem 1.25rem 0;
}
.js .site-header__menu { display: none; }
.js .site-header.is-open .site-header__menu {
  display: block;
  max-height: calc(100vh - var(--header-h) - 2 * var(--header-top));
  max-height: calc(100dvh - var(--header-h) - 2 * var(--header-top));
  overflow-y: auto;
  animation: v2-menu-in 0.45s var(--ease-glide) both;
}
@keyframes v2-menu-in {
  from { opacity: 0; transform: translate3d(0, -0.5rem, 0); }
  to { opacity: 1; transform: none; }
}

.site-nav__list,
.lang__list { list-style: none; margin: 0; padding: 0; }

.site-nav__list a {
  display: flex;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: var(--stretch);
  font-size: clamp(1.75rem, 1.2rem + 3vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] { color: var(--blue); }

.site-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* Language: inline list on mobile, dropdown on desktop */
.lang { position: relative; }
.lang__toggle { display: none; }
.lang__list { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.lang__list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}
.lang__list a:hover { background: var(--ice); color: var(--blue-deep); }
.lang__list a[aria-current="true"] { background: var(--ice); color: var(--blue); }

.site-header__shop {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.35rem;
  border-radius: 0.75rem;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.25s;
}
.site-header__shop:hover { background: var(--blue-deep); color: var(--white); }
.site-header__shop .icon { width: 0.95em; height: 0.95em; transition: transform 0.4s var(--ease-glide); }
.site-header__shop:hover .icon { transform: translate(2px, -2px); }

@media (min-width: 70em) {
  .site-header__bar { flex-wrap: nowrap; padding: 0 0.5rem 0 1.5rem; }
  .js .site-header__toggle { display: none; }

  .site-header__menu,
  .js .site-header__menu {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0;
  }
  .site-nav { flex: 1; display: flex; justify-content: center; }
  .site-nav__list { display: flex; align-items: center; gap: 0.15rem; }
  .site-nav__list a {
    position: relative;
    padding: 0.6rem 0.85rem;
    border: 0;
    border-radius: 0.6rem;
    font-family: var(--font-text);
    font-style: normal;
    font-weight: 700;
    font-stretch: 100%;
    font-size: 0.9375rem;
    color: var(--ink-soft);
    transition: background-color 0.2s, color 0.2s;
  }
  .site-nav__list a:hover { background: rgba(0, 108, 186, 0.08); color: var(--blue-deep); }
  .site-nav__list a[aria-current="page"] { color: var(--ink); }
  .site-nav__list a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.3rem;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
  }

  .site-header__actions { flex-wrap: nowrap; gap: 0.5rem; margin: 0; }

  .lang__toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0 0.75rem;
    border: 0;
    border-radius: 0.6rem;
    background: transparent;
    color: var(--ink-soft);
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
  }
  .lang__toggle:hover,
  .lang__toggle[aria-expanded="true"] { background: rgba(0, 108, 186, 0.08); color: var(--blue-deep); }
  .lang__chevron { width: 0.9em; height: 0.9em; transition: transform 0.3s var(--ease-glide); }
  .lang__toggle[aria-expanded="true"] .lang__chevron { transform: rotate(180deg); }

  /* with JS the list becomes a frosted dropdown */
  .js .lang__list {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 11rem;
    padding: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 0.9rem;
    background: rgba(247, 251, 254, 0.95);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 1rem 2.5rem -1rem rgba(0, 50, 90, 0.4);
  }
  .js .lang.is-open .lang__list { display: flex; animation: v2-menu-in 0.3s var(--ease-glide) both; }
  .js .lang__list a { display: flex; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header__bar { transition: none; }
  .js .site-header.is-open .site-header__menu,
  .js .lang.is-open .lang__list { animation: none; }
}

/* ==========================================================================
   Section: hero
   Full-bleed background video; on desktop the copy sits on the left, over it.
   Mobile: photo on top, a slanted frosted pane with the copy overlaps it.
   ========================================================================== */
.hero {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--frost);
}

.hero__bg {
  position: relative;
  height: min(74svh, 38rem);
  min-height: 24rem;
  overflow: hidden;
  background: var(--ice);
}
.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}

/* Video controls: pause button + "Watch the full film" pill */
.hero__controls {
  position: absolute;
  z-index: 3;
  top: calc(var(--header-top) + var(--header-h) + 0.75rem);
  left: var(--gutter);
  display: flex;
  gap: 0.5rem;
}
.hero__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(247, 251, 254, 0.88);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 0.75rem 2rem -1rem rgba(0, 40, 80, 0.45);
  transition: background-color 0.25s, color 0.25s;
}
.hero__pause:hover { background: var(--white); color: var(--blue-deep); }
.hero__pause[hidden] { display: none; }
.hero__icon-play { display: none; }
.hero__pause[aria-pressed="true"] .hero__icon-play { display: block; }
.hero__pause[aria-pressed="true"] .hero__icon-pause { display: none; }

.hero__film {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(247, 251, 254, 0.88);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 0.75rem 2rem -1rem rgba(0, 40, 80, 0.45);
  transition: background-color 0.25s, color 0.25s;
}
.hero__film .icon { color: var(--blue); transition: transform 0.4s var(--ease-glide); }
.hero__film:hover { background: var(--white); color: var(--blue-deep); }
.hero__film:hover .icon { transform: scale(1.15); }

/* Frosted pane */
.hero__pane {
  position: relative;
  z-index: 2;
  margin-top: -3rem;
  padding: clamp(3.5rem, 3rem + 3vw, 4.5rem) var(--gutter) clamp(2.5rem, 2rem + 2vw, 3.5rem);
  background: rgba(247, 251, 254, 0.84);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
  /* slanted top edge */
  clip-path: polygon(0 3rem, 100% 0, 100% 100%, 0 100%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero__pane { background: var(--frost); }
  .hero__film,
  .hero__pause { background: var(--white); }
}

.hero__content { max-width: 36rem; }

.hero__title {
  font-size: clamp(3rem, 1.3rem + 5.4vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: var(--blue);
}

.hero__lead {
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }

@media (min-width: 40em) {
  .hero__bg { height: min(68svh, 40rem); }
}

/* Desktop: photo fills the whole hero, copy sits on the left over open ice */
@media (min-width: 64em) {
  .hero {
    display: flex;
    justify-content: flex-start;
    min-height: max(40rem, 100svh);
  }
  .hero__bg {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
  }
  /* functional dark scrim on the left so the light copy stays readable;
     sits above the video and below the frost frame */
  .hero__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
      rgba(6, 18, 32, 0.72) 0%,
      rgba(6, 18, 32, 0.6) 32%,
      rgba(6, 18, 32, 0.3) 52%,
      rgba(6, 18, 32, 0) 66%);
    pointer-events: none;
  }
  /* Frost frame over the video: a frost-on-glass texture around the edges
     (hero-frost-overlay.webp, white + transparency), middle stays clear. */
  .hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url("../img/hero-frost-overlay.webp") no-repeat center / 100% 100%;
    opacity: 0.8;
    /* lighter frost along the bottom edge */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0, 0, 0, 0.45) 78%, rgba(0, 0, 0, 0.3) 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0, 0, 0, 0.45) 78%, rgba(0, 0, 0, 0.3) 100%);
  }

  .hero__controls {
    top: auto;
    bottom: clamp(1.5rem, 3vw, 2.75rem);
    left: auto;
    right: var(--gutter);
  }

  /* copy sits directly on the photo, over the open ice on the left */
  .hero__pane {
    display: flex;
    align-items: center;
    width: min(60%, 58rem);
    margin: 0;
    padding: calc(var(--header-top) + var(--header-h) + 2.5rem) 0 3rem var(--gutter);
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    clip-path: none;
  }
  /* copy sits straight on the video, light text over a dark scrim */
  .hero__content { position: relative; max-width: 48rem; margin-left: 0; }
  .hero__content .hero__lead { max-width: 32rem; }
  .hero__content .kicker,
  .hero__content .hero__title,
  .hero__content .hero__lead {
    color: var(--white);
    text-shadow: 0 1px 1.25rem rgba(4, 14, 26, 0.35);
  }
  .hero__content .kicker::before { background: #8fc8f2; }

  .hero__content .btn--outline { border-color: var(--white); color: var(--white); }
  .hero__content .btn--outline:hover { background: var(--white); color: var(--ink); }
  .hero__content :focus-visible { outline-color: var(--white); }
}

@media (min-width: 64em) and (max-height: 44em) {
  .hero__title { font-size: clamp(3rem, 1rem + 4.4vw, 5.75rem); }
  .hero__lead { margin-top: 1.1rem; font-size: 1.125rem; }
  .hero__actions { margin-top: 1.25rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__bg { animation: v2-settle 1.8s var(--ease-glide) both; }
  .hero__content { animation: v2-glide-in 1.1s 0.2s var(--ease-glide) both; }
  .hero__controls { animation: v2-fade 0.9s 0.6s var(--ease-glide) both; }
  .hero__bg::after { animation: v2-frost-in 2s 0.3s var(--ease-glide) both; }
}
@keyframes v2-frost-in {
  from { opacity: 0; }
  to { opacity: 0.8; }
}
@keyframes v2-settle {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: none; }
}
@keyframes v2-glide-in {
  from { opacity: 0; transform: translate3d(2rem, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes v2-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   Section: marquee (decorative band of words; pausable)
   ========================================================================== */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(1rem, 0.75rem + 1vw, 1.75rem) 0;
  background: var(--blue);
  color: var(--white);
}

/* frost grows up from the band's bottom edge: the full-width top edge of the
   frost image, flipped upside down */
.marquee::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(3rem, 2rem + 3vw, 5rem);
  background: url("../img/hero-frost-overlay.webp") no-repeat center top / 100% auto;
  opacity: 0.75;
  transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent);
  mask-image: linear-gradient(to bottom, #000 20%, transparent);
  pointer-events: none;
}
.marquee__viewport,
.marquee__controls { position: relative; z-index: 1; }
.marquee__viewport { overflow: hidden; }

.marquee__track {
  display: flex;
  width: max-content;
  animation: v2-marquee 75s linear infinite;
}
.marquee:hover .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding-right: 0.45em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: var(--stretch);
  font-size: clamp(2.25rem, 1.1rem + 4vw, 5.25rem);
  line-height: 1.1;
  white-space: nowrap;
}
.marquee__item::after {
  content: "/";
  font-weight: 700;
  color: #8fc3e9;
}
@supports (-webkit-text-stroke: 1px #fff) {
  .marquee__item:nth-child(even) {
    color: transparent;
    -webkit-text-stroke: 2px var(--white);
  }
}

/* pause button: hidden until it gets keyboard focus (mouse users pause by hovering);
   keeps the moving words stoppable for keyboard users (WCAG 2.2.2) */
.marquee__controls {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  z-index: 2;
  transform: translateY(-50%);
}
.marquee__toggle:not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.marquee__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
}
.marquee__toggle:hover { background: var(--white); color: var(--blue); }
.marquee__toggle[hidden] { display: none; }
.marquee__icon-play { display: none; }
.marquee__toggle[aria-pressed="true"] .marquee__icon-play { display: block; }
.marquee__toggle[aria-pressed="true"] .marquee__icon-pause { display: none; }

@keyframes v2-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { padding-bottom: clamp(1.75rem, 1rem + 2.5vw, 3.25rem); }
  .marquee__track {
    width: auto;
    animation: none;
    padding-inline: var(--gutter);
  }
  .marquee__group { flex-wrap: wrap; justify-content: center; }
  .marquee__group + .marquee__group { display: none; }
  .marquee__item {
    font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem);
    white-space: normal;
  }
  .marquee__toggle { display: none; }
}

/* ==========================================================================
   Section: video
   ========================================================================== */
.video {
  padding: clamp(4rem, 3rem + 5vw, 8rem) 0;
  background: var(--white);
}

/* centred heading block */
.video__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2rem, 1rem + 3vw, 4rem);
  text-align: center;
}
.video__head .kicker { justify-content: center; }
.video__title { font-size: var(--fs-h2); max-width: 18ch; margin-inline: auto; }
.video__note { max-width: 40ch; margin: 0; color: var(--ink-soft); }
.video__note a { font-weight: 700; }

.video__grid { display: grid; gap: 1.25rem; }

.vcard {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}
.vcard:hover { color: var(--white); }
.vcard:focus-visible { outline-offset: 4px; }
.vcard img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.9s var(--ease-glide);
}
/* functional scrim so the label stays legible */
.vcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 7, 23, 0.8) 0%, rgba(16, 7, 23, 0.35) 40%, rgba(16, 7, 23, 0) 65%);
  pointer-events: none;
}
.vcard__play {
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: 1;
  width: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  height: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  color: var(--white);
  filter: drop-shadow(0 0.4rem 1.2rem rgba(0, 0, 0, 0.5));
  transform: translate(-45%, -50%);
  transition: transform 0.6s var(--ease-glide);
}
.vcard__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: clamp(1rem, 0.75rem + 1.5vw, 2rem);
}
.vcard__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.vcard__kicker .icon { width: 1.4em; height: 1.4em; }
.vcard__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: var(--stretch);
  font-size: var(--fs-h3);
  line-height: 1;
}
.vcard:hover img { transform: scale(1.04) translateX(-1%); }
.vcard:hover .vcard__play { transform: translate(-25%, -50%); }

@media (min-width: 48em) {
  .video__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; }
  .vcard--main { grid-column: 1 / 9; align-self: start; }
  .vcard--side { grid-column: 9 / 13; align-self: start; margin-top: clamp(3rem, 8vw, 9rem); }
  .vcard--side img { aspect-ratio: 4 / 5; object-position: 70% 50%; }
  .vcard--side .vcard__title { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); }
}

/* ==========================================================================
   Section: ice-skating
   ========================================================================== */
.ice {
  overflow-x: clip;
  padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3.5rem, 2.5rem + 4vw, 7rem);
  background: var(--white);
}

.ice__collage {
  grid-column: content;
  position: relative;
  z-index: 1;
  margin-top: calc(var(--fs-giant) * -0.14);
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.ice__photo--main {
  width: 82%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ice);
}
.ice__photo--main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.ice__photo--small {
  position: absolute;
  right: 0;
  bottom: 1.5rem;
  width: 46%;
  border: 3px solid var(--white);
  background: var(--ice);
  box-shadow: 0 1.5rem 3rem -1.25rem rgba(0, 58, 102, 0.4);
}
.ice__photo--small img { width: 100%; }

.ice__text { grid-column: content; position: relative; z-index: 1; }
.ice__title { font-size: var(--fs-h2); margin-bottom: 1.5rem; }
.ice__text > p:not(.kicker):not(.pull) { max-width: 52ch; color: var(--ink-soft); }
.ice__text .btn { margin-top: 0.75rem; }

@media (min-width: 64em) {
  .ice__collage {
    grid-column: 2 / 8;
    grid-row: 2;
    margin-top: calc(var(--fs-giant) * -0.16);
    margin-bottom: 0;
    padding-right: 2rem;
  }
  .ice__photo--small { right: 0; bottom: 2rem; width: 40%; }
  /* slanted right edge, echoing the inline photo and the italic logo */
  .ice__photo--main { clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
  /* text sits beside the big word and the photo, so no empty corner */
  .ice__text {
    grid-column: 9 / 14;
    grid-row: 1 / 3;
    align-self: center;
    padding-top: 0;
  }
}

/* ==========================================================================
   Section: inline-skating
   ========================================================================== */
.inline {
  position: relative;
  overflow-x: clip;
  padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(4rem, 3rem + 5vw, 8rem);
  background: var(--blue);
  color: var(--white);
}
/* frost grows up from the bottom edge (same treatment as the blue band) */
.inline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(3rem, 2rem + 3vw, 5rem);
  background: url("../img/hero-frost-overlay.webp") no-repeat center top / 100% auto;
  opacity: 0.7;
  transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent);
  mask-image: linear-gradient(to bottom, #000 20%, transparent);
  pointer-events: none;
}
.inline__grid { position: relative; z-index: 1; }
.inline .bigword {
  text-align: right;
  color: rgba(255, 255, 255, 0.3);
}

.inline__photo {
  grid-column: full;
  position: relative;
  z-index: 1;
  margin-top: calc(var(--fs-giant) * -0.14);
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue-deep);
}
.inline__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.motion .inline__photo img {
  transform: translate3d(0, var(--py, 0px), 0) scale(1.08);
  will-change: transform;
}

.inline__text { grid-column: content; position: relative; z-index: 1; }
.inline__title { font-size: var(--fs-h2); margin-bottom: 1.5rem; }
.inline__text > p:not(.kicker):not(.pull) { max-width: 52ch; }

/* shared by ice and inline: calmer headline, accent line in the body font */
.ice__title,
.inline__title { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.5rem); margin-bottom: 1.25rem; }
.ice__text .pull,
.inline__text .pull {
  margin-bottom: 1.25rem;
  padding-left: 0.9rem;
  border-left: 3px solid currentColor;
  font-family: var(--font-text);
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.4;
}

/* who it's for: small labels above the button */
.audience {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0.75rem;
  padding: 0;
  list-style: none;
}
.audience li {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ice);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.on-blue .audience li {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.inline__text .btn { margin-top: 0.75rem; }

@media (min-width: 40em) {
  .inline__photo { aspect-ratio: 16 / 10; }
}

@media (min-width: 64em) {
  .inline__photo {
    grid-column: 9 / 15;
    grid-row: 2;
    min-height: clamp(30rem, 60vh, 44rem);
    margin: calc(var(--fs-giant) * -0.16) 0 0;
    aspect-ratio: auto;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  }
  .inline__text {
    grid-column: 2 / 8;
    grid-row: 2;
    align-self: start;
    padding: calc(var(--fs-giant) * 0.06) 2rem 0 0;
  }
}

/* ==========================================================================
   Section: choose
   ========================================================================== */
.choose {
  padding: clamp(4rem, 3rem + 5vw, 8rem) 0;
  background: var(--ice);
}

.choose__title { font-size: var(--fs-h2); max-width: 16ch; }
@media (min-width: 64em) {
  .choose__head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: end;
  }
  .choose__intro { padding-bottom: 0.35rem; }
}
.choose__title .kicker { margin-bottom: 1.25rem; }
.choose__head { display: grid; gap: 1.25rem 4rem; }
.choose__intro {
  max-width: 60ch;
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-soft);
}

.choose__grid {
  display: grid;
  gap: 1.25rem;
  margin: clamp(2rem, 1rem + 3vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

.ccard {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}
.ccard:hover { color: var(--white); }
.ccard:focus-visible { outline-offset: 4px; }
.ccard img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease-glide);
}
.choose__item:first-child .ccard img { object-position: 45% 50%; }
.choose__item:last-child .ccard img { object-position: 62% 50%; }

/* functional scrim for the title */
.ccard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 7, 23, 0.82) 0%, rgba(16, 7, 23, 0.4) 38%, rgba(16, 7, 23, 0) 62%);
  pointer-events: none;
}
.ccard__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 0.75rem + 1.75vw, 2.25rem);
}
.ccard__tag {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ccard__title {
  max-width: 11ch;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.75rem);
  line-height: 0.95;
}
.ccard__arrow {
  flex: none;
  width: clamp(2.25rem, 1.5rem + 2vw, 3.5rem);
  height: clamp(2.25rem, 1.5rem + 2vw, 3.5rem);
  transition: transform 0.5s var(--ease-glide);
}
.ccard:hover img { transform: scale(1.05) translateX(-1.5%); }
.ccard:hover .ccard__arrow { transform: translateX(0.6rem); }

@media (min-width: 48em) {
  .choose__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .ccard img { aspect-ratio: 4 / 5; }
  .choose__item:last-child { margin-top: clamp(3rem, 8vw, 8rem); }
}

/* ==========================================================================
   Section: partners (compact grid of importers and resellers by country)
   ========================================================================== */
.partners {
  padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0;
  background: var(--ice);
}

.partners__head {
  display: grid;
  gap: 1.25rem 4rem;
  margin-bottom: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
}
.partners__title { font-size: var(--fs-h2); }
.partners__sub {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-stretch: var(--stretch);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.85rem);
  line-height: 1.1;
  color: var(--blue);
}
.partners__intro { max-width: 48ch; margin-bottom: 1.25rem; color: var(--ink-soft); }
.partners__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* directory on the section background; each country is a compact row */
.partners__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--blue);
  list-style: none;
}

.pcard {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.25rem 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 108, 186, 0.18);
}

.pcard__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.6rem;
}
.pcard__head .flag { grid-row: 1 / 3; }
.pcard__country {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.05;
}
.pcard__role {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.flag {
  flex: none;
  display: block;
  width: 1.65rem;
  height: 1.1rem;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(16, 7, 23, 0.12);
}
.flag--square { width: 1.1rem; margin-inline: 0.275rem; }

/* partner links side by side */
.pcard__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pcard__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.75rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.pcard__list .icon {
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  color: var(--blue);
  transition: transform 0.4s var(--ease-glide);
}
.pcard__list a:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 0.2em; }
.pcard__list a:hover .icon { transform: translate(2px, -2px); }

@media (min-width: 52em) {
  .partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 88em) {
  .partners__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* no divider under the last row of each column */
@media (max-width: 51.99em) {
  .pcard:last-child { border-bottom: 0; }
}
@media (min-width: 52em) and (max-width: 87.99em) {
  .pcard:nth-last-child(-n + 1) { border-bottom: 0; }
  .pcard:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
@media (min-width: 88em) {
  .pcard:nth-last-child(-n + 3) { border-bottom: 0; }
}

.partners__resell {
  margin: clamp(1.25rem, 1rem + 1vw, 2rem) 0 0;
  color: var(--ink-soft);
}
.partners__resell a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}
.partners__resell .icon { width: 1em; height: 1em; transition: transform 0.4s var(--ease-glide); }
.partners__resell a:hover .icon { transform: translateX(3px); }

@media (min-width: 64em) {
  .partners__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }
}

/* ==========================================================================
   Section: footer
   ========================================================================== */
.site-footer {
  position: relative;
  padding: clamp(3rem, 2rem + 4vw, 6rem) 0 2rem;
  border-top: 4px solid var(--blue);
  background: var(--white);
  font-size: 0.9375rem;
}
/* light frost edge along the top, echoing the hero */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(4rem, 3rem + 4vw, 7rem);
  background: var(--ice) url("../img/hero-frost-overlay.webp") no-repeat center top / 100% auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent);
  mask-image: linear-gradient(to bottom, #000 25%, transparent);
  pointer-events: none;
}
.site-footer > .wrap { position: relative; }

.site-footer__grid { display: grid; gap: 2.5rem; }

.site-footer__logo { display: inline-block; margin-bottom: 1.25rem; }
.site-footer__logo img { width: clamp(12rem, 10rem + 6vw, 17rem); }
.site-footer__brand p { max-width: 36ch; color: var(--ink-soft); }
.site-footer__flag { width: 85px; height: auto; margin-top: 1.25rem; }

.site-footer__heading {
  margin: 0 0 1rem;
  font-family: var(--font-text);
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.site-footer__links { margin: 0; padding: 0; list-style: none; }
.site-footer__links a,
.site-footer address a,
.site-footer__bottom a {
  color: var(--ink);
  text-decoration-color: var(--line);
  text-decoration-thickness: 2px;
}
.site-footer__links a { display: inline-block; padding: 0.2rem 0; }
.site-footer__links a:hover,
.site-footer address a:hover,
.site-footer__bottom a:hover { color: var(--blue); text-decoration-color: currentColor; }

.site-footer address { font-style: normal; line-height: 1.8; }

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 0 -0.6rem;
  padding: 0;
  list-style: none;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--blue);
}
.social a:hover { color: var(--ink); }
.social .icon { width: 1.5rem; height: 1.5rem; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--fs-small);
}
.site-footer__bottom p { margin: 0; }

@media (min-width: 40em) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   Inner pages: shared components
   (used by every page except the homepage; page-specific extras live in
   assets/css/page-<slug>.css)
   ========================================================================== */

/* ---------- Section: page-hero (photo, dark scrim, frost, white copy) ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(26rem, 62svh, 42rem);
  padding: calc(var(--header-top) + var(--header-h) + 3rem) 0 clamp(3rem, 2rem + 3vw, 5rem);
  overflow: hidden;
  background: #0c1d2e;
  color: var(--white);
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
/* functional scrim: keeps the white copy readable */
.page-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(6, 18, 32, 0.6) 0%, rgba(6, 18, 32, 0) 60%),
    linear-gradient(90deg, rgba(6, 18, 32, 0.7) 0%, rgba(6, 18, 32, 0.5) 40%, rgba(6, 18, 32, 0.1) 70%, rgba(6, 18, 32, 0) 85%);
}
/* the homepage frost frame, lighter */
.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("../img/hero-frost-overlay.webp") no-repeat center / 100% 100%;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0, 0, 0, 0.35) 85%, rgba(0, 0, 0, 0.25) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0, 0, 0, 0.35) 85%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}
.page-hero__content { position: relative; z-index: 3; }
.page-hero .kicker { color: var(--white); }
.page-hero .kicker::before { background: #8fc8f2; }
.page-hero__title {
  max-width: 16ch;
  font-size: clamp(2.75rem, 1.2rem + 4.6vw, 6rem);
  line-height: 0.95;
  color: var(--white);
  text-shadow: 0 1px 1.25rem rgba(4, 14, 26, 0.35);
}
.page-hero__lead {
  max-width: 48ch;
  margin: 1.25rem 0 0;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--white);
  text-shadow: 0 1px 1rem rgba(4, 14, 26, 0.35);
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.page-hero .btn--outline { border-color: var(--white); color: var(--white); }
.page-hero .btn--outline:hover { background: var(--white); color: var(--ink); }
.page-hero :focus-visible { outline-color: var(--white); }

/* ---------- Generic page sections ---------- */
.page-section { padding: clamp(3.5rem, 2.5rem + 5vw, 7.5rem) 0; background: var(--white); }
.page-section--ice { background: var(--ice); }
.page-section--frost { background: var(--frost); }
.page-section--blue { background: var(--blue); color: var(--white); }
.page-section--blue .section-title,
.page-section--blue h2,
.page-section--blue h3 { color: var(--white); }

.section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head--center { text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .section-title,
.section-head--center .section-intro { margin-inline: auto; }
.section-title { font-size: var(--fs-h2); max-width: 20ch; }
.section-intro { max-width: 60ch; margin: 1.25rem 0 0; color: var(--ink-soft); }
.page-section--blue .section-intro { color: var(--white); }

/* two columns: media + text (add --reverse to swap on desktop) */
.split {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  align-items: center;
}
.split__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ice);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__text > p:not(.kicker):not(.pull) { max-width: 56ch; color: var(--ink-soft); }
.page-section--blue .split__text > p:not(.kicker) { color: var(--white); }
.split__text .section-title { margin-bottom: 1.25rem; }
.split__text .btn { margin-top: 0.75rem; }
@media (min-width: 64em) {
  .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .split--reverse .split__media { order: 2; }
  .split--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .split__media { aspect-ratio: 5 / 4; }
  /* slanted edge, as on the homepage photos */
  .split:not(.split--reverse) .split__media { clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
  .split--reverse .split__media { clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
}

/* long-form text: blog, imprint, privacy */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 2.25em;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.05;
}
.prose h3 {
  margin-top: 1.75em;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.1;
}
.prose h2 + *,
.prose h3 + * { margin-top: 0.6em; }
.prose p,
.prose li { color: var(--ink-soft); }
.prose ul,
.prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose a { font-weight: 700; }
.prose strong { color: var(--ink); }
.prose address { font-style: normal; line-height: 1.8; }
.prose figure { margin-block: 2em; }
.prose figure img { width: 100%; height: auto; }
.prose figcaption { margin-top: 0.5rem; font-size: var(--fs-small); color: var(--ink-soft); }

/* ---------- Section: cta-band (blue, frost rising from the bottom) ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) 0;
  background: var(--blue);
  color: var(--white);
}
.cta-band::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(3rem, 2rem + 3vw, 5rem);
  background: url("../img/hero-frost-overlay.webp") no-repeat center top / 100% auto;
  opacity: 0.7;
  transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent);
  mask-image: linear-gradient(to bottom, #000 20%, transparent);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem 4rem;
  align-items: end;
}
.cta-band .kicker { color: var(--white); }
.cta-band__title { font-size: var(--fs-h2); max-width: 16ch; color: var(--white); }
.cta-band__text { max-width: 48ch; margin: 1rem 0 0; color: var(--white); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-band .btn--outline { border-color: var(--white); color: var(--white); }
.cta-band .btn--outline:hover { background: var(--white); color: var(--blue); }
.cta-band :focus-visible { outline-color: var(--white); }
@media (min-width: 64em) {
  .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; }
@media (min-width: 48em) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .field--full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 0.4rem; }
.field label,
.field legend {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}
.field .req { color: #b42318; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid #a9c4d8;
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--blue);
  outline: 3px solid rgba(0, 108, 186, 0.3);
  outline-offset: 0;
}
.field fieldset { margin: 0; padding: 0; border: 0; }
.choice { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 0.4rem; color: var(--ink-soft); }
.choice input { width: 1.25rem; min-height: 0; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--blue); }
.form__note { margin: 0; font-size: var(--fs-small); color: var(--ink-soft); }

/* ==========================================================================
   Smooth scrolling (JS eases wheel scrolling; CSS handles anchors otherwise)
   ========================================================================== */
html.smooth-scroll { scroll-behavior: auto; }

/* ==========================================================================
   Section: back-to-top (floating button; the ring fills as the page scrolls)
   ========================================================================== */
.to-top {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: 0;               /* the progress ring below is the border */
  border-radius: 50%;
  background: rgba(247, 251, 254, 0.85);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  color: var(--blue-deep);
  cursor: pointer;
  box-shadow: 0 0.75rem 2rem -1rem rgba(0, 50, 90, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 1rem, 0);
  transition: opacity 0.35s, transform 0.5s var(--ease-glide), visibility 0s 0.35s, background-color 0.2s;
}
.to-top[hidden] { display: none; }
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s, transform 0.5s var(--ease-glide), visibility 0s, background-color 0.2s;
}
.to-top:hover { background: var(--white); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .to-top { background: var(--white); }
}

/* progress ring: the stroke shows how far down the page you are */
.to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.to-top__track { fill: none; stroke: rgba(0, 108, 186, 0.16); stroke-width: 3; }
.to-top__bar {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 141.37;
  stroke-dashoffset: 141.37;
}
.to-top__icon {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  transform: rotate(-90deg);
  transition: transform 0.4s var(--ease-glide);
}
.to-top:hover .to-top__icon { transform: rotate(-90deg) translateX(3px); }

/* ==========================================================================
   Reduced motion (global safety net)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
