/*
 * Creative homepage refresh / 2026-07-10
 *
 * This file is intentionally isolated from styles.css.
 * Remove its <link> from index.html, or open ?design=classic, to restore
 * the previous visual direction without touching any content or markup.
 */

:root {
  --creative-paper: #f1efe6;
  --creative-paper-deep: #e7e2d4;
  --creative-ink: #080b09;
  --creative-ink-soft: #121713;
  --creative-lime: #eaff22;
  --creative-lime-soft: #f4ff86;
  --creative-red: #f44a32;
  --creative-muted: #59615a;
  --creative-dark-muted: rgba(255, 255, 255, 0.7);
  --creative-line: rgba(8, 11, 9, 0.14);
  --creative-line-dark: rgba(255, 255, 255, 0.16);
  --creative-shadow: 0 34px 90px rgba(0, 0, 0, 0.22);
  --bg: #050705;
  --bg-soft: #0d110e;
  --surface: var(--creative-paper);
  --surface-strong: #fffef8;
  --ink: var(--creative-ink);
  --muted: var(--creative-muted);
  --line: var(--creative-line);
  --line-dark: var(--creative-line-dark);
  --accent: var(--creative-lime);
  --accent-strong: var(--creative-lime-soft);
  --danger: var(--creative-red);
  --radius: 16px;
  --max: 1240px;
  --header: 70px;
}

html {
  background: var(--creative-ink);
}

body {
  color: var(--creative-ink);
  background: var(--creative-ink);
  font-family:
    Inter, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", sans-serif;
}

body::before {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
}

::selection {
  color: var(--creative-ink);
  background: var(--creative-lime);
}

main {
  overflow: clip;
}

main > section {
  position: relative;
  scroll-margin-top: 102px;
}

.page-grid {
  width: min(var(--max), calc(100% - clamp(32px, 5vw, 72px)));
}

/* Floating navigation frame */
.site-header {
  inset: 12px clamp(12px, 2.5vw, 34px) auto;
  min-height: var(--header);
  padding: 11px clamp(14px, 2.4vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(6, 8, 6, 0.8);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px) saturate(1.2);
}

.site-header.is-scrolled {
  border-color: rgba(234, 255, 34, 0.28);
  background: rgba(6, 8, 6, 0.92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.brand {
  gap: 13px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px 3px 11px 3px;
  background: var(--creative-lime);
  box-shadow: 4px 4px 0 rgba(244, 74, 50, 0.92);
  transform: rotate(-2deg);
}

.brand strong {
  letter-spacing: -0.025em;
}

.brand small {
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.08em;
}

.site-nav {
  gap: clamp(14px, 2vw, 26px);
}

.site-nav a:not(.nav-cta)::after {
  height: 2px;
  background: var(--creative-lime);
}

.nav-cta,
.button-primary,
.admin-button.primary {
  color: var(--creative-ink);
  border-radius: 999px;
  background: var(--creative-lime);
  clip-path: none;
  box-shadow: 0 12px 34px rgba(234, 255, 34, 0.16);
}

.nav-cta:hover,
.nav-cta:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--creative-lime-soft);
  box-shadow: 0 16px 42px rgba(234, 255, 34, 0.23);
}

/* Hero: race photography with an editorial timing-board layer */
.hero {
  min-height: max(780px, 100svh);
  background: var(--creative-ink);
}

.hero-bg {
  background-image:
    linear-gradient(90deg, rgba(5, 7, 5, 0.98) 0%, rgba(5, 7, 5, 0.79) 37%, rgba(5, 7, 5, 0.12) 72%),
    linear-gradient(0deg, #050705 0%, rgba(5, 7, 5, 0.02) 42%),
    repeating-linear-gradient(90deg, transparent 0 13.8%, rgba(234, 255, 34, 0.07) 13.9% 14%),
    url("./assets/hyrox-athlete-hero.png");
  background-position: center, center, center, 67% center;
  background-size: cover, cover, cover, cover;
  filter: saturate(0.92) contrast(1.05);
  animation: creative-hero-drift 24s ease-in-out infinite alternate;
}

.hero::before {
  position: absolute;
  inset: 12% 0 0;
  z-index: 0;
  display: block !important;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(234, 255, 34, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: clamp(90px, 9vw, 150px) clamp(90px, 9vw, 150px);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 62%);
  content: "" !important;
}

.hero::after {
  height: 44%;
  background: linear-gradient(0deg, var(--creative-ink) 0%, rgba(5, 7, 5, 0));
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.62fr);
  gap: clamp(30px, 5vw, 68px);
  padding-top: clamp(118px, 15vh, 170px);
  padding-bottom: clamp(42px, 6vw, 76px);
}

