/* ============================================================
   SLIEMA WOLVES FC — style.css
   Premium editorial sports aesthetic
   ============================================================ */

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg:            #00131D;
  --white:         #FFFFFF;
  --surface:       #061E2D;
  --surface-hover: #0A2A3D;
  --border:        rgba(255, 255, 255, 0.08);
  --border-mid:    rgba(255, 255, 255, 0.14);
  --text-dim:      rgba(255, 255, 255, 0.55);
  --text-faint:    rgba(255, 255, 255, 0.30);
  --accent:        #FFFFFF;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Courier New', Courier, monospace;

  --nav-h: 80px;
  --container: 1280px;
  --gutter: clamp(1.5rem, 5vw, 4rem);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: loaderFadeIn 0.8s var(--ease) forwards;
}

.loader-badge {
  width: 100px;
  height: auto;
}

@keyframes loaderFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============================================================
   GRAIN OVERLAY
   ============================================================ */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(0, 19, 29, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-badge {
  width: 38px;
  height: auto;
}

.nav-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--white);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.35s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 6rem;
  overflow: hidden;
}

/* Hero background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-gradient-1 {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(10, 42, 61, 0.8) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-gradient-2 {
  position: absolute;
  bottom: -30%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(6, 30, 45, 0.6) 0%, transparent 70%);
  border-radius: 50%;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 900px;
}

/* Badge float animation */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-badge {
  width: clamp(100px, 14vw, 140px);
  height: auto;
  filter: drop-shadow(0 0 60px rgba(255,255,255,0.08));
}

.hero-anim-badge {
  opacity: 0;
  animation:
    fadeUp 0.8s var(--ease) 0.3s forwards,
    floatBadge 6s ease-in-out 1.2s infinite;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
}

.hero-anim-tag {
  animation: fadeIn 0.6s ease 0.75s forwards;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
  gap: 0;
}

.hero-line {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(80px, 16vw, 14rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  display: block;
  opacity: 0;
}

.hero-anim-line-1 {
  animation: fadeUp 0.7s var(--ease) 1.0s forwards;
}

.hero-anim-line-2 {
  font-style: italic;
  animation: fadeUp 0.7s var(--ease) 1.2s forwards;
  color: var(--text-dim);
}

.hero-sub {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  font-weight: 300;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.7;
  opacity: 0;
}

.hero-anim-sub {
  animation: fadeUp 0.7s var(--ease) 1.4s forwards;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
}

.hero-anim-ctas {
  animation: fadeUp 0.7s var(--ease) 1.6s forwards;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

.btn-filled {
  background: var(--white);
  color: var(--bg);
  border: 1px solid var(--white);
}

.btn-filled:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  opacity: 0;
}

.hero-anim-scroll {
  animation: fadeIn 0.8s ease 2.2s forwards;
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: var(--border);
  overflow: hidden;
}

.scroll-line-inner {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.5);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0%); }
  100% { transform: translateY(100%); }
}

/* ============================================================
   MARQUEE TICKER
   ============================================================ */
.marquee-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 1rem 0;
  background: var(--surface);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-content {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 0.12em;
  color: var(--text-dim);
  white-space: nowrap;
  padding-right: 0;
}

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

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section-header {
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   STORY / TIMELINE SECTION
   ============================================================ */
.story-section {
  padding: 7rem 0 5rem;
  border-top: 1px solid var(--border);
}

.story-intro {
  margin-bottom: 5rem;
}

.story-main-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-top: 1.2rem;
}

/* Timeline container */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

/* Individual season block */
.tl-season {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: start;
  gap: 0 4rem;
  padding: 0 0 5rem 0;
  position: relative;
}

.tl-season:last-child {
  padding-bottom: 0;
}

/* Season label (left column) */
.tl-season-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0.3rem;
}

.tl-season-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}

.tl-season-year {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.12);
  transition: color 0.4s ease;
}

.tl-season--current .tl-season-year {
  color: rgba(255, 255, 255, 0.9);
}

