/* =============================================================
   style.css
   小河内タイムレンズ (Ogouchi Time Lens) - PR Homepage

   民俗学的・セピア調カラーパレット
   ─────────────
   Parchment:    #f5f0e8  (background primary)
   Parchment 2:  #ede7db  (background secondary)
   Paper White:  #faf7f0  (cards)
   Sepia:        #8b7355  (primary accent)
   Deep Sepia:   #6b5540  (emphasis)
   Forest Green: #2d5016  (heritage accent)
   Dark Brown:   #2a2018  (hero / footer)
   ============================================================= */


/* =============================================================
   0. CUSTOM PROPERTIES
   ============================================================= */

:root {
  /* ── Palette ────────────────────────────────────────────── */
  --bg-primary:      #f5f0e8;
  --bg-secondary:    #ede7db;
  --bg-card:         #faf7f0;
  --water-deep:      #3a3025;
  --water-mid:       #5a4a38;
  --water-light:     #8b7355;
  --water-surface:   #a89070;
  --gold:            #8b7355;
  --gold-light:      #a89070;
  --gold-glow:       rgba(139, 115, 85, 0.2);
  --accent-green:    #2d5016;
  --accent-green-light: #3d6b22;
  --sepia:           #6b5540;
  --sepia-deep:      #4a3a2a;
  --text-primary:    #2a2018;
  --text-secondary:  #5a4a3a;
  --text-muted:      #8a7a6a;
  --white:           #ffffff;
  --black:           #000000;

  /* ── Typography ─────────────────────────────────────────── */
  --font-heading:    'Sawarabi Mincho', 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho Pro', serif;
  --font-body:       'Noto Sans JP', 'Yu Gothic', 'Hiragino Sans', sans-serif;

  /* ── Spacing ────────────────────────────────────────────── */
  --section-padding:    1.5rem 1.5rem 3.5rem;
  --section-padding-lg: 7rem 2rem;
  --container-max:      1100px;
  --gap:                2rem;

  /* ── Transitions ────────────────────────────────────────── */
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast:   0.25s;
  --duration-mid:    0.5s;
  --duration-slow:   0.8s;

  /* ── Z-index layers ─────────────────────────────────────── */
  --z-hero-bg:       0;
  --z-hero-overlay:  1;
  --z-hero-content:  2;
  --z-nav:           100;
  --z-mobile-menu:   99;
}


/* =============================================================
   1. RESET & BASE
   ============================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover,
a:focus-visible {
  color: var(--sepia);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

::selection {
  background-color: rgba(139, 115, 85, 0.2);
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}


/* =============================================================
   2. UTILITY CONTAINER
   ============================================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}


/* =============================================================
   3. NAVIGATION BAR
   ============================================================= */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition:
    background-color var(--duration-mid) var(--ease-out),
    backdrop-filter var(--duration-mid) var(--ease-out),
    box-shadow var(--duration-mid) var(--ease-out),
    padding var(--duration-mid) var(--ease-out);
}

nav.scrolled {
  background-color: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 1px 20px rgba(42, 32, 24, 0.08);
  padding: 0.7rem 1.5rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #faf7f0;
  letter-spacing: 0.04em;
  transition: color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

nav.scrolled .nav-logo {
  color: var(--text-primary);
}

.nav-logo span {
  color: var(--water-surface);
}

nav.scrolled .nav-logo span {
  color: var(--gold);
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(250, 247, 240, 0.8);
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--duration-fast) var(--ease-out);
}

nav.scrolled .nav-links a {
  color: var(--text-secondary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width var(--duration-mid) var(--ease-out);
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #faf7f0;
}

nav.scrolled .nav-links a:hover,
nav.scrolled .nav-links a:focus-visible {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

/* ── Hamburger ────────────────────────────────────────────── */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: calc(var(--z-nav) + 1);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #faf7f0;
  border-radius: 1px;
  transition:
    transform var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

nav.scrolled .hamburger span {
  background-color: var(--text-primary);
}

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

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

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


/* =============================================================
   4. HERO SECTION — Old Map Background
   ============================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background-color: #2a2018;
  background-image: url('images/okutama_georef.jpg');
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Sepia-tinted gradient overlay on the old map */
.hero-overlay,
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: var(--z-hero-overlay);
  pointer-events: none;
}

.hero-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(42, 32, 24, 0.82) 0%,
      rgba(42, 32, 24, 0.45) 25%,
      rgba(90, 74, 56, 0.35) 50%,
      rgba(42, 32, 24, 0.5) 75%,
      rgba(42, 32, 24, 0.92) 100%
    );
}

