/* ==========================================================================
   Pickleball at Sea - greenfield stylesheet
   Structure:
     1. Reset + base
     2. Tokens (:root)
     3. Typography
     4. Layout primitives
     5. Buttons
     6. Cards
     7. Forms
     8. Navbar
     9. Footer
     10. Scroll utilities
     11. Homepage Acts 1-5
     12. Page-specific (appended by B2)
     13. Accessibility helpers
   ========================================================================== */

/* ===== 1. Reset + base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #0B1120;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }
figure { margin: 0; }
hr { border: 0; height: 1px; background: #E5E1DB; margin: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; }
ul { list-style: none; }
blockquote { margin: 0; quotes: none; }
blockquote::before, blockquote::after { content: none; }

/* ===== 2. Tokens ===== */
:root {
  /* Dark Sanctuary tokens (aligned with main TT site) */
  --abyss: #0B1120;
  --abyss-card: #131B2E;
  --abyss-elev: #1A2540;
  --cloud: #F0EDE8;
  --cloud-muted: #9CA3AF;
  --gold: #C9A84C;
  --gold-hi: #D4B557;
  --teal: #4A90A4;
  --border-dark: #2A3550;
  --border-light: #E5E1DB;
  --tint: #F0F6F9;
  --navy: #0F2440;
  --ink-muted: #5a6980;
  --danger: #A85454;
  --success-bg: #EBF5EE;
  --accent-coral: #f4845f;

  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.18);
  --shadow-dark: 0 4px 12px rgba(0,0,0,0.25);

  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.25,.8,.25,1);
}

/* ===== 3. Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #0B1120;
  margin: 0 0 16px;
}
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

h1, .t-d1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2, .t-d2 {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3, .t-d3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.6vw, 1.375rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
}
h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}
.t-b1 {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
}
.t-k1, .eyebrow {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark p {
  color: var(--cloud);
}

a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
}
a:hover { border-bottom-color: var(--gold); }
.section-dark a { color: var(--cloud); }

.text-muted { color: var(--ink-muted); }
.text-gold { color: var(--gold); }
.section-dark .text-muted { color: rgba(240,237,232,0.65); }

/* ===== 4. Layout primitives ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

.section { background: #FFFFFF; padding: 80px 0; }
.section-tint { background: var(--tint); padding: 80px 0; }
.section-dark { background: var(--abyss); padding: 80px 0; color: var(--cloud); }
@media (max-width: 768px) {
  .section, .section-tint, .section-dark { padding: 48px 0; }
}

.section-rule { border-bottom: 1px solid var(--border-light); }
.gold-tick {
  display: block; width: 40px; height: 1px; background: var(--gold);
  margin: 0 auto 20px; border: 0;
}

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.section-header { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; margin-left: auto; margin-right: auto; }
.section-header .eyebrow { display: block; margin-bottom: 14px; }
.section-header h2 { margin: 0 0 14px; }
.section-header p { color: var(--ink-muted); font-size: 1.0625rem; margin: 0; }
.section-dark .section-header p { color: rgba(240,237,232,0.75); }

/* Page header flat bar */
.page-header {
  position: relative;
  background: var(--abyss);
  color: var(--cloud);
  padding: clamp(64px, 10vh, 120px) 0 clamp(48px, 8vh, 80px);
  overflow: hidden;
}
.page-header__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.45);
  z-index: 0;
}
.page-header__inner { position: relative; z-index: 1; }
.page-header .eyebrow { display: block; margin-bottom: 16px; }
.page-header h1 { color: var(--cloud); margin: 0 0 16px; }
.page-header p { color: rgba(240,237,232,0.85); max-width: 60ch; font-size: 1.0625rem; }