/* Right column */
.tl-season-body {
  position: relative;
  padding-left: 2.5rem;
}

/* Dot on the timeline */
.tl-dot {
  position: absolute;
  left: -7px;
  top: 0.55rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.4s ease, background 0.4s ease;
}

.tl-dot--active {
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.tl-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.4rem;
}

.tl-text {
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-dim);
  max-width: 620px;
}

.tl-text--spaced {
  margin-top: 1.2rem;
}

.tl-text strong {
  color: var(--white);
  font-weight: 500;
}

/* Achievement badges */
.tl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.tl-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
}

.tl-badge--gold {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
  .timeline::before { left: 0; }

  .tl-season {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 3.5rem;
  }

  .tl-season-label {
    flex-direction: row;
    align-items: baseline;
    gap: 0.6rem;
    padding-right: 0;
    padding-bottom: 1.2rem;
    position: static;
  }

  .tl-season-year {
    font-size: 1.6rem;
  }

  .tl-season-body {
    padding-left: 1.5rem;
  }

  .tl-dot {
    left: -7px;
  }
}

/* ============================================================
   HIGHLIGHTS SECTION
   ============================================================ */
.highlights-section {
  padding: 7rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5rem;
}

.highlight-item {
  padding: 3.5rem 2.5rem;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: background 0.35s ease;
}

.highlight-item:last-child {
  border-right: none;
}

.highlight-item:hover {
  background: var(--surface-hover);
}

.highlight-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 0.75rem;
  display: block;
}

.highlight-number--small {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  letter-spacing: 0;
}

.highlight-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.highlights-motto {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 9rem);
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.highlights-motto-dot {
  color: var(--text-faint);
  font-weight: 400;
}

.highlights-motto-italic {
  font-style: italic;
  color: var(--text-dim);
}

/* ============================================================
   CABINET SECTION
   ============================================================ */
.cabinet-section {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.cabinet-header {
  margin-bottom: 4rem;
}

.cabinet-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-top: 1.2rem;
}

.cabinet-trophy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 0 2rem;
  gap: 2.5rem;
}

/* Trophy image */
.cabinet-trophy-img-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cabinet-trophy-img {
  width: clamp(120px, 15vw, 160px);
  height: auto;
  display: block;
  animation: trophyFloat 4s ease-in-out infinite;
  transition: filter 0.4s ease;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.5));
}

.cabinet-trophy-img:hover {
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.6)) brightness(1.08);
  animation-play-state: paused;
  transform: scale(1.04) translateY(-6px);
  transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes trophyFloat {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-10px); }
}