/* Subtle warm light effect */
.hero::before {
  background:
    radial-gradient(
      ellipse 50% 40% at 30% 40%,
      rgba(168, 144, 112, 0.12) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 50% at 70% 60%,
      rgba(139, 115, 85, 0.08) 0%,
      transparent 70%
    );
  animation: caustics 10s ease-in-out infinite alternate;
}

@keyframes caustics {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.6;
    transform: scale(0.98);
  }
}

.hero-content {
  position: relative;
  z-index: var(--z-hero-content);
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: #faf7f0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-hero-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(250, 247, 240, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(250, 247, 240, 0.4), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}


/* =============================================================
   5. SECTION BASE STYLES
   ============================================================= */

section {
  position: relative;
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.section-header .section-subtitle {
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

/* Sepia accent line under section titles */
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1rem auto 0;
  border-radius: 1px;
}

/* Alternating section backgrounds */
section:nth-of-type(even) {
  background-color: var(--bg-secondary);
}

section:nth-of-type(odd) {
  background-color: var(--bg-primary);
}


/* =============================================================
   6. WAVE DIVIDER (CSS pseudo-element, gap-proof)
   ============================================================= */

.section::before {
  content: '';
  position: absolute;
  top: -69px;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 2;
  pointer-events: none;
  background-color: inherit;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,60 C1200,100 960,20 720,60 C480,100 240,20 0,60 Z' fill='%232a4a5a'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.section-contact::before {
  background-color: var(--bg-secondary);
}


/* =============================================================
   7. SCROLL-TRIGGERED ANIMATIONS
   ============================================================= */

.fade-in {
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }
.stagger > *:nth-child(7) { transition-delay: 0.6s; }
.stagger > *:nth-child(8) { transition-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .slide-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero::before,
  .hero::after,
  .scroll-indicator {
    animation: none;
  }
}


/* =============================================================
   8. BUTTONS
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-mid) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--white);
  box-shadow: 0 6px 30px var(--gold-glow), 0 0 40px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px var(--gold-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 0 0 var(--gold-glow);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(139, 115, 85, 0.08);
  color: var(--sepia);
  box-shadow: 0 0 25px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-sm {
  font-size: 0.825rem;
  padding: 0.6rem 1.6rem;
}


/* =============================================================
   9. ABOUT / TEXT SECTIONS
   ============================================================= */

.about-content {
  max-width: 750px;
  margin-inline: auto;
  text-align: center;
}

.about-content p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 2;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.lead {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem) !important;
  color: var(--text-primary) !important;
  line-height: 1.9 !important;
}


/* =============================================================
   10. STATS / COUNTERS SECTION
   ============================================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gap);
  max-width: var(--container-max);
  margin-inline: auto;
  text-align: center;
}

.stat-item {
  padding: 2rem 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
}

.stat-unit {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--sepia);
  margin-left: 0.15em;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}


/* =============================================================
   11. YOUTUBE VIDEO SECTION
   ============================================================= */

.video-section {
  text-align: center;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding-top: 56.25%;
  background-color: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 8px 40px rgba(42, 32, 24, 0.1),
    0 0 0 1px rgba(139, 115, 85, 0.1);
}

.video-container iframe,
.video-container .lazy-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lazy-iframe {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  cursor: pointer;
}

.lazy-iframe::before {
  content: '\25B6';
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.7;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.lazy-iframe:hover::before {
  opacity: 1;
}


/* =============================================================
   12. FEATURES / HIGHLIGHTS GRID
   ============================================================= */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  max-width: var(--container-max);
  margin-inline: auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(139, 115, 85, 0.12);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(42, 32, 24, 0.04);
  transition:
    transform var(--duration-mid) var(--ease-out),
    box-shadow var(--duration-mid) var(--ease-out),
    border-color var(--duration-mid) var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(42, 32, 24, 0.1);
  border-color: rgba(139, 115, 85, 0.25);
}

.feature-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--sepia));
  font-size: 1.5rem;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}


/* =============================================================
   13. TIMELINE
   ============================================================= */