/* ===== 5. Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
  will-change: transform;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-bottom-color: transparent; }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(201,168,76,0.4); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-xl { padding: 20px 44px; font-size: 1.125rem; }
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }

.btn-accent {
  background: var(--gold);
  color: var(--abyss);
  border-color: var(--navy);
}
.btn-accent:hover { background: var(--gold-hi); color: var(--abyss); }

.btn-outline {
  background: transparent;
  color: var(--cloud);
  border: 1px solid var(--cloud);
}
.btn-outline:hover { background: rgba(240,237,232,0.08); color: var(--cloud); }

.section:not(.section-dark) .btn-outline,
.section-tint .btn-outline {
  color: var(--navy); border-color: var(--navy);
}
.section:not(.section-dark) .btn-outline:hover,
.section-tint .btn-outline:hover { background: rgba(15,36,64,0.04); color: var(--navy); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid transparent;
  padding-left: 0; padding-right: 0;
}
.btn-ghost:hover { color: var(--gold); box-shadow: none; transform: none; border-color: transparent; }

/* Utility link styled like a subtle action */
.link-gold { color: var(--gold); border-bottom: 1px solid transparent; }
.link-gold:hover { border-bottom-color: var(--gold); }

/* ===== 6. Cards ===== */
.card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px;
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease),
    border-color 200ms var(--ease);
}
.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.section-dark .card {
  background: var(--abyss-card);
  border-color: var(--border-dark);
  box-shadow: none;
  color: var(--cloud);
}
.section-dark .card:hover,
.section-dark .card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-dark);
  border-color: var(--gold);
}
.section-dark .card h3 { color: var(--cloud); }

.card--editorial {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
@media (max-width: 768px) {
  .card--editorial { grid-template-columns: 1fr; }
}
.card--editorial img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card--editorial .card__body { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }

/* ===== 7. Forms ===== */
.form-control,
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="password"],
textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--abyss);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  width: 100%;
  line-height: 1.4;
}
.form-control:focus,
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
textarea { min-height: 140px; resize: vertical; }

label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: var(--navy);
}
.section-dark label { color: var(--cloud); }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; }
.checkbox-row input[type="checkbox"] { width: auto; margin-top: 4px; accent-color: var(--gold); }
.checkbox-row label { margin: 0; font-weight: 400; font-family: var(--font-body); font-size: 0.9375rem; }

.form-help { font-size: 0.8125rem; color: var(--ink-muted); margin-top: 4px; }
.form-error { font-size: 0.8125rem; color: var(--danger); margin-top: 4px; }

.note-rule { border-left: 1px solid var(--gold); padding: 4px 0 4px 16px; margin: 24px 0; }

.reveal-on-check { margin-top: 12px; }
.reveal-on-check[hidden] { display: none; }

/* Alerts */
.alert {
  position: fixed; top: 80px; right: 24px; z-index: 1000;
  padding: 14px 44px 14px 20px;
  background: #FFFFFF; border: 1px solid var(--border-light); border-radius: var(--radius);
  box-shadow: var(--shadow-md); font-size: 0.9375rem;
  transition: opacity 300ms ease, transform 300ms ease;
  max-width: 420px;
}
.alert-success { border-left: 3px solid var(--gold); }
.alert-error { border-left: 3px solid var(--danger); }
.alert-close { position: absolute; top: 10px; right: 10px; font-size: 1.25rem; color: var(--ink-muted); background: none; border: 0; cursor: pointer; }

/* ===== 8. Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,17,32,0.92);
  border-bottom: 1px solid rgba(42,53,80,0.5);
  transition: transform 350ms ease, padding 300ms ease, box-shadow 300ms ease, background 300ms ease;
  padding: 14px 0;
}
.navbar.scrolled { padding: 10px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.3); background: rgba(11,17,32,0.98); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--cloud); text-decoration: none; border-bottom: none;
}
.navbar-brand:hover { border-bottom: none; }
.brand-logo { width: 36px; height: 36px; }
.brand-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: var(--cloud); letter-spacing: -0.01em; }
.brand-accent { color: var(--gold); font-weight: 400; }

.navbar-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--cloud);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  border-bottom: none;
  transition: color 150ms ease, background 150ms ease;
}
.nav-link:hover { color: var(--gold); border-bottom: none; background: rgba(240,237,232,0.04); }
.nav-link.active { color: var(--gold); }
.nav-link.btn-nav {
  background: var(--gold);
  color: var(--abyss);
  font-weight: 600;
  padding: 10px 18px;
  margin-left: 10px;
}
.nav-link.btn-nav:hover { background: var(--gold-hi); color: var(--abyss); }

.navbar-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.navbar-toggle span { width: 22px; height: 2px; background: var(--cloud); transition: transform 200ms ease, opacity 200ms ease; }
.navbar-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .navbar-toggle { display: flex; }
  .navbar-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--abyss);
    border-bottom: 1px solid var(--border-dark);
    padding: 12px 20px 20px;
    gap: 2px;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: transform 200ms ease, opacity 200ms ease;
  }
  .navbar-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 12px 14px; }
  .nav-link.btn-nav { margin: 8px 0 0; text-align: center; }
}

/* Global top offset for fixed navbar */
main { padding-top: 64px; }
@media (max-width: 900px) { main { padding-top: 60px; } }

