/*
Theme Name: Joyride
Theme URI: https://joyrideindoorcycling.co.uk/
Author: DevMuse
Author URI: https://devmuse.co/
Description: A fast, video-led custom theme for Joyride Indoor Cycling.
Version: 0.2.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: joyride
*/

:root {
  --ink: #071328;
  --ink-soft: #0d1e38;
  --blue: #168bd5;
  --blue-light: #33b8f0;
  --blue-deep: #2343a7;
  --cream: #f4f1e9;
  --paper: #fcfbf7;
  --white: #ffffff;
  --muted: #667184;
  --line: rgba(7, 19, 40, 0.14);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: minmax(135px, 180px) 1fr auto;
  align-items: center;
  min-height: 68px;
  padding: 6px clamp(22px, 4vw, 72px);
  border-bottom: 1px solid rgba(7, 19, 40, 0.1);
  background: rgba(252, 251, 247, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  width: clamp(135px, 13vw, 180px);
}

.brand img {
  width: 100%;
  aspect-ratio: 8 / 3;
  object-fit: contain;
}

.brand .custom-logo {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.3vw, 40px);
}

.nav a {
  position: relative;
  padding: 10px 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-light));
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-deep));
  box-shadow: 0 10px 28px rgba(22, 139, 213, 0.24);
  color: var(--white);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 14px 38px rgba(22, 139, 213, 0.38);
  transform: translateY(-2px);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #56c8ff;
  outline-offset: 3px;
}

.button-large {
  min-height: 58px;
  padding: 16px 28px;
}

.button-small {
  min-height: 42px;
  padding: 10px 20px;
}

.menu-button {
  display: none;
}

.hero {
  display: grid;
  min-height: calc(100svh - 88px);
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(31, 94, 188, 0.24), transparent 32%),
    linear-gradient(130deg, #071328 0%, #061020 58%, #0d1e38 100%);
  color: var(--white);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 8vw, 132px) clamp(28px, 6vw, 96px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: #5acaff;
}

.hero h1,
.section h2,
.first-ride h2,
.about-section h2,
.location-section h2,
.final-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 0.92;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(4.2rem, 7.4vw, 8.4rem);
}

.hero-intro {
  max-width: 620px;
  margin: 30px 0;
  color: #d9e5f5;
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 2px solid currentColor;
  color: #5acaff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link span {
  transition: transform 200ms var(--ease);
}

.text-link:hover span {
  transform: translateY(4px);
}

.hero-facts {
  display: flex;
  gap: 0;
  margin: 54px 0 0;
}

