/* =========================================================
   ALT. ROCK — Climbing gym demo
   Light theme · Design system + global styles
   ========================================================= */

:root {
  /* Light palette — chalk-dust off-white base */
  --bg: #FAF8F3;          /* warm off-white, chalk paper */
  --bg-elev: #FFFFFF;      /* pure white elevated surfaces */
  --surface: #F2EFE7;      /* warmer surface, faint stone */
  --surface-2: #E8E3D6;    /* deeper surface, stone */
  --line: #E2DCCD;         /* subtle hairlines */
  --line-strong: #BAB1A0;  /* stronger lines / borders */

  --ink: #14110E;          /* near-black ink */
  --ink-soft: #3D3833;     /* body copy */
  --ink-mute: #7A736A;     /* muted captions */
  --ink-faint: #B5AEA0;    /* faintest hint */

  --accent: #FF5A1F;       /* climbing chalk orange */
  --accent-soft: #FFB089;
  --accent-deep: #C8410E;
  --accent-tint: #FFEEE3;  /* very light orange wash */
  --signal: #C5D827;       /* sulfur — sparing use */

  /* Hold colors used throughout SVG visuals */
  --hold-1: #FF5A1F;       /* orange */
  --hold-2: #2E6BCF;       /* blue */
  --hold-3: #6BB04F;       /* green */
  --hold-4: #E8C547;       /* yellow */
  --hold-5: #B345A8;       /* purple */
  --hold-6: #1A1715;       /* black */

  /* Typography */
  --f-display: "Big Shoulders Display", "Impact", sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Geometry */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Shadow tokens — light theme leans on subtle shadows */
  --shadow-sm: 0 2px 6px rgba(20, 17, 14, 0.05);
  --shadow: 0 8px 24px rgba(20, 17, 14, 0.06), 0 2px 6px rgba(20, 17, 14, 0.04);
  --shadow-lg: 0 24px 60px rgba(20, 17, 14, 0.10), 0 6px 16px rgba(20, 17, 14, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" on, "cv11" on;
  overflow-x: hidden;
  position: relative;
}

/* Subtle paper-grain overlay — makes the off-white feel tactile */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--accent); color: #FFFFFF; }

/* =========================================================
   Typography
   ========================================================= */

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-2px);
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.display {
  font-size: clamp(64px, 14vw, 220px);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.025em;
}

.h1 { font-size: clamp(48px, 8vw, 120px); }
.h2 { font-size: clamp(36px, 5.5vw, 76px); }
.h3 { font-size: clamp(24px, 3vw, 40px); font-weight: 700; }
.h4 { font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: 0; text-transform: none; font-family: var(--f-body); }

.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.5;
}

p { color: var(--ink-soft); }

/* The signature triple-dot motif */
.dotword .dot {
  color: var(--accent);
  display: inline-block;
}

/* =========================================================
   Layout
   ========================================================= */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

.section-pad { padding: clamp(80px, 10vw, 160px) 0; }
.section-pad-sm { padding: clamp(60px, 7vw, 100px) 0; }

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* =========================================================
   Navigation
   ========================================================= */

.nav {
  position: fixed;
  top: 30px; left: 0; right: 0;
  z-index: 100;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), padding 200ms var(--ease), box-shadow 200ms var(--ease), top 220ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  top: 0;
}

/* =========================================================
   Info strip — sulfur yellow scrolling band at the top
   ========================================================= */

.info-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 105;
  height: 30px;
  background: #C5D827; /* sulfur yellow signal */
  color: #14110E;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  display: flex;
  align-items: center;
}
.info-strip-track {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  align-items: center;
  animation: infoStripScroll 36s linear infinite;
  padding-left: 56px;
  will-change: transform;
}
.info-strip-track > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.info-strip-track svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.info-strip:hover .info-strip-track {
  animation-play-state: paused;
}

@keyframes infoStripScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .info-strip-track { animation: none; }
}

.nav.is-scrolled {
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand .dot { color: var(--accent); margin: 0 1px; }
.brand .em { color: var(--ink-mute); font-size: 11px; font-family: var(--f-mono); margin-left: 10px; letter-spacing: 0.2em; font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  display: inline-block;
  transition: color 250ms var(--ease), transform 250ms var(--ease);
}
.nav-links a::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 380ms cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-links a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}
.nav-links a:hover::before { transform: scaleX(1); }
.nav-links a.active { color: var(--accent); padding-left: 14px; }
.nav-links a.active::before { transform: scaleX(1); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.18);
}
.nav-links a.active:hover { transform: translateY(-1px); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  background: var(--bg-elev);
}
.menu-btn span {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.menu-btn span::before, .menu-btn span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--ink);
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-cta .btn-text { display: none; }
}

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  padding: 100px var(--gutter) 40px;
  transform: translateX(100%);
  transition: transform 320ms var(--ease);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--f-display);
  font-size: 44px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.mobile-menu a.active { color: var(--accent); }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(255, 90, 31, 0.25);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20, 17, 14, 0.18); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--bg-elev);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn .arrow {
  width: 14px; height: 14px;
  transition: transform 200ms var(--ease);
}
.btn:hover .arrow { transform: translate(2px, -2px); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 100vh;
  padding: 100px var(--gutter) 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 100% 30%, rgba(255, 176, 137, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(186, 177, 160, 0.16), transparent 60%),
    var(--bg);
}

