/* ============================================================
   WESTCOAST RIPPERS — style.css
   Wave. Ocean. Deep Blue.
============================================================ */

/* ── CSS VARIABLES ──────────────────────────────────────── */
:root {
  /* Palette — deep ocean blues */
  --black:         #020810;
  --near-black:    #040D1A;
  --abyss:         #061224;
  --deep-blue:     #0A1F3D;
  --ocean:         #0D2E5A;
  --mid-blue:      #1A4A7A;
  --wave-bright:   #1E8FCA;
  --wave-foam:     #2BBFF0;
  --spray:         #A8D8F0;
  --cream:         #C8DFF0;
  --white:         #EBF4FA;

  /* Typography */
  --font-head:   'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:   'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-pad:    clamp(4rem, 8vw, 7rem);
  --container-max:  1240px;
  --gutter:         clamp(1.25rem, 4vw, 2.5rem);

  /* Misc */
  --radius-sm:      3px;
  --transition:     0.2s ease;
  --nav-height:     68px;

  /* Wave border keyframe speed */
  --wave-speed: 3s;
}

/* ── WAVE BORDER ANIMATION ──────────────────────────────── */
@keyframes waveBorder {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes waveShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Wave border mixin — applied via wrapper approach */
.wave-border {
  position: relative;
}

.wave-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-sm) + 2px);
  background: linear-gradient(
    90deg,
    var(--wave-foam),
    var(--mid-blue),
    var(--wave-bright),
    var(--wave-foam),
    var(--ocean),
    var(--wave-bright)
  );
  background-size: 300% 300%;
  animation: waveBorder var(--wave-speed) ease infinite;
  z-index: -1;
}

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ── FOCUS STATES ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--wave-foam);
  outline-offset: 3px;
}

/* ── TYPOGRAPHY SCALE ───────────────────────────────────── */
.section-heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
}

.section-heading.light {
  color: var(--white);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--wave-bright);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-eyebrow.light {
  color: var(--wave-foam);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--cream);
  max-width: 58ch;
  margin-top: 1.25rem;
}

.section-intro.light {
  color: var(--spray);
}

.body-text {
  font-size: 1rem;
  color: var(--cream);
  max-width: 60ch;
  margin-top: 1rem;
}

/* ── LAYOUT UTILITIES ───────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-pad) 0;
  background: var(--black);
}

.section-dark {
  padding: var(--section-pad) 0;
  background: var(--near-black);
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), transform 0.15s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--wave-bright);
  color: var(--black);
  border: 2px solid var(--wave-bright);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--wave-foam);
  border-color: var(--wave-foam);
}

/* Shimmer on primary button */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: waveShimmer 2.5s linear infinite;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(43, 191, 240, 0.4);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--wave-foam);
  background: rgba(43, 191, 240, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--mid-blue);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--wave-bright);
  color: var(--white);
}

/* ── NAVIGATION ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(2, 8, 16, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(43, 191, 240, 0.15);
  height: var(--nav-height);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-brand {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0;
}

.nav-brand-main {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--white);
  text-transform: uppercase;
}

.nav-brand-sub {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--wave-bright);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--cream);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link--active {
  color: var(--wave-foam);
}

.nav-cta {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--black);
  background: var(--wave-bright);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
  transition: background var(--transition);
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--wave-foam);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  border-radius: var(--radius-sm);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  margin-top: 0;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(2,8,16,0.95) 0%,
      rgba(6,18,36,0.65) 45%,
      rgba(2,8,16,0.3) 100%
    );
}

/* Animated wave shimmer at bottom of hero */
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(43, 191, 240, 0.06),
    rgba(30, 143, 202, 0.1),
    rgba(43, 191, 240, 0.06),
    transparent
  );
  background-size: 200% 100%;
  animation: waveShimmer 4s ease infinite;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 var(--gutter);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.hero-location {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--wave-foam);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero-title-main {
  display: block;
  font-size: clamp(4rem, 12vw, 10rem);
  color: var(--white);
}

.hero-title-sub {
  display: block;
  font-size: clamp(3rem, 9vw, 7.5rem);
  color: var(--wave-bright);
}

.hero-tagline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.1em;
  color: var(--spray);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-body {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--cream);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero entrance animation */