.hero-copy {
  position: relative;
  align-self: end;
  padding: clamp(100px, 13vh, 150px) 0 26px clamp(18px, 2.4vw, 32px);
  border-left: 1px solid rgba(234, 255, 34, 0.52);
}

.hero-copy::before {
  position: absolute;
  top: clamp(100px, 13vh, 150px);
  left: -4px;
  width: 7px;
  height: 72px;
  border-radius: 99px;
  background: var(--creative-lime);
  content: "";
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3.9rem, 6.1vw, 6.9rem);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
  text-transform: none;
}

.hero h1 span:first-child {
  color: #fff;
}

.hero h1 span:last-child {
  color: var(--creative-lime);
  font-size: 0.64em;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 700px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  font-weight: 610;
  line-height: 1.72;
}

.hero-actions {
  gap: 10px;
  margin-top: 28px;
}

.button {
  min-height: 52px;
  padding-inline: 22px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  text-transform: none;
}

.button-secondary,
.button-dark {
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.hero-channels {
  max-width: 720px;
  margin-top: 18px;
  padding: 11px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 17px 5px 17px 5px;
  background:
    linear-gradient(135deg, rgba(234, 255, 34, 0.1), transparent 52%),
    rgba(7, 10, 7, 0.72);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.22);
}

.hero-channels-head span {
  border-radius: 999px;
  background: var(--creative-lime);
}

.hero-channel {
  min-height: 40px;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.hero-channel.is-primary {
  color: var(--creative-ink);
  border-color: var(--creative-lime);
  background: var(--creative-lime);
}

.hero-channel.is-primary small {
  color: rgba(8, 11, 9, 0.76);
}

.hero-proof {
  align-self: end;
  max-width: 390px;
  gap: 12px;
  margin-bottom: 18px;
  transform: translateY(-18px) rotate(1deg);
}

.hero-proof-grid {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 6px 22px 6px 22px;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
}

.hero-proof button {
  padding: 18px 20px;
  border-left: 0;
  background: rgba(6, 8, 6, 0.76);
}

.hero-proof button:hover,
.hero-proof button.is-active {
  border-left-color: transparent;
  background:
    linear-gradient(90deg, rgba(234, 255, 34, 0.18), transparent 72%),
    rgba(6, 8, 6, 0.92);
}

.proof-number {
  color: #fff;
  font-family: inherit;
  font-size: 2.3rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  text-shadow: none;
}

.proof-label {
  color: var(--creative-lime);
}

.hero-proof-detail {
  border-color: rgba(234, 255, 34, 0.26);
  border-radius: 18px 5px 18px 5px;
  background:
    linear-gradient(135deg, rgba(234, 255, 34, 0.1), transparent 62%),
    rgba(7, 10, 7, 0.86);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.22);
}

/* Bright timing strip between the hero and the content */
.partner-strip {
  z-index: 2;
  border: 0;
  color: var(--creative-ink);
  background: var(--creative-lime);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.partner-strip p {
  padding: 16px 12px;
  color: var(--creative-ink);
  border-right: 1px solid rgba(8, 11, 9, 0.18);
  font-size: 0.74rem;
  letter-spacing: 0.075em;
}

/* Section rhythm */
.section-dark,
.media-section,
.hyrox-race-section,
.video-story-section,
.section-stats {
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(234, 255, 34, 0.085), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 38%),
    var(--creative-ink);
}