.timeline {
  position: relative;
  max-width: 700px;
  margin-inline: auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--gold) 10%,
    var(--gold) 90%,
    transparent
  );
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--gold-glow);
  transform: translateX(calc(-50% + 1px));
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.timeline-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}


/* =============================================================
   14. GALLERY / IMAGE GRID
   ============================================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  max-width: var(--container-max);
  margin-inline: auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background-color: var(--bg-secondary);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to top, rgba(42, 32, 24, 0.9), transparent);
  font-size: 0.8rem;
  color: #faf7f0;
  transform: translateY(100%);
  transition: transform var(--duration-mid) var(--ease-out);
}

.gallery-item:hover figcaption {
  transform: translateY(0);
}


/* =============================================================
   15. STAFF / CREDITS SECTION
   ============================================================= */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
  max-width: var(--container-max);
  margin-inline: auto;
}

.staff-card {
  background: var(--bg-card);
  border: 1px solid rgba(139, 115, 85, 0.1);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(42, 32, 24, 0.04);
  transition:
    transform var(--duration-mid) var(--ease-out),
    box-shadow var(--duration-mid) var(--ease-out),
    border-color var(--duration-mid) var(--ease-out);
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(42, 32, 24, 0.08);
  border-color: rgba(139, 115, 85, 0.2);
}

.staff-card .staff-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  object-fit: cover;
  border: 2px solid rgba(139, 115, 85, 0.2);
  box-shadow: 0 4px 15px rgba(42, 32, 24, 0.08);
  background-color: var(--bg-secondary);
}

.staff-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.staff-card .staff-role {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.staff-card .staff-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.credits-list {
  max-width: 600px;
  margin-inline: auto;
}

.credits-list dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
}

.credits-list dt {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.credits-list dd {
  font-size: 0.95rem;
  color: var(--text-secondary);
}


/* =============================================================
   16. SOCIAL MEDIA SECTION
   ============================================================= */

.social-section {
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(139, 115, 85, 0.12);
  color: var(--text-secondary);
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(42, 32, 24, 0.04);
  transition:
    color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-mid) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 4px 20px var(--gold-glow);
  transform: translateY(-3px);
}

.social-link svg,
.social-link img {
  width: 22px;
  height: 22px;
}


/* =============================================================
   17. CONTACT / CTA SECTION
   ============================================================= */

.contact-section {
  text-align: center;
  background:
    linear-gradient(
      180deg,
      var(--bg-primary) 0%,
      var(--bg-secondary) 100%
    );
}

.contact-content {
  max-width: 600px;
  margin-inline: auto;
}

.contact-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.9;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-info a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--duration-fast) var(--ease-out);
}

.contact-info a:hover {
  color: var(--gold);
}


/* =============================================================
   18. FOOTER
   ============================================================= */

footer {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  background-color: #172e3a;
  border-top: 1px solid rgba(139, 115, 85, 0.15);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: rgba(250, 247, 240, 0.5);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(250, 247, 240, 0.5);
  letter-spacing: 0.03em;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(250, 247, 240, 0.35);
  line-height: 1.6;
}


/* =============================================================
   19. DECORATION EFFECTS
   ============================================================= */

.water-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.water-particles span {
  position: absolute;
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(139, 115, 85, 0.1);
  animation: particle-rise linear infinite;
}

.water-particles span:nth-child(1) {
  left: 10%;  animation-duration: 14s; animation-delay: 0s;    width: 3px; height: 3px;
}
.water-particles span:nth-child(2) {
  left: 25%;  animation-duration: 18s; animation-delay: 2s;    width: 5px; height: 5px;
}
.water-particles span:nth-child(3) {
  left: 40%;  animation-duration: 12s; animation-delay: 4s;    width: 2px; height: 2px;
}
.water-particles span:nth-child(4) {
  left: 55%;  animation-duration: 16s; animation-delay: 1s;    width: 4px; height: 4px;
}
.water-particles span:nth-child(5) {
  left: 70%;  animation-duration: 20s; animation-delay: 3s;    width: 3px; height: 3px;
}
.water-particles span:nth-child(6) {
  left: 85%;  animation-duration: 15s; animation-delay: 5s;    width: 6px; height: 6px;
}

@keyframes particle-rise {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.vignette {
  position: relative;
}

.vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(42, 32, 24, 0.06) 100%
  );
}