/* ===== 9. Footer ===== */
.footer {
  background: var(--abyss);
  color: var(--cloud);
  padding: 72px 0 32px;
  border-top: 1px solid var(--border-dark);
}
.footer h3, .footer h4 { color: var(--cloud); font-family: var(--font-heading); }
.footer h3 { font-size: 1.25rem; margin: 0 0 12px; }
.footer h4 { font-size: 0.9375rem; margin: 0 0 14px; letter-spacing: 0.02em; }
.footer p { color: rgba(240,237,232,0.75); font-size: 0.9375rem; line-height: 1.6; }
.footer a { color: rgba(240,237,232,0.85); border-bottom: 1px solid transparent; }
.footer a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer ul li { margin-bottom: 8px; font-size: 0.9375rem; }
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-dark);
  color: rgba(240,237,232,0.85);
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); border-bottom-color: var(--gold); background: rgba(201,168,76,0.05); }

.footer-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.9375rem; color: rgba(240,237,232,0.85); }
.footer-contact-item i { color: var(--gold); width: 16px; text-align: center; }

.footer-partner-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-dark); }
.footer-partner-link { display: inline-block; margin: 8px 0; border-bottom: none; }
.footer-partner-link:hover { border-bottom: none; }
.footer-partner-logo { max-width: 140px; height: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-small { font-size: 0.8125rem; opacity: 0.6; margin: 4px 0 0; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(240,237,232,0.55);
}
.footer-bottom p { margin: 0; font-size: 0.8125rem; color: rgba(240,237,232,0.55); }

/* ===== 10. Scroll utilities ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--gold); z-index: 9999;
  transition: width 120ms linear;
  pointer-events: none;
}

[data-scroll="fade-up"] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms var(--ease-out);
}
[data-scroll="fade-up"].is-revealed { opacity: 1; transform: translateY(0); }

[data-scroll="fade-up-stagger"] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
[data-scroll="fade-up-stagger"].is-revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-scroll] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== 11. Homepage Acts 1-5 ===== */

/* Act 1 - Arrive */
.act-arrive {
  position: relative; height: 120svh; overflow: clip;
  background: var(--abyss);
  margin-top: -64px; /* pull under fixed navbar */
}
@media (max-width: 900px) { .act-arrive { margin-top: -60px; } }

.act-arrive__bg {
  position: sticky; top: 0; height: 100svh;
  background-size: cover; background-position: center;
  transform: scale(var(--zoom, 1.12));
  filter: brightness(var(--bright, 0.55));
  will-change: transform, filter;
}
.act-arrive__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,17,32,0.1) 0%, rgba(11,17,32,0.45) 45%, rgba(11,17,32,0.85) 78%, rgba(11,17,32,1) 100%);
  pointer-events: none; z-index: 1;
}
.act-arrive__content {
  position: absolute; inset: 0; height: 100svh;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--cloud);
  padding: 0 24px;
  opacity: var(--arrive-opacity, 1);
}
.act-arrive__eyebrow {
  font: 600 0.6875rem/1 var(--font-heading);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.act-arrive__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.05;
  margin: 0 0 18px; color: var(--cloud);
  animation: arriveFade 500ms ease-out both;
}
@keyframes arriveFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.act-arrive__sub {
  max-width: 60ch; font-size: 1.125rem; line-height: 1.55;
  opacity: 0.9; margin: 0 auto 32px;
  color: var(--cloud);
}
.act-arrive__buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }

.act-arrive__countdown {
  font: 600 0.6875rem/1 var(--font-heading);
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--cloud);
  border-top: 1px solid var(--gold);
  padding-top: 14px;
  display: inline-flex; align-items: baseline; gap: 8px;
}
.act-arrive__countdown [data-countdown-days],
.act-arrive__countdown [data-countdown-hours],
.act-arrive__countdown [data-countdown-minutes] {
  font-size: 1rem; letter-spacing: 0.1em; font-feature-settings: "tnum";
}
.act-arrive__countdown .u { opacity: 0.7; margin-right: 2px; }
.act-arrive__countdown .sep { color: var(--gold); margin: 0 6px; }

.act-arrive__scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font: 600 0.6875rem/1 var(--font-heading);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(240,237,232,0.55);
  animation: arriveCue 2.4s ease-in-out infinite;
  z-index: 3;
}
@keyframes arriveCue {
  0%,100% { transform: translate(-50%,0); opacity: .55; }
  50% { transform: translate(-50%,6px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .act-arrive { height: 100svh; }
  .act-arrive__bg { transform: none; filter: brightness(0.55); }
  .act-arrive__title { animation: none; }
  .act-arrive__scroll-cue { animation: none; }
}
@media (max-width: 480px) { .act-arrive__scroll-cue { display: none; } }

/* Act 2 - Resort */
.act-resort { position: relative; height: 400svh; background: var(--abyss); }
.act-resort__stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.act-resort__images { position: absolute; inset: 0; }
.act-resort__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity 500ms ease-out, transform 6s ease-out;
  will-change: opacity, transform;
}
.act-resort__img.is-active { opacity: 1; transform: scale(1); }

.act-resort__copies {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 clamp(24px, 6vw, 80px);
  pointer-events: none;
}
.act-resort__copy {
  max-width: 440px; color: var(--cloud);
  background: var(--abyss);
  border: 1px solid var(--border-dark);
  padding: 28px 32px; border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
  opacity: 0; transform: translateX(40px);
  transition: opacity 500ms ease-out, transform 600ms var(--ease-out);
  position: absolute; right: clamp(24px, 6vw, 80px); top: 50%;
  translate: 0 -50%;
  visibility: hidden;
  pointer-events: auto;
}
.act-resort__copy.is-active { opacity: 1; transform: translateX(0); visibility: visible; }
.act-resort__eyebrow {
  font: 600 0.6875rem/1 var(--font-heading);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 10px;
}
.act-resort__copy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700;
  color: var(--cloud); margin: 0 0 12px; line-height: 1.2;
}
.act-resort__copy p:not(.act-resort__eyebrow) {
  font-size: 1rem; line-height: 1.6; opacity: 0.9; margin: 0;
  color: var(--cloud);
}

.act-resort__progress {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 2;
}
.act-resort__progress span {
  width: 28px; height: 2px; background: rgba(240,237,232,0.25); border-radius: 1px;
  transition: background 300ms;
}
.act-resort__progress span.is-active { background: var(--gold); }

@media (max-width: 768px) {
  .act-resort { height: 300svh; }
  .act-resort__copies { align-items: flex-end; padding: 0 16px 80px; justify-content: center; }
  .act-resort__copy { right: 16px; left: 16px; top: auto; bottom: 80px; translate: none; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .act-resort { height: auto; }
  .act-resort__stage { position: relative; height: auto; display: grid; gap: 24px; padding: 48px 16px; }
  .act-resort__images { position: static; display: grid; gap: 16px; }
  .act-resort__img { position: relative; opacity: 1; transform: none; transition: none; max-height: 60vh; }
  .act-resort__copies { position: static; display: grid; gap: 24px; padding: 0; }
  .act-resort__copy { position: relative; opacity: 1; transform: none; top: auto; translate: none; margin: 12px auto; visibility: visible; right: auto; left: auto; bottom: auto; }
  .act-resort__progress { display: none; }
}

/* Act 3 - Tournament */
.act-tournament {
  position: relative; height: 160svh;
  background: var(--abyss); color: var(--cloud);
}
.act-tournament__stage {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px clamp(24px, 5vw, 80px); overflow: hidden;
}
.act-tournament__header { text-align: center; margin-bottom: clamp(32px, 6vh, 64px); }
.act-tournament__eyebrow {
  font: 600 0.6875rem/1 var(--font-heading);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px;
}
.act-tournament__header h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  max-width: 740px; margin: 0 auto;
  color: var(--cloud);
}
.act-tournament__sub {
  max-width: 620px; margin: 16px auto 0;
  color: rgba(240, 237, 232, 0.72);
  font-size: 1rem; line-height: 1.55;
}