.hero-location,
.hero-title,
.hero-tagline,
.hero-body,
.hero-actions {
  animation: heroFadeUp 0.9s ease both;
}

.hero-location { animation-delay: 0.1s; }
.hero-title    { animation-delay: 0.25s; }
.hero-tagline  { animation-delay: 0.4s; }
.hero-body     { animation-delay: 0.5s; }
.hero-actions  { animation-delay: 0.65s; }

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

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  opacity: 0.45;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--wave-foam), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

.scroll-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--cream);
  writing-mode: vertical-lr;
}

/* ── ABOUT ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-image-col {
  position: relative;
}

/* Wave border wrapper on about image */
.about-img-frame {
  position: relative;
  padding: 3px;
  border-radius: calc(var(--radius-sm) + 3px);
  overflow: hidden;
  clip-path: polygon(0 0, 96% 0, 100% 4%, 100% 100%, 4% 100%, 0 96%);
}

.about-img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--wave-foam),
    var(--mid-blue),
    var(--wave-bright),
    var(--ocean),
    var(--wave-foam)
  );
  background-size: 300% 300%;
  animation: waveBorder 4s ease infinite;
  z-index: 0;
}

.about-img-frame > * {
  position: relative;
  z-index: 1;
}

.about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-sm);
}

.about-img-stamp {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--wave-bright);
  padding: 0.4rem 0.8rem;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.about-text-col {
  padding: 1rem 0;
}

.about-text-col .section-heading {
  margin-bottom: 1.5rem;
}

.about-text-col .body-text + .body-text {
  margin-top: 1rem;
}

.about-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cream);
  text-transform: uppercase;
  border: 1px solid var(--mid-blue);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.about-location-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(43,191,240,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: waveShimmer 3s ease infinite;
}

.location-dot {
  width: 6px;
  height: 6px;
  background: var(--wave-foam);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--wave-foam);
  animation: dotPulse 2s ease infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 4px var(--wave-foam); }
  50%       { box-shadow: 0 0 12px var(--wave-foam), 0 0 20px rgba(43,191,240,0.4); }
}

/* ── BAR CROSSINGS ──────────────────────────────────────── */
.section-header-block {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Terrain grid — wave-animated border overall */
.terrain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--mid-blue);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  padding: 2px;
  gap: 2px;
}

/* Outer animated wave border on the grid */
.terrain-grid::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(
    90deg,
    var(--wave-foam),
    var(--ocean),
    var(--wave-bright),
    var(--wave-foam),
    var(--mid-blue),
    var(--wave-bright)
  );
  background-size: 300% 100%;
  animation: waveBorder 3s ease infinite;
  border-radius: calc(var(--radius-sm) + 3px);
  z-index: -1;
}

.terrain-card {
  background: var(--abyss);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  transition: background var(--transition);
  overflow: hidden;
}

/* Wave shimmer on hover */
.terrain-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(43,191,240,0.06) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.terrain-card:hover {
  background: var(--deep-blue);
}

.terrain-card:hover::after {
  opacity: 1;
}

/* Individual card wave border on hover */
.terrain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: linear-gradient(var(--abyss), var(--abyss)) padding-box,
    linear-gradient(90deg, var(--wave-foam), var(--mid-blue), var(--wave-bright)) border-box;
  background-size: 100%, 300% 100%;
  animation: waveBorder var(--wave-speed) ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.terrain-card:hover::before {
  opacity: 1;
}

.terrain-card-icon {
  width: 44px;
  height: 44px;
  color: var(--wave-bright);
  margin-bottom: 1.25rem;
}

.terrain-card-icon svg {
  width: 100%;
  height: 100%;
}

.terrain-card-heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.9rem;
}

.terrain-card-body {
  font-size: 0.9rem;
  color: var(--cream);
  line-height: 1.6;
}

/* ── VIDEOS / YOUTUBE ───────────────────────────────────── */
.videos-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.videos-text .section-heading {
  margin-bottom: 1.5rem;
}

.social-links-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* YT card — wave border always on */
.yt-channel-card {
  background: var(--abyss);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.yt-channel-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    90deg,
    var(--wave-foam),
    var(--ocean),
    var(--wave-bright),
    var(--mid-blue),
    var(--wave-foam)
  );
  background-size: 300% 300%;
  animation: waveBorder 4s ease infinite;
  border-radius: calc(var(--radius-sm) + 2px);
  z-index: 0;
}