.shimmer-line {
  display: block;
  width: 120px;
  height: 1px;
  margin: 2rem auto;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    transparent
  );
  border: none;
  opacity: 0.5;
}


/* =============================================================
   20. RESPONSIVE DESIGN
   ============================================================= */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 80vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background-color: rgba(42, 32, 24, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: var(--z-mobile-menu);
    transform: translateX(100%);
    transition: transform var(--duration-mid) var(--ease-out);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.1rem;
    color: rgba(250, 247, 240, 0.85) !important;
  }

  .nav-links a:hover {
    color: #faf7f0 !important;
  }

  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 5rem 1rem 3rem;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  section {
    padding: 1.5rem 1rem 8rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

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

  .staff-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-inline: auto;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .credits-list dl {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    text-align: center;
  }

  .credits-list dt {
    text-align: center;
    margin-top: 0.75rem;
  }

  .video-container {
    border-radius: 8px;
  }
}

@media (min-width: 769px) {
  section {
    padding: var(--section-padding-lg);
  }

  .staff-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (min-width: 1200px) {
  :root {
    --container-max: 1200px;
  }

  nav {
    padding: 1.25rem 3rem;
  }

  nav.scrolled {
    padding: 0.8rem 3rem;
  }

  .hero-content h1 {
    font-size: 4.2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* =============================================================
   21. PRINT STYLES
   ============================================================= */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  nav,
  .hamburger,
  .scroll-indicator,
  .wave-divider,
  .wave-divider-animated,
  .water-particles,
  .social-links {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.6;
  }

  .hero {
    min-height: auto;
    padding: 2rem;
  }

  section {
    padding: 1.5rem;
    page-break-inside: avoid;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
  }
}


/* =============================================================
   22. SPECIAL EFFECTS & AMBIENT DETAILS
   ============================================================= */

.glow-text {
  text-shadow: 0 0 20px var(--gold-glow), 0 0 40px rgba(139, 115, 85, 0.1);
}

.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-ring {
  position: relative;
}

.glow-ring::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(139, 115, 85, 0) 0%,
    rgba(139, 115, 85, 0.15) 50%,
    rgba(139, 115, 85, 0) 100%
  );
  opacity: 0;
  transition: opacity var(--duration-mid) var(--ease-out);
  z-index: -1;
  filter: blur(8px);
}

.glow-ring:hover::before {
  opacity: 1;
}

.light-beam {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.light-beam::before,
.light-beam::after {
  content: '';
  position: absolute;
  top: -20%;
  width: 200px;
  height: 140%;
  background: linear-gradient(
    to bottom,
    rgba(139, 115, 85, 0.04),
    transparent 70%
  );
  transform: rotate(15deg);
}

.light-beam::before {
  left: 15%;
  transform: rotate(12deg);
}

.light-beam::after {
  right: 20%;
  width: 150px;
  transform: rotate(-8deg);
  opacity: 0.6;
}

.water-reflection {
  position: relative;
}

.water-reflection::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(139, 115, 85, 0.04),
    transparent
  );
}


/* =============================================================
   23. UTILITY CLASSES
   ============================================================= */

.text-center   { text-align: center; }
.text-left     { text-align: left; }
.text-right    { text-align: right; }

.text-gold     { color: var(--gold); }
.text-muted    { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mx-auto { margin-inline: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-wrap { white-space: nowrap; }

.max-w-narrow { max-width: 600px; }
.max-w-mid    { max-width: 800px; }
.max-w-wide   { max-width: 1000px; }


/* =============================================================
   24. PAGE-SPECIFIC STYLES (PR Homepage)
   ============================================================= */

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

.nav-links a.nav-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--white) !important;
  padding: 0.5rem 1.75rem;
  white-space: nowrap;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.825rem !important;
  transition:
    box-shadow var(--duration-mid) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.nav-links a.nav-cta:hover {
  box-shadow: 0 4px 20px var(--gold-glow);
  transform: translateY(-1px);
}

.nav-links a.nav-cta::after {
  display: none !important;
}

/* ── Hero title structure ────────────────────────────────── */

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-logo {
  display: block;
  max-width: min(80%, 700px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.4));
}

.hero-title-sub {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 500;
  color: rgba(250, 247, 240, 0.95);
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.4);
}

.hero-description {
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: rgba(250, 247, 240, 0.9);
  line-height: 2;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.4);
}