.hero-facts div {
  padding: 0 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-facts div:first-child {
  padding-left: 0;
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts dt {
  color: #8391a6;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 650px;
  overflow: hidden;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #061020 0%, transparent 24%),
    linear-gradient(0deg, rgba(6, 16, 32, 0.8), transparent 36%);
  content: "";
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease);
}

.hero:hover .hero-visual img {
  transform: scale(1.025);
}

.hero-stamp {
  position: absolute;
  z-index: 2;
  right: clamp(22px, 4vw, 64px);
  bottom: clamp(26px, 5vw, 72px);
  display: grid;
  width: 136px;
  height: 136px;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(6, 16, 32, 0.52);
  backdrop-filter: blur(10px);
  text-align: center;
}

.hero-stamp strong {
  font-family: var(--display);
  font-size: 2.3rem;
  line-height: 1;
}

.hero-stamp span {
  max-width: 80px;
  color: #bfd2ea;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ride-rail {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  padding: 0 clamp(22px, 4vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink);
  color: var(--white);
}

.ride-rail[hidden] {
  display: none;
}

.rail-label,
.rail-ride {
  min-height: 112px;
  padding: 24px clamp(18px, 2.2vw, 36px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.rail-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2bd4a7;
  box-shadow: 0 0 0 6px rgba(43, 212, 167, 0.13);
}

.rail-ride {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.rail-ride div {
  display: flex;
  flex-direction: column;
}

.rail-ride span,
.rail-ride p {
  margin: 0;
  color: #8292a8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rail-ride strong {
  font-size: 1.4rem;
}

.rail-ride p {
  color: #44bcf3;
}

.rail-ride button {
  grid-row: 1 / 3;
  grid-column: 2;
  min-width: 68px;
  min-height: 42px;
  border: 1px solid #3abcf5;
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rail-ride > a {
  grid-row: 1 / 3;
  grid-column: 2;
  padding: 7px 14px;
  border: 1px solid #3abcf5;
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rail-ride > a:hover,
.rail-ride > a:focus-visible {
  background: var(--blue);
}

.rail-ride button:hover,
.rail-ride button:focus-visible {
  background: var(--blue);
}

.section {
  padding: clamp(88px, 10vw, 156px) clamp(22px, 7vw, 112px);
}

.section-heading {
  display: grid;
  max-width: 1320px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 60px;
  margin: 0 auto 64px;
}

.section-heading h2,
.first-ride h2,
.about-section h2,
.location-section h2,
.final-cta h2 {
  font-size: clamp(3.2rem, 5.6vw, 6.2rem);
}

.section-heading > p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.timetable {
  max-width: 1320px;
  margin: auto;
  border-top: 2px solid var(--ink);
}

.ride-card {
  display: grid;
  grid-template-columns: 54px 150px 130px minmax(210px, 1fr) minmax(150px, 0.62fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 112px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition:
    padding 220ms var(--ease),
    background 220ms var(--ease);
}

.ride-card:hover {
  padding-right: 14px;
  padding-left: 14px;
  background: var(--white);
}

.ride-number {
  color: #a1a9b5;
  font-family: var(--display);
  font-size: 1.25rem;
}

.ride-when,
.ride-name {
  display: flex;
  flex-direction: column;
}

.ride-when span,
.ride-name span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ride-time {
  font-family: var(--display);
  font-size: 2.6rem;
  letter-spacing: 0.04em;
}

.ride-name strong {
  font-size: 1.05rem;
}

.availability {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.availability span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.availability::after {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: #dce1e7;
  content: "";
}

.availability i {
  height: 4px;
  margin-top: -12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-light));
}

.first-ride {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  background: var(--blue);
  color: var(--white);
}

.first-ride-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 9vw, 150px) clamp(24px, 7vw, 112px);
  background:
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.17), transparent 36%),
    linear-gradient(135deg, #147dc3, #2246aa);
}

.first-ride-title .eyebrow {
  color: #b9eaff;
}

.first-ride-title > p:not(.eyebrow) {
  max-width: 590px;
  margin: 30px 0;
  color: #d8ecfa;
  font-size: 1.08rem;
}

.button-light {
  align-self: flex-start;
  background: var(--white);
  box-shadow: none;
  color: var(--blue-deep);
}

.first-ride-steps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: clamp(70px, 8vw, 130px) clamp(26px, 7vw, 110px);
  background: var(--ink-soft);
  list-style: none;
}

.first-ride-steps li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.first-ride-steps li:last-child {
  border: 0;
}

.first-ride-steps > li > span {
  color: #49c3fa;
  font-family: var(--display);
  font-size: 2rem;
}

.first-ride-steps h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.first-ride-steps p {
  max-width: 560px;
  margin: 0;
  color: #aebfd4;
}

.studio-gallery {
  display: grid;
  min-height: 820px;
  grid-template-columns: 1.05fr 0.72fr 0.58fr;
  grid-template-rows: 1fr 0.8fr;
  gap: 14px;
  padding: clamp(22px, 3vw, 48px);
  background: var(--paper);
}

.studio-gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--ink);
}

.studio-gallery figure::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 14, 29, 0.78), transparent 48%);
  content: "";
  pointer-events: none;
}

.studio-gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.studio-gallery figure:hover img {
  transform: scale(1.035);
}

.studio-gallery figcaption {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-copy {
  display: flex;
  grid-row: 1 / 3;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(38px, 6vw, 86px);
  background:
    radial-gradient(circle at 20% 16%, rgba(74, 195, 250, 0.2), transparent 30%),
    var(--ink);
  color: var(--white);
}

.gallery-copy h2,
.testimonials-section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.5rem, 6vw, 7rem);
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
}

.gallery-copy > p:last-child {
  max-width: 570px;
  margin: 32px 0 0;
  color: #aebfd4;
  font-size: 1.05rem;
}

.gallery-main {
  grid-row: 1 / 3;
}

.gallery-bike img {
  object-position: 50% 36%;
}

.pricing-section {
  background: var(--cream);
}

.price-grid {
  display: grid;
  max-width: 1180px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 18px;
  margin: auto;
}

.price-grid--single {
  grid-template-columns: minmax(280px, 520px);
  justify-content: center;
}

.price-grid--single .price-card {
  min-height: 360px;
}

.price-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.price-card.featured {
  background: var(--ink);
  box-shadow: 0 30px 70px rgba(7, 19, 40, 0.18);
  color: var(--white);
  transform: translateY(-18px);
}

.price-card > p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-card > strong {
  margin: 36px 0 8px;
  font-family: var(--display);
  font-size: clamp(5rem, 8vw, 7rem);
  line-height: 0.8;
}

.price-card sup {
  font-family: var(--body);
  font-size: 1.5rem;
  vertical-align: top;
}

.price-card > span {
  color: var(--muted);
}

.featured > span {
  color: #9fb0c8;
}

.price-link {
  margin-top: auto;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.popular {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #123e68;
  color: #68d0ff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.concept-note {
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.testimonials-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.38fr) minmax(0, 1fr);
  background: var(--blue);
  color: var(--white);
}

.reviews-score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(70px, 8vw, 130px) clamp(28px, 6vw, 96px);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 16px
    ),
    linear-gradient(150deg, #1746a6, #159cd8);
}

.reviews-score .eyebrow {
  color: #c4efff;
}

.reviews-score > strong {
  font-family: var(--display);
  font-size: clamp(8rem, 14vw, 14rem);
  line-height: 0.8;
}