/* Text below trophy */
.cabinet-trophy-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.cabinet-trophy-season {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.cabinet-trophy-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

@media (max-width: 600px) {
  .cabinet-trophy-img {
    width: 120px;
  }
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.4s var(--ease);
}

.gallery-item:hover {
  transform: translateY(-4px);
}

.gallery-item--tall {
  grid-row: span 2;
  min-height: 540px;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.gallery-item:hover .gallery-placeholder {
  border-color: var(--border-mid);
  background: var(--surface-hover);
}

.gallery-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.gallery-img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  filter: brightness(0.88) saturate(0.9);
  transition: filter 0.4s ease, transform 0.5s var(--ease);
}

.gallery-item:hover .gallery-img {
  filter: brightness(1) saturate(1);
  transform: scale(1.03);
}


/* Extra gallery items — hidden by default */
.gallery-extra {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-extra.gallery-extra--visible {
  display: block;
}

.gallery-extra.gallery-extra--revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Show More / Less button */
.gallery-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.gallery-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.gallery-toggle-btn:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.gallery-toggle-icon {
  display: flex;
  align-items: center;
  transition: transform 0.35s ease;
}

.gallery-toggle-btn.open .gallery-toggle-icon {
  transform: rotate(180deg);
}

/* ============================================================
   JOIN / CONTACT SECTION
   ============================================================ */
.join-section {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.join-header {
  margin-bottom: 5rem;
}

.join-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.join-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 500px;
  line-height: 1.75;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.join-col-heading {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}

.join-links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.join-link {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dim);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.join-link:hover {
  color: var(--white);
}

.join-link .arrow {
  transition: transform 0.3s ease;
}

.join-link:hover .arrow {
  transform: translateX(4px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-badge {
  width: 30px;
  height: auto;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--white);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: center;
}

.footer-motto {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  text-align: right;
}

/* ============================================================
   RESPONSIVE — 1200px
   ============================================================ */
@media (max-width: 1200px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight-item:nth-child(2) {
    border-right: none;
  }

  .highlight-item:nth-child(3) {
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .highlight-item:nth-child(4) {
    border-top: 1px solid var(--border);
    border-right: none;
  }
}

/* ============================================================
   RESPONSIVE — 900px
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --nav-h: 70px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(0, 19, 29, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    align-items: flex-start;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 1rem var(--gutter);
    font-size: 0.9rem;
  }

  .nav-link::after {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .story-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item--tall {
    grid-row: span 1;
    min-height: 220px;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

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

  .join-col:last-child {
    grid-column: span 2;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 0.5rem;
  }

  .value-content {
    max-width: 260px;
  }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  /* Values: switch to accordion mode */
  .value-item {
    flex-wrap: wrap;
    padding: 1.75rem 0;
    align-items: flex-start;
  }

  .value-content {
    display: none; /* hidden on mobile — use accordion instead */
  }

  .value-mobile-content {
    display: block;
    width: 100%;
  }

  .value-item.active .value-mobile-content {
    max-height: 300px;
    opacity: 1;
  }

  .value-name {
    font-size: clamp(2.8rem, 12vw, 5rem);
  }

  .story-statement p {
    font-size: clamp(1.6rem, 5vw, 3rem);
  }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-motto {
    text-align: left;
  }

  .footer-copy {
    text-align: left;
  }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    border: none;
    gap: 1px;
    background: var(--border);
  }

  .highlight-item {
    border-right: none;
    border-bottom: none;
  }

  .highlight-item:nth-child(n) {
    border: none;
    border-right: none;
    border-top: none;
  }

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

  .gallery-item--wide {
    grid-column: span 1;
  }

  .gallery-item--tall {
    min-height: 240px;
  }

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

  .join-col:last-child {
    grid-column: span 1;
  }

  .nav-name {
    display: none;
  }

  .value-number {
    min-width: 45px;
    font-size: 0.75rem;
  }
}

/* ============================================================
   PARTNERS SECTION
   ============================================================ */

.partners-section {
  padding: 120px 0 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.partners-header {
  max-width: 680px;
  margin-bottom: 5rem;
}

.partners-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 1.2rem 0 1.5rem;
}

.partners-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 480px;
}

/* Grid */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 5rem;
}

.partner-item {
  flex: 1 1 calc(20% - 1px); /* 5 per row on desktop */
  min-width: 160px;
  background: #00131D;
  transition: background 0.3s ease;
}

.partner-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.partner-logo-wrap {
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

.partner-logo {
  max-width: 160px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.55);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.partner-item:hover .partner-logo {
  filter: brightness(0) invert(1) opacity(1);
  transform: scale(1.05);
}

/* Hover line accent */
.partner-logo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.4s ease;
}

.partner-item:hover .partner-logo-wrap::after {
  width: 100%;
}

/* CTA row */
.partners-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.partners-cta-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

.partners-cta-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease, opacity 0.3s ease;
}

.partners-cta-link:hover {
  gap: 0.9rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
  .partner-item {
    flex: 1 1 calc(33.33% - 1px);
  }
}

@media (max-width: 600px) {
  .partners-section {
    padding: 80px 0 60px;
  }

  .partner-item {
    flex: 1 1 calc(50% - 1px);
  }

  .partner-logo-wrap {
    padding: 2rem 1.5rem;
    min-height: 100px;
  }

  .partners-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