.hero-text-glass {
  background: rgba(42, 32, 24, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 1rem;
  padding: 0.8rem 0.3rem;
  margin-bottom: 0.5rem;
}

.hero-text-glass .hero-description {
  margin-bottom: 0.8rem;
}

.hero-text-glass .hero-buttons {
  margin-bottom: 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Hero-specific button overrides (on dark background with map) */
.hero .btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.hero .btn-primary:hover,
.hero .btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 6px 30px var(--gold-glow), 0 0 40px var(--gold-glow);
}

.hero .btn-secondary {
  border-color: rgba(250, 247, 240, 0.35);
  color: rgba(250, 247, 240, 0.85);
}

.hero .btn-secondary:hover,
.hero .btn-secondary:focus-visible {
  background: rgba(250, 247, 240, 0.1);
  border-color: rgba(250, 247, 240, 0.5);
  color: #faf7f0;
  box-shadow: 0 0 25px rgba(250, 247, 240, 0.08);
}

/* ── Photo bubbles (hero) ────────────────────────────────── */

.hero-photo-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: var(--z-hero-overlay);
  pointer-events: none;
}

.photo-bubble {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.7;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(168, 144, 112, 0.3), 0 0 40px rgba(139, 115, 85, 0.15);
  will-change: transform;
}

/* PC only: enable hover interaction */
@media (hover: hover) and (pointer: fine) {
  .hero-photo-bubbles {
    z-index: var(--z-hero-content);
  }

  .hero-content {
    pointer-events: none;
  }

  .hero-content a,
  .hero-content button {
    pointer-events: auto;
  }

  .photo-bubble {
    pointer-events: auto;
    cursor: pointer;
  }

  .photo-bubble.is-hovered {
    opacity: 1;
    box-shadow: 0 0 30px rgba(168, 144, 112, 0.5), 0 0 60px rgba(139, 115, 85, 0.3);
    z-index: 10;
  }
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(250, 247, 240, 0.4), transparent);
}

/* ── Story section ───────────────────────────────────────── */

.section-story {
  background-color: var(--bg-primary);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.section-subtitle {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
}

.story-grid {
  display: grid;
  gap: 3rem;
  max-width: 800px;
  margin-inline: auto;
}

.story-text {
  text-align: left;
}

.story-text p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 2;
}

.story-text p:last-child {
  margin-bottom: 0;
}

.story-lead {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem) !important;
  color: var(--text-primary) !important;
  line-height: 2 !important;
}

.story-panorama {
  margin-top: 2.5rem;
  margin-bottom: 0;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.section-story {
  padding-bottom: 0;
}

@media (min-width: 769px) {
  .story-panorama {
    margin-left: -2rem;
    margin-right: -2rem;
  }
}

.story-panorama img {
  display: block;
  width: 100%;
  height: auto;
}

.story-panorama-spacer {
  height: 68px; /* wave divider height */
}

.story-text strong {
  color: var(--sepia);
  font-weight: 600;
}

/* ── Stat cards ──────────────────────────────────────────── */

.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(139, 115, 85, 0.12);
  border-radius: 14px;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(42, 32, 24, 0.04);
  transition:
    transform var(--duration-mid) var(--ease-out),
    border-color var(--duration-mid) var(--ease-out);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 115, 85, 0.25);
}

/* ── Video section ───────────────────────────────────────── */

.section-video {
  background-color: var(--bg-secondary);
}

.video-wrapper {
  max-width: 800px;
  margin-inline: auto;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    rgba(139, 115, 85, 0.06) 0%,
    rgba(168, 144, 112, 0.04) 100%
  );
}

.video-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--duration-fast) var(--ease-out);
}

.video-placeholder:hover .video-placeholder-content {
  color: var(--gold);
}

.play-icon {
  transition: transform var(--duration-mid) var(--ease-out);
}

.video-placeholder:hover .play-icon {
  transform: scale(1.1);
}

/* ── Screenshot Carousel ─────────────────────────────────── */

.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3.5rem;
  padding: 0 50px;
}

.carousel-track-wrapper {
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  flex: 0 0 33.333%;
  padding: 0 10px;
  box-sizing: border-box;
}

.phone-frame {
  background: #1a1a2e;
  border-radius: 28px;
  padding: 8px;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(139, 115, 85, 0.2);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all var(--duration-fast) var(--ease-out);
  z-index: 3;
}

