/* Berkay Aydın, motosiklet sürüş eğitimi
   Mobile-first: everything is a single column until 720px; the hero video fills the first screen
   behind the text on phones and moves into a framed card on desktop. */

:root {
  --ink: #0F1E36;
  --asphalt: #2B2F37;
  --asphalt-edge: #1E2228;
  --shoulder: #E4E9F0;
  --road-line: #F6F7F9;
  --ink-2: #3D4B60;
  --muted: #687790;
  --bg: #FFFFFF;
  --surface: #F3F5F9;
  --line: #DCE2EB;
  --accent: #2563EB;
  --accent-deep: #1D4ED8;
  --accent-soft: #E7EEFD;
  --wa: #25D366;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 36px -20px rgba(15, 30, 54, .28);
  --header-h: 64px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.12; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 9vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
p { margin: 0; }
.lead { font-size: 1.06rem; color: var(--ink-2); max-width: 36em; }
.eyebrow {
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: .7rem;
}
.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.section { padding-block: clamp(64px, 12vw, 112px); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 6vw, 48px); }
.section-head .lead { margin-top: .9rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 700 .95rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1B3254; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { min-height: 52px; padding: .85rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #E8EEF8; }
.btn-wa:hover { background: #1EBE5A; }

/* Brand */
.brand-mark {
  position: relative; flex: none;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font: 800 1.05rem/1 var(--font-display); letter-spacing: -.04em;
  padding-bottom: 4px;
}
.brand-mark::after {
  content: ""; position: absolute; left: 9px; right: 15px; bottom: 7px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0 70%, transparent 70% 78%, rgba(37, 99, 235, .55) 78%);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.site-header.tucked { transform: translate3d(0, -100%, 0); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; }
.brand-text small { font-size: .74rem; color: var(--muted); font-weight: 600; }
.nav { display: none; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); }
.menu-btn { appearance: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.menu-icon { width: 18px; display: grid; gap: 4px; }
.menu-icon i { height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-open .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-icon i:nth-child(2) { opacity: 0; }
.nav-open .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-open .nav {
  display: flex; flex-direction: column;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter-r) 20px var(--gutter-l);
  box-shadow: 0 20px 40px -24px rgba(15, 30, 54, .4);
}
.nav-open .nav a:not(.btn) { padding: .85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--surface); }
.nav-open .nav .nav-cta { margin-top: 14px; }

/* Hero load-in: headline words rise, the rest follows */
.js .hero-content > :not(h1) { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .9s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.js .hero-content > .lead { transition-delay: .35s; }
.js .hero-content > .cta-row { transition-delay: .45s; }
.js .hero.in .hero-content > :not(h1) { opacity: 1; transform: none; }

/* Hero (phone/tablet): the lesson footage fills the first screen, the words sit on it at the bottom.
   On desktop (below) it turns into a two-column layout with the video as a card. */
.hero {
  --hero-ink: #070D18;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--header-h)); display: grid; align-items: end;
  background: var(--hero-ink); color: #fff;
}
.hero-grid { display: grid; gap: 28px; padding-block: 40px 30px; }
.hero-content { position: relative; z-index: 2; display: grid; gap: 1rem; }
.hero .eyebrow { margin-bottom: -.2rem; color: #A9CAFF; text-shadow: 0 1px 14px rgba(7, 13, 24, .5); }
.hero h1 { font-size: clamp(2.5rem, 11vw, 3.8rem); letter-spacing: -.035em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: #6FA6FF; }
.hero .lead { font-size: clamp(1.05rem, 2.4vw, 1.18rem); color: rgba(255, 255, 255, .82); }
.hero .btn-primary { background: #fff; color: var(--ink); }
.hero .btn-primary:hover { background: #E8EEF8; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(7, 13, 24, .45); }
.hero .btn-ghost:hover { border-color: #fff; }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: .3rem; }
.cta-row .btn { padding-inline: .9rem; }
.i-wa { flex: none; }
.hero-media { position: absolute; inset: 0; z-index: 1; margin: 0; background: var(--hero-ink) url("assets/hero-poster.webp") center / cover no-repeat; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  /* measured from the bottom, where the words sit, so it holds on short and tall phones alike */
  background: linear-gradient(0deg, rgba(7, 13, 24, .94) 0, rgba(7, 13, 24, .84) 300px, rgba(7, 13, 24, .62) 470px, rgba(7, 13, 24, .12) 640px, rgba(7, 13, 24, .1) 100%);
}
/* <picture class="clip">: the still, with a muted video (or, if the phone refuses it, a canvas of frames) laid over it */
.hero-media .clip { position: absolute; inset: 0; display: block; }
.hero-media .clip > img, .hero-media .clip > video, .hero-media .clip > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-frames { opacity: 0; transition: opacity .4s ease; }
.clip-frames.on { opacity: 1; }

/* Programs: a winding road runs down the section, cards sit on alternating sides, the bike follows the road */
.programs { padding-bottom: 0; overflow-x: clip; }
.programs .section-head { margin-bottom: 24px; }
.road-stage { position: relative; isolation: isolate; }
.road-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.road-shoulder { fill: none; stroke: var(--shoulder); }
.road-edge { fill: none; stroke: var(--road-line); }
.road-asphalt { fill: none; stroke: var(--asphalt); }
.road-center { fill: none; stroke: var(--road-line); stroke-dasharray: 22 18; }
/* The bike lives on the page like the road does, so it scrolls with it natively. It is moved only by
   short time-based animations that the browser's compositor plays (smooth on any phone, any power
   mode); scrolling only tells it how far to ride. It never rides back. */
.bike {
  position: absolute; left: 0; top: 0; z-index: 3; width: 48px; pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform;
  visibility: hidden;
}
.bike.on { visibility: visible; }
.bike svg { width: 100%; height: auto; overflow: visible; }
.program-list { position: relative; z-index: 2; padding-top: 48px; }
.step { min-height: 72svh; display: flex; align-items: center; padding-block: 5svh; }
.step .program { width: 76%; }
.step[data-side="left"] .program { margin-right: auto; }
.step[data-side="right"] .program { margin-left: auto; }
.program {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: grid;
}
.program-media { aspect-ratio: 4 / 3; background: var(--surface); overflow: hidden; }
.program-media img { width: 100%; height: 100%; object-fit: cover; }
.program-body { padding: 16px 16px 18px; display: grid; gap: .55rem; align-content: start; }
.program-no { font-family: var(--font-display); font-weight: 800; font-size: .8rem; color: var(--accent); letter-spacing: .04em; }
.program h3 { font-size: 1.2rem; }
.program-body > p { color: var(--ink-2); font-size: .94rem; }
.program ul { display: grid; gap: 5px; font-size: .9rem; margin-top: .1rem; }
.program ul li { padding-left: 22px; position: relative; }
.program ul li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 11px; height: 6px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
.program-for { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .1rem; }
.program-for strong { color: var(--ink); }
.finish { position: relative; z-index: 2; padding-top: 8svh; padding-bottom: clamp(64px, 12vw, 112px); display: grid; justify-items: center; }
.finish-marker { height: 24px; width: 1px; }
.finish-card {
  margin-top: 48px; max-width: 480px; text-align: center;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px 22px;
  display: grid; gap: 1rem; justify-items: center;
  box-shadow: 0 24px 50px -24px rgba(15, 30, 54, .6);
}
.finish-card p { font: 700 1.1rem/1.4 var(--font-display); }

/* Gallery: equal tiles in a plain grid (2 columns on phones, 3 above 720px) */
.gallery-sec { background: var(--surface); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; overflow: hidden; border-radius: 14px; background: var(--ink); aspect-ratio: 4 / 5; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.tile::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(10, 21, 40, 0), rgba(10, 21, 40, .78)); pointer-events: none; }
.tile-cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1;
  color: #fff; font: 700 .82rem/1.25 var(--font-body); text-wrap: balance;
}
.ig-more { display: inline-block; margin-top: 20px; font-weight: 700; color: var(--accent-deep); text-decoration: none; }
.ig-more span { margin-left: 6px; transition: transform .3s ease; }
.ig-more:hover span { transform: translateX(4px); }

/* About */
.about-grid { display: grid; gap: 28px; }
.about-grid > * { min-width: 0; }
.about-media-wrap { position: relative; }
.about-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about-text { display: grid; gap: 1rem; align-content: center; }
.about-text .eyebrow { margin-bottom: -.3rem; }
.about-text > p { color: var(--ink-2); }
.creds { display: grid; gap: 8px; margin-top: .3rem; }
.creds li {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px;
  font-weight: 700; font-size: .94rem;
}
.creds li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Gear */
.gear { background: var(--surface); }
.gear-grid { display: grid; gap: 28px; }
.gear-grid > * { min-width: 0; }
.gear-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1000 / 1247; max-width: 520px; background: #fff; }
.gear-media img { width: 100%; height: 100%; object-fit: cover; }
.gear-text .section-head { margin-bottom: 20px; }
.gear-list { display: grid; gap: 10px; }
.gear-list li { background: #fff; border-radius: var(--radius-sm); padding: 16px 18px; display: grid; gap: .3rem; border-left: 4px solid var(--accent); }
.gear-list h3 { font-size: 1.05rem; }
.gear-list p { font-size: .94rem; color: var(--ink-2); }
.gear-note { margin-top: 14px; font-size: .9rem; color: var(--muted); font-weight: 600; }

/* References: horizontal swipe on phones */
.refs { background: var(--ink); color: #fff; }
.refs .eyebrow { color: #93B8FF; }
.refs .lead { color: rgba(255, 255, 255, .7); }
/* Reviews: a row you move by hand (swipe, drag, trackpad or the arrows); it snaps card by card */
.refs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.refs-head .section-head { margin-bottom: 0; }
.ref-nav { display: flex; gap: 8px; flex: none; margin-bottom: 4px; }
.ref-nav button {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
  transition: background .2s ease, opacity .2s ease;
}
.ref-nav button:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }
.ref-nav button:disabled { opacity: .3; cursor: default; }
.ref-list {
  position: relative; margin-top: 24px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 12px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px var(--gutter-r) 16px var(--gutter-l); scroll-padding-inline: var(--gutter-l);
  scrollbar-width: none; cursor: grab;
}
.ref-list:focus-visible { outline: 2px solid #93B8FF; outline-offset: -2px; }
.ref-list.dragging { cursor: grabbing; scroll-snap-type: none; -webkit-user-select: none; user-select: none; }
.ref-list::-webkit-scrollbar { display: none; }
.ref {
  scroll-snap-align: start;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius);
  padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 16px;
}
.ref blockquote { margin: 0; font-size: .98rem; line-height: 1.6; color: rgba(255, 255, 255, .92); flex: 1; }
.ref blockquote::before { content: "“"; display: block; font: 800 2.6rem/0.7 var(--font-display); color: #60A5FA; margin-bottom: 6px; }
.ref footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; }
.ref footer strong { font-size: .9rem; }
.ref footer span { font-size: .75rem; color: #BFD4FF; font-weight: 700; background: rgba(96, 165, 250, .15); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }

/* FAQ */
.faq-grid { display: grid; gap: 8px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid transparent; border-radius: var(--radius-sm); transition: border-color .2s ease, background-color .2s ease; }
.faq-item[open] { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-body { padding: 0 18px 18px; color: var(--ink-2); font-size: .96rem; }
.faq-body p { max-width: 60ch; }

/* Booking → WhatsApp composer */
.booking { background: var(--surface); }
.booking-grid { display: grid; gap: 24px; }
.booking-info { display: grid; gap: .9rem; align-content: start; }
.booking-info .eyebrow { margin-bottom: -.2rem; }
.alt-contact { font-size: .94rem; color: var(--muted); }
.alt-contact a { color: var(--accent-deep); font-weight: 700; text-decoration: none; }
.composer {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px;
  display: grid; gap: 22px; box-shadow: var(--shadow);
}
.c-step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.c-step legend { padding: 0; margin-bottom: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.c-step .opt { color: var(--muted); font-weight: 500; font-family: var(--font-body); font-size: .82rem; }
.c-num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: .8rem; flex: none; }
.c-options { display: grid; gap: 8px; }
.c-options-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c-options label { position: relative; display: block; cursor: pointer; }
.c-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.c-options span {
  display: flex; align-items: center; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); font-weight: 600; font-size: .94rem; line-height: 1.3;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.c-options input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.c-options input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.c-suggest { font-size: .92rem; color: var(--muted); margin-top: 2px; }
.c-suggest strong { color: var(--accent-deep); }
.c-input {
  width: 100%; font: 500 1rem var(--font-body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
}
.c-input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.c-preview { background: #DCF8C6; border-radius: 14px 14px 14px 4px; padding: 14px 16px; display: grid; gap: 4px; }
.c-preview-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1E5E33; }
.c-preview p { white-space: pre-line; font-size: .95rem; line-height: 1.5; }
.form-fine { font-size: .84rem; color: var(--muted); text-align: center; margin-top: -8px; }

/* Footer */
.site-footer { background: #0A1528; color: rgba(255, 255, 255, .8); padding-block: 44px 96px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand .brand-mark { background: #fff; color: var(--ink); }
.footer-brand strong { font-family: var(--font-display); font-size: 1.1rem; color: #fff; display: block; }
.footer-brand p { color: rgba(255, 255, 255, .6); }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h4 { color: rgba(255, 255, 255, .5); margin-bottom: 4px; }
.footer-col a { text-decoration: none; color: rgba(255, 255, 255, .85); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .82rem; color: rgba(255, 255, 255, .5); }
.footer-bottom a { color: inherit; text-decoration: none; }

/* The only element that stays on screen while scrolling */
.wa-float {
  position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; z-index: 40;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .8);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
/* Out of the way while the hero's own buttons are on screen */
.wa-float { transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .25s ease; }
.wa-float.away { opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none; }

/* Reveal: blocks rise and sharpen, headings come up line by line, photos drift inside their frames */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i) * 40ms + 80ms); }
.in .w > span { transform: none; }
.px { overflow: hidden; }
.px img { scale: 1.12; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .px { view-timeline: --px block; }
    .px img { animation: px-drift linear both; animation-timeline: --px; animation-range: cover; }
  }
}
@keyframes px-drift { from { translate: 0 -5%; } to { translate: 0 5%; } }

/* Band: an endless strip of oversized type drifting at one calm speed (pure CSS, the scroll doesn't touch it) */
.band {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  padding-block: clamp(26px, 5vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.band::before, .band::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 10vw, 160px); z-index: 1; pointer-events: none;
}
.band::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.band::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.band-track {
  --band-gap: clamp(20px, 3vw, 40px);
  display: flex; align-items: center; gap: var(--band-gap); width: max-content;
  padding-right: var(--band-gap); /* trailing gap: half the strip is then exactly one loop */
  animation: band-drift 30s linear infinite;
}
@keyframes band-drift { to { transform: translate3d(-50%, 0, 0); } }
.band span { font: 800 clamp(3rem, 11vw, 8rem)/1 var(--font-display); letter-spacing: -.035em; white-space: nowrap; }
.band span:nth-of-type(2n) { color: transparent; -webkit-text-stroke: 1px rgba(147, 184, 255, .55); }
.band i { flex: none; width: clamp(12px, 1.6vw, 18px); height: clamp(12px, 1.6vw, 18px); border-radius: 50%; background: var(--accent); box-shadow: 0 0 24px rgba(37, 99, 235, .8); }

@media (prefers-reduced-motion: reduce) {
  .js .hero-content > *, .js .hero-media { opacity: 1 !important; transform: none !important; }
  .band-track { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .w > span { transform: none; transition: none; }
  .px img { scale: none; animation: none; }
  .hero-media { clip-path: none !important; }
  .road-svg, .bike { display: none; }
  .step { min-height: 0; padding-block: 12px; }
  .step .program { width: 100%; }
}

/* Tablet */
@media (min-width: 720px) {
  .footer-brand { grid-column: auto; }
  .step .program { width: 62%; }
  .bike { width: 58px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .tile-cap { left: 14px; right: 14px; bottom: 14px; font-size: .95rem; }
  .tile:hover img, .tile:hover video { transform: scale(1.05); }
  .gear-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .site-footer { padding-bottom: 32px; }
}

/* Desktop */
@media (min-width: 960px) {
  :root { --header-h: 72px; }
  .nav { display: flex; align-items: center; gap: 28px; }
  .menu-btn { display: none; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) auto; gap: 72px; align-items: center;
    padding-block: 40px;
  }
  .hero h1 { font-size: clamp(3.2rem, 5.4vw, 4.6rem); }
  .cta-row { display: flex; }
  .cta-row .btn { padding-inline: 1.5rem; }
  .hero { min-height: calc(100svh - var(--header-h)); align-items: center; background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); color: var(--ink); }
  .hero .eyebrow { color: var(--accent); text-shadow: none; }
  .hero h1 em { color: var(--accent); }
  .hero .lead { color: var(--ink-2); }
  .hero .btn-primary { background: var(--ink); color: #fff; }
  .hero .btn-primary:hover { background: #1B3254; }
  .hero .btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
  .hero .btn-ghost:hover { border-color: var(--ink); }
  .hero-media {
    position: relative; inset: auto; z-index: auto; margin: 0; border-radius: 28px; overflow: hidden;
    height: min(660px, calc(100svh - var(--header-h) - 80px)); width: auto; aspect-ratio: 9 / 16;
    box-shadow: 0 40px 80px -40px rgba(15, 30, 54, .55);
  }
  .hero-media::after { display: none; }
  .js .hero-media { opacity: 0; transform: translate3d(0, 18px, 0); }
  .hero-grid { perspective: 1200px; }
  .js .hero.in .hero-media { opacity: 1; transform: rotate(2deg) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: opacity .9s ease .55s, transform .6s cubic-bezier(.16, 1, .3, 1); }

  .bike { width: 68px; }
  .program-list { padding-top: 64px; }
  .step { min-height: 78svh; }
  .step .program { width: calc(50% - 92px); }
  .program-media { aspect-ratio: 16 / 10; }
  .program-body { padding: 26px 28px 28px; gap: .65rem; }
  .program h3 { font-size: 1.45rem; }
  .program-body > p, .program ul { font-size: 1rem; }
  .finish-card { padding: 34px 40px; }
  .road-center { stroke-dasharray: 30 24; }

  .about-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
  .gear-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }

  .ref-list { grid-auto-columns: 380px; gap: 16px; padding-inline: max(40px, calc(50% - 560px)); scroll-padding-inline: max(40px, calc(50% - 560px)); }

  .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }

  .booking-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
  .composer { padding: 32px; }
}