.stars {
  margin: 26px 0 6px;
  color: #ffe36e;
  font-size: 1.35rem;
  letter-spacing: 0.16em;
}

.reviews-score > p:not(.eyebrow) {
  margin: 0 0 30px;
  color: #d3edfb;
}

.reviews-score .text-link {
  color: var(--white);
}

.reviews-copy {
  padding: clamp(82px, 9vw, 145px) clamp(28px, 7vw, 116px);
  background: var(--ink);
}

.reviews-copy .eyebrow {
  color: #5acaff;
}

.reviews-copy h2 {
  max-width: 900px;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 62px;
  background: rgba(255, 255, 255, 0.12);
}

.quotes-grid blockquote {
  min-height: 220px;
  margin: 0;
  padding: clamp(28px, 4vw, 48px);
  background: var(--ink);
}

.quotes-grid blockquote p {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 650;
  line-height: 1.45;
}

.quotes-grid blockquote footer {
  display: block;
  margin-top: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: #6dbfe7;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.about-section {
  position: relative;
  display: grid;
  min-height: 770px;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  background: var(--paper);
}

.about-art {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  background: var(--blue-deep);
}

.about-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
}

.about-art::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5, 14, 29, 0.78), transparent 50%),
    linear-gradient(90deg, transparent 70%, rgba(5, 14, 29, 0.18));
  content: "";
}

.about-image-label {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(22px, 4vw, 54px);
  left: clamp(20px, 4vw, 56px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  color: var(--white);
}

.about-image-label span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-image-label strong {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  line-height: 0.9;
  text-align: right;
  text-transform: uppercase;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 9vw, 150px) clamp(28px, 7vw, 116px);
}

.about-lead {
  max-width: 700px;
  margin: 34px 0 16px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.4;
}

.about-copy > p:not(.eyebrow, .about-lead) {
  max-width: 650px;
  color: var(--muted);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.about-stats div {
  display: flex;
  flex-direction: column;
}

.about-stats strong {
  font-family: var(--display);
  font-size: 2.4rem;
}

.about-stats span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.location-section {
  display: grid;
  min-height: 660px;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--cream);
}

.location-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 9vw, 150px) clamp(26px, 7vw, 112px);
}

.location-card address {
  margin: 34px 0;
  color: #465269;
  font-size: 1.2rem;
  font-style: normal;
  line-height: 1.75;
}

.location-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.dark-link {
  color: var(--blue-deep);
}

.map-art {
  position: relative;
  min-height: 550px;
  overflow: hidden;
  background: #dbe5ed;
}

.location-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: grayscale(1) contrast(1.15);
}

.map-grid {
  position: absolute;
  inset: -15%;
  background:
    linear-gradient(72deg, transparent 47%, rgba(255, 255, 255, 0.92) 48% 51%, transparent 52%),
    linear-gradient(10deg, transparent 43%, rgba(255, 255, 255, 0.9) 44% 48%, transparent 49%),
    linear-gradient(145deg, transparent 60%, rgba(124, 144, 161, 0.26) 61% 63%, transparent 64%),
    repeating-linear-gradient(0deg, transparent 0 66px, rgba(87, 112, 133, 0.2) 67px 69px),
    repeating-linear-gradient(90deg, transparent 0 86px, rgba(87, 112, 133, 0.18) 87px 89px);
  transform: rotate(-6deg) scale(1.08);
}

.map-pin {
  position: absolute;
  top: 44%;
  left: 49%;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50% 50% 50% 0;
  background: var(--blue-deep);
  box-shadow: 0 22px 40px rgba(7, 19, 40, 0.28);
  transform: rotate(-45deg);
}

.map-pin span {
  width: 24px;
  height: 24px;
  border: 6px solid var(--white);
  border-radius: 50%;
}

.map-art p {
  position: absolute;
  right: 8%;
  bottom: 8%;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 0.84;
  text-align: right;
}

.final-cta {
  padding: clamp(90px, 11vw, 180px) 24px;
  background:
    radial-gradient(circle at 10% 40%, rgba(41, 167, 228, 0.32), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(39, 68, 167, 0.5), transparent 34%),
    var(--ink);
  color: var(--white);
  text-align: center;
}

.final-cta .eyebrow {
  color: #5acaff;
}

.final-cta h2 {
  max-width: 1100px;
  margin: 0 auto 48px;
}

footer {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 50px clamp(22px, 5vw, 82px) 26px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-brand {
  max-width: 240px;
}

footer p {
  color: var(--muted);
}

footer > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

footer small {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #8c95a3;
  font-size: 0.68rem;
  text-align: center;
}

.asset-credit {
  margin-top: -18px;
  padding-top: 0;
  border-top: 0;
}

.booking-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 12, 26, 0.76);
  backdrop-filter: blur(10px);
}

.booking-backdrop[hidden] {
  display: none;
}

.booking-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}

.booking-panel h2 {
  max-width: 560px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5.1rem);
  letter-spacing: 0.01em;
  line-height: 0.94;
  text-transform: uppercase;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 1.7rem;
}

.booking-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 34px 0;
  padding: 22px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--white);
}