.carousel-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.carousel-btn-prev { left: 0; }
.carousel-btn-next { right: 0; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(139, 115, 85, 0.25);
  cursor: pointer;
  padding: 0;
  transition: all var(--duration-fast) var(--ease-out);
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .carousel {
    padding: 0 40px;
  }
  .carousel-slide {
    flex: 0 0 100%;
  }
  .carousel-slide .phone-frame {
    max-width: 80%;
    margin-inline: auto;
  }
  .carousel-btn {
    width: 32px;
    height: 32px;
  }
}

/* ── Features section ────────────────────────────────────── */

.section-features {
  background-color: var(--bg-primary);
}

.features-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--sepia));
  box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.feature-icon svg {
  width: 40px;
  height: 40px;
}

/* ── Heritage section ────────────────────────────────────── */

.section-heritage {
  background-color: var(--bg-secondary);
}

.heritage-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  max-width: var(--container-max);
  margin-inline: auto;
}

.heritage-photo {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid rgba(139, 115, 85, 0.15);
  box-shadow: 0 4px 15px rgba(42, 32, 24, 0.1);
}

.heritage-card {
  background: var(--bg-card);
  border: 1px solid rgba(139, 115, 85, 0.12);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(42, 32, 24, 0.04);
}

.heritage-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 0.02em;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(45, 80, 22, 0.3);
  border-radius: 50px;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.heritage-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}



.heritage-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-decoration: none;
  padding: 0.45rem 1.2rem;
  border: 1px solid rgba(139, 115, 85, 0.3);
  border-radius: 50px;
  transition: background 0.3s, color 0.3s;
}

.heritage-link:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

/* ── CTA section ─────────────────────────────────────────── */

.section-cta {
  background:
    linear-gradient(
      135deg,
      #2a2018 0%,
      #3a3025 100%
    );
  text-align: center;
  padding: 6rem 1.5rem;
}

.cta-content {
  max-width: 700px;
  margin-inline: auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  color: #faf7f0;
  margin-bottom: 1.5rem;
  letter-spacing: 0.06em;
  background: linear-gradient(
    180deg,
    #faf7f0 20%,
    #d4c4a8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-text {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: rgba(250, 247, 240, 0.75);
  line-height: 2.2;
  margin-bottom: 2.5rem;
}

.cta-text strong {
  color: #faf7f0;
  font-weight: 600;
}

.section-cta .btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.section-cta .btn-primary:hover,
.section-cta .btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 6px 30px var(--gold-glow), 0 0 40px var(--gold-glow);
}

.btn-large {
  font-size: 1.1rem;
  padding: 1rem 3rem;
}

.cta-note {
  font-size: 0.8rem;
  color: rgba(250, 247, 240, 0.45);
  margin-top: 1.5rem;
}

/* ── Team section ────────────────────────────────────────── */

.section-team {
  background-color: var(--bg-secondary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  max-width: var(--container-max);
  margin-inline: auto;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid rgba(139, 115, 85, 0.1);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(42, 32, 24, 0.04);
  transition:
    transform var(--duration-mid) var(--ease-out),
    box-shadow var(--duration-mid) var(--ease-out),
    border-color var(--duration-mid) var(--ease-out);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(42, 32, 24, 0.08);
  border-color: rgba(139, 115, 85, 0.2);
}

.team-photo {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid rgba(139, 115, 85, 0.15);
  box-shadow: 0 4px 15px rgba(42, 32, 24, 0.1);
}

.team-role {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.team-name {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.team-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.team-hozonkai {
  font-size: 0.78rem;
  color: var(--gold);
  margin-top: 0.6rem;
  letter-spacing: 0.03em;
}

.team-staff {
  margin-top: 3rem;
  padding: 2rem;
  border-top: 1px solid rgba(139, 115, 85, 0.1);
}

.staff-section-heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 2rem;
}

.staff-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin-inline: auto;
}

.staff-group-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.staff-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.staff-list li {
  font-size: 0.9rem;
  color: var(--text-primary);
  padding: 0.35rem 0;
  line-height: 1.5;
}

.staff-role {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.team-supporters {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  border-top: 1px solid rgba(139, 115, 85, 0.1);
}

.supporters-heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.supporters-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.thanks-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

.thanks-list li {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.supporters-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 2;
}

/* ── Social section ──────────────────────────────────────── */

.section-social {
  background-color: var(--bg-primary);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  max-width: 700px;
  margin-inline: auto;
}

.social-card {
  background: var(--bg-card);
  border: 1px solid rgba(139, 115, 85, 0.12);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(42, 32, 24, 0.04);
  transition:
    border-color var(--duration-mid) var(--ease-out),
    box-shadow var(--duration-mid) var(--ease-out);
}

.social-card:hover {
  border-color: rgba(139, 115, 85, 0.2);
  box-shadow: 0 8px 30px rgba(42, 32, 24, 0.08);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--sepia));
  box-shadow: 0 4px 15px rgba(139, 115, 85, 0.25);
}

