@font-face {
  font-family: Alata;
  src: url(/static/fonts/Alata-Regular.ttf) format("truetype");
  font-display: swap;
}

:root {
  --surface: color-mix(in srgb, var(--text) 7%, var(--bg));
  --border: color-mix(in srgb, var(--text) 22%, var(--bg));
  --muted: color-mix(in srgb, var(--text) 70%, var(--bg));
  /* Every section pads with this, so colored bands stay full width and their content stops here. */
  --content-max: 82rem;
  --gutter: max(clamp(16px, 5vw, 64px), env(safe-area-inset-left), env(safe-area-inset-right), calc((100vw - var(--content-max)) / 2));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1, h2, h3, .disciplines, .week strong {
  font-family: Alata, system-ui, sans-serif;
  font-weight: 400;
}
h2 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; margin: 0 0 2rem; }
h3 { font-size: 1.375rem; line-height: 1.2; margin: 0 0 .5rem; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: var(--gutter); top: .5rem; padding: .5rem 1rem; background: var(--primary); color: var(--on-primary); z-index: 1; }

.top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  min-height: 5rem;
  padding: 1rem var(--gutter);
  background: var(--bg);
}
.brand { display: block; flex: none; line-height: 0; }
.brand img { display: block; width: auto; height: 44px; }
.brand-on-light img { filter: invert(1); }
.top nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.top nav a { flex: none; text-decoration: none; font-size: .9375rem; }
.top nav a:hover { color: var(--primary); }
.top .nav-cta { color: var(--primary); border-bottom: 2px solid var(--primary); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(18rem, 33vw, 31rem);
  grid-template-areas: "title logo" "body logo";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 0 clamp(1rem, 3vw, 3rem);
  padding: clamp(1rem, 2vw, 2rem) var(--gutter) clamp(2rem, 4vw, 3.5rem);
}
.hero-title { grid-area: title; }
.hero-body { grid-area: body; }
.eyebrow { color: var(--muted); font-size: .9375rem; margin-bottom: 1.25rem; }
.hero-logo { grid-area: logo; align-self: center; width: 100%; color: var(--text); }
.logo-draw { display: block; width: 100%; height: auto; }
h1 {
  font-size: clamp(3rem, 7.5vw, 7rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0;
}
h1 span, h1 em { display: block; }
h1 em { font-style: normal; color: var(--primary); }
.socials { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 1.5rem 0 1.5rem; padding: 0; }
.socials a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--border); border-radius: 50%; }
.socials svg { display: block; width: 1.25rem; height: 1.25rem; }
.lead { font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.5; max-width: 38rem; }
.hero-body > .lead:first-child { margin-top: 1.5rem; }