.act-tournament__track {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px); position: relative;
}
.act-tournament__beat {
  padding: 28px 24px;
  background: var(--abyss-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  opacity: 0; transform: translateY(40px);
  transition: opacity 600ms ease-out, transform 600ms var(--ease-out), border-color 300ms, background 300ms;
}
.act-tournament__beat.is-revealed { opacity: 1; transform: translateY(0); }
.act-tournament__beat.is-active { border-color: var(--gold); background: var(--abyss-elev); }
.act-tournament__icon {
  font-size: 1.75rem; color: var(--gold);
  margin-bottom: 14px; display: block;
}
.act-tournament__beat h3 {
  font-size: 1.25rem; margin: 0 0 8px;
  color: var(--cloud); font-weight: 700;
}
.act-tournament__beat p {
  font-size: 0.9375rem; opacity: 0.8;
  line-height: 1.55; margin: 0;
  color: var(--cloud);
}

.act-tournament__rule {
  position: absolute; left: clamp(24px, 5vw, 80px); right: clamp(24px, 5vw, 80px);
  bottom: 18%; height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) var(--rule-progress, 0%), rgba(240,237,232,0.1) var(--rule-progress, 0%));
}

@media (max-width: 768px) {
  .act-tournament { height: auto; }
  .act-tournament__stage { position: relative; height: auto; padding: 64px 20px; }
  .act-tournament__track { grid-template-columns: 1fr; gap: 14px; }
  .act-tournament__beat { opacity: 1; transform: none; }
  .act-tournament__rule { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .act-tournament { height: auto; }
  .act-tournament__stage { position: relative; height: auto; padding: 64px 20px; }
  .act-tournament__beat { opacity: 1; transform: none; transition: none; }
  .act-tournament__rule { display: none; }
}

/* Act 4 - Community */
.act-community {
  position: relative; min-height: 80svh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px clamp(24px, 6vw, 80px);
  overflow: hidden;
}
.act-community__quote {
  max-width: 860px; text-align: center;
  opacity: var(--q-opacity, 0); transform: scale(var(--q-scale, 0.92));
  transition: opacity 120ms linear, transform 120ms linear;
  will-change: opacity, transform;
}
.act-community blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.3;
  color: var(--abyss); margin: 0 0 20px;
  font-weight: 500; font-style: italic;
}
.act-community figcaption {
  font: 600 0.6875rem/1 var(--font-heading);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted);
}
@media (prefers-reduced-motion: reduce) {
  .act-community__quote { opacity: 1; transform: none; transition: none; }
}