.booking-summary div {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.booking-summary div:last-child {
  border: 0;
}

.booking-summary span {
  color: #8ca0ba;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-summary strong {
  font-size: 1.2rem;
}

.booking-panel form {
  display: grid;
  gap: 18px;
}

.booking-panel form[hidden] {
  display: none;
}

.booking-panel label {
  display: grid;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.booking-panel input,
.booking-panel select,
.booking-panel textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #b7c1ce;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
}

.booking-panel textarea {
  min-height: 92px;
  resize: vertical;
}

.booking-panel .booking-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.booking-panel .booking-check input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
}

.booking-form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--blue-deep);
  font-size: 0.85rem;
  font-weight: 700;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  text-align: center;
}

.prototype-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 34px;
}

.prototype-success > span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: #d8f5e9;
  color: #08734d;
  font-size: 2rem;
}

.prototype-success h3 {
  margin: 25px 0 8px;
  font-size: 1.6rem;
}

.prototype-success p {
  max-width: 520px;
  margin: 0 0 28px;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: minmax(130px, 165px) 1fr auto;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 0.68rem;
  }

  .hero {
    grid-template-columns: 1fr 0.85fr;
  }

  .hero-copy {
    padding-right: 30px;
  }

  .ride-rail {
    grid-template-columns: 0.9fr repeat(3, 1fr);
    padding: 0 18px;
  }

  .rail-ride {
    padding: 18px;
  }

  .ride-card {
    grid-template-columns: 42px 118px 110px minmax(180px, 1fr) auto;
  }

  .ride-card .availability {
    display: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 62px;
    grid-template-columns: 1fr auto;
    padding: 6px 18px;
  }

  .brand {
    width: 148px;
  }

  .header-cta {
    display: none;
  }

  .menu-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: transparent;
  }

  .menu-button span {
    width: 22px;
    height: 2px;
    background: var(--ink);
  }

  .nav {
    position: absolute;
    top: 62px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 18px 22px 26px;
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 22px 40px rgba(7, 19, 40, 0.12);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.78rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 74px 22px 52px;
  }

  .hero h1 {
    font-size: clamp(4rem, 17vw, 7rem);
  }

  .hero-intro {
    margin: 24px 0 28px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 40px;
  }

  .hero-facts div {
    padding: 0 12px;
  }

  .hero-facts dd {
    font-size: 0.83rem;
  }

  .hero-visual {
    min-height: 480px;
  }

  .hero-visual::after {
    background: linear-gradient(0deg, rgba(6, 16, 32, 0.72), transparent 55%);
  }

  .ride-rail {
    grid-template-columns: 1fr;
    padding: 0 22px;
  }

  .rail-label,
  .rail-ride {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .rail-label {
    min-height: 74px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 44px;
  }

  .ride-card {
    grid-template-columns: 40px 1fr auto;
    gap: 14px;
    padding: 22px 0;
  }

  .ride-time {
    grid-row: 2;
    grid-column: 2;
  }

  .ride-name {
    grid-row: 3;
    grid-column: 2;
  }

  .ride-card .button {
    grid-row: 1 / 4;
    grid-column: 3;
  }

  .first-ride,
  .testimonials-section,
  .about-section,
  .location-section {
    grid-template-columns: 1fr;
  }

  .studio-gallery {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 440px 320px;
  }

  .gallery-copy {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 520px;
  }

  .gallery-main {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .gallery-bike,
  .gallery-detail {
    min-height: 320px;
  }

  .reviews-score {
    min-height: 560px;
  }

  .quotes-grid {
    grid-template-columns: 1fr;
  }

  .about-art {
    min-height: 620px;
  }

  .price-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .price-card {
    min-height: 330px;
  }

  .price-card.featured {
    transform: none;
  }

  .location-section {
    display: flex;
    flex-direction: column;
  }

  .map-art {
    min-height: 520px;
    order: -1;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    margin: auto;
  }

  footer > div {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .hero-facts {
    gap: 16px 0;
    grid-template-columns: 1fr 1fr;
  }

  .hero-facts div:nth-child(2) {
    border-right: 0;
  }

  .hero-facts div:nth-child(3) {
    padding-left: 0;
  }

  .hero-visual {
    min-height: 410px;
  }

  .hero-stamp {
    width: 112px;
    height: 112px;
  }

  .section-heading h2,
  .first-ride h2,
  .testimonials-section h2,
  .about-section h2,
  .location-section h2,
  .final-cta h2 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .ride-card {
    grid-template-columns: 34px 1fr;
  }

  .ride-card .button {
    grid-row: 4;
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
  }

  .first-ride-steps li {
    grid-template-columns: 50px 1fr;
  }

  .studio-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto 390px 360px 260px;
    padding: 12px;
  }

  .gallery-copy,
  .gallery-main,
  .gallery-bike,
  .gallery-detail {
    grid-column: 1;
  }

  .gallery-copy {
    min-height: 480px;
    padding: 38px 26px;
  }

  .reviews-copy {
    padding-right: 22px;
    padding-left: 22px;
  }

  .about-art {
    min-height: 530px;
  }

  .about-image-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-image-label strong {
    text-align: left;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .location-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-panel {
    padding: 42px 22px 26px;
    border-radius: 16px;
  }

  .booking-summary {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .booking-summary div {
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
}

/* Motion treatment mockup */
.brand img {
  height: auto;
}

.hero {
  --pulse-rgb: 51, 184, 240;
  position: relative;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: -24%;
  background:
    radial-gradient(circle at 66% 42%, rgba(var(--pulse-rgb), 0.29), transparent 31%),
    radial-gradient(circle at 30% 24%, rgba(35, 67, 167, 0.24), transparent 34%);
  content: "";
  filter: blur(18px);
  pointer-events: none;
  transition: background 700ms ease;
}

.hero-copy,
.motion-hero {
  position: relative;
  z-index: 1;
}

.motion-hero {
  min-height: 650px;
  background: #020916;
}

.motion-hero::after {
  z-index: 3;
  background:
    linear-gradient(90deg, #061020 0%, rgba(6, 16, 32, 0.18) 25%, transparent 48%),
    linear-gradient(0deg, rgba(6, 16, 32, 0.88), transparent 34%);
}

.motion-aperture {
  --aperture-gap: 11px;
  position: absolute;
  inset: 5.5%;
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--aperture-gap);
  border: 1px solid rgba(90, 202, 255, 0.28);
  border-radius: 22px;
  background: #020916;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.42),
    0 0 80px rgba(var(--pulse-rgb), 0.13);
}

.motion-aperture::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 12%,
    rgba(90, 202, 255, 0.07) 38%,
    rgba(143, 222, 255, 0.3) 50%,
    rgba(90, 202, 255, 0.07) 62%,
    transparent 88%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-14%);
}

.motion-aperture.is-cutting::after {
  animation: cadence-light 230ms ease-out;
}

.motion-strip {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(51, 184, 240, 0.2), transparent),
    url("./assets/images/hero-class.png") center / cover;
  opacity: 0;
  transform: scaleY(0.12);
  transform-origin: bottom;
}

.motion-strip:nth-child(1) {
  animation: aperture-arrive 620ms 160ms var(--ease) forwards;
}

.motion-strip:nth-child(2) {
  animation: aperture-arrive 620ms 250ms var(--ease) forwards;
}

.motion-strip:nth-child(3) {
  animation: aperture-arrive 620ms 340ms var(--ease) forwards;
}

.motion-strip video {
  position: absolute;
  top: 0;
  width: calc(300% + (var(--aperture-gap) * 2));
  max-width: none;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.motion-strip:nth-child(1) video {
  left: 0;
}

.motion-strip:nth-child(2) video {
  left: calc(-100% - var(--aperture-gap));
}

.motion-strip:nth-child(3) video {
  left: calc(-200% - (var(--aperture-gap) * 2));
}

.motion-strip::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), transparent 62%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.022) 0,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px,
      transparent 4px
    );
  content: "";
  mix-blend-mode: screen;
  pointer-events: none;
}