.section-light,
.blog-section,
.contact-section,
.sponsor-value-section,
.world-challenge-section,
.agent-review-section {
  color: var(--creative-ink);
  background:
    linear-gradient(rgba(8, 11, 9, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 11, 9, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 12% 10%, rgba(234, 255, 34, 0.26), transparent 24%),
    var(--creative-paper);
  background-size: 56px 56px, 56px 56px, auto, auto;
}

.section-dark,
.section-light,
.blog-section,
.contact-section,
.sponsor-value-section,
.world-challenge-section,
.agent-review-section,
.section-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.split,
.stats-layout,
.sponsor-layout,
.media-layout,
.blog-layout,
.contact-layout,
.hyrox-race-layout,
.sponsor-value-layout,
.world-challenge-layout,
.agent-review-layout,
.video-story-layout {
  padding-block: clamp(82px, 10vw, 128px);
}

.section-heading {
  position: relative;
  max-width: 680px;
}

.section-index {
  margin-bottom: 18px;
  padding: 7px 11px;
  color: var(--creative-ink);
  border: 1px solid rgba(8, 11, 9, 0.12);
  border-radius: 999px;
  background: var(--creative-lime);
  box-shadow: none;
  transform: none;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  max-width: 12em;
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-transform: none;
  text-wrap: balance;
}

.section-heading p,
.section-dark .section-heading p {
  max-width: 620px;
  color: var(--creative-dark-muted);
  line-height: 1.82;
}

.section-light .section-heading h2,
.blog-section .section-heading h2,
.contact-section .section-heading h2,
.sponsor-value-section .section-heading h2,
.world-challenge-section .section-heading h2,
.agent-review-section .section-heading h2 {
  color: var(--creative-ink);
  text-shadow: none;
}

.section-light .section-heading p,
.blog-section .section-heading p,
.contact-section .section-heading p,
.sponsor-value-section .section-heading p,
.world-challenge-section .section-heading p,
.agent-review-section .section-heading p {
  color: var(--creative-muted);
}

/* Shared card finish */
:is(
  .blog-card,
  .plan-card,
  .race-step,
  .watch-grid article,
  .hongo-focus-grid article,
  .discipline-grid article,
  .review-card,
  .value-pillars article,
  .world-chapters article,
  .video-chapters article,
  .conversion-path article
) {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

@media (hover: hover) {
  :is(
    .blog-card,
    .plan-card,
    .race-step,
    .watch-grid article,
    .hongo-focus-grid article,
    .discipline-grid article,
    .review-card,
    .value-pillars article,
    .world-chapters article,
    .video-chapters article,
    .conversion-path article
  ):hover {
    z-index: 2;
    border-color: rgba(234, 255, 34, 0.48);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
  }

  :is(.media-large, .station-photo, .emotion-photo-card figure, .video-still):hover img {
    transform: scale(1.035);
  }
}

/* Media becomes a cover + offset contents page */
.media-grid {
  align-items: start;
  gap: clamp(20px, 3vw, 34px);
}

.media-large {
  min-height: 610px;
  overflow: hidden;
  border-color: rgba(234, 255, 34, 0.28);
  border-radius: 30px 7px 30px 7px;
  box-shadow: var(--creative-shadow);
}

.media-large::after {
  background:
    linear-gradient(0deg, rgba(5, 7, 5, 0.74), transparent 48%),
    linear-gradient(135deg, transparent, rgba(234, 255, 34, 0.08));
}

.media-large img {
  min-height: 610px;
  transition: transform 600ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.media-large figcaption {
  border-radius: 999px;
  background: var(--creative-lime);
}

.media-frame-info {
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 18px 5px 18px 5px;
  background: rgba(7, 10, 7, 0.8);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.25);
}

.media-frame-controls button {
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 10, 7, 0.78);
}

.media-frame-controls button:hover,
.media-frame-controls button.is-active {
  color: var(--creative-ink);
  background: var(--creative-lime);
}

.social-feed {
  margin-top: clamp(48px, 7vw, 104px);
  color: var(--creative-ink);
  border: 0;
  border-radius: 7px 26px 7px 26px;
  background: var(--creative-paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.social-feed article {
  border-color: rgba(8, 11, 9, 0.14);
}

.social-feed time {
  color: #a72518;
}

.social-feed p {
  color: #3f4942;
}

.social-links a {
  color: var(--creative-ink);
  border-color: rgba(8, 11, 9, 0.18);
  border-radius: 999px;
}

/* Blog: same three stories, arranged like an editorial contents spread */
.blog-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}

.blog-card {
  grid-column: span 4;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 7px 28px 7px 28px;
  background:
    linear-gradient(145deg, rgba(234, 255, 34, 0.08), transparent 46%),
    var(--creative-ink-soft);
  box-shadow: 0 24px 64px rgba(8, 11, 9, 0.18);
}

.blog-card:nth-child(1) {
  grid-column: span 7;
  min-height: 390px;
}

.blog-card:nth-child(2) {
  grid-column: span 5;
  min-height: 350px;
  margin-top: 72px;
}

.blog-card:nth-child(3) {
  grid-column: 3 / span 8;
  min-height: 330px;
  margin-top: -10px;
}

.blog-card::before {
  display: block;
  width: 58px;
  height: 4px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--creative-lime);
  content: "";
}

.blog-card:nth-child(2)::before {
  background: var(--creative-red);
}

.blog-meta {
  color: var(--creative-lime);
}

.blog-card h3 {
  max-width: 18em;
  color: #fff;
  letter-spacing: -0.025em;
}

.blog-card > p,
.blog-body p {
  color: rgba(255, 255, 255, 0.7);
}

.blog-body {
  border-color: rgba(255, 255, 255, 0.14);
}

.blog-body summary {
  color: var(--creative-lime);
}

.note-link {
  border-radius: 999px;
  box-shadow: none;
}

/* HYROX race explanation: keep the sequence, vary the editorial inset */
.hyrox-race-layout {
  gap: clamp(30px, 5vw, 64px);
}

.reel-insight {
  border-color: rgba(234, 255, 34, 0.3);
  border-radius: 7px 26px 7px 26px;
  background:
    linear-gradient(135deg, rgba(234, 255, 34, 0.1), transparent 58%),
    var(--creative-ink-soft);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.24);
}