/* Act 5 - Invitation */
.act-invitation {
  position: relative; min-height: 70svh;
  padding: 80px clamp(24px, 6vw, 80px);
  background: var(--abyss); color: var(--cloud);
  overflow: hidden;
}
.act-invitation__inner {
  position: relative; z-index: 1; text-align: center;
  max-width: 720px; margin: 0 auto;
  opacity: var(--inv-opacity, 0);
  transform: translateY(var(--inv-y, 40px)) scale(var(--inv-scale, 0.9));
  transition: opacity 120ms linear, transform 120ms linear;
  will-change: opacity, transform;
}
.act-invitation__urgency {
  font: 600 0.6875rem/1 var(--font-heading);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.act-invitation h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  color: var(--cloud); margin: 0 0 28px;
}
.act-invitation__countdown {
  display: flex; justify-content: center; gap: 32px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.act-invitation .cd-block {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.act-invitation .cd-block span:first-child {
  font-size: 2rem; font-weight: 700;
  font-family: var(--font-heading);
  font-feature-settings: "tnum";
  color: var(--cloud);
}
.act-invitation .cd-block .u {
  font: 600 0.6875rem/1 var(--font-heading);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(240,237,232,0.65);
}
.act-invitation__fine {
  margin-top: 20px; font-size: 0.875rem; opacity: 0.65;
  color: var(--cloud);
}

.act-invitation__drawings {
  position: relative; z-index: 1;
  max-width: 960px; margin: 56px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 720px) {
  .act-invitation__drawings { grid-template-columns: 1fr; }
}
.act-invitation__drawing {
  padding: 24px 28px;
  background: var(--abyss-card);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  text-align: left; color: var(--cloud);
}
.act-invitation__drawing-eyebrow {
  font: 600 0.6875rem/1 var(--font-heading);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 10px;
}
.act-invitation__drawing h3 {
  margin: 0 0 10px; font-size: 1.25rem; color: var(--cloud);
}
.act-invitation__drawing p { margin: 0 0 12px; opacity: 0.92; font-size: 0.9375rem; }
.act-invitation__drawing strong { color: var(--gold); }

.act-invitation__teaser {
  position: relative; z-index: 1;
  max-width: 720px; margin: 48px auto 0;
  text-align: center; padding-top: 32px;
  border-top: 1px solid rgba(240,237,232,0.1);
}
.act-invitation__teaser .fa-ship {
  font-size: 1.5rem; color: var(--gold);
  margin-bottom: 12px; display: block;
}
.act-invitation__teaser p { margin: 0 0 8px; opacity: 0.85; color: var(--cloud); }

@media (prefers-reduced-motion: reduce) {
  .act-invitation__inner { opacity: 1; transform: none; transition: none; }
}

/* ===== 12. Page-specific (B2 appends below this marker) ===== */

/* ===== page: about ===== */
.about-list { list-style: none; padding: 0; margin: 0 0 0; }
.about-list li {
  position: relative; padding: 8px 0 8px 20px;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  color: var(--abyss);
  border-bottom: 1px solid var(--border-light);
}
.about-list li:last-child { border-bottom: 0; }
.about-list li::before {
  content: ''; position: absolute; left: 0; top: 1.1em;
  width: 4px; height: 1px; background: var(--gold);
}
.about-expect {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px;
  margin-top: 40px;
}
.about-expect__item { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start; }
.about-expect__item i { color: var(--gold); font-size: 14px; margin-top: 8px; }
.about-expect__item h3 { margin: 0 0 6px; font-size: 1.125rem; }
.about-expect__item p { margin: 0; color: var(--ink-muted); }
@media (max-width: 680px) {
  .about-expect { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== page: events-index ===== */
/* .card--editorial is defined in section 6. Single-event page uses it. */
/* Past events inherit .card and .grid-3. Nothing else needed. */

/* ===== page: events-show ===== */
.event-hero {
  position: relative;
  min-height: 60svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--cloud);
  padding: clamp(80px, 14vh, 160px) 0;
  margin-top: -64px;   /* sit under the fixed navbar like homepage act-arrive */
  padding-top: calc(clamp(80px, 14vh, 160px) + 64px);
}
.event-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.1);
  transform-origin: center;
  z-index: 0;
}
.event-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,17,32,0.55) 0%, rgba(11,17,32,0.7) 100%);
  z-index: 0;
  opacity: 0.55;
}
.event-hero__inner { position: relative; z-index: 1; text-align: center; }
.event-hero h1 { color: var(--cloud); margin: 0 0 16px; }
.event-hero__meta {
  font: 600 0.75rem/1 var(--font-heading);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(240,237,232,0.85); margin: 0;
}