.motion-loading-sweep {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.motion-loading-sweep::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -20%;
  width: 12%;
  background: linear-gradient(90deg, transparent, rgba(90, 202, 255, 0.42), transparent);
  content: "";
  filter: blur(7px);
  transform: skewX(-9deg);
  animation: video-scan 1.15s 500ms var(--ease) forwards;
}

.motion-film-launch {
  position: absolute;
  z-index: 5;
  right: clamp(22px, 4vw, 64px);
  bottom: clamp(24px, 4vw, 58px);
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(4, 12, 28, 0.62);
  backdrop-filter: blur(14px);
  color: #fff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.motion-film-launch::before {
  display: grid;
  width: 31px;
  height: 31px;
  place-content: center;
  border-radius: 50%;
  background: #5acaff;
  color: #061020;
  content: "▶";
  font-size: 0.66rem;
  letter-spacing: 0;
}

.motion-film-launch:hover,
.motion-film-launch:focus-visible {
  border-color: #5acaff;
  background: rgba(4, 12, 28, 0.86);
  transform: translateY(-3px);
}

.motion-film-launch span {
  color: #8fa5c2;
  font-size: 0.62rem;
}

.motion-hero .hero-stamp {
  top: clamp(24px, 4vw, 52px);
  right: clamp(22px, 4vw, 58px);
  bottom: auto;
  width: 116px;
  height: 116px;
}

@keyframes aperture-arrive {
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes video-scan {
  to {
    left: 112%;
  }
}

@keyframes cadence-light {
  0% {
    opacity: 0;
    transform: translateX(-14%);
  }
  42% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translateX(14%);
  }
}

@supports (animation-timeline: scroll()) {
  .motion-aperture {
    animation: aperture-expand linear both;
    animation-range: 0 52vh;
    animation-timeline: scroll(root block);
  }

  @keyframes aperture-expand {
    from {
      inset: 5.5%;
      gap: 11px;
      border-radius: 22px;
    }
    to {
      inset: 0;
      gap: 2px;
      border-radius: 0;
    }
  }
}