.social-profile-link {
  position: relative;
  display: block;
  width: 96px;
  margin: 0 auto 1.25rem;
}

.social-profile-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 15px rgba(139, 115, 85, 0.25);
}

.social-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.social-badge-x {
  background: #000;
}

.social-badge-ig {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-embed {
  overflow: hidden;
  max-width: 100%;
  margin-top: 1.5rem;
}

.social-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  padding: 0.6rem 1.6rem;
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-mid) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.btn-social:hover {
  background: rgba(139, 115, 85, 0.08);
  box-shadow: 0 0 25px var(--gold-glow);
  transform: translateY(-2px);
  color: var(--sepia);
}

/* ── Contact section ─────────────────────────────────────── */

.section-contact {
  background:
    linear-gradient(
      180deg,
      var(--bg-secondary) 0%,
      var(--bg-primary) 100%
    );
  text-align: center;
  padding: 6rem 1.5rem;
}

.section-contact .section-subtitle {
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.section-contact .contact-content {
  max-width: 600px;
  margin-inline: auto;
}

/* ── Footer ──────────────────────────────────────────────── */

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: rgba(250, 247, 240, 0.8);
  margin-bottom: 0.25rem;
}

.footer-brand p {
  font-size: 0.8rem;
  color: rgba(250, 247, 240, 0.45);
}

.footer-social {
  display: flex;
  gap: 1.25rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(250, 247, 240, 0.06);
  border: 1px solid rgba(250, 247, 240, 0.1);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-mid) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.footer-social a:hover {
  border-color: rgba(250, 247, 240, 0.3);
  background: rgba(250, 247, 240, 0.12);
  box-shadow: 0 0 15px rgba(250, 247, 240, 0.08);
  transform: translateY(-2px);
}

.footer-social a svg {
  transition: fill var(--duration-fast) var(--ease-out);
}

.footer-social a:hover svg {
  fill: #faf7f0;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 240, 0.08);
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(250, 247, 240, 0.35);
}


/* ── Mobile adjustments for page-specific sections ───────── */

@media (max-width: 768px) {
  .hero-logo {
    max-width: min(90%, 450px);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .story-grid {
    gap: 2rem;
  }

  .heritage-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .heritage-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto auto;
    align-items: center;
    text-align: left;
    padding: 1.25rem;
    column-gap: 1.25rem;
    row-gap: 0.25rem;
  }

  .heritage-card .heritage-photo {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 80px;
    height: 80px;
    margin: 0;
    align-self: center;
  }

  .heritage-card .heritage-badge {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    justify-self: start;
  }

  .heritage-card h3 {
    grid-column: 2;
    grid-row: 2;
    font-size: 1.05rem;
    margin-bottom: 0;
  }

  .heritage-card .heritage-link {
    grid-column: 2;
    grid-row: 3;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    padding: 0.35rem 1rem;
    justify-self: start;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-inline: auto;
  }

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

  .social-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto auto;
    align-items: center;
    text-align: left;
    padding: 1.25rem;
    column-gap: 1.25rem;
    row-gap: 0.25rem;
  }

  .social-card .social-profile-link {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 80px;
    margin: 0;
  }

  .social-card .social-profile-img {
    width: 80px;
    height: 80px;
  }

  .social-card .social-badge {
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
  }

  .social-card h3 {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    align-self: end;
  }

  .social-card .btn-social {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    align-self: start;
  }

  .social-card .social-embed {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .section-cta,
  .section-contact {
    padding: 1.5rem 1rem 4rem;
  }

  .btn-large {
    font-size: 1rem;
    padding: 0.85rem 2.5rem;
  }

  .footer-content {
    gap: 1rem;
  }

  .footer-links {
    gap: 1rem;
  }
}