.reel-label {
  border-radius: 999px;
  background: var(--creative-lime);
  transform: none;
}

.race-formula {
  gap: 14px;
}

.race-formula article {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 18px 5px 18px 5px;
  background:
    linear-gradient(145deg, rgba(234, 255, 34, 0.08), transparent 54%),
    var(--creative-ink-soft);
}

.race-formula strong,
.hongo-focus-grid strong,
.review-card-head strong,
.stat-kpis strong {
  font-family: inherit;
  letter-spacing: -0.05em;
  text-shadow: none;
}

.race-course {
  gap: 20px;
}

.race-step {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 28px 7px 28px 7px;
  background: var(--creative-ink-soft);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.2);
}

.race-step:nth-child(odd) {
  margin-right: clamp(0px, 4vw, 56px);
}

.race-step:nth-child(even) {
  margin-left: clamp(0px, 4vw, 56px);
}

.race-step::after,
.watch-grid article::after,
.hongo-focus-grid article::after {
  width: 112px;
  height: 8px;
  background: var(--creative-lime);
  opacity: 0.68;
}

.station-photo {
  aspect-ratio: 21 / 8;
}

.station-photo img {
  transform: scale(1.015);
  transition: transform 650ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.run-chip {
  color: var(--creative-ink);
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--creative-lime);
}

.watch-grid article,
.hongo-focus-grid article,
.discipline-grid article {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 6px 22px 6px 22px;
  background:
    linear-gradient(145deg, rgba(234, 255, 34, 0.075), transparent 52%),
    var(--creative-ink-soft);
}

.race-takeaway,
.signal-detail,
.review-takeaway {
  border-left-color: var(--creative-lime);
  border-radius: 0 16px 16px 0;
  background: rgba(234, 255, 34, 0.07);
}

/* Performance section */
.stat-kpis {
  gap: 12px;
  background: transparent;
  border: 0;
}

.stat-kpis article {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 18px 5px 18px 5px;
  background: var(--creative-ink-soft);
}

.stat-kpis article:hover,
.stat-kpis article.is-active {
  border-color: rgba(234, 255, 34, 0.42);
  background:
    linear-gradient(145deg, rgba(234, 255, 34, 0.12), transparent 60%),
    var(--creative-ink-soft);
}

.stat-kpis strong {
  color: var(--creative-lime);
}

.stat-detail-panel,
.chart-wrap {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 7px 24px 7px 24px;
  background: var(--creative-ink-soft);
}

.bar-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  transform: none;
}

.bar-row i {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--creative-red), var(--creative-lime));
}

/* Sponsor value: premium paper outside, decisive dark mission inside */
.mission-panel {
  color: #fff;
  border-color: rgba(8, 11, 9, 0.14);
  border-radius: 30px 7px 30px 7px;
  background:
    radial-gradient(circle at 100% 0, rgba(234, 255, 34, 0.2), transparent 36%),
    var(--creative-ink-soft);
  box-shadow: 0 30px 80px rgba(8, 11, 9, 0.2);
}

.mission-panel span {
  color: var(--creative-ink);
  border-radius: 999px;
  background: var(--creative-lime);
}