.next-event { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); align-items: center; gap: 1rem clamp(1.5rem, 5vw, 5rem); padding: 1.25rem var(--gutter); background: var(--surface); border-top: 1px solid var(--border); }
.next-event-main { min-width: 0; }
.next-event > .later-events { grid-column: 1 / -1; }
.next-event-label { color: var(--primary); font-size: .9375rem; margin-bottom: .75rem; }
.next-event-head { display: flex; align-items: center; gap: .875rem; }
.next-event-head img { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.next-event-head > div { min-width: 0; }
.next-event h2 { font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.15; margin: 0 0 .25rem; overflow-wrap: anywhere; }
.next-event h2 a:hover { color: var(--primary); }
.next-event-head p { color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.countdown { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .5rem; }
.countdown-unit { padding: .625rem .25rem; text-align: center; background: var(--bg); border-radius: 4px; }
.countdown-unit[hidden] { display: none; }
.countdown strong { display: block; font: 400 clamp(1.5rem, 3vw, 2.25rem)/1.1 Alata, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--primary); }
.countdown span { font-size: .8125rem; color: var(--muted); }
.countdown-today { font: 400 1.75rem/1.2 Alata, system-ui, sans-serif; color: var(--primary); }
.later-events { list-style: none; margin: 0; padding: .75rem 0 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .9375rem; }
.later-events li + li { margin-top: .25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }

.button {
  display: inline-block;
  padding: .875rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.button:hover { border-color: var(--primary); color: var(--primary); }
.button-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.button-primary:hover { background: transparent; }

.disciplines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  background: var(--primary);
  color: var(--on-primary);
  font-size: clamp(1.25rem, 4vw, 2.5rem);
}
.disciplines li { position: relative; isolation: isolate; overflow: hidden; padding: 1rem clamp(.75rem, 4vw, 4rem); text-align: center; }
.disciplines li + li { border-left: 1px solid color-mix(in srgb, var(--on-primary) 30%, var(--primary)); }
.discipline { display: inline-block; transform: skewX(-10deg); }
.discipline > span { display: inline-block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.section { padding: clamp(3.5rem, 8vw, 7rem) var(--gutter); border-bottom: 1px solid var(--border); }
.section-note { color: var(--muted); margin: -1rem 0 2rem; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.services article { border-top: 2px solid var(--primary); padding-top: 1rem; }
.services p, .steps p, .goals li { color: var(--muted); }
.index { display: block; color: var(--primary); font-size: 1.125rem; font-weight: 600; margin-bottom: 2rem; }

.method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 1.25rem 0 1.25rem 3.5rem; border-top: 1px solid var(--border); position: relative; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; font: 600 1.75rem/1 system-ui, sans-serif; color: var(--primary); }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; list-style: none; margin: 0; padding: 0; background: var(--border); border: 1px solid var(--border); }
.week li { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1rem; background: var(--bg); min-height: 15rem; }
.week-day { font-size: .8125rem; color: var(--muted); }
.week strong { font-size: 1.25rem; line-height: 1.15; color: var(--primary); overflow-wrap: anywhere; }
.week-detail { font-size: .9375rem; line-height: 1.45; }

.goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.goal-span { color: var(--primary); margin-bottom: 1rem; }
.goals ul { margin: 0; padding-left: 1.125rem; }
.goals li + li { margin-top: .5rem; }

.about { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: clamp(2.5rem, 7vw, 7rem); }
.about-body { min-width: 0; }
.about .lead { max-width: 48rem; font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.about-text { max-width: 44rem; margin-top: 1.25rem; color: var(--muted); }

/* Three layers at different distances. landing.js moves them with --shift (scroll, -1 to 1)
   and --tilt-x / --tilt-y (mouse, -1 to 1); without it they just stay offset. */
.about-photo {
  --offset: clamp(.625rem, 1.6vw, 1.25rem);
  position: relative;
  isolation: isolate;
  max-width: 26rem;
  margin: var(--offset);
  perspective: 1000px;
}
.about-photo::before, .about-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 8px; transition: transform .25s ease-out; }
.about-photo::before {
  background: var(--primary);
  transform: translate(calc(var(--offset) + var(--tilt-x, 0) * -10px), calc(var(--offset) + var(--shift, 0) * 16px + var(--tilt-y, 0) * -10px));
}
.about-photo::after {
  border: 1px solid var(--border);
  transform: translate(calc(var(--offset) * -1 + var(--tilt-x, 0) * -5px), calc(var(--offset) * -1 + var(--shift, 0) * -16px + var(--tilt-y, 0) * -5px));
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 1.5rem 3rem color-mix(in srgb, #000 70%, transparent);
  transform: translateY(calc(var(--shift, 0) * -6px)) rotateX(calc(var(--tilt-y, 0) * -5deg)) rotateY(calc(var(--tilt-x, 0) * 5deg));
  transition: transform .25s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .about-photo::before, .about-photo::after, .about-photo img { transition: none; }
}

.results-title { margin-top: 2.5rem; }
.results { list-style: none; margin: 1rem 0 0; padding: 0; }
.results li { display: flex; align-items: center; gap: .875rem; padding: .75rem 0; border-top: 1px solid var(--border); }
.results img, .results-placeholder { flex: none; width: 48px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--surface); }
.results-info { flex: 1; min-width: 0; }
.results-info time, .results-info small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.results-info strong { display: block; font-weight: 600; font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; }
.results-info a:hover { color: var(--primary); }
.results-time { flex: none; font: 400 1.125rem/1 Alata, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--primary); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .75rem; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: var(--surface); }
@media (max-width: 600px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
}

.contact { padding: clamp(3.5rem, 8vw, 7rem) var(--gutter); background: var(--primary); color: var(--on-primary); }
.contact h2 { font-size: clamp(2.5rem, 8vw, 6rem); max-width: 12ch; margin-bottom: 1.5rem; }
.contact p { max-width: 38rem; font-size: 1.125rem; }
.contact :focus-visible { outline-color: var(--on-primary); }
.button-contact { margin-top: 2rem; background: var(--on-primary); border-color: var(--on-primary); color: var(--primary); font-weight: 600; }
.button-contact:hover { background: transparent; border-color: var(--on-primary); color: var(--on-primary); }
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin-top: 2.5rem; }
.contact-links a { font: 600 1.75rem/1.2 system-ui, sans-serif; text-decoration: none; border-bottom: 2px solid var(--on-primary); padding-bottom: .25rem; overflow-wrap: anywhere; }
.contact-links a:hover { opacity: .7; }
.contact-links small { display: block; font-size: .875rem; font-weight: 400; line-height: 1.5; }

.bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1.5rem var(--gutter); font-size: .875rem; color: var(--muted); }
.bottom nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.bottom a { display: inline-block; padding-block: .25rem; text-underline-offset: .2em; }
.bottom a:hover { color: var(--primary); }

.legal { padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.legal > * { max-width: 46rem; }
.legal h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); margin-bottom: .5rem; max-width: none; }
.legal h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); margin: 2.5rem 0 .75rem; }
.legal p, .legal ul, .legal dl, .legal .legal-scroll { margin: 0 0 1rem; }
.legal li + li { margin-top: .375rem; }
.legal-updated { color: var(--muted); font-size: .875rem; }
.legal-details { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); gap: .375rem 1rem; }
.legal-details dt { color: var(--muted); }
.legal-details dd { margin: 0; overflow-wrap: anywhere; }
.legal-pending { color: var(--primary); font-weight: 600; }
.legal-scroll { overflow-x: auto; }
.legal table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: .9375rem; }
.legal th, .legal td { padding: .5rem .75rem .5rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.legal th { font-weight: 600; }
.top-back { margin-left: auto; font-size: .9375rem; text-underline-offset: .2em; }
.top-back:hover { color: var(--primary); }

.cookie-notice { position: fixed; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: max(1rem, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 .75rem 2rem color-mix(in srgb, #000 55%, transparent); font-size: .9375rem; line-height: 1.45; animation: rise-in .4s ease-out both; }
.cookie-notice[hidden] { display: none; }
.cookie-notice p { flex: 1 1 18rem; }
.cookie-notice .button { flex: none; padding: .5rem 1.25rem; cursor: pointer; font: inherit; background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

@media (max-width: 1000px) {
  .week { grid-template-columns: minmax(0, 1fr); }
  .week li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .125rem 1rem; min-height: 0; padding: 1rem; }
  .week-day { grid-row: span 2; padding-top: .25rem; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 5.5rem; }
  body { font-size: 16px; }
  /* The menu gets a row of its own and slides sideways, fading out where more of it follows. */
  .top { flex-wrap: wrap; gap: 0; min-height: 0; padding-block: .25rem 0; }
  .brand { padding-block: .5rem; }
  .brand img { height: 26px; }
  .top nav { flex: 0 0 100%; gap: 1.25rem; margin-left: 0; padding-right: 2rem; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  h1 { font-size: clamp(2.25rem, 12vw, 4rem); }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "logo" "title" "body"; grid-template-rows: none; }
  .hero-logo { width: min(72vw, 19rem); justify-self: center; margin-bottom: 1rem; }
  .next-event { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-photo { width: min(100% - 2 * var(--offset), 22rem); margin-inline: auto; }
  .services, .method, .goals { grid-template-columns: minmax(0, 1fr); }
  .contact-links a { font-size: 1.5rem; }
}

/* Movement. Every effect ends with the content where it would be anyway, so the page reads
   the same when an animation doesn't run. The block at the end turns them all off. */

.scroll-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* The hero arrives at speed. */
@keyframes rush-in { from { opacity: 0; transform: translateX(-2.5rem) skewX(-14deg); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(1.25rem); } }
.eyebrow { animation: rise-in .5s ease-out both; }
h1 span, h1 em { animation: rush-in .7s cubic-bezier(.16, 1, .3, 1) both; transform-origin: left bottom; }
h1 span:nth-child(1) { animation-delay: .05s; }
h1 span:nth-child(2) { animation-delay: .17s; }
h1 em { animation-delay: .29s; }
.hero-body > * { animation: rise-in .6s ease-out both; }
.hero-body > :nth-child(1) { animation-delay: .4s; }
.hero-body > :nth-child(2) { animation-delay: .5s; }
.hero-body > :nth-child(3) { animation-delay: .6s; }

/* Lines streaking across behind the hero. */
.speed-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: skewY(-4deg); }
.speed-lines span { position: absolute; left: 0; width: 34%; height: 1px; background: linear-gradient(90deg, transparent, var(--primary)); opacity: .55; transform: translateX(-110%); animation: streak 5s linear infinite; }
.speed-lines span:nth-child(1) { top: 16%; animation-duration: 4.4s; animation-delay: .3s; }
.speed-lines span:nth-child(2) { top: 37%; width: 22%; animation-duration: 3.1s; animation-delay: 1.9s; }
.speed-lines span:nth-child(3) { top: 58%; width: 46%; height: 2px; animation-duration: 5.6s; animation-delay: .9s; }
.speed-lines span:nth-child(4) { top: 74%; width: 18%; animation-duration: 2.7s; animation-delay: 3.1s; }
.speed-lines span:nth-child(5) { top: 91%; width: 30%; animation-duration: 3.9s; animation-delay: 2.3s; }
@keyframes streak { to { transform: translateX(400%); } }

/* Pointing at a discipline runs a dark block in behind its word, which inverts, and the word
   acts out the discipline once. landing.js adds .is-acting for that act and takes it off when
   it ends, so leaving early doesn't cut it short. On touch screens a tap does the same, and
   the color goes back with the act, since a touch has no moment of leaving. */
.disciplines li { cursor: default; }
.disciplines li::before { content: ""; position: absolute; inset: 0 -1.5rem; z-index: -1; background: var(--on-primary); transform: translateX(-110%) skewX(-16deg); transition: transform .35s cubic-bezier(.65, 0, .35, 1); }
.discipline { transition: color .25s; }
.disciplines li.is-acting::before { transform: skewX(-16deg); }
.disciplines li.is-acting .discipline { color: var(--primary); }
@media (hover: hover) {
  .disciplines li:hover::before { transform: skewX(-16deg); }
  .disciplines li:hover .discipline { color: var(--primary); }
}

/* Fuerza flexes: the middle letters swell most and push the outer ones aside, the stroke
   thickens, and it pumps twice before letting go. */
.is-acting .discipline-strength { animation: word-thicken 1.8s ease-in-out; }
.is-acting .discipline-strength > span { animation: word-flex 1.8s ease-in-out; }
.discipline-strength > span { --swell: .08; --push: 0em; transform-origin: 50% 80%; }
.discipline-strength > :nth-child(1) { --swell: .06; --push: -.2em; }
.discipline-strength > :nth-child(2) { --swell: .2; --push: -.12em; }
.discipline-strength > :nth-child(3) { --swell: .36; --push: -.04em; }
.discipline-strength > :nth-child(4) { --swell: .36; --push: .04em; }
.discipline-strength > :nth-child(5) { --swell: .2; --push: .12em; }
.discipline-strength > :nth-child(6) { --swell: .06; --push: .2em; }
@keyframes word-flex {
  0% { transform: none; }
  21% { transform: translateX(var(--push)) scale(calc(1 + var(--swell))); }
  33% { transform: translateX(calc(var(--push) * .55)) scale(calc(1 + var(--swell) * .55)); }
  52% { transform: translateX(calc(var(--push) * 1.1)) scale(calc(1 + var(--swell) * 1.1)); }
  64% { transform: translateX(calc(var(--push) * .7)) scale(calc(1 + var(--swell) * .7)); }
  79% { transform: translateX(var(--push)) scale(calc(1 + var(--swell))); }
  100% { transform: none; }
}
@keyframes word-thicken {
  0% { -webkit-text-stroke-width: 0; }
  21% { -webkit-text-stroke-width: .03em; }
  33% { -webkit-text-stroke-width: .012em; }
  52% { -webkit-text-stroke-width: .04em; }
  64% { -webkit-text-stroke-width: .02em; }
  79% { -webkit-text-stroke-width: .03em; }
  100% { -webkit-text-stroke-width: 0; }
}

/* Running bolts out to the right and comes back from the left in strides, leaning into it
   with a trail behind, then brakes. 30vw clears a cell: each is a third of the page wide. */
.is-acting .discipline-run { animation: word-run 1.65s linear; }
@keyframes word-run {
  0% { transform: none; text-shadow: none; }
  13.6% { transform: translateX(30vw) skewX(-20deg); text-shadow: none; }
  13.7% { transform: translateX(-30vw) skewX(-24deg); text-shadow: -.3em 0 0 color-mix(in srgb, currentColor 35%, transparent), -.6em 0 0 color-mix(in srgb, currentColor 15%, transparent); }
  32% { transform: translate(-17vw, -.14em) skewX(-24deg); }
  45% { transform: translate(-11vw, 0) skewX(-24deg); }
  59% { transform: translate(-6vw, -.14em) skewX(-24deg); }
  73% { transform: translate(-2vw, 0) skewX(-24deg); text-shadow: -.3em 0 0 color-mix(in srgb, currentColor 35%, transparent), -.6em 0 0 color-mix(in srgb, currentColor 15%, transparent); }
  86% { transform: translateX(.08em) skewX(10deg); text-shadow: 0 0 0 transparent, 0 0 0 transparent; }
  100% { transform: none; text-shadow: none; }
}

/* HYROX splits off the cell, then HY drops in from above and ROX rises from below to meet in
   the middle, overshooting a little as they lock. 2.3em clears a cell at any size. */
.discipline-hyrox > :nth-child(1) { --from: -2.3em; }
.discipline-hyrox > :nth-child(2) { --from: 2.3em; }
.is-acting .discipline-hyrox > span { animation: word-meet 1.1s cubic-bezier(.3, 0, .2, 1); }
@keyframes word-meet {
  0% { transform: none; }
  17%, 27% { transform: translateY(var(--from)); }
  67% { transform: translateY(calc(var(--from) * -.05)); }
  83% { transform: translateY(calc(var(--from) * .02)); }
  100% { transform: none; }
}

/* A light passing over the main button, and everything that can be pressed answers the pointer. */
.button { position: relative; overflow: hidden; transition: background-color .15s, color .15s, border-color .15s, transform .2s cubic-bezier(.16, 1, .3, 1); }
.button:hover { transform: translateY(-3px) skewX(-4deg); }
.button:active { transform: translateY(0) scale(.98); }
.button-primary::after, .button-contact::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, #fff 55%, transparent) 50%, transparent 65%); transform: translateX(-120%); animation: shine 4.5s 1.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
.socials a { transition: transform .25s cubic-bezier(.16, 1, .3, 1), color .15s, border-color .15s, background-color .15s; }
.socials a:hover { color: var(--on-primary); background: var(--primary); border-color: var(--primary); transform: translateY(-4px) rotate(-8deg); }
.top nav a:not(.nav-cta) { position: relative; }
.top nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.25rem; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.top nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.top nav { padding-bottom: .375rem; padding-top: .375rem; }

.services article { position: relative; border-top: 2px solid var(--border); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.services article::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--primary); transform-origin: left; transition: transform .6s .15s cubic-bezier(.16, 1, .3, 1); }
.services article.reveal::before { transform: scaleX(0); }
.services article:hover { transform: translateY(-6px); }
.index { transition: transform .3s cubic-bezier(.16, 1, .3, 1); width: fit-content; }
.services article:hover .index { transform: translateX(.5rem) skewX(-12deg); }
.steps li { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.steps li:hover { transform: translateX(.5rem); }
.week li { transition: background-color .2s, transform .25s cubic-bezier(.16, 1, .3, 1); }
.week li:hover { background: var(--surface); transform: translateY(-4px); }
.goals article { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.goals article:hover { transform: translateY(-6px); }
.results li { transition: transform .25s cubic-bezier(.16, 1, .3, 1), background-color .2s; }
.results li:hover { transform: translateX(.5rem); }
.photo-grid > * { display: block; overflow: hidden; border-radius: 6px; }
.photo-grid img { transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.photo-grid > img:hover { transform: scale(1.02) rotate(-.5deg); }

/* A stroke under each section title, drawn as it arrives. */
.section h2::after { content: ""; display: block; width: 3.5rem; height: .3rem; margin-top: .75rem; background: var(--primary); transform: skewX(-24deg); transform-origin: left; transition: transform .7s .2s cubic-bezier(.16, 1, .3, 1); }
.section h2.reveal::after { transform: skewX(-24deg) scaleX(0); }

/* landing.js only marks what is still below the fold, so nothing ever vanishes in front of the reader. */
.reveal { opacity: 0; transform: translateY(2rem); }
.reveal-run { opacity: 0; transform: translateX(-3rem) skewX(-10deg); }
.reveal-in { transition: opacity .6s ease-out, transform .75s cubic-bezier(.16, 1, .3, 1); }

/* Diagonal stripes running behind the contact call. */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: -4rem -8rem; z-index: -1; background: repeating-linear-gradient(115deg, transparent 0 3.5rem, color-mix(in srgb, var(--on-primary) 7%, transparent) 3.5rem 7rem); animation: stripes 2.4s linear infinite; }
@keyframes stripes { to { transform: translateX(7.72rem); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .speed-lines { display: none; }
  .button-primary::after, .button-contact::after { display: none; }
  .button:hover, .socials a:hover, .services article:hover, .steps li:hover, .week li:hover,
  .goals article:hover, .results li:hover, .photo-grid > img:hover { transform: none; }
}

@media print {
  .scroll-progress, .speed-lines { display: none; }
  .reveal, .reveal-run { opacity: 1; transform: none; }
}