.yt-channel-card > * {
  position: relative;
  z-index: 1;
}

/* Inner card background */
.yt-channel-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--abyss);
  border-radius: var(--radius-sm);
  z-index: 0;
}

.yt-card-logo {
  width: 72px;
  height: auto;
  position: relative;
  z-index: 2;
}

.yt-card-logo svg {
  width: 100%;
  height: auto;
}

.yt-card-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--spray);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 2;
}

.yt-card-tagline {
  font-size: 0.82rem;
  color: var(--cream);
  opacity: 0.7;
  position: relative;
  z-index: 2;
}

/* ── GALLERY ────────────────────────────────────────────── */
.gallery .section-eyebrow,
.gallery .section-heading {
  padding: 0 var(--gutter);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.gallery .section-heading {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 4px;
  max-width: 100%;
}

.gallery-item--large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.gallery-item--medium {
  grid-column: 2 / 3;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.gallery-btn {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--abyss);
  cursor: zoom-in;
}

.gallery-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item--large .gallery-btn img {
  height: 600px;
}

.gallery-item--medium .gallery-btn img {
  height: 298px;
}

.gallery-btn:hover img,
.gallery-btn:focus-visible img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2,8,16,0.5);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wave shimmer on gallery hover overlay */
.gallery-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(43,191,240,0.12),
    transparent
  );
  background-size: 200% 100%;
  animation: waveShimmer 2s ease infinite;
}

.gallery-btn:hover .gallery-overlay,
.gallery-btn:focus-visible .gallery-overlay {
  opacity: 1;
}

.gallery-expand {
  font-size: 2rem;
  color: var(--wave-foam);
  line-height: 1;
  position: relative;
  z-index: 2;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cream);
  background: linear-gradient(transparent, rgba(2,8,16,0.88));
  letter-spacing: 0.04em;
}

/* ── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,8,16,0.95);
  cursor: pointer;
}

.lightbox-inner {
  position: relative;
  z-index: 2;
  max-width: min(90vw, 1200px);
  max-height: 90svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80svh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  outline: 2px solid rgba(43, 191, 240, 0.3);
}

.lightbox-caption {
  font-size: 0.82rem;
  color: var(--cream);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  font-size: 1.4rem;
  color: var(--white);
  background: rgba(43, 191, 240, 0.1);
  border: 1px solid rgba(43, 191, 240, 0.3);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--wave-bright);
  color: var(--black);
}

/* ── SUPPORT ────────────────────────────────────────────── */
.support .section-heading {
  margin-bottom: 1rem;
}

.support .section-intro {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  padding: 3px;
  background: transparent;
}

/* Animated wave border wrapping all support cards */
.support-grid::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(
    90deg,
    var(--wave-foam),
    var(--mid-blue),
    var(--wave-bright),
    var(--ocean),
    var(--wave-foam)
  );
  background-size: 300% 100%;
  animation: waveBorder 3.5s ease infinite;
  border-radius: calc(var(--radius-sm) + 3px);
  z-index: 0;
}

.support-card {
  background: var(--abyss);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
  transition: background var(--transition);
  overflow: hidden;
}

.support-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 70%, rgba(43,191,240,0.05) 100%);
  pointer-events: none;
}

.support-card--accent {
  background: var(--deep-blue);
}

.support-card:hover {
  background: var(--deep-blue);
}

.support-card-icon {
  width: 40px;
  height: 40px;
  color: var(--wave-bright);
  margin-bottom: 1.25rem;
}

.support-card-icon svg {
  width: 100%;
  height: 100%;
}

.support-card-heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.support-card-body {
  font-size: 0.9rem;
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex: 1;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--near-black);
  border-top: 1px solid rgba(43, 191, 240, 0.2);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  position: relative;
  overflow: hidden;
}

/* Subtle wave shimmer in footer */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--wave-bright),
    var(--wave-foam),
    var(--mid-blue),
    var(--wave-bright),
    transparent
  );
  background-size: 200% 100%;
  animation: waveShimmer 4s linear infinite;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
}

.footer-location {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--wave-bright);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
}