.motion-story {
  padding: clamp(86px, 9vw, 140px) clamp(14px, 3vw, 46px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(51, 184, 240, 0.13), transparent 28%),
    #050d1c;
  color: #fff;
}

.motion-story-heading {
  display: grid;
  max-width: 1360px;
  grid-template-columns: 1fr minmax(260px, 0.55fr);
  align-items: end;
  gap: 54px;
  margin: 0 auto 48px;
}

.motion-story-heading h2 {
  max-width: 850px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.6rem, 6.4vw, 7rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.motion-story-heading > p {
  max-width: 440px;
  margin: 0;
  color: #b8c8dc;
  font-size: 1.05rem;
}

.motion-panels {
  display: flex;
  max-width: 1440px;
  min-height: min(63vw, 650px);
  gap: 7px;
  margin: 0 auto;
}

.motion-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #020712;
  transition: flex 620ms var(--ease);
}

.motion-panel:hover,
.motion-panel:focus-within {
  flex: 1.75 1 0;
}

.motion-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08);
  transform: scale(1.015);
  transition:
    filter 500ms ease,
    transform 700ms var(--ease);
}

.motion-panel:hover video,
.motion-panel:focus-within video {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.045);
}

.motion-panel::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(2, 7, 18, 0.98) 0%, rgba(2, 7, 18, 0.08) 64%),
    linear-gradient(90deg, rgba(2, 7, 18, 0.22), transparent);
  content: "";
  pointer-events: none;
}

.motion-panel-copy {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 2.5vw, 38px);
  bottom: clamp(20px, 3vw, 44px);
  left: clamp(18px, 2.5vw, 38px);
}

.motion-panel-index {
  display: block;
  margin-bottom: 10px;
  color: #5acaff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.motion-panel h3 {
  max-width: 430px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.motion-panel p {
  max-width: 400px;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: #c5d4e7;
  opacity: 0;
  transform: translateY(14px);
  transition:
    max-height 500ms var(--ease),
    margin 500ms var(--ease),
    opacity 300ms ease,
    transform 500ms var(--ease);
}

.motion-panel:hover p,
.motion-panel:focus-within p {
  max-height: 120px;
  margin-top: 14px;
  opacity: 1;
  transform: none;
}

.motion-story-action {
  display: flex;
  max-width: 1440px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 34px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.motion-story-action p {
  margin: 0;
  color: #8ea2bc;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.film-dialog {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 48px);
  background: rgba(1, 5, 13, 0.9);
  backdrop-filter: blur(18px);
}

.film-dialog[hidden] {
  display: none;
}

.film-shell {
  position: relative;
  width: min(1180px, 100%);
  overflow: hidden;
  border: 1px solid rgba(90, 202, 255, 0.3);
  border-radius: 20px;
  background: #020712;
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.72);
  color: #fff;
  view-transition-name: joyride-film;
}

.film-shell video {
  display: block;
  width: 100%;
  max-height: 76vh;
  background: #000;
  object-fit: contain;
}

.film-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.film-frame img,
.film-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.film-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: grid;
  width: 46px;
  height: 46px;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(2, 7, 18, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 1.55rem;
}

.film-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  color: #b8c8dc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.film-caption strong {
  color: #fff;
}

::view-transition-old(joyride-film),
::view-transition-new(joyride-film) {
  animation-duration: 420ms;
  animation-timing-function: var(--ease);
}