.event-detail-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px;
  max-width: 1100px; margin: 0 auto;
}
@media (max-width: 900px) {
  .event-detail-grid { grid-template-columns: 1fr; gap: 32px; }
}
.event-sidebar { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .event-sidebar { position: static; } }
.sidebar-card {
  background: #FFFFFF; border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.sidebar-card h3 { margin: 0 0 8px; font-size: 1.125rem; }
.sidebar-card p { color: var(--ink-muted); }

.event-resort-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 40px;
}
.event-resort-strip img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: var(--radius); display: block;
}
@media (max-width: 700px) {
  .event-resort-strip { grid-template-columns: 1fr; }
  .event-resort-strip img { height: 220px; }
}

.highlights { list-style: none; padding: 0; margin: 0; }
.highlights li {
  position: relative; padding: 8px 0 8px 20px; line-height: 1.6;
  border-bottom: 1px solid var(--border-light);
}
.highlights li:last-child { border-bottom: 0; }
.highlights li::before {
  content: ''; position: absolute; left: 0; top: 0.95em;
  width: 4px; height: 1px; background: var(--gold);
}

.itinerary-flat { list-style: none; padding: 0; margin: 0; }
.itinerary-flat li {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 20px 0; border-top: 1px solid var(--border-light);
}
.itinerary-flat li:first-child { border-top: 0; padding-top: 0; }
.itinerary-flat__day {
  font: 700 1.125rem/1 var(--font-heading); color: var(--gold);
  letter-spacing: 0.04em; padding-top: 2px;
}
.itinerary-flat h4 { margin: 0 0 6px; font-size: 1.0625rem; }
.itinerary-flat p { margin: 0; color: var(--ink-muted); }

/* ===== page: register ===== */
.form-step-section { margin-bottom: 36px; }
.form-step-title {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 20px; font-size: 1.25rem;
  padding-bottom: 12px; border-bottom: 1px solid var(--border-light);
}
.form-step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius);
  background: var(--gold); color: var(--abyss);
  font: 700 0.9375rem/1 var(--font-heading);
}