.footer-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--wave-foam);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--mid-blue);
  letter-spacing: 0.06em;
}

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── RESPONSIVE ─────────────────────────────────────────── */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .terrain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .videos-layout {
    grid-template-columns: 1fr;
  }

  .about-img {
    height: 340px;
  }

  .about-img-frame {
    clip-path: none;
  }
}

/* Tablet small: ≤ 768px */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(2, 8, 16, 0.97);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--gutter) 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(43, 191, 240, 0.15);
  }

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

  .nav-link {
    font-size: 1rem;
    padding: 0.7rem 0.75rem;
    border-radius: var(--radius-sm);
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
  }

  .nav-toggle {
    display: flex;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item--large {
    grid-column: 1;
    grid-row: auto;
  }

  .gallery-item--medium {
    grid-column: 1;
  }

  .gallery-item--large .gallery-btn img,
  .gallery-item--medium .gallery-btn img {
    height: 260px;
  }
}

/* Mobile: ≤ 520px */
@media (max-width: 520px) {
  .terrain-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .social-links-block {
    flex-direction: column;
  }

  .social-links-block .btn {
    text-align: center;
  }

  .hero-scroll-hint {
    display: none;
  }

  .gallery-item--large .gallery-btn img,
  .gallery-item--medium .gallery-btn img {
    height: 220px;
  }
}

/* ── NAV LOGO IMAGE ─────────────────────────────────────── */
.nav-logo {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity var(--transition), filter var(--transition);
}

.nav-brand:hover .nav-logo,
.nav-brand:focus-visible .nav-logo {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(55%) sepia(80%) saturate(400%) hue-rotate(170deg) brightness(110%);
}

/* ── WAVE RIPPERS LETTERS ───────────────────────────────── */
.wave-rippers {
  display: inline-flex;
  gap: 0.01em;
  position: relative;
}

.wr-letter {
  display: inline-block;
  animation:
    ripperWave 1.8s ease-in-out infinite,
    ripperColor 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s), calc(var(--i) * 0.12s);
  transform-origin: bottom center;
  will-change: transform;
}

@keyframes ripperWave {
  0%   { transform: translateY(0)    scaleY(1)    skewX(0deg); }
  15%  { transform: translateY(-18px) scaleY(1.08) skewX(-4deg); }
  30%  { transform: translateY(-6px) scaleY(0.96) skewX(2deg); }
  45%  { transform: translateY(-22px) scaleY(1.1)  skewX(-3deg); }
  60%  { transform: translateY(-4px) scaleY(0.98) skewX(1deg); }
  75%  { transform: translateY(-14px) scaleY(1.05) skewX(-2deg); }
  90%  { transform: translateY(-2px) scaleY(1)    skewX(0deg); }
  100% { transform: translateY(0)    scaleY(1)    skewX(0deg); }
}

@keyframes ripperColor {
  0%   { color: var(--wave-bright); text-shadow: 0 0 20px rgba(30,143,202,0.5); }
  25%  { color: var(--wave-foam);   text-shadow: 0 0 30px rgba(43,191,240,0.8), 0 4px 12px rgba(43,191,240,0.4); }
  50%  { color: var(--white);       text-shadow: 0 0 40px rgba(255,255,255,0.6), 0 0 80px rgba(43,191,240,0.5); }
  75%  { color: var(--wave-foam);   text-shadow: 0 0 30px rgba(43,191,240,0.8), 0 4px 12px rgba(43,191,240,0.4); }
  100% { color: var(--wave-bright); text-shadow: 0 0 20px rgba(30,143,202,0.5); }
}

/* Spray droplet pseudo on each letter */
.wr-letter::before {
  content: '·';
  position: absolute;
  top: -0.5em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.3em;
  color: var(--wave-foam);
  opacity: 0;
  animation: sprayDrop 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s + 0.15s);
}