@media (max-width: 860px) {
  .motion-hero {
    min-height: min(124vw, 720px);
  }

  .motion-aperture {
    inset: 14px;
  }

  .motion-film-launch {
    right: 18px;
    bottom: 18px;
  }

  .motion-hero .hero-stamp {
    top: 26px;
    right: 26px;
  }

  .motion-story-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .motion-panels {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .motion-panel {
    min-height: 440px;
  }

  .motion-panel p {
    max-height: 120px;
    margin-top: 12px;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .motion-aperture {
    gap: 4px;
    border-radius: 14px;
  }

  .motion-strip video {
    width: calc(300% + 8px);
  }

  .motion-strip:nth-child(2) video {
    left: calc(-100% - 4px);
  }

  .motion-strip:nth-child(3) video {
    left: calc(-200% - 8px);
  }

  .motion-film-launch {
    right: 14px;
    bottom: 14px;
    gap: 10px;
    padding: 9px 12px;
  }

  .motion-film-launch span,
  .motion-hero .hero-stamp {
    display: none;
  }

  .motion-story {
    padding-right: 12px;
    padding-left: 12px;
  }

  .motion-story-heading {
    padding: 0 10px;
  }

  .motion-story-heading h2 {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .motion-panel {
    min-height: 390px;
  }

  .motion-story-action {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 10px;
    padding-left: 10px;
  }

  .film-dialog {
    padding: 8px;
  }

  .film-shell {
    border-radius: 12px;
  }

  .film-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-data: reduce) {
  .motion-strip video,
  .motion-panel video {
    display: none;
  }

  .motion-strip,
  .motion-panel {
    background: url("./assets/images/hero-class.png") center / cover;
  }
}

/* WordPress content templates */
.site-main--content {
  min-height: 62vh;
  padding: clamp(72px, 10vw, 140px) clamp(22px, 7vw, 120px);
}

.content-shell {
  width: min(860px, 100%);
  margin: 0 auto;
}

.content-shell > header {
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.content-shell h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.entry-content {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
}

.entry-content > * {
  max-width: 72ch;
}

.entry-content > * + * {
  margin-top: 1.35em;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.8em;
  font-family: var(--display);
  line-height: 1;
  text-transform: uppercase;
}

.entry-content h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.entry-content a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.entry-content img {
  width: 100%;
  border-radius: var(--radius);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.booking-slot {
  position: relative;
}

.booking-slot__notice {
  padding: 18px 22px;
  border: 1px solid rgba(22, 139, 213, 0.28);
  border-radius: 12px;
  background: rgba(22, 139, 213, 0.08);
  font-size: 0.9rem;
}

.booking-slot__notice strong {
  display: block;
  margin-bottom: 4px;
}

.booking-slot__status {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.book-ahead-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 24px 26px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
}

.book-ahead-callout div {
  display: flex;
  flex-direction: column;
}

.book-ahead-callout span {
  color: #8cd9fa;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-ahead-callout strong {
  font-size: 1.15rem;
}

.planner {
  min-height: 100vh;
  background: var(--paper);
}

.planner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.65fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 14%, rgba(51, 184, 240, 0.28), transparent 30%),
    linear-gradient(128deg, #071328 0%, #0b1b34 64%, #15295a 100%);
  color: var(--white);
}

.planner-hero__copy {
  padding: clamp(82px, 9vw, 150px) clamp(28px, 7vw, 112px);
}

.planner-hero__copy .eyebrow {
  color: #65d0ff;
}

.planner-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.3rem, 8vw, 9.2rem);
  letter-spacing: 0.01em;
  line-height: 0.84;
  text-transform: uppercase;
}

.planner-hero__copy > p:last-child {
  max-width: 680px;
  margin: 32px 0 0;
  color: #c9d8ea;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
}

.planner-hero__facts {
  display: grid;
  min-height: 100%;
  grid-template-rows: repeat(3, 1fr);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(rgba(7, 19, 40, 0.42), rgba(7, 19, 40, 0.8)),
    url("assets/images/real-onbike.jpg") center / cover;
}

.planner-hero__facts div {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(24px, 4vw, 62px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.planner-hero__facts strong {
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 5.8rem);
  line-height: 0.8;
}

.planner-hero__facts span {
  color: #c5d8ee;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.planner-shell {
  max-width: 1440px;
  margin: auto;
  padding: clamp(72px, 8vw, 128px) clamp(20px, 5vw, 76px) 150px;
}

.planner-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 50px;
  margin-bottom: 50px;
}

.planner-heading h2,
.planner-details h2,
.planner-success h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 6vw, 7rem);
  letter-spacing: 0.01em;
  line-height: 0.88;
  text-transform: uppercase;
}

.planner-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.planner-toolbar {
  position: sticky;
  z-index: 12;
  top: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(252, 251, 247, 0.94);
  box-shadow: 0 14px 40px rgba(7, 19, 40, 0.08);
  backdrop-filter: blur(16px);
}

.planner-progress {
  display: flex;
  align-items: center;
  gap: 22px;
}

.planner-progress span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #949dac;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.planner-progress b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #bdc4cd;
  border-radius: 50%;
  font-size: 0.72rem;
}

.planner-progress .is-active {
  color: var(--ink);
}