.hero-topo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at 70% 60%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 60%, black 30%, transparent 75%);
}
.hero-topo svg { width: 100%; height: 100%; }

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.10), transparent 60%);
  right: -150px;
  top: 30%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* Decorative climber silhouette in hero corner */
.hero-figure {
  position: absolute;
  right: -3%;
  bottom: -2%;
  width: clamp(280px, 40vw, 620px);
  z-index: 1;
  opacity: 0.92;
  pointer-events: none;
}
.hero-figure svg { width: 100%; height: auto; }

@media (max-width: 880px) {
  .hero-figure { display: none; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(16px, 2.5vh, 32px);
}

.hero-meta-item {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-meta-item strong { color: var(--ink); font-weight: 600; }

.hero-kicker {
  min-height: 1.2em;
  margin-bottom: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-headline {
  position: relative;
  display: grid;
  min-height: clamp(220px, 36vw, 560px);
  isolation: isolate;
}
.hero-phrase {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hero-phrase.is-active {
  opacity: 1;
  visibility: visible;
}
.hero-headline .split-line > span {
  display: block;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  transform-origin: 0 85%;
}
.hero-headline span .dot { color: var(--accent); }
.hero-phrase .split-line:nth-child(2) { padding-left: 12vw; }
.hero-phrase .split-line:nth-child(3) { padding-left: 4vw; }

.hero-foot {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  padding-top: 24px;
}

.hero-tagline {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--ink-soft);
  max-width: 50ch;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
  .hero-phrase .split-line:nth-child(2) { padding-left: 0; }
  .hero-phrase .split-line:nth-child(3) { padding-left: 0; }
}

/* =========================================================
   Stats strip
   ========================================================= */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: background 250ms var(--ease);
}
.stat:hover { background: var(--accent-tint); }
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  color: var(--ink);
  transition: color 250ms var(--ease);
}
.stat:hover .stat-num { color: var(--accent); }
.stat-num .unit {
  font-size: 0.4em;
  color: var(--ink-mute);
  margin-left: 6px;
  font-weight: 600;
}
.stat-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.stat::before {
  content: attr(data-index);
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* =========================================================
   Three pillars: CLIMB / MOVE / PLAY
   ========================================================= */

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}

.pillar {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr 0.9fr;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  border-bottom: 1px solid var(--line);
  align-items: start;
  position: relative;
  transition: background 300ms var(--ease);
}
.pillar:hover { background: var(--bg); }
.pillar:last-child { border-bottom: 0; }

.pillar-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.2em;
  padding-top: 14px;
}

.pillar-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.pillar-title .dot { color: var(--accent); }

.pillar-body {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pillar-body p { font-size: 17px; line-height: 1.55; }

.pillar-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.chip {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  cursor: default;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.chip:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pillar-figure {
  align-self: stretch;
  min-height: 220px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-figure svg { width: 90%; height: auto; }

@media (max-width: 1080px) {
  .pillar { grid-template-columns: 80px 1fr 1.2fr; }
  .pillar-figure { display: none; }
}
@media (max-width: 880px) {
  .pillar { grid-template-columns: 1fr; gap: 16px; }
  .pillar-num { padding-top: 0; }
}

/* =========================================================
   Section header
   ========================================================= */

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head .lead { justify-self: end; max-width: 50ch; }

@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head .lead { justify-self: start; }
}

/* =========================================================
   Page header (interior pages)
   ========================================================= */

.page-head {
  padding: 180px var(--gutter) 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(255, 176, 137, 0.20), transparent 60%),
    var(--bg);
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 {
  font-size: clamp(64px, 12vw, 180px);
  line-height: 0.85;
  letter-spacing: -0.025em;
  margin: 14px 0 0;
}
.page-head h1 .dot { color: var(--accent); }
.page-head .lead {
  margin-top: 28px;
  max-width: 56ch;
  font-size: clamp(18px, 1.7vw, 22px);
}
.page-head-topo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, transparent, black 40%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 40%, transparent);
}

.crumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.crumb a { color: var(--ink-mute); transition: color 200ms; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { color: var(--accent); }

/* =========================================================
   Facility area cards
   ========================================================= */

.areas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  min-height: 480px;
  background: var(--bg-elev);
}
.area:last-child { border-bottom: 0; }
.area:nth-child(even) { direction: rtl; background: var(--bg); }
.area:nth-child(even) > * { direction: ltr; }