@keyframes sprayDrop {
  0%   { opacity: 0; transform: translateX(-50%) translateY(0); }
  20%  { opacity: 1; transform: translateX(-50%) translateY(-12px); }
  50%  { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* Reduced motion: keep color shift, lose the bounce */
@media (prefers-reduced-motion: reduce) {
  .wr-letter {
    animation: ripperColor 3s ease-in-out infinite !important;
    animation-delay: calc(var(--i) * 0.12s) !important;
  }
  .wr-letter::before {
    display: none;
  }
}

/* ── WAVE SVG DIVIDERS ──────────────────────────────────── */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -2px;
  margin-bottom: -2px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* dark→light: SVG background is near-black, fill is black (destination) */
.wave-divider--d2l {
  background: var(--near-black);
}
.wave-divider--d2l .wd-path--back {
  fill: var(--black);
  opacity: 0.6;
}
.wave-divider--d2l .wd-path--front {
  fill: var(--black);
}

/* light→dark */
.wave-divider--l2d {
  background: var(--black);
}
.wave-divider--l2d .wd-path--back {
  fill: var(--near-black);
  opacity: 0.6;
}
.wave-divider--l2d .wd-path--front {
  fill: var(--near-black);
}

/* Animated sine offset on each path */
.wd-path--back {
  animation: wdSineBack 5s ease-in-out infinite alternate;
  transform-origin: center;
}
.wd-path--front {
  animation: wdSineFront 3.8s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes wdSineBack {
  0%   { d: path("M0,40 C240,80 480,0 720,40 C960,80 1200,0 1440,40 L1440,80 L0,80 Z"); }
  50%  { d: path("M0,50 C200,10 440,70 720,35 C1000,5  1240,70 1440,45 L1440,80 L0,80 Z"); }
  100% { d: path("M0,30 C260,70 500,10 720,45 C940,75  1180,15 1440,38 L1440,80 L0,80 Z"); }
}
@keyframes wdSineFront {
  0%   { d: path("M0,55 C180,15 360,75 540,45 C720,15 900,65 1080,40 C1260,15 1380,60 1440,50 L1440,80 L0,80 Z"); }
  50%  { d: path("M0,45 C200,75 380,20 580,55 C760,80 940,30 1100,55 C1280,75 1400,35 1440,60 L1440,80 L0,80 Z"); }
  100% { d: path("M0,60 C160,25 340,70 560,40 C740,10 960,70 1120,35 C1300,5  1420,65 1440,45 L1440,80 L0,80 Z"); }
}

/* ── CANVAS WAVE DIVIDERS ───────────────────────────────── */
.wave-divider-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
  display: block;
  z-index: 2;
  margin-top: -2px;
  margin-bottom: -2px;
}

.wave-divider-canvas {
  display: block;
  width: 100%;
  height: 90px;
}

/* ── PARALLAX WAVE LAYERS ───────────────────────────────── */
/* ── HERO PARALLAX WAVES (pirate-style PNG layers) ── */
.parallax-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.pw-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: repeat-x;
  /* auto width so 1920x520 PNGs scale to container height — no squash */
  background-size: auto 100%;
}

.pw-layer--back {
  height: 65%;
  opacity: 0.5;
  animation: pwScroll1 12s linear infinite;
}

.pw-layer--mid {
  height: 50%;
  opacity: 0.72;
  animation: pwScroll2 8s linear infinite;
}

.pw-layer--front {
  height: 38%;
  opacity: 1;
  animation: pwScroll1 5s linear infinite;
}

@keyframes pwScroll1 {
  from { background-position-x: 1920px; }
  to   { background-position-x: 0; }
}

@keyframes pwScroll2 {
  from { background-position-x: 0; }
  to   { background-position-x: 1920px; }
}

/* ── RIPPLE CANVAS ──────────────────────────────────────── */
.ripple-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  opacity: 0.55;
}

/* ── FOAM PARTICLE CANVAS ───────────────────────────────── */
.foam-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  opacity: 0.7;
}

/* ── YOUTUBE EMBED ──────────────────────────────────────── */
.yt-embed-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.yt-embed-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--radius-sm);
}

/* ── LOGO SPIN (creak easter egg) ───────────────────────── */
.nav-logo.is-spinning {
  animation: helmSpin 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  filter: brightness(0) saturate(100%) invert(55%) sepia(80%) saturate(400%) hue-rotate(170deg) brightness(120%) !important;
}

@keyframes helmSpin {
  0%   { transform: rotate(0deg)   scale(1); }
  20%  { transform: rotate(25deg)  scale(1.05); }
  50%  { transform: rotate(-15deg) scale(1.08); }
  75%  { transform: rotate(10deg)  scale(1.04); }
  90%  { transform: rotate(-4deg)  scale(1.01); }
  100% { transform: rotate(0deg)   scale(1); }
}