.planner-progress .is-active b,
.planner-progress .is-complete b {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.planner-riders {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.planner-riders select {
  min-height: 42px;
  padding: 8px 38px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  font-weight: 800;
}

.planner-status {
  padding: 26px;
  border: 1px solid rgba(22, 139, 213, 0.24);
  border-radius: 14px;
  background: rgba(22, 139, 213, 0.08);
  text-align: center;
}

.planner-status[hidden] {
  display: none;
}

.planner-weeks {
  display: grid;
  gap: 22px;
}

.planner-weeks[hidden],
.planner-toolbar[hidden] {
  display: none;
}

.planner-week {
  display: grid;
  grid-template-columns: minmax(150px, 0.24fr) 1fr;
  gap: clamp(20px, 4vw, 60px);
  padding: 30px 0 38px;
  border-top: 2px solid var(--ink);
}

.planner-week__heading {
  position: sticky;
  top: 174px;
  align-self: start;
}

.planner-week__heading span,
.planner-week__heading small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.planner-week__heading h3 {
  margin: 7px 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.planner-week__rides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.planner-ride {
  display: grid;
  min-height: 120px;
  grid-template-columns: 72px 90px minmax(110px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease),
    transform 180ms var(--ease);
}

.planner-ride:hover:not(:disabled),
.planner-ride:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 14px 32px rgba(22, 139, 213, 0.13);
  transform: translateY(-2px);
}

.planner-ride.is-selected {
  border-color: var(--blue);
  background:
    linear-gradient(135deg, rgba(51, 184, 240, 0.12), rgba(35, 67, 167, 0.08)),
    var(--white);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.planner-ride:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.planner-ride__date {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.planner-ride__date b {
  grid-column: 1 / 3;
  color: var(--blue-deep);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planner-ride__date strong {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}

.planner-ride__date small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.planner-ride__time {
  font-family: var(--display);
  font-size: 2rem;
}

.planner-ride__info,
.planner-ride__availability {
  display: flex;
  flex-direction: column;
}

.planner-ride__info small,
.planner-ride__availability small {
  color: var(--muted);
  font-size: 0.68rem;
}

.planner-ride__availability {
  align-items: flex-end;
}

.planner-ride__action {
  color: var(--blue-deep);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.planner-tray {
  position: fixed;
  z-index: 45;
  right: max(20px, 4vw);
  bottom: 24px;
  left: max(20px, 4vw);
  display: flex;
  max-width: 760px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: auto;
  padding: 16px 18px 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(7, 19, 40, 0.96);
  box-shadow: 0 20px 60px rgba(7, 19, 40, 0.3);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.planner-tray[hidden] {
  display: none;
}

.planner-tray div {
  display: flex;
  flex-direction: column;
}

.planner-tray span {
  color: #aabbd0;
  font-size: 0.75rem;
}

.planner-details {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: clamp(48px, 8vw, 120px);
  padding-top: 30px;
  border-top: 2px solid var(--ink);
}

.planner-details[hidden],
.planner-success[hidden] {
  display: none;
}

.planner-details__intro > p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.05rem;
}

.planner-picked {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.planner-picked div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.planner-picked span {
  color: var(--blue-deep);
  font-family: var(--display);
  font-size: 1.35rem;
}

.planner-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 20px;
  background: var(--ink);
  color: var(--white);
}

.planner-form > label:not(.planner-check) {
  display: grid;
  gap: 7px;
  color: #b7c7da;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planner-form input:not([type="checkbox"]),
.planner-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font: inherit;
  text-transform: none;
}

.planner-form textarea {
  resize: vertical;
}

.planner-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  color: #c3d0df;
  font-size: 0.82rem;
}

.planner-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.planner-form__status {
  min-height: 24px;
  margin: 0;
  color: #ffb6aa;
  font-weight: 800;
}

.planner-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 4px;
}

.text-button {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #b9c9dc;
  cursor: pointer;
}

.planner-success {
  max-width: 840px;
  margin: auto;
  padding: clamp(52px, 8vw, 100px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 10%, rgba(51, 184, 240, 0.24), transparent 32%),
    var(--ink);
  color: var(--white);
  text-align: center;
}

.planner-success__tick {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--blue);
  font-size: 2rem;
}

.planner-success .eyebrow {
  color: #68d1ff;
}

.planner-success > p:not(.eyebrow) {
  color: #c1d1e3;
  font-size: 1.1rem;
}

.planner-success__reference {
  display: flex;
  max-width: 430px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 34px auto;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
}

.planner-success__reference span {
  color: #aebfd2;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planner-success__reference strong {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.05em;
}

@media (max-width: 1120px) {
  .planner-week__rides {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .planner-hero {
    grid-template-columns: 1fr;
  }

  .planner-hero__facts {
    min-height: 260px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

  .planner-hero__facts div {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 0;
  }

  .planner-heading,
  .planner-details {
    grid-template-columns: 1fr;
  }

  .planner-toolbar {
    top: 72px;
  }

  .planner-week {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .planner-week__heading {
    position: static;
  }
}

@media (max-width: 620px) {
  .book-ahead-callout,
  .planner-toolbar,
  .planner-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .planner-hero__copy {
    padding: 64px 22px 72px;
  }

  .planner-hero h1 {
    font-size: clamp(4rem, 20vw, 6.5rem);
  }

  .planner-hero__facts {
    min-height: 210px;
  }

  .planner-hero__facts div {
    padding: 22px 14px;
  }

  .planner-hero__facts strong {
    font-size: 2.5rem;
  }

  .planner-hero__facts span {
    font-size: 0.58rem;
  }

  .planner-shell {
    padding-right: 15px;
    padding-left: 15px;
  }

  .planner-toolbar {
    position: static;
  }

  .planner-progress {
    justify-content: space-between;
    gap: 8px;
  }

  .planner-progress span {
    gap: 5px;
    font-size: 0.59rem;
  }

  .planner-riders {
    justify-content: space-between;
  }

  .planner-ride {
    min-height: 132px;
    grid-template-columns: 62px 72px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .planner-ride__time {
    font-size: 1.65rem;
  }

  .planner-ride__availability {
    grid-column: 2 / 4;
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
  }

  .planner-form {
    padding: 24px 18px;
  }

  .planner-tray {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 12px 12px 12px 16px;
  }

  .planner-tray .button {
    min-height: 44px;
    padding: 10px 15px;
  }

  .planner-success {
    padding: 46px 20px;
  }
}

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

.screen-reader-text:focus {
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  background: var(--white);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