.mission-panel h3 {
  color: #fff;
}

.mission-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.value-pillars article,
.page-flow,
.activation-panel {
  border-color: rgba(8, 11, 9, 0.12);
  border-radius: 18px 5px 18px 5px;
  background: rgba(255, 254, 248, 0.9);
  box-shadow: 0 18px 48px rgba(8, 11, 9, 0.08);
}

.value-pillars article:nth-child(odd) {
  transform: translateY(12px);
}

.activation-tab-buttons button {
  border-radius: 999px;
  background: #fffef8;
}

.activation-tab-buttons button.is-active {
  background: var(--creative-lime);
  box-shadow: none;
}

/* Sponsorship plans */
.plan-grid {
  align-items: center;
  gap: 18px;
}

.plan-card {
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 7px 28px 7px 28px;
  background:
    linear-gradient(145deg, rgba(234, 255, 34, 0.07), transparent 48%),
    var(--creative-ink-soft);
  box-shadow: 0 26px 70px rgba(8, 11, 9, 0.18);
}

.plan-card::after {
  width: 92px;
  height: 7px;
  background: var(--creative-red);
  opacity: 0.76;
}

.plan-card.featured {
  color: var(--creative-ink);
  border-color: var(--creative-lime);
  background: linear-gradient(145deg, var(--creative-lime), #fffbd4 78%);
  box-shadow: 0 30px 80px rgba(8, 11, 9, 0.2);
  transform: translateY(-18px) rotate(0.5deg);
}

.plan-card a,
.note-link {
  border-radius: 999px;
  box-shadow: none;
}

.sponsor-benefits,
.sponsor-decision-table {
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 7px 26px 7px 26px;
  background: var(--creative-ink-soft);
  box-shadow: 0 24px 64px rgba(8, 11, 9, 0.16);
}

.sponsor-decision-table thead th {
  color: var(--creative-ink);
  background: var(--creative-lime);
}

/* About and story sections */
.section-light .narrative > p {
  color: #2f3831;
}

.trust-rail {
  gap: 12px;
  border: 0;
  background: transparent;
}

.trust-rail article {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px 5px 18px 5px;
  background: var(--creative-ink-soft);
  box-shadow: 0 18px 48px rgba(8, 11, 9, 0.14);
}

.career-timeline h3 {
  color: var(--creative-ink);
}

.career-timeline article {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 16px 5px 16px 5px;
  background: var(--creative-ink-soft);
}

.career-timeline strong {
  color: #fff;
}

.career-timeline p,
.source-note {
  color: rgba(255, 255, 255, 0.7);
}

.source-note {
  border-left-color: var(--creative-lime);
  border-radius: 0 14px 14px 0;
  background: var(--creative-ink-soft);
}

.video-frame {
  overflow: hidden;
  border-color: rgba(234, 255, 34, 0.22);
  border-radius: 30px 7px 30px 7px;
}

.video-still {
  border-radius: 24px 5px 0 0;
}

.video-still img,
.emotion-photo-card img {
  transition: transform 650ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.video-still-overlay span,
.video-badges span {
  border-radius: 999px;
}

.video-chapters article,
.world-chapters article,
.review-card,
.conversion-board,
.support-switcher,
.official-links,
.world-manifesto {
  border-radius: 7px 24px 7px 24px;
}

.world-manifesto {
  box-shadow: 0 28px 76px rgba(8, 11, 9, 0.18);
}

.emotion-photo-card {
  border-radius: 28px 7px 28px 7px;
}

.support-controls button,
.official-links a,
.video-link-board a,
.contact-direct a {
  border-radius: 999px;
}

/* Review and conversion cards stay dark against the paper section */
.review-card,
.conversion-board {
  border-color: rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(145deg, rgba(234, 255, 34, 0.065), transparent 52%),
    var(--creative-ink-soft);
  box-shadow: 0 24px 64px rgba(8, 11, 9, 0.16);
}

/* Contact: a clear dark action panel at the end of the paper page */
.contact-layout {
  align-items: start;
}

.contact-form {
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 7px 30px 7px 30px;
  background:
    linear-gradient(145deg, rgba(234, 255, 34, 0.075), transparent 48%),
    var(--creative-ink-soft);
  box-shadow: 0 30px 80px rgba(8, 11, 9, 0.22);
}

.contact-form span {
  color: var(--creative-lime);
}

.contact-form input,
.contact-form textarea {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--creative-lime);
  box-shadow: 0 0 0 3px rgba(234, 255, 34, 0.16);
}

.form-note {
  color: rgba(255, 255, 255, 0.62);
}

.contact-direct a {
  color: var(--creative-ink);
  border-color: rgba(8, 11, 9, 0.18);
  background: rgba(255, 254, 248, 0.72);
}

.contact-direct a:hover {
  color: var(--creative-ink);
  border-color: var(--creative-lime);
  background: var(--creative-lime);
}

.site-footer {
  border-top: 1px solid rgba(234, 255, 34, 0.42);
  background: var(--creative-ink);
}

.footer-grid a {
  color: var(--creative-lime);
}

:focus-visible {
  outline-color: var(--creative-lime);
}

@keyframes creative-hero-drift {
  from {
    background-position: center, center, center, 67% center;
    transform: scale(1.018);
  }

  to {
    background-position: center, center, center, 62% center;
    transform: scale(1.045);
  }
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  }

  .hero h1 {
    font-size: clamp(3.8rem, 6.7vw, 5.6rem);
  }

  .blog-card:nth-child(1),
  .blog-card:nth-child(2) {
    grid-column: span 6;
  }

  .blog-card:nth-child(3) {
    grid-column: 2 / span 10;
  }
}