.category-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.category-option { cursor: pointer; margin: 0; }
.category-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.category-card {
  display: block; padding: 16px 18px;
  border: 1px solid var(--border-light); border-left: 2px solid transparent;
  border-radius: var(--radius); background: #FFFFFF;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  height: 100%;
}
.category-card strong {
  display: block; font-family: var(--font-heading); font-size: 1rem;
  color: var(--abyss); margin-bottom: 4px;
}
.category-card small {
  display: block; font-size: 0.875rem; line-height: 1.45;
  color: var(--ink-muted);
}
.category-option:hover .category-card { border-color: var(--gold); }
.category-option input[type="radio"]:checked + .category-card {
  border-color: var(--border-light);
  border-left: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.category-option input[type="radio"]:focus-visible + .category-card {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
@media (max-width: 700px) { .category-choice { grid-template-columns: 1fr; } }

/* ===== page: groups ===== */
.groups-benefits {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
  margin-top: 40px;
}
.groups-benefit { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start; }
.groups-benefit i { color: var(--gold); font-size: 14px; margin-top: 6px; }
.groups-benefit h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.groups-benefit p { margin: 0; color: var(--ink-muted); }
@media (max-width: 900px) { .groups-benefits { grid-template-columns: 1fr; gap: 20px; } }

.cruise-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cruise-card__header {
  background: var(--abyss);
  color: var(--cloud);
  padding: 24px 28px;
}
.cruise-card__header h3 { color: var(--cloud); margin: 6px 0 0; font-size: 1.5rem; }
.cruise-card__body { padding: 24px 28px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.cruise-features { list-style: none; padding: 0; margin: 0; }
.cruise-features li {
  position: relative; padding: 8px 0 8px 18px;
  font-size: 0.9375rem; line-height: 1.55;
  border-bottom: 1px solid var(--border-light); color: var(--abyss);
}
.cruise-features li:last-child { border-bottom: 0; }
.cruise-features li::before {
  content: ''; position: absolute; left: 0; top: 0.95em;
  width: 4px; height: 1px; background: var(--gold);
}

/* ===== page: sponsors ===== */
.sponsor-list { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
.sponsor-item {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: start;
}
.sponsor-item__num {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 2.75rem; line-height: 1;
  color: var(--gold); letter-spacing: -0.01em;
}
.sponsor-item h3 { margin: 0 0 8px; font-size: 1.25rem; }
.sponsor-item p { margin: 0; color: var(--ink-muted); }
@media (max-width: 700px) {
  .sponsor-item { grid-template-columns: 1fr; gap: 8px; }
  .sponsor-item__num { font-size: 2rem; }
}

/* ===== page: tournament ===== */
.tourn-table {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 40px 0;
  max-width: 1080px; margin: 0 auto;
}
.tourn-table__col h3 { margin: 0 0 16px; font-size: 1.0625rem; }
.rule-list { list-style: none; padding: 0; margin: 0; }
.rule-list li {
  position: relative; padding: 8px 0 8px 18px;
  font-size: 0.9375rem; line-height: 1.55;
  color: var(--abyss);
}
.rule-list li::before {
  content: ''; position: absolute; left: 0; top: 0.95em;
  width: 4px; height: 1px; background: var(--gold);
}
@media (max-width: 900px) {
  .tourn-table { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
}

.bracket-diagram { max-width: 860px; margin: 0 auto; }
.bracket-svg { width: 100%; height: auto; display: block; }

.skill-rows { display: flex; flex-direction: column; gap: 24px; }
.skill-row { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.skill-row__num {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 2rem; line-height: 1; color: var(--gold);
}
.skill-row__body h3 { margin: 0 0 6px; font-size: 1.125rem; }
.skill-row__body p { margin: 0; color: var(--ink-muted); }
@media (max-width: 600px) {
  .skill-row { grid-template-columns: 1fr; gap: 6px; }
  .skill-row__num { font-size: 1.5rem; }
}

.schedule-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border-light); }
.schedule-day { border-bottom: 1px solid var(--border-light); cursor: pointer; }
.schedule-day__header {
  display: grid; grid-template-columns: 48px 1fr 24px; gap: 16px; align-items: center;
  padding: 18px 0;
}
.schedule-day__num {
  font: 700 1.125rem/1 var(--font-heading); color: var(--gold);
  letter-spacing: 0.04em;
}
.schedule-day__title h4 { margin: 0; font-size: 1rem; }
.schedule-day__title span { display: block; margin-top: 4px; }
.schedule-chevron { color: var(--ink-muted); transition: transform 200ms ease; }
.schedule-day.open .schedule-chevron { transform: rotate(180deg); }
.schedule-day__body {
  max-height: 0; overflow: hidden;
  transition: max-height 260ms ease, padding 260ms ease;
  padding: 0 0 0 64px;
}
.schedule-day.open .schedule-day__body { max-height: 240px; padding: 0 0 20px 64px; }
.schedule-day__body p { margin: 0; color: var(--ink-muted); }
@media (max-width: 600px) {
  .schedule-day__body, .schedule-day.open .schedule-day__body { padding-left: 0; }
}

/* ===== page: contact ===== */
.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border-light); }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-question {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 0; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; font-family: var(--font-heading); font-weight: 600; font-size: 1.0625rem;
  color: var(--abyss);
}
.faq-question:hover { color: var(--gold); }
.faq-question i { color: var(--ink-muted); transition: transform 200ms ease; font-size: 0.875rem; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 260ms ease; }
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner { padding: 0 0 20px; color: var(--ink-muted); line-height: 1.65; font-size: 1rem; }

.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--tint); color: var(--navy);
  border: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.social-btn:hover { background: var(--gold); color: var(--abyss); border-color: var(--gold); border-bottom-color: var(--gold); }

/* ===== page: gallery ===== */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; justify-content: center; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--tint); border: 1px solid var(--border-light);
}
.gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform 300ms ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item__caption {
  padding: 12px 14px; font-size: 0.875rem; color: var(--ink-muted);
  border-top: 1px solid var(--border-light);
}

/* ===== page: winners ===== */
/* Uses .card + .grid primitives from sections 4 & 6. No extra styles required. */

/* ===== page: 404/error ===== */
/* Uses .section-dark + .btn-accent primitives. No extra styles required. */


/* ===== 13. Accessibility helpers ===== */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
.btn:focus-visible { outline: none; }