.area-visual {
  position: relative;
  background:
    linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  min-height: 360px;
}
.area:nth-child(even) .area-visual { border-right: 0; border-left: 1px solid var(--line); }

.area-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 90, 31, 0.08), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(46, 107, 207, 0.06), transparent 50%);
  pointer-events: none;
}

.area-visual svg { position: relative; z-index: 1; }

.area-body {
  padding: clamp(40px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.area-body h2 {
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.9;
}
.area-body h2 .dot { color: var(--accent); }
.area-body p { font-size: 17px; max-width: 50ch; }

.area-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.spec {
  padding: 18px 0 0;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}
.spec:last-child { border-right: 0; padding-left: 16px; padding-right: 0; }
.spec-num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 250ms var(--ease);
}
.spec:hover .spec-num { color: var(--accent); }
.spec-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
  display: block;
}

@media (max-width: 880px) {
  .area, .area:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
  .area-visual { border-right: 0; border-bottom: 1px solid var(--line); min-height: 280px; }
  .area:nth-child(even) .area-visual { border-left: 0; border-bottom: 1px solid var(--line); }
}

/* =========================================================
   Choose us section
   ========================================================= */

.choose-us {
  overflow: hidden;
  padding-block: clamp(56px, 6vw, 92px);
  background:
    radial-gradient(ellipse 45% 50% at 8% 52%, rgba(199, 234, 0, 0.20), transparent 68%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
  border-bottom: 1px solid var(--line);
}

.choose-us-inner {
  width: min(100% - (var(--gutter) * 2), 1440px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(720px, 1.5fr);
  gap: clamp(12px, 2.4vw, 40px);
  align-items: center;
}

.choose-us-visual {
  position: relative;
  min-height: clamp(430px, 43vw, 610px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.choose-us-visual::before {
  content: "ALT.ROCK";
  position: absolute;
  left: -11%;
  bottom: 17%;
  z-index: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(92px, 13vw, 210px);
  line-height: 0.82;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20, 17, 14, 0.18);
  transform: rotate(-2deg);
  pointer-events: none;
}

.choose-us-visual img {
  position: relative;
  z-index: 1;
  width: min(106%, 560px);
  max-width: none;
  height: auto;
  transform: translateX(4%);
  filter: drop-shadow(0 30px 36px rgba(20, 17, 14, 0.18));
}

.choose-us-copy {
  position: relative;
  z-index: 2;
}

.choose-us-title {
  margin-top: 14px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(38px, 4.4vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.choose-us-title span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.choose-grid {
  margin-top: clamp(20px, 2.4vw, 30px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.choose-card {
  min-height: 136px;
  padding: 18px;
  border: 1px solid rgba(20, 17, 14, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 42px rgba(20, 17, 14, 0.06);
  color: var(--ink);
  transition:
    background-color 260ms var(--ease),
    border-color 260ms var(--ease),
    color 260ms var(--ease),
    box-shadow 260ms var(--ease),
    transform 260ms var(--ease);
}

.choose-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-bottom: 14px;
}

.choose-icon svg {
  width: 24px;
  height: 24px;
}

.choose-card h3 {
  max-width: 12ch;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 18px;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.choose-card p {
  margin-top: 10px;
  max-width: 22ch;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  transition: color 260ms var(--ease);
}

.choose-card:hover,
.choose-card:focus-within {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 24px 54px rgba(255, 90, 31, 0.30);
  transform: translateY(-6px);
}

.choose-card:hover .choose-icon,
.choose-card:focus-within .choose-icon,
.choose-card:hover p,
.choose-card:focus-within p {
  color: #fff;
}

.choose-card:hover .choose-icon svg,
.choose-card:focus-within .choose-icon svg {
  filter: drop-shadow(0 8px 12px rgba(20, 17, 14, 0.18));
}

@media (max-width: 1120px) {
  .choose-us-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .choose-us-visual {
    min-height: 390px;
    align-items: center;
  }
  .choose-us-visual img {
    width: min(82vw, 480px);
    transform: translateX(-4%);
  }
  .choose-us-title {
    font-size: clamp(34px, 7vw, 56px);
  }
  .choose-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .choose-us-visual {
    min-height: 340px;
  }
  .choose-us-visual::before {
    left: -6%;
    bottom: 12%;
    font-size: clamp(70px, 24vw, 120px);
  }
  .choose-us-visual img {
    width: min(112vw, 420px);
    transform: translateX(-8%);
  }
  .choose-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .choose-card {
    min-height: 0;
    padding: 24px;
  }
  .choose-card h3 {
    max-width: none;
  }
}

/* =========================================================
   Rates / pricing cards
   ========================================================= */

.rates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}

.rate-card {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: background 300ms var(--ease);
  background: var(--bg-elev);
}
.rate-card:last-child { border-right: 0; }
.rate-card:hover { background: var(--surface); }

.rate-card.featured {
  background: var(--ink);
  color: var(--bg);
}
.rate-card.featured h3,
.rate-card.featured .rate-name,
.rate-card.featured .rate-price { color: var(--bg); }
.rate-card.featured .rate-price .currency,
.rate-card.featured .rate-price .unit { color: var(--ink-faint); }
.rate-card.featured .rate-list li { color: var(--ink-faint); }
.rate-card.featured:hover { background: var(--ink); }
.rate-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
}

.rate-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.rate-price {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.rate-price .currency {
  font-size: 0.45em;
  color: var(--ink-mute);
  vertical-align: top;
  margin-right: 4px;
  font-weight: 600;
}
.rate-price .unit {
  font-size: 0.25em;
  color: var(--ink-mute);
  font-family: var(--f-mono);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}
.rate-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  flex-grow: 1;
}
.rate-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.rate-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .rates-grid { grid-template-columns: repeat(2, 1fr); }
  .rate-card:nth-child(2) { border-right: 0; }
  .rate-card:nth-child(1), .rate-card:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .rates-grid { grid-template-columns: 1fr; }
  .rate-card { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .rate-card:last-child { border-bottom: 0; }
}

/* =========================================================
   Programs / extras grid
   ========================================================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: background 250ms var(--ease), color 250ms var(--ease), border-color 250ms var(--ease), transform 250ms var(--ease), box-shadow 250ms var(--ease);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
/* Cards that include a thumb image lose their outer padding; the card-body and card-price reintroduce it. */
.card:has(.card-thumb) { padding: 0 0 32px; }
.card:hover {
  background: #C24010; /* dark orange */
  border-color: #C24010;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(194, 64, 16, 0.28);
}
.card:hover h3,
.card:hover p,
.card:hover .card-num,
.card:hover .card-price,
.card:hover .card-price .currency,
.card:hover .card-price .from { color: #fff; }
.card:hover .card-price { border-top-color: rgba(255, 255, 255, 0.28); }
.card-thumb {
  height: 180px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.card-thumb svg { width: 100%; height: 100%; }
.card-body {
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.card h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
}
.card p { font-size: 15px; }
.card-price {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 38px;
  line-height: 1;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.card:has(.card-thumb) .card-price { padding: 16px 28px 0; }
.card-price .currency { font-size: 0.5em; color: var(--ink-mute); margin-right: 2px; }
.card-price .from {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

@media (max-width: 880px) { .cards-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Steps (First Visit page)
   ========================================================= */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.step {
  padding: 48px 36px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background 250ms var(--ease);
}
.step:hover { background: var(--accent-tint); }
.step:last-child { border-right: 0; }

.step-mark {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 96px;
  line-height: 1;
  -webkit-text-stroke: 1.5px var(--accent);
  color: transparent;
  margin-bottom: 8px;
}
.step h3 { font-size: 28px; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; }

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
}

/* =========================================================
   Two-column info block (used on First Visit & Gym)
   ========================================================= */

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.cols-2 ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cols-2 ul li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-soft);
}
.cols-2 ul li::before {
  content: "+";
  color: var(--accent);
  font-family: var(--f-mono);
  font-weight: 700;
}

@media (max-width: 720px) { .cols-2 { grid-template-columns: 1fr; } }

/* =========================================================
   Form (booking on First Visit)
   ========================================================= */

.form-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 56px);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--accent);
  background: var(--bg-elev);
}
.field textarea { resize: vertical; min-height: 100px; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.form-note {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.faq-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-card h4 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.faq-card p { font-size: 15px; }

@media (max-width: 720px) { .faq-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CTA banner
   ========================================================= */

.cta {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(60px, 8vw, 120px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'><defs><pattern id='p' width='80' height='80' patternUnits='userSpaceOnUse'><path d='M0 40 Q 20 20 40 40 T 80 40' stroke='rgba(255,90,31,0.20)' fill='none' stroke-width='1'/></pattern></defs><rect width='100%25' height='100%25' fill='url(%23p)'/></svg>");
  opacity: 0.7;
}
.cta::after {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.30), transparent 65%);
  right: -200px;
  bottom: -200px;
  filter: blur(40px);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  max-width: var(--maxw);
  margin: 0 auto;
}
.cta h2 {
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.88;
  color: var(--bg);
}
.cta h2 .dot { color: var(--accent); }
.cta p { color: var(--ink-faint); font-size: 18px; max-width: 40ch; margin-top: 24px; }
.cta .btn-primary { background: var(--accent); color: #FFFFFF; }
.cta .btn-primary:hover { background: var(--bg); color: var(--ink); }
.cta .btn-ghost { border-color: rgba(250, 248, 243, 0.3); color: var(--bg); background: transparent; }
.cta .btn-ghost:hover { border-color: var(--bg); background: rgba(250, 248, 243, 0.08); }
.cta .eyebrow { color: var(--ink-faint); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 720px) {
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}

/* =========================================================
   Footer
   ========================================================= */

.foot {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  padding: 80px var(--gutter) 32px;
  position: relative;
  overflow: hidden;
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}
.foot-block h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 20px;
}
.foot-block ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-block a { color: var(--ink-soft); transition: color 200ms; font-size: 15px; }
.foot-block a:hover { color: var(--accent); }
.foot-block address {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.foot-mark {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(56px, 14vw, 244px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 0.5em;
  padding-bottom: 0.1em;
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  overflow-x: clip;
}
@media (max-width: 720px) {
  .foot-mark { white-space: normal; }
}
.foot-mark .dot { color: var(--accent); }

/* Per-letter spans injected by JS for the scale-on-hover effect */
.text-scale-anim { transform-origin: top left; }
.at-word-span { display: inline-block; }
.at-letter-span { display: inline-block; will-change: transform; }

/* Word-by-word reveal injected by JS for [data-words-reveal] */
.word-anim { display: inline-block; will-change: transform, opacity; }

.foot-base {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 24px;
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
}

@media (max-width: 880px) {
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .foot-inner { grid-template-columns: 1fr; }
}

/* =========================================================
   Reveal-on-load animation
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 800ms var(--ease) forwards;
}
.reveal.d1 { animation-delay: 100ms; }
.reveal.d2 { animation-delay: 220ms; }
.reveal.d3 { animation-delay: 340ms; }
.reveal.d4 { animation-delay: 460ms; }
.reveal.d5 { animation-delay: 580ms; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Photo overlays — Unsplash images with SVG fallback
   ========================================================= */

/* When a photo loads, it covers the SVG illustration beneath it.
   If the photo 404s, the onerror handler removes the img and the
   SVG fallback shows through automatically. */

.photo-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  background: var(--surface);
  display: block;
}

/* Hero subject photo (climber) sits on a coloured blob, big outline
   text stamps behind it. */
.hero-figure {
  border-radius: 18px;
  background: transparent;
}
.hero-figure svg { position: relative; z-index: 1; border-radius: 18px; }

/* Pillar thumbnails */
.pillar-figure { position: relative; }
.pillar-figure svg { position: relative; z-index: 1; }
.pillar-figure .photo-cover { border-radius: var(--radius-lg); }

/* === Image hover blur-swipe (Synapcy-style) ===
   Two stacked imgs: .dp-swipe__inbound is offset+blurred and invisible;
   on hover it swipes in while .dp-swipe__main swipes out. */
.dp-swipe { position: relative; overflow: hidden; }
.dp-swipe > img {
  transition: transform 600ms ease, opacity 600ms ease, filter 600ms ease;
  will-change: transform, opacity, filter;
}
.dp-swipe .dp-swipe__inbound {
  position: absolute !important;
  inset: 0 !important;
  z-index: 4;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transform: translateX(50%) scaleX(2);
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  border-radius: inherit;
}
.dp-swipe:hover .dp-swipe__inbound {
  transform: translateX(0) scaleX(1);
  opacity: 1;
  filter: blur(0);
}
.dp-swipe:hover .dp-swipe__main {
  transform: translateX(-50%) scaleX(2);
  opacity: 0;
  filter: blur(10px);
}
@media (prefers-reduced-motion: reduce) {
  .dp-swipe > img { transition: none !important; }
  .dp-swipe .dp-swipe__inbound { display: none; }
}

/* Area visuals (gym page) — full-bleed photo with subtle overlay */
.area-visual { position: relative; }
.area-visual .photo-cover { z-index: 2; }
.area-visual::after { z-index: 3; }
.area-visual svg { position: relative; z-index: 1; }

/* Card thumbnails (program cards) */
.card-thumb { position: relative; }
.card-thumb .photo-cover { border-bottom: 1px solid var(--line); }
.card-thumb svg { position: relative; z-index: 1; }

/* =========================================================
   Scroll-reveal animations (data-reveal attribute)
   Driven by IntersectionObserver in main.js — adds .in-view class.
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), clip-path 1100ms var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in-view { opacity: 1; transform: none !important; clip-path: inset(0 0 0 0); }

[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="down"]  { transform: translateY(-40px); }
[data-reveal="left"]  { transform: translateX(60px); }
[data-reveal="right"] { transform: translateX(-60px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="wipe"]  { clip-path: inset(0 100% 0 0); transform: none; }

/* Hero descendants opt OUT of the data-reveal hide — they animate via keyframes below */
.hero [data-reveal],
.hero [data-reveal="up"],
.hero [data-reveal="down"],
.hero [data-reveal="left"],
.hero [data-reveal="right"],
.hero [data-reveal="scale"],
.hero [data-reveal="wipe"] {
  opacity: 1;
  transform: none;
  transition: none;
  clip-path: none;
}

/* Hero entrance — pure CSS keyframes triggered by body.hero-can-enter
   blob / subject / stamp are visible by default (no entrance animation).
   GSAP can do parallax on them without conflict. */
.hero .chip-glow,
.hero-kicker,
.hero-meta-item,
.hero-tagline,
.hero-actions {
  opacity: 0;
}
.hero-phrase.is-active .split-line > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroSplitRise {
  from { opacity: 0; transform: translateY(110%); }
  to   { opacity: 1; transform: translateY(0); }
}

body.hero-can-enter .hero .chip-glow                  { animation: heroFadeUp 700ms 50ms  var(--ease) forwards; }
/* hero-meta-item has chip-glow as a sibling — match by class adjacency, not nth-of-type */
body.hero-can-enter .hero .hero-meta .hero-meta-item                   { animation: heroFadeUp 600ms 130ms var(--ease) forwards; }
body.hero-can-enter .hero .hero-meta .hero-meta-item ~ .hero-meta-item { animation: heroFadeUp 600ms 200ms var(--ease) forwards; }
body.hero-can-enter .hero .hero-kicker { animation: heroFadeUp 600ms 230ms var(--ease) forwards; }
body.hero-can-enter .hero-phrase.is-active .split-line:nth-of-type(1) > span { animation: heroSplitRise 900ms 150ms var(--ease) forwards; }
body.hero-can-enter .hero-phrase.is-active .split-line:nth-of-type(2) > span { animation: heroSplitRise 900ms 250ms var(--ease) forwards; }
body.hero-can-enter .hero-phrase.is-active .split-line:nth-of-type(3) > span { animation: heroSplitRise 900ms 350ms var(--ease) forwards; }
body.hero-can-enter .hero-phrase.is-active .split-line > span {
  opacity: 1;
  transform: translateY(0);
}
body.hero-can-enter .hero .hero-tagline               { animation: heroFadeUp 700ms 600ms var(--ease) forwards; }
body.hero-can-enter .hero .hero-actions               { animation: heroFadeUp 700ms 700ms var(--ease) forwards; }
.hero.hero-gsap-ready .hero-phrase .split-line > span { animation: none !important; }

/* Reduced motion — show hero immediately */
@media (prefers-reduced-motion: reduce) {
  .hero .chip-glow, .hero-kicker, .hero-meta-item, .hero-tagline, .hero-actions,
  .hero-phrase.is-active .split-line > span {
    opacity: 1; transform: none; animation: none;
  }
}

/* Stagger delays */
[data-stagger="1"] { transition-delay: 80ms; }
[data-stagger="2"] { transition-delay: 160ms; }
[data-stagger="3"] { transition-delay: 240ms; }
[data-stagger="4"] { transition-delay: 320ms; }
[data-stagger="5"] { transition-delay: 400ms; }
[data-stagger="6"] { transition-delay: 480ms; }
[data-stagger="7"] { transition-delay: 560ms; }
[data-stagger="8"] { transition-delay: 640ms; }

/* Letter-by-letter rise — used on hero headline */
.split-line {
  display: block;
  overflow: hidden;
}
.split-line > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 900ms var(--ease), opacity 600ms ease-out;
}
.in-view .split-line > span,
.split-line.in-view > span {
  transform: translateY(0);
  opacity: 1;
}
.split-line > span:nth-child(1) { transition-delay: 60ms; }
.split-line > span:nth-child(2) { transition-delay: 130ms; }
.split-line > span:nth-child(3) { transition-delay: 200ms; }
.split-line > span:nth-child(4) { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .split-line > span { transition: none; opacity: 1; transform: none; clip-path: none; }
}

/* =========================================================
   Hero — premium treatment with stamp text + blob + climber
   ========================================================= */

.hero {
  background:
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(255, 176, 137, 0.20), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(255, 90, 31, 0.10), transparent 60%),
    var(--bg);
}

/* Massive outline text stamped behind the hero, bleeds off the edges */
.hero-stamp {
  position: absolute;
  inset: auto 0 -8% -2%;
  z-index: 0;
  pointer-events: none;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(180px, 28vw, 460px);
  line-height: 0.78;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(20, 17, 14, 0.10);
  white-space: nowrap;
  user-select: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-stamp span { display: block; }
.hero-stamp span:nth-child(2) { padding-left: 4vw; opacity: 0.7; }

/* Coloured blob behind the climber subject */
.hero-blob {
  position: absolute;
  right: 6%;
  top: clamp(160px, 22vh, 260px);
  width: clamp(320px, 36vw, 560px);
  height: clamp(320px, 36vw, 560px);
  z-index: 1;
  background: linear-gradient(140deg, var(--accent) 0%, #FF7A3A 60%, #FFB089 100%);
  border-radius: 62% 38% 70% 30% / 50% 60% 40% 50%;
  filter: blur(0.5px);
  animation: blobMorph 18s ease-in-out infinite;
}
@keyframes blobMorph {
  0%, 100% { border-radius: 62% 38% 70% 30% / 50% 60% 40% 50%; }
  25%      { border-radius: 38% 62% 40% 60% / 70% 30% 50% 50%; }
  50%      { border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%; }
  75%      { border-radius: 70% 30% 60% 40% / 40% 60% 30% 70%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
}

/* Climber subject sits over the blob */
.hero-subject {
  position: absolute;
  right: 0;
  top: clamp(110px, 14vh, 160px);
  bottom: 40px;
  width: clamp(400px, 52vw, 880px);
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  border-radius: 18px 0 0 18px;
}
.hero-subject .photo-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: transparent;
  filter: contrast(1.05) saturate(1.05);
}
.hero-subject svg { position: relative; z-index: 0; width: 100%; height: 100%; }

/* Slow crossfade swap across the 5 hero photos (with subtle Ken Burns zoom) */
.hero-subject .hero-swap {
  opacity: 0;
  transform: scale(1);
  transition: opacity 2400ms cubic-bezier(0.65, 0, 0.35, 1),
              transform 9000ms ease-out;
  will-change: opacity, transform;
}
.hero-subject .hero-swap.is-active {
  opacity: 1;
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .hero-subject .hero-swap { transition: none; transform: none; }
}

@media (max-width: 980px) {
  .hero-stamp { font-size: clamp(120px, 22vw, 220px); inset: auto 0 -2% -2%; opacity: 0.7; }
  .hero-blob { right: -8%; top: 220px; opacity: 0.7; }
  .hero-subject {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: clamp(320px, 50vh, 480px);
    margin-top: 32px;
    border-radius: 18px;
  }
}
@media (max-width: 720px) {
  .hero-blob { width: 280px; height: 280px; right: -10%; top: 180px; opacity: 0.4; }
  .hero-subject { display: none; }
  .hero-stamp { display: none; }
}

/* =========================================================
   Glowing eyebrow chip (GymCare-style yellow pill, but in our accent)
   ========================================================= */

.chip-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #FFB089);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  isolation: isolate;
}
.chip-glow::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: inherit;
  filter: blur(16px);
  opacity: 0.55;
  z-index: -1;
}
.chip-glow .dot {
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
}

/* =========================================================
   Outline text utility — for "stamped" titles inside sections
   ========================================================= */

.title-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  text-stroke: 1.5px var(--ink);
}
.title-outline.thin { -webkit-text-stroke-width: 1px; }
.title-outline.accent { -webkit-text-stroke-color: var(--accent); }

/* Section background stamp — subtle massive text behind a section heading */
.bg-stamp {
  position: absolute;
  top: -6%;
  left: -2%;
  right: -2%;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(140px, 22vw, 360px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20, 17, 14, 0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.section-pad .wrap, .section-pad-sm .wrap { position: relative; z-index: 1; }


/* =========================================================
   Marquee — scrolling tagline strip
   ========================================================= */

.marquee {
  background: var(--ink);
  color: var(--bg);
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 56px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee-track span::after {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* =========================================================
   Gallery page
   ========================================================= */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease);
}
.filter-pill:hover { border-color: var(--ink); transform: translateY(-1px); }
.filter-pill.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.filter-count {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Masonry-ish CSS-grid gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
@media (max-width: 1080px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 480px)  { .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; } }

.g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  display: block;
  isolation: isolate;
}
.g-item.g-tall { grid-row: span 2; }
.g-item.g-wide { grid-column: span 2; }
@media (max-width: 480px) {
  .g-item.g-tall { grid-row: span 1; }
  .g-item.g-wide { grid-column: span 1; }
}

.g-item .photo-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 400ms var(--ease);
  position: absolute;
  inset: 0;
  z-index: 1;
}
.g-item:hover .photo-cover {
  transform: scale(1.06);
  filter: contrast(1.06) saturate(1.1);
}

.g-meta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 18px 18px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, transparent, rgba(20, 17, 14, 0.85));
  color: #FFFFFF;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 320ms var(--ease), opacity 320ms var(--ease);
}
.g-item:hover .g-meta,
.g-item:focus-visible .g-meta { transform: translateY(0); opacity: 1; }

.g-tag {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  background: var(--accent);
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.g-cap {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.gallery-foot {
  text-align: center;
  margin-top: 64px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.gallery-foot strong { color: var(--accent); font-weight: 600; }

/* Item enter / exit transitions for filtering */
.g-item {
  transition: transform 500ms var(--ease), opacity 380ms ease, filter 380ms ease;
}
.g-item.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  filter: grayscale(0.4);
}

/* =========================================================
   Lightbox
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 17, 14, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox-stage {
  position: relative;
  max-width: min(1100px, 90vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 320ms var(--ease);
}
.lightbox.is-open .lightbox-stage img { transform: scale(1); }
.lightbox-stage figcaption {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.8);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
  z-index: 2;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}
.lightbox-close { top: 28px; right: 28px; }
.lightbox-prev  { left: 32px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 32px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.06); }

@media (max-width: 720px) {
  .lightbox { padding: 30px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}

/* =========================================================
   GSAP-friendly tweaks — opt out of CSS reveal so GSAP can drive
   ========================================================= */

html.gsap-ready [data-reveal] {
  /* GSAP takes over — start invisible but skip CSS transition */
  transition: none;
}
html.gsap-ready .split-line > span {
  transition: none;
}

/* =========================================================
   LOADER — full-screen intro animation
   ========================================================= */

body.is-loading {
  overflow: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 56px) var(--gutter);
  overflow: hidden;
  pointer-events: auto;
  will-change: clip-path;
}

.loader.is-done {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s cubic-bezier(0.85, 0, 0.15, 1);
}

.loader-top, .loader-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.55);
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(-8px);
  animation: loaderFade 600ms 200ms var(--ease) forwards;
}
.loader-bottom { transform: translateY(8px); }
@keyframes loaderFade {
  to { opacity: 1; transform: translateY(0); }
}
.loader-top strong, .loader-bottom strong { color: var(--bg); font-weight: 600; }

/* Centered wordmark */
.loader-stamp {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(72px, 16vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.loader-stamp .lstrip {
  display: inline-flex;
  overflow: hidden;
  align-items: center;
}
.loader-stamp .lchar {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}
.loader.is-active .loader-stamp .lchar {
  transform: translateY(0);
  opacity: 1;
  transition: transform 800ms var(--ease), opacity 500ms ease-out;
}
.loader.is-active .loader-stamp .lchar:nth-child(1) { transition-delay: 80ms; }
.loader.is-active .loader-stamp .lchar:nth-child(2) { transition-delay: 130ms; }
.loader.is-active .loader-stamp .lchar:nth-child(3) { transition-delay: 180ms; }
.loader.is-active .loader-stamp .lchar:nth-child(4) { transition-delay: 230ms; color: var(--accent); }
.loader.is-active .loader-stamp .lchar:nth-child(5) { transition-delay: 280ms; }
.loader.is-active .loader-stamp .lchar:nth-child(6) { transition-delay: 330ms; }
.loader.is-active .loader-stamp .lchar:nth-child(7) { transition-delay: 380ms; }
.loader.is-active .loader-stamp .lchar:nth-child(8) { transition-delay: 430ms; }
.loader.is-active .loader-stamp .lchar:nth-child(9) { transition-delay: 480ms; }
.loader.is-active .loader-stamp .lchar:nth-child(10) { transition-delay: 530ms; }
.loader.is-active .loader-stamp .lchar:nth-child(11) { transition-delay: 580ms; }

/* Counter */
.loader-counter {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(64px, 9vw, 140px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bg);
  text-align: right;
}
.loader-counter .pct {
  font-size: 0.32em;
  font-family: var(--f-mono);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(250, 248, 243, 0.4);
  margin-left: 8px;
  vertical-align: super;
}

/* Progress bar */
.loader-bar {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(28px, 4vw, 56px);
  height: 1px;
  background: rgba(250, 248, 243, 0.12);
  z-index: 2;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 1.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.loader.is-active .loader-bar-fill { width: 100%; }

/* Subtle background pattern in loader */
.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'><defs><pattern id='p' width='80' height='80' patternUnits='userSpaceOnUse'><path d='M0 40 Q 20 20 40 40 T 80 40' stroke='rgba(255,90,31,0.15)' fill='none' stroke-width='1'/></pattern></defs><rect width='100%25' height='100%25' fill='url(%23p)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
}
.loader::after {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.30), transparent 65%);
  right: -200px;
  bottom: -200px;
  filter: blur(40px);
  pointer-events: none;
}

@media (max-width: 720px) {
  .loader-bottom { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .loader-counter { font-size: clamp(48px, 12vw, 96px); }
}

@media (prefers-reduced-motion: reduce) {
  .loader.is-done { transition: opacity 200ms; opacity: 0; clip-path: none; }
  .loader.is-active .loader-stamp .lchar { transition: none; }
  .loader.is-active .loader-bar-fill { transition: width 200ms; }
}