@media (max-width: 920px) {
  .site-header {
    inset: 9px 10px auto;
  }

  .site-nav {
    inset: calc(var(--header) + 16px) 10px auto;
    max-height: calc(100dvh - var(--header) - 28px);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 18px;
    background: rgba(6, 8, 6, 0.97);
    overscroll-behavior: contain;
  }

  .nav-toggle {
    border-radius: 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 100svh;
    gap: 24px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-proof {
    max-width: 620px;
    margin: 0;
    transform: none;
  }

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

  .social-feed {
    margin-top: 0;
  }

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

  .blog-card:nth-child(1),
  .blog-card:nth-child(2),
  .blog-card:nth-child(3) {
    grid-column: 1;
    min-height: auto;
    margin-top: 0;
  }

  .race-step:nth-child(odd),
  .race-step:nth-child(even) {
    margin-inline: 0;
  }

  .value-pillars article:nth-child(odd) {
    transform: none;
  }

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

@media (max-width: 620px) {
  :root {
    --header: 62px;
    --radius: 13px;
  }

  .page-grid {
    width: min(100% - 28px, var(--max));
  }

  main > section {
    scroll-margin-top: 80px;
  }

  .site-header {
    inset: 6px 7px auto;
    min-height: var(--header);
    padding: 9px 11px;
    border-radius: 15px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    inset: calc(var(--header) + 12px) 7px auto;
  }

  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(5, 7, 5, 0.08) 0%, rgba(5, 7, 5, 0.24) 28%, #050705 56%),
      linear-gradient(90deg, rgba(5, 7, 5, 0.42), rgba(5, 7, 5, 0.05)),
      url("./assets/hyrox-athlete-hero.png");
    background-position: center, center, 62% top;
    background-size: cover, cover, auto 44%;
    animation: none;
  }

  .hero::before {
    inset: 0;
    opacity: 0.34;
    background-size: 82px 82px;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 37vh;
    padding-bottom: 48px;
  }

  .hero-copy {
    padding: 0 0 0 14px;
  }

  .hero-copy::before {
    top: 0;
    height: 48px;
  }

  .hero h1 {
    max-width: 9em;
    font-size: clamp(2.75rem, 12.2vw, 3.65rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
  }

  .hero h1 span:last-child {
    font-size: 0.68em;
  }

  .hero p {
    margin-top: 17px;
    font-size: 0.94rem;
    line-height: 1.68;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-channels {
    margin-top: 14px;
    border-radius: 14px 4px 14px 4px;
  }

  .hero-channel {
    flex-basis: calc(50% - 8px);
    border-radius: 12px;
  }

  .hero-proof-grid,
  .hero-proof-detail {
    border-radius: 5px 17px 5px 17px;
  }

  .partner-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-strip p {
    padding: 12px 10px;
    font-size: 0.67rem;
    text-align: center;
  }

  .partner-strip p:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .split,
  .stats-layout,
  .sponsor-layout,
  .media-layout,
  .blog-layout,
  .contact-layout,
  .hyrox-race-layout,
  .sponsor-value-layout,
  .world-challenge-layout,
  .agent-review-layout,
  .video-story-layout {
    padding-block: 66px;
  }

  .section-heading h2 {
    max-width: 11em;
    font-size: clamp(2rem, 9.6vw, 2.7rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
  }

  .section-heading p {
    margin-top: 17px;
    font-size: 0.94rem;
    line-height: 1.78;
  }

  .media-large,
  .media-large img {
    min-height: 300px;
  }

  .media-large,
  .social-feed,
  .blog-card,
  .plan-card,
  .race-step,
  .contact-form,
  .mission-panel,
  .video-frame,
  .world-manifesto,
  .review-card,
  .conversion-board {
    border-radius: 5px 19px 5px 19px;
  }

  .station-photo {
    aspect-ratio: 16 / 10;
  }

  .stat-kpis {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    align-items: flex-start;
  }
}

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

/* HYROX SEASON 26/27 rule guide */
.rule-season {
  display: inline-flex;
  margin: 0 0 18px 10px;
  padding: 7px 10px;
  border: 1px solid rgba(234, 255, 34, 0.52);
  border-radius: 999px;
  color: var(--creative-lime);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.rule-board,
.rule-sources {
  grid-column: 2;
}

.rule-board {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px 28px 8px 28px;
  background:
    linear-gradient(145deg, rgba(234, 255, 34, 0.07), transparent 46%),
    var(--creative-ink-soft);
}

.rule-board-head > span,
.critical-rule-grid article > span {
  color: var(--creative-lime);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.rule-board-head h3 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.critical-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.critical-rule-grid article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px 4px 15px 4px;
  background: rgba(255, 255, 255, 0.045);
}

.critical-rule-grid h4 {
  margin: 8px 0;
  color: #fff;
  font-size: 1rem;
}

.critical-rule-grid p,
.penalty-legend p,
.rule-sources p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  line-height: 1.7;
}

.penalty-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.penalty-legend article {
  padding: 13px 14px;
  border-left: 3px solid var(--creative-lime);
  background: rgba(0, 0, 0, 0.25);
}

.penalty-legend strong {
  display: block;
  margin-bottom: 5px;
  color: var(--creative-lime);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.station-body .station-summary {
  margin-top: 14px;
}

.station-body .station-measure {
  display: inline-flex;
  margin-top: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(234, 255, 34, 0.28);
  border-radius: 999px;
  color: var(--creative-lime);
  background: rgba(234, 255, 34, 0.06);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.55;
}

.station-rules {
  display: grid;
  gap: 8px;
  margin: 17px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.7;
  list-style: none;
}

.station-rules li {
  position: relative;
  padding-left: 18px;
}

.station-rules li::before {
  position: absolute;
  left: 0;
  color: var(--creative-lime);
  content: "✓";
  font-weight: 900;
}

.station-body .station-penalty {
  margin-top: 16px;
  padding: 11px 13px;
  border-left: 3px solid #ff5d5d;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 93, 93, 0.09);
  font-size: 0.82rem;
  line-height: 1.65;
}

.station-penalty strong {
  margin-right: 8px;
  color: #ff8585;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.rule-sources {
  padding: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.rule-sources h3 {
  margin: 0 0 13px;
  color: #fff;
  font-size: 1rem;
}

.rule-source-list {
  display: grid;
  gap: 8px;
}

.rule-source-link {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px 3px 10px 3px;
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
}

.rule-source-link:hover {
  border-color: rgba(234, 255, 34, 0.42);
  background: rgba(234, 255, 34, 0.06);
}

.rule-source-link span {
  color: var(--creative-lime);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.rule-source-link strong {
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .rule-board,
  .rule-sources {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .rule-season {
    margin-left: 0;
  }

  .critical-rule-grid,
  .penalty-legend {
    grid-template-columns: 1fr;
  }

  .rule-board {
    padding: 18px;
  }

  .rule-source-link {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .station-body .station-measure {
    border-radius: 8px;
  }
}
/* Keep direct section links visible before IntersectionObserver settles. */
[data-reveal]:target {
  opacity: 1;
  transform: none;
  filter: none;
}
@media (max-width: 620px) {
  .hyrox-race-layout .section-heading h2 {
    max-width: 100%;
    font-size: clamp(1.85rem, 8.7vw, 2.25rem);
    overflow-wrap: anywhere;
  }
}