/* ═══════════════════════════════════════════════════════════
   JCI PERLAS PASAY — Heritage of Excellence
   style.css
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --rose-dark:    #6e1033;
  --rose-mid:     #d83772;
  --rose-light:   #f28db2;
  --rose-pale:    #ffd0e1;
  --beige:        #f5ede0;
  --gold:         #c9a84c;
  --gold-light:   #e8c96a;
  --white:        #ffffff;
  --text-dark:    #2a0a18;
  --text-body:    #4a2030;

  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-hero-sans: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-hero-script: 'Amantea Script', 'Italianno', 'Segoe Script', 'Brush Script MT', cursive;

  --header-h:     72px;
  --section-pad:  clamp(60px, 8vw, 120px);
  --radius:       16px;
  --radius-sm:    10px;
  --shadow-rose:  0 8px 40px rgba(110, 16, 51, 0.18);
  --shadow-gold:  0 4px 20px rgba(201, 168, 76, 0.25);

  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero title — Amantea Script */
@font-face {
  font-family: 'Amantea Script';
  src: url('../fonts/AmanteaScript.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--beige);
  color: var(--text-body);
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.65;
}

/* Simple inner pages (no scroll-wrapper) — clear fixed header */
.subpage-main {
  padding: calc(var(--header-h) + var(--section-pad)) clamp(20px, 5vw, 80px)
    var(--section-pad);
  max-width: 720px;
  margin: 0 auto;
}

.subpage-main h1 {
  font-family: var(--font-head);
  color: var(--rose-dark);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.subpage-main p {
  margin-bottom: 1rem;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── Scroll Wrapper (Desktop Snap) ──────────────────────── */
.scroll-wrapper {
  scroll-snap-type: y mandatory;
  overflow-x: hidden;
  overflow-y: scroll;
  height: 100vh;
  height: 100dvh;
  max-width: 100%;
  scroll-padding-top: 0;
}

.section {
  scroll-snap-align: start;
  scroll-margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.section-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--section-pad) clamp(20px, 5vw, 80px);
}

/* ── Typography Helpers ──────────────────────────────────── */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.gold-label  { color: var(--gold); }

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.rose-heading { color: var(--rose-dark); }

/* ── Reveal Animation ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

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

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
/* No transform on .site-header: it would create a fixed-position containing block and
   trap the full-screen .mobile-overlay to the header bar height. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
}

/* Bar carries fill + blur so they slide away with the logo/nav (header shell stays
   transparent for full-viewport mobile overlay positioning). */
.site-header__bar {
  height: var(--header-h);
  transform: translateY(-100%);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-bottom: none;
  transition:
    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    background var(--transition),
    box-shadow var(--transition),
    backdrop-filter var(--transition);
}

.site-header.scrolled .site-header__bar {
  background: rgba(110, 16, 51, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: none;
}

/* Shown via JS when pointer nears top, or always on small screens / reduced motion */
.site-header.header-visible .site-header__bar,
.site-header:focus-within .site-header__bar {
  transform: translateY(0);
}

.site-header.header-visible,
.site-header:focus-within {
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .site-header__bar {
    transform: translateY(0);
  }

  .site-header {
    pointer-events: auto;
  }
}

.header-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: max(clamp(12px, 1.5vw, 28px), env(safe-area-inset-left));
  /* Extra right inset so the last nav label (e.g. Hall of PPs) clears the viewport edge */
  padding-right: max(clamp(16px, 2.25vw, 48px), env(safe-area-inset-right));
  padding-top: 0;
  padding-bottom: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  flex-shrink: 0;
  min-width: 0;
}

.header-logo img {
  height:40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.header-heritage-mark {
  display: block;
  height: clamp(100px, 3.2vw, 34px);
  width: auto;
  max-width: min(140px, 28vw);
  object-fit: contain;
  object-position: left center;
  opacity: 0.92;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  flex-wrap: nowrap;
}

.nav-link {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.05vw, 1.06rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  padding: 0.35rem 0;
  position: relative;
  transition: color var(--transition), text-shadow var(--transition);
  white-space: nowrap;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--gold-light);
  outline: none;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}
.nav-link:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  position: relative;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
  transition: var(--transition);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.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); }

/* Mobile overlay sits under .header-inner so the bar + hamburger stay tappable */
.mobile-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--rose-dark);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  -webkit-overflow-scrolling: touch;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.overlay-close {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  right: max(28px, env(safe-area-inset-right));
  z-index: 2;
  padding: 0.5rem;
  font-size: 1.5rem;
  color: var(--rose-pale);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.overlay-close:hover { color: var(--gold); }

.mobile-overlay ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.overlay-link {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--rose-pale);
  transition: color var(--transition);
}

.overlay-link:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   HERO SECTION — editorial / luxury treatment
   ═══════════════════════════════════════════════════════════ */
.hero-section {
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Slideshow — full-bleed cover, slow drift, long crossfades */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  will-change: opacity;
  transition: opacity 3.2s cubic-bezier(0.45, 0, 0.15, 1);
  background-color: #1a0a12;
}

.slide-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  will-change: transform;
  animation: heroKenburns 12s ease-out forwards;
  animation-play-state: paused;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide.active .slide-media {
  animation-play-state: running;
}

@keyframes heroKenburns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.25); }
}

/* Overlay — deep veil for legibility (dark-pink wordmark + type) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      rgba(28, 6, 18, 0.88) 0%,
      rgba(28, 6, 18, 0.55) 38%,
      rgba(60, 14, 32, 0.42) 62%,
      rgba(18, 6, 14, 0.72) 100%
    );
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 75% 65% at 30% 45%,
    transparent 0%,
    rgba(10, 4, 8, 0.55) 100%
  );
}

/* Gold “fireflies”: slow drift + glow flashes — above vignette, below copy */
.hero-sparks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 252, 244, 0.1) 0%,
    rgba(236, 210, 145, 0.7) 38%,
    transparent 70%
  );
  box-shadow:
    0 0 5px rgba(236, 210, 145, 0.5),
    0 0 14px rgba(201, 168, 76, 0.22);
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.55);
  will-change: opacity, transform;
  animation: var(--fly-name, heroFireflyA) var(--fly-dur, 21s)
    cubic-bezier(0.42, 0, 0.58, 1) var(--fly-delay, 0s) infinite;
}

/* Slow wandering loops (vw/vh from each spark’s anchor) + soft “lantern” flashes */
@keyframes heroFireflyA {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.55);
  }
  8% {
    opacity: 0.25;
    transform: translate3d(1.2vw, -1.8vh, 0) scale(0.75);
  }
  15% {
    opacity: 0.85;
    transform: translate3d(4vw, -4.5vh, 0) scale(1.05);
  }
  26% {
    opacity: 0.35;
    transform: translate3d(8.5vw, -3vh, 0) scale(0.78);
  }
  38% {
    opacity: 0.7;
    transform: translate3d(10vw, 2.5vh, 0) scale(1);
  }
  50% {
    opacity: 0.15;
    transform: translate3d(6vw, 6vh, 0) scale(0.65);
  }
  62% {
    opacity: 0.75;
    transform: translate3d(1vw, 7vh, 0) scale(1.02);
  }
  74% {
    opacity: 0.28;
    transform: translate3d(-5vw, 4vh, 0) scale(0.72);
  }
  86% {
    opacity: 0.55;
    transform: translate3d(-6vw, -1.5vh, 0) scale(0.92);
  }
  94% {
    opacity: 0.12;
    transform: translate3d(-2vw, -2.5vh, 0) scale(0.62);
  }
}

@keyframes heroFireflyB {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.52);
  }
  10% {
    opacity: 0.72;
    transform: translate3d(-3.5vw, -2vh, 0) scale(1.02);
  }
  22% {
    opacity: 0.22;
    transform: translate3d(-8vw, -5vh, 0) scale(0.68);
  }
  34% {
    opacity: 0.68;
    transform: translate3d(-9vw, 1vh, 0) scale(0.98);
  }
  46% {
    opacity: 0.18;
    transform: translate3d(-5vw, 5.5vh, 0) scale(0.62);
  }
  58% {
    opacity: 0.78;
    transform: translate3d(2vw, 6.5vh, 0) scale(1.05);
  }
  70% {
    opacity: 0.3;
    transform: translate3d(8vw, 3.5vh, 0) scale(0.75);
  }
  82% {
    opacity: 0.62;
    transform: translate3d(8.5vw, -3vh, 0) scale(0.95);
  }
  92% {
    opacity: 0.2;
    transform: translate3d(3vw, -4vh, 0) scale(0.7);
  }
}

@keyframes heroFireflyC {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.58);
  }
  11% {
    opacity: 0.32;
    transform: translate3d(2vw, 2vh, 0) scale(0.82);
  }
  22% {
    opacity: 0.8;
    transform: translate3d(7vw, 5vh, 0) scale(1.08);
  }
  35% {
    opacity: 0.25;
    transform: translate3d(10vw, 1vh, 0) scale(0.7);
  }
  47% {
    opacity: 0.65;
    transform: translate3d(5vw, -5vh, 0) scale(0.96);
  }
  59% {
    opacity: 0.18;
    transform: translate3d(-2vw, -6vh, 0) scale(0.64);
  }
  71% {
    opacity: 0.72;
    transform: translate3d(-7vw, -3.5vh, 0) scale(1);
  }
  83% {
    opacity: 0.28;
    transform: translate3d(-8vw, 2vh, 0) scale(0.74);
  }
  93% {
    opacity: 0.5;
    transform: translate3d(-3vw, 3.5vh, 0) scale(0.88);
  }
}

@keyframes heroFireflyD {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.53);
  }
  9% {
    opacity: 0.65;
    transform: translate3d(5vw, 1.5vh, 0) scale(1);
  }
  21% {
    opacity: 0.2;
    transform: translate3d(9vw, -2.5vh, 0) scale(0.66);
  }
  33% {
    opacity: 0.58;
    transform: translate3d(4vw, -7vh, 0) scale(0.94);
  }
  45% {
    opacity: 0.15;
    transform: translate3d(-4vw, -6vh, 0) scale(0.6);
  }
  57% {
    opacity: 0.82;
    transform: translate3d(-9vw, -2vh, 0) scale(1.06);
  }
  69% {
    opacity: 0.26;
    transform: translate3d(-8vw, 3vh, 0) scale(0.72);
  }
  81% {
    opacity: 0.68;
    transform: translate3d(-2vw, 6vh, 0) scale(0.98);
  }
  91% {
    opacity: 0.22;
    transform: translate3d(4vw, 5vh, 0) scale(0.68);
  }
}

.hero-spark:nth-child(1) {
  top: 30%;
  left: 16%;
  --fly-name: heroFireflyA;
  --fly-dur: 23s;
  --fly-delay: 0s;
}
.hero-spark:nth-child(2) {
  top: 24%;
  left: 48%;
  --fly-name: heroFireflyB;
  --fly-dur: 19.5s;
  --fly-delay: -3.2s;
}
.hero-spark:nth-child(3) {
  top: 36%;
  right: 18%;
  left: auto;
  --fly-name: heroFireflyC;
  --fly-dur: 25s;
  --fly-delay: -6s;
}
.hero-spark:nth-child(4) {
  top: 52%;
  left: 10%;
  --fly-name: heroFireflyD;
  --fly-dur: 21s;
  --fly-delay: -2.5s;
}
.hero-spark:nth-child(5) {
  top: 48%;
  right: 12%;
  left: auto;
  --fly-name: heroFireflyA;
  --fly-dur: 20s;
  --fly-delay: -9s;
}
.hero-spark:nth-child(6) {
  top: 66%;
  left: 22%;
  --fly-name: heroFireflyB;
  --fly-dur: 24s;
  --fly-delay: -4.8s;
}
.hero-spark:nth-child(7) {
  top: 40%;
  left: 38%;
  --fly-name: heroFireflyC;
  --fly-dur: 22s;
  --fly-delay: -11s;
}
.hero-spark:nth-child(8) {
  top: 44%;
  right: 26%;
  left: auto;
  --fly-name: heroFireflyD;
  --fly-dur: 18s;
  --fly-delay: -1.2s;
}
.hero-spark:nth-child(9) {
  top: 16%;
  right: 32%;
  left: auto;
  --fly-name: heroFireflyA;
  --fly-dur: 26s;
  --fly-delay: -7.5s;
}
.hero-spark:nth-child(10) {
  top: 58%;
  left: 46%;
  --fly-name: heroFireflyB;
  --fly-dur: 20.5s;
  --fly-delay: -13s;
}
.hero-spark:nth-child(11) {
  top: 72%;
  right: 34%;
  left: auto;
  --fly-name: heroFireflyC;
  --fly-dur: 23s;
  --fly-delay: -5.5s;
}
.hero-spark:nth-child(12) {
  top: 32%;
  left: 56%;
  --fly-name: heroFireflyD;
  --fly-dur: 19s;
  --fly-delay: -8.2s;
}
.hero-spark:nth-child(13) {
  top: 60%;
  left: 18%;
  --fly-name: heroFireflyB;
  --fly-dur: 24.5s;
  --fly-delay: -14s;
}
.hero-spark:nth-child(14) {
  top: 22%;
  right: 10%;
  left: auto;
  --fly-name: heroFireflyC;
  --fly-dur: 21.5s;
  --fly-delay: -10.5s;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-editorial {
  max-width: min(58rem, 96vw);
  margin: 0 auto;
  padding: 0;
  opacity: 1;
  transform: none;
}

.hero-kicker {
  font-family: var(--font-hero-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 242, 248, 0.72);
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
  opacity: 0;
  animation: fadeUp 0.75s ease-out 0.15s both;
}

.hero-title-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
  padding: 0.1em 0 0.35em;
}

.hero-title {
  margin: 0;
  max-width: none;
  font-family: var(--font-hero-script);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(3.5rem, 15vw, 9.5rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: rgba(217, 185, 95, 0.65);
  white-space: nowrap;
  /* Legibility while writing; glow eases in after write-on, then slow pulse */
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.28);
  will-change: clip-path, text-shadow;
  clip-path: inset(0 100% 0 0);
  animation:
    heroTitleWriteOn 6s cubic-bezier(0.33, 0.06, 0.18, 1) 0.45s forwards,
    heroTitleGlowFadeIn 1.35s cubic-bezier(0.22, 0.94, 0.32, 1) 6.5s forwards,
    heroTitleGlowPulse 8s ease-in-out 7.35s infinite;
}

@keyframes heroTitleWriteOn {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* One-shot ramp from base shadow to idle glow (avoids a sharp glow pop at 6.5s) */
@keyframes heroTitleGlowFadeIn {
  from {
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.28);
  }
  to {
    text-shadow:
      0 2px 28px rgba(0, 0, 0, 0.28),
      0 0 16px rgba(236, 210, 145, 0.26),
      0 0 36px rgba(201, 168, 76, 0.18),
      0 0 56px rgba(201, 168, 76, 0.08);
  }
}

/* Slow pulse between idle and peak; begins after heroTitleGlowFadeIn (6.5s + 1.35s) */
@keyframes heroTitleGlowPulse {
  0%, 100% {
    text-shadow:
      0 2px 28px rgba(0, 0, 0, 0.28),
      0 0 16px rgba(236, 210, 145, 0.26),
      0 0 36px rgba(201, 168, 76, 0.18),
      0 0 56px rgba(201, 168, 76, 0.08);
  }
  50% {
    text-shadow:
      0 2px 28px rgba(0, 0, 0, 0.28),
      0 0 26px rgba(236, 210, 145, 0.48),
      0 0 52px rgba(201, 168, 76, 0.32),
      0 0 84px rgba(201, 168, 76, 0.14);
  }
}

.hero-line {
  font-family: var(--font-head);
  color: rgba(255, 253, 255, 0.95);
  line-height: 1.35;
  margin: 0;
}

.hero-line--lead {
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  margin: 0 auto 1rem;
  max-width: 22em;
  opacity: 0;
  animation: fadeUp 0.9s ease-out 3.35s both;
}

.hero-line__break {
  display: block;
}

.hero-line--muted {
  font-family: var(--font-hero-sans);
  font-size: clamp(0.85rem, 1.35vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.75;
  color: rgba(255, 232, 242, 0.66);
  max-width: 28em;
  margin: 0 auto 1.25rem;
  opacity: 0;
  animation: fadeUp 0.9s ease-out 3.55s both;
}

.hero-meta {
  font-family: var(--font-hero-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.65);
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.9s ease-out 3.75s both;
}

@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .slide-media {
    animation: none !important;
  }

  .hero-editorial {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-kicker,
  .hero-line--lead,
  .hero-line--muted,
  .hero-meta {
    opacity: 1;
    animation: none;
  }

  .hero-title {
    animation: none !important;
    clip-path: inset(0 0 0 0) !important;
    text-shadow:
      0 2px 28px rgba(0, 0, 0, 0.28),
      0 0 20px rgba(236, 210, 145, 0.32),
      0 0 44px rgba(201, 168, 76, 0.22),
      0 0 64px rgba(201, 168, 76, 0.1);
  }

  .hero-sparks {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════ */
.about-section {
  background: var(--beige);
  align-items: flex-start;
  min-height: auto;
}

/* Subtle parchment texture via CSS */
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 5% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 95% 80%, rgba(110, 16, 51, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.about-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 8vw, 5rem);
}

/* Full content width; less dead space on sides than global section-inner.
   Extra top padding clears the fixed header when it’s revealed; bottom stays lighter
   so vertical space isn’t wasted under the fold. */
.section-inner.about-inner {
  padding-left: clamp(16px, 2.8vw, 44px);
  padding-right: clamp(16px, 2.8vw, 44px);
  padding-top: calc(var(--header-h) + clamp(1.1rem, 3.5vw, 2.35rem));
  padding-bottom: clamp(1.35rem, 3.5vw, 2.5rem);
}

/* JCI — 3 columns: About JCI | Mission & Vision (stacked) | Creed (bulleted) */
.jci-editorial {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.35rem, 2.8vw, 2.35rem) clamp(0.5rem, 1vw, 1rem);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(245, 237, 224, 0.25) 42%,
      transparent 78%
    ),
    radial-gradient(
      ellipse 85% 60% at 12% 0%,
      rgba(201, 168, 76, 0.07) 0%,
      transparent 58%
    );
  border-radius: 2px;
}

.jci-editorial__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(0.85rem, 1.75vw, 1.75rem);
  align-items: stretch;
  min-height: 0;
}

.jci-editorial__intro {
  display: flex;
  flex-direction: column;
  padding-right: clamp(0.85rem, 1.75vw, 1.5rem);
  border-right: 1px solid rgba(110, 16, 51, 0.09);
  min-width: 0;
  min-height: 0;
}

.jci-editorial__label {
  font-family: var(--font-hero-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(74, 32, 48, 0.55);
  margin: 0 0 1.1rem;
}

.jci-editorial__label::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  margin-top: 1rem;
  background: linear-gradient(
    90deg,
    rgba(201, 168, 76, 0.65),
    rgba(201, 168, 76, 0.08)
  );
}

.jci-editorial__headline {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--rose-dark);
  margin: 0 0 1.35rem;
  max-width: none;
}

.jci-editorial__lede {
  font-family: var(--font-hero-sans);
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(42, 10, 24, 0.86);
  max-width: none;
  margin: 0;
  padding-top: 0.15rem;
}

.jci-editorial__lede::first-letter {
  font-family: var(--font-head);
  float: left;
  font-size: 3.1em;
  line-height: 0.82;
  padding-right: 0.12em;
  margin-top: 0.04em;
  font-weight: 500;
  color: rgba(110, 16, 51, 0.88);
}

.jci-editorial__mv {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(1.35rem, 2.4vw, 2rem);
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  padding-right: clamp(0.85rem, 1.75vw, 1.5rem);
  border-right: 1px solid rgba(110, 16, 51, 0.09);
  min-width: 0;
  min-height: 0;
}

/* 3-column desktop: Mission + Vision as one cluster, vertically centered with head/foot room */
@media (min-width: 1025px) {
  .jci-editorial__mv {
    justify-content: center;
    gap: clamp(1.25rem, 2vh, 1.85rem);
    padding-top: clamp(0.85rem, 2.5vh, 1.65rem);
    padding-bottom: clamp(0.85rem, 2.5vh, 1.65rem);
  }
}

.jci-mv__title {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(110, 16, 51, 0.78);
  margin: 0 0 0.95rem;
  padding-bottom: 0.72rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  width: fit-content;
  max-width: 100%;
}

.jci-mv__text {
  font-family: var(--font-hero-sans);
  font-size: clamp(0.98rem, 1.28vw, 1.12rem);
  font-weight: 300;
  line-height: 1.82;
  color: rgba(74, 32, 48, 0.9);
  margin: 0;
  max-width: none;
}

.jci-editorial__creed {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.jci-creed__inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
  min-height: 0;
  padding: clamp(1rem, 2vw, 1.65rem) clamp(0.35rem, 0.85vw, 0.85rem);
  background: linear-gradient(
    180deg,
    rgba(110, 16, 51, 0.04) 0%,
    rgba(255, 255, 255, 0.35) 48%,
    rgba(201, 168, 76, 0.05) 100%
  );
}

.jci-creed__label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(110, 16, 51, 0.78);
  margin: 0 0 1.15rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  width: fit-content;
  max-width: 100%;
}

.jci-creed__belief {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--rose-dark);
  margin: 0 0 1.2rem;
  line-height: 1.32;
}

.jci-creed__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 1.1vw, 0.85rem);
  flex: 1 1 auto;
  min-height: 0;
}

.jci-creed__list li {
  font-family: var(--font-head);
  font-size: clamp(0.88rem, 1.05vw, 1.06rem);
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  margin: 0;
  padding-left: 1.1em;
  position: relative;
}

.jci-creed__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.88;
}

/* Desktop: JCI block fits one viewport; Who We Are begins below the fold */
@media (min-width: 1025px) and (min-height: 720px) {
  .about-section {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .about-inner {
    gap: clamp(0.6rem, 1.1vh, 1rem);
  }

  .section-inner.about-inner {
    padding-top: calc(var(--header-h) + clamp(0.75rem, 2vh, 1.35rem));
    padding-bottom: clamp(0.85rem, 1.65vh, 1.35rem);
  }

  .jci-editorial {
    padding: clamp(0.75rem, 1.5vh, 1.35rem) clamp(0.35rem, 0.85vw, 0.85rem);
  }

  .jci-editorial__grid {
    gap: clamp(0.75rem, 1.25vw, 1.35rem);
  }

  .jci-editorial__intro {
    padding-right: clamp(0.65rem, 1.35vw, 1.25rem);
  }

  .jci-editorial__mv {
    padding-right: clamp(0.65rem, 1.35vw, 1.25rem);
    gap: clamp(1rem, 1.75vh, 1.55rem);
    padding-top: clamp(0.65rem, 1.75vh, 1.35rem);
    padding-bottom: clamp(0.65rem, 1.75vh, 1.35rem);
    justify-content: center;
  }

  .jci-editorial__label {
    margin-bottom: 0.55rem;
  }

  .jci-editorial__label::after {
    margin-top: 0.55rem;
  }

  .jci-editorial__headline {
    font-size: clamp(1.38rem, 2.35vw, 1.9rem);
    margin-bottom: 0.65rem;
  }

  .jci-editorial__lede {
    font-size: clamp(0.95rem, 1.12vw, 1.06rem);
    line-height: 1.62;
  }

  .jci-editorial__lede::first-letter {
    font-size: 2.35em;
    line-height: 0.85;
  }

  .jci-mv__title {
    margin-bottom: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .jci-mv__text {
    font-size: clamp(0.82rem, 0.95vw, 0.94rem);
    line-height: 1.58;
  }

  .jci-creed__inner {
    padding: clamp(0.55rem, 1.1vh, 1rem) clamp(0.35rem, 0.75vw, 0.65rem);
  }

  .jci-creed__label {
    margin-bottom: 0.55rem;
    padding-bottom: 0.35rem;
  }

  .jci-creed__belief {
    font-size: clamp(1rem, 1.75vw, 1.35rem);
    margin-bottom: 0.65rem;
  }

  .jci-creed__list {
    gap: 0.35rem 0;
  }

  .jci-creed__list li {
    font-size: clamp(0.8rem, 0.95vw, 0.92rem);
    line-height: 1.38;
  }

  .about-perlas {
    margin-top: clamp(0.25rem, 0.8vh, 0.65rem);
    padding-top: clamp(0.35rem, 1vh, 0.85rem);
  }
}

/* About Perlas — text column leads; image is a smaller accent, not matched height */
.about-perlas {
  display: grid;
  grid-template-columns: 1fr minmax(0, auto);
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: start;
  justify-items: start;
}

.about-perlas-text {
  min-width: 0;
}

.about-perlas-image {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
  max-width: 100%;
}

.about-perlas-image .image-frame {
  max-width: 460px;
  max-height: 340px;
  width: 100%;
  margin-left: auto;
  aspect-ratio: 4 / 3;
}

.about-perlas-image .image-frame img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
}

.gold-border-text {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 1.2rem 0 2rem;
}

.gold-border-text p {
  font-size: clamp(1.05rem, 1.15vw, 1.15rem);
  line-height: 1.82;
  color: var(--text-body);
}

/* About block: larger kicker + chapter title for readability */
.about-section .section-label {
  font-size: clamp(0.8rem, 1.05vw, 0.9rem);
}

.about-section .section-heading {
  font-size: clamp(2.35rem, 4.6vw, 3.65rem);
}

.about-stats {
  display: flex;
  gap: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rose-mid);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-body);
  opacity: 0.7;
}

.image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-rose);
  position: relative;
  aspect-ratio: 4/3;
}

.image-frame::before {
  content: '';
  position: absolute;
  inset: -8px -8px auto auto;
  width: 60%;
  height: 60%;
  background: linear-gradient(135deg, var(--gold) 0%, transparent 60%);
  opacity: 0.25;
  border-radius: 0 var(--radius) 0 0;
  z-index: 1;
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.image-frame:hover img { transform: scale(1.04); }

.watermark-text {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  margin: 0;
  max-width: 11rem;
  font-family: var(--font-head);
  font-size: clamp(0.65rem, 1.4vw, 0.8rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  color: var(--rose-dark);
  opacity: 0.14;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   TOPP SECTION
   ═══════════════════════════════════════════════════════════ */
.topp-section {
  align-items: center;
}

.topp-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.topp-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(3px) brightness(0.6) saturate(0.8);
  transform: scale(1.04);
}

.topp-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(110, 16, 51, 0.80) 0%,
    rgba(216, 55, 114, 0.55) 50%,
    rgba(40, 5, 20, 0.80) 100%
  );
}

.topp-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.flagship-label {
  font-size: 0.7rem;
}

.topp-heading {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin: 0.5rem 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.topp-acronym {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.15em;
  opacity: 0.9;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

.topp-body {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
}

.cta-ghost {
  display: inline-block;
  padding: 0.75rem 2.2rem;
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}

.cta-ghost:hover,
.cta-ghost:focus {
  background: var(--gold);
  color: var(--rose-dark);
  outline: none;
}

/* TOPP Gallery — side stack uses a wide column so landscape photos read as landscape */
.topp-gallery {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 40%);
  grid-template-rows: 1fr;
  gap: 1rem;
  height: 450px;
}

.topp-main-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  grid-row: 1;
}

.topp-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topp-side-imgs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  align-self: stretch;
}

.topp-side-imgs img {
  width: 100%;
  height: calc(50% - 0.5rem);
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  transition: transform var(--transition);
}

.topp-side-imgs img:hover { transform: scale(1.03); }

/* Cue: scroll to Our Projects (#projects) — subtle bounce on chevron */
.topp-scroll-next {
  position: absolute;
  bottom: clamp(0.65rem, 2vh, 1.6rem);
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 1rem 0.3rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(255, 248, 242, 0.9);
  font-family: var(--font-hero-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
  transition: color var(--transition), opacity var(--transition);
}

.topp-scroll-next:hover,
.topp-scroll-next:focus-visible {
  color: var(--gold-light);
  outline: none;
}

.topp-scroll-next:focus-visible {
  box-shadow: 0 0 0 2px rgba(232, 201, 106, 0.65);
  border-radius: 6px;
}

.topp-scroll-next__icon {
  display: block;
  width: 1.35rem;
  height: 1rem;
  position: relative;
}

.topp-scroll-next__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  /* translate before rotate so vertical bounce stays screen-straight */
  transform: translateY(0) rotate(45deg);
  opacity: 0.92;
  animation: toppScrollCueBounce 2.2s ease-in-out infinite;
}

@keyframes toppScrollCueBounce {
  0%, 100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(7px) rotate(45deg);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topp-scroll-next__icon::after {
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   PROJECTS — PREMIUM SHOWCASE CAROUSEL
   ═══════════════════════════════════════════════════════════ */
.projects-section {
  background: linear-gradient(160deg, var(--white) 0%, var(--rose-pale) 100%);
  align-items: flex-start;
}

.projects-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
  width: 100%;
}

.projects-header {
  text-align: center;
}

.projects-showcase {
  position: relative;
  width: 100%;
  max-width: min(1320px, 100%);
  margin-inline: auto;
  padding: 0;
}

.projects-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: clamp(1rem, 2.5vw, 1.75rem) 0;
  container-type: inline-size;
  container-name: projects-view;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 1.5%,
    black 98.5%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 1.5%,
    black 98.5%,
    transparent 100%
  );
}

.projects-track {
  display: flex;
  align-items: stretch;
  gap: clamp(0.22rem, 0.65vw, 0.48rem);
  will-change: transform;
  transition: transform 0.72s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-track.is-no-trans {
  transition: none;
}

/* Wide center card + closer side peeks (mask + gap tuned) */
.project-slide {
  flex: 0 0 min(78vw, 80rem);
  width: min(78vw, 80rem);
  max-width: 100%;
  transform: scale(0.94);
  opacity: 0.7;
  filter: saturate(0.88);
  transition:
    transform 0.68s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.55s ease,
    filter 0.55s ease;
}

@supports (width: 1cqw) {
  .project-slide {
    flex: 0 0 min(77cqw, 80rem);
    width: min(77cqw, 80rem);
  }
}

.project-slide.is-active {
  transform: scale(1);
  opacity: 1;
  filter: saturate(1);
}

/* Card shell — inner body keeps margins + split media / text */
.project-slide__card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  width: 100%;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 246, 241, 0.96) 48%, rgba(255, 240, 248, 0.35) 100%);
  border: 1px solid rgba(110, 16, 51, 0.12);
  border-radius: 6px;
  box-shadow: 0 10px 36px rgba(110, 16, 51, 0.06);
  overflow: hidden;
}

.project-slide__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0.4rem 0.45rem 0.3rem;
  overflow: hidden;
  border-radius: 4px;
}

.project-slide__media {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  contain: layout;
  border: 1px solid rgba(110, 16, 51, 0.14);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  background: rgba(255, 255, 255, 0.42);
}

.project-slide__grid {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  width: 100%;
  box-sizing: border-box;
  gap: 0.38rem;
  padding: 0.38rem;
  margin: 0;
}

.project-slide__fig {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(110, 16, 51, 0.06);
  min-height: 0;
}

.project-slide__fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Layout 1 — wide top, pair below */
.project-slide__grid--1 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}

.project-slide__grid--1 .project-slide__fig--wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.project-slide__grid--1 .project-slide__fig:not(.project-slide__fig--wide) {
  aspect-ratio: 4 / 3;
}

/* Layout 2 — two stacked left, tall portrait right */
.project-slide__grid--2 {
  grid-template-columns: 1.12fr 0.78fr;
  grid-template-rows: 1fr 1fr;
}

.project-slide__grid--2 .project-slide__fig:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 4 / 3;
}

.project-slide__grid--2 .project-slide__fig:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 4 / 3;
}

.project-slide__grid--2 .project-slide__fig--tall {
  grid-column: 2;
  grid-row: 1 / -1;
  aspect-ratio: 3 / 4;
  align-self: stretch;
}

.project-slide__grid--2 .project-slide__fig--tall img {
  min-height: 100%;
}

/* Layout 3 — tall left column, two landscapes right */
.project-slide__grid--3 {
  grid-template-columns: 1.12fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.project-slide__grid--3 .project-slide__fig--hero {
  grid-column: 1;
  grid-row: 1 / -1;
  aspect-ratio: 3 / 4;
}

.project-slide__grid--3 .project-slide__fig:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 16 / 10;
}

.project-slide__grid--3 .project-slide__fig:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: 16 / 10;
}

/* Layout 4 — pair top, wide bottom */
.project-slide__grid--4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}

.project-slide__grid--4 .project-slide__fig:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 4 / 3;
}

.project-slide__grid--4 .project-slide__fig:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 4 / 3;
}

.project-slide__grid--4 .project-slide__fig--wide {
  grid-column: 1 / -1;
  grid-row: 2;
  aspect-ratio: 21 / 9;
}

.project-slide__text {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 46%;
  padding: clamp(0.75rem, 1.8vw, 1.05rem) clamp(0.85rem, 1.8vw, 1.2rem) clamp(0.85rem, 1.8vw, 1.1rem);
  border: 1px solid rgba(110, 16, 51, 0.14);
  border-top: 1px solid rgba(201, 168, 76, 0.32);
  border-radius: 0 0 3px 3px;
  background: rgba(255, 255, 255, 0.72);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.project-slide__title {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1.9vw, 1.55rem);
  font-weight: 600;
  font-style: normal;
  color: var(--rose-dark);
  margin: 0 0 0.55rem;
  padding-bottom: 0.55rem;
  letter-spacing: 0.02em;
  line-height: 1.22;
  border-bottom: 1px solid rgba(110, 16, 51, 0.08);
}

.project-slide__title:has(+ .project-slide__subtitle) {
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
}

.project-slide__paren {
  font-family: var(--font-hero-sans);
  font-weight: 500;
  font-size: 0.82em;
  color: rgba(110, 16, 51, 0.72);
  letter-spacing: 0.04em;
}

.project-slide__subtitle {
  font-family: var(--font-hero-sans);
  font-size: clamp(0.66rem, 0.92vw, 0.76rem);
  font-weight: 400;
  color: rgba(74, 32, 48, 0.78);
  margin: 0 0 0.5rem;
  line-height: 1.4;
  letter-spacing: 0.025em;
}

.project-slide__lede {
  font-family: var(--font-hero-sans);
  font-size: clamp(0.8rem, 1.05vw, 0.9rem);
  font-weight: 300;
  letter-spacing: 0.035em;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0;
  max-width: none;
}

/* Desktop: one viewport tall, horizontal focus — tight chrome + compact image row */
@media (min-width: 769px) {
  .scroll-wrapper .projects-section.section {
    min-height: 100dvh;
    max-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
    align-items: stretch;
    box-sizing: border-box;
  }

  .projects-section .projects-inner {
    padding-top: calc(var(--header-h) + 10px);
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px) + 14px);
    gap: 0.35rem;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    flex: 1 1 auto;
  }

  .projects-header {
    flex: 0 0 auto;
  }

  .projects-header .section-label {
    margin-bottom: 0.28rem;
    font-size: 0.82rem;
  }

  .projects-header .section-heading {
    margin-bottom: 0;
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  }

  .projects-showcase {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .projects-viewport {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.08rem 0 10px;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
  }

  .projects-track {
    align-self: stretch;
    height: 100%;
    min-height: 0;
  }

  .project-slide {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    justify-content: stretch;
  }

  .projects-dots {
    flex: 0 0 auto;
    margin-top: 0;
    margin-bottom: 0.45rem;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }

  .project-slide__card {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    width: 100%;
  }

  .project-slide__body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    margin: 0.32rem 0.38rem 0.18rem;
  }

  .project-slide__media {
    min-height: clamp(180px, 36dvh, 100%);
  }

  .project-slide__grid {
    min-height: 0;
    padding: 0.3rem;
    gap: 0.22rem;
  }

  .project-slide__grid--1,
  .project-slide__grid--2,
  .project-slide__grid--3,
  .project-slide__grid--4 {
    grid-template-rows: 1fr 1fr;
  }

  .project-slide__grid .project-slide__fig {
    aspect-ratio: unset;
    min-height: 0;
  }

  .project-slide__text {
    flex: 0 1 auto;
    max-height: min(38dvh, 42%);
    padding: clamp(0.45rem, 1vh, 0.6rem) clamp(0.6rem, 1.1vw, 0.85rem) 0.5rem;
    min-height: 0;
    scrollbar-gutter: stable;
  }

  .project-slide__text::-webkit-scrollbar {
    width: 4px;
  }

  .project-slide__text::-webkit-scrollbar-thumb {
    background: rgba(110, 16, 51, 0.22);
    border-radius: 4px;
  }

  .project-slide__title {
    font-size: clamp(0.92rem, 1.35vw, 1.18rem);
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
    line-height: 1.18;
  }

  .project-slide__subtitle {
    font-size: 0.65rem;
    margin-bottom: 0.35rem;
    line-height: 1.32;
  }

  .project-slide__lede {
    font-size: 0.72rem;
    line-height: 1.45;
    letter-spacing: 0.028em;
  }
}

.projects-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 3rem;
  height: 3rem;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(110, 16, 51, 0.22);
  border-radius: 50%;
  background: rgba(255, 253, 252, 0.94);
  color: var(--rose-dark);
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-head);
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  box-shadow:
    0 2px 16px rgba(110, 16, 51, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.25s ease, box-shadow var(--transition);
}

.projects-arrow:hover {
  color: var(--rose-dark);
  border-color: rgba(201, 168, 76, 0.75);
  background: var(--white);
  box-shadow:
    0 4px 22px rgba(110, 16, 51, 0.12),
    0 0 0 1px rgba(201, 168, 76, 0.35) inset;
}

.projects-arrow:focus {
  outline: none;
}

.projects-arrow:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  opacity: 1;
}

.projects-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.projects-arrow--prev {
  left: max(0.2rem, env(safe-area-inset-left, 0px));
}

.projects-arrow--next {
  right: max(0.2rem, env(safe-area-inset-right, 0px));
}

.projects-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
  padding: 0 1rem;
}

.projects-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  padding: 0;
  border: none;
  cursor: pointer;
  background: rgba(216, 55, 114, 0.35);
  transition: background var(--transition), transform 0.35s ease, box-shadow 0.35s ease;
}

.projects-dot:hover {
  background: rgba(110, 16, 51, 0.45);
  transform: scale(1.15);
}

.projects-dot.active {
  background: var(--rose-dark);
  transform: scale(1.35);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.45);
}

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

@media (prefers-reduced-motion: reduce) {
  .projects-track {
    transition: none !important;
  }

  .project-slide {
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   PARTNERS SECTION
   ═══════════════════════════════════════════════════════════ */
.partners-section {
  background: var(--beige);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  min-height: auto;
}

.partners-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-dark), var(--gold), var(--rose-dark));
}

/* One continuous cream block: intro + major tier (single gradient, no seam) */
.partners-major-surface {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background-color: #f5efe4;
  background-image: linear-gradient(
    180deg,
    #faf6ef 0%,
    #f3ebe0 42%,
    #ebe4d6 100%
  );
}

.partners-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 5vw, 3.25rem);
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  padding-bottom: clamp(1rem, 2.5vw, 1.65rem);
}

.partners-header { text-align: center; }

.partners-sub {
  max-width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 24px);
  font-size: clamp(0.78rem, 1.35vw, 0.95rem);
  color: var(--text-body);
  opacity: 0.92;
  text-align: center;
  line-height: 1.55;
}

/* Full viewport–width tier strips; content centered inside */
.partners-tier {
  width: 100%;
  margin: 0;
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
}

.partners-tier__contain {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  /* Slightly tighter sides so logo grids use ~1160px+ on 1920px displays */
  padding: 0 clamp(16px, 4vw, 56px);
  box-sizing: border-box;
}

.partners-major-surface .partners-tier--major {
  background: none;
  background-color: transparent;
  padding-top: clamp(1.1rem, 2.8vw, 2rem);
}

.partners-tier--minor {
  background: linear-gradient(
    180deg,
    #ddd0c0 0%,
    #d0c2b2 42%,
    #c4b5a4 100%
  );
}

.tier-heading {
  text-align: center;
  margin: 0 auto clamp(1.85rem, 3.2vw, 2.6rem);
  width: 100%;
  max-width: none;
  line-height: 1.35;
}

.tier-heading--gold {
  font-family: var(--font-hero-sans);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 2.35vw, 1.55rem);
  /* Warm jewelry gold — lighter than bronze; no #fff stops */
  background: linear-gradient(
    105deg,
    #9a7b2e 0%,
    #b8942e 16%,
    var(--gold) 34%,
    #dcb863 44%,
    var(--gold-light) 52%,
    #d4af37 60%,
    var(--gold) 72%,
    #a67c1e 88%,
    #8a6e22 100%
  );
  background-size: 100% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gold);
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0.5px 0 rgba(138, 110, 34, 0.35))
    drop-shadow(0 1px 2px rgba(74, 48, 10, 0.12));
}

.tier-heading--silver {
  font-family: var(--font-hero-sans);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.1vw, 1.42rem);
  /* Soft platinum / brushed silver — not gunmetal */
  background: linear-gradient(
    102deg,
    #6d7178 0%,
    #80858d 20%,
    #9ea3ad 38%,
    #aeb4bf 48%,
    #b8bec8 52%,
    #9ea3ad 60%,
    #8b9099 78%,
    #727882 100%
  );
  background-size: 100% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: #9ea3ad;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0.5px 0 rgba(80, 86, 96, 0.35))
    drop-shadow(0 1px 2px rgba(24, 26, 30, 0.1));
}

@media (prefers-reduced-motion: reduce) {
  .tier-heading--gold,
  .tier-heading--silver {
    animation: none;
    background-size: 100% auto;
  }
}

@supports not (background-clip: text) {
  .tier-heading--gold,
  .tier-heading--silver {
    background: none;
    -webkit-text-fill-color: unset;
    filter: none;
  }

  .tier-heading--gold { color: var(--gold); }

  .tier-heading--silver { color: #8b9099; }
}

/* Major: always 3 columns; logos scale to full tier width (~1980×1080 ref) */
.partners-grid--major {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(0.85rem, 1.8vw, 1.5rem);
  row-gap: clamp(1.2rem, 2.5vw, 2.1rem);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  justify-items: stretch;
  align-items: center;
}

/*
 * Minor: fluid columns — min track tuned so ~1920×1080 viewports land near ~4 across
 * (not a fixed column count; wraps with width). DOM order = row-major.
 */
.partners-grid--minor {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(clamp(10.5rem, 24vw, 17rem), 1fr)
  );
  gap: clamp(0.95rem, 2vw, 1.65rem);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  justify-items: stretch;
  align-items: center;
}

.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), opacity var(--transition);
}

.partner-tile:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 2px;
}

.partner-tile img {
  width: auto;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: none;
  transition: transform var(--transition), opacity var(--transition);
}

.partners-grid--major .partner-tile {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.partners-grid--major .partner-tile img {
  max-height: clamp(140px, min(19vw, 26vh), 320px);
  max-width: 100%;
  width: auto;
}

.partners-grid--minor .partner-tile--minor {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.partners-grid--minor .partner-tile img {
  max-height: clamp(96px, min(12vw, 17vh), 150px);
  max-width: 100%;
  width: auto;
}

.partner-tile:hover,
.partner-tile:focus-visible {
  transform: scale(1.06);
  background: transparent;
  box-shadow: none;
  border: none;
}

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

@media (max-width: 768px) {
  .partners-tier__contain {
    padding: 0 clamp(14px, 4vw, 24px);
  }

  .partners-grid--major {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
    row-gap: 1.1rem;
    max-width: 100%;
  }

  .partners-grid--major .partner-tile img {
    max-height: clamp(90px, 24vw, 160px);
  }

  .partners-grid--minor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 0.65rem;
    max-width: 100%;
  }

  .partners-grid--minor .partner-tile img {
    max-height: clamp(64px, 18vw, 108px);
  }

  .tier-heading--gold,
  .tier-heading--silver {
    letter-spacing: 0.12em;
  }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════ */
.contact-section {
  background: linear-gradient(145deg, var(--rose-dark) 0%, var(--rose-mid) 100%);
  align-items: center;
  justify-content: center;
}

/* Decorative circles */
.contact-bg-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 208, 225, 0.1);
}

.c1 { width: 500px; height: 500px; top: -200px; right: -150px; }
.c2 { width: 300px; height: 300px; bottom: -100px; left: -80px; border-color: rgba(201, 168, 76, 0.12); }
.c3 { width: 200px; height: 200px; top: 30%; left: 5%; border-color: rgba(255, 208, 225, 0.06); }

.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.contact-heading {
  font-family: var(--font-head);
  font-size: clamp(2.65rem, 5.8vw, 4.15rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.contact-section .section-label {
  font-size: clamp(0.8rem, 1.05vw, 0.92rem);
}

.contact-sub {
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  color: rgba(255, 208, 225, 0.88);
  max-width: 560px;
  line-height: 1.78;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 640px;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.2rem 1.75rem;
  border: 1.5px solid rgba(255, 208, 225, 0.25);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: var(--white);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  text-align: left;
}

.contact-pill:hover,
.contact-pill:focus {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--rose-dark);
  transform: translateY(-4px);
  outline: none;
}

.contact-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
}

.contact-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.98;
  transition: filter var(--transition), opacity var(--transition);
}

.contact-pill:hover .contact-icon-img,
.contact-pill:focus .contact-icon-img {
  filter: brightness(0);
  opacity: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.contact-label {
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.75;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--rose-dark);
  scroll-snap-align: start;
  position: relative;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 4rem clamp(20px, 5vw, 80px) 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas:
    "links brand contact"
    "strap strap strap";
  gap: 2.5rem 2rem;
  align-items: start;
}

.footer-col.footer-links {
  grid-area: links;
  justify-self: start;
}

.footer-col.footer-brand {
  grid-area: brand;
  justify-self: center;
  align-self: center;
}

.footer-col.footer-contact {
  grid-area: contact;
  justify-self: start;
  text-align: left;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}

.footer-brand-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
}

.footer-logo {
  width: auto;
  display: block;
}

.footer-logo--jci {
  height: clamp(5.25rem, 16vw, 10.5rem);
  filter: brightness(0) invert(1);
}

.footer-logo--heritage {
  height: clamp(3.25rem, 10vw, 6.75rem);
  max-width: min(100%, min(420px, 38vw));
  object-fit: contain;
}

.footer-strapline {
  grid-area: strap;
  margin: 0;
  padding-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid rgba(255, 208, 225, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: clamp(1rem, 2.75vh, 1.65rem);
  column-gap: clamp(1.75rem, 4.5vw, 3.5rem);
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 252, 254, 0.92);
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.85;
}

.footer-strapline__phrase {
  letter-spacing: 0.12em;
}

.footer-strapline__dot {
  color: var(--gold);
  font-size: 0.92em;
  font-style: normal;
  font-weight: 400;
  vertical-align: middle;
  opacity: 0.88;
  user-select: none;
  line-height: 1;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col.footer-contact ul {
  align-items: flex-start;
}

.footer-links a,
.footer-contact a {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
}

.footer-contact-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 1;
  filter: brightness(0) invert(1);
}

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

.footer-copyright {
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 1rem;
  border-top: 1px solid rgba(255, 208, 225, 0.1);
}

.footer-copyright p {
  font-size: 0.78rem;
  color: var(--rose-pale);
  letter-spacing: 0.04em;
}

.footer-powered-by {
  margin-top: 0.5rem;
  line-height: 1.55;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

a.footer-credit-name,
.footer-credit-name {
  color: var(--gold);
  font-weight: 600;
}

a.footer-credit-name:hover,
a.footer-credit-name:focus-visible {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  outline: none;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .jci-editorial__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .jci-editorial__intro {
    border-right: none;
    padding-right: 0;
  }

  .jci-editorial__mv {
    flex-direction: column;
    justify-content: flex-start;
    border-right: none;
    padding-right: 0;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(110, 16, 51, 0.085);
    gap: 2rem;
  }

  .jci-editorial__creed {
    padding-top: 1.75rem;
    border-top: 1px solid rgba(110, 16, 51, 0.085);
  }

  .jci-creed__inner {
    flex: 0 1 auto;
  }

  .jci-creed__list {
    flex: 0 1 auto;
    justify-content: flex-start;
  }

  .about-perlas {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-items: stretch;
  }

  .about-perlas-image {
    justify-self: center;
    width: min(100%, 480px);
  }

  .about-perlas-image .image-frame {
    max-width: 100%;
    max-height: 320px;
    margin-left: 0;
  }

  .about-perlas-image .image-frame img {
    max-height: 320px;
  }

  .topp-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .topp-gallery {
    grid-template-columns: 1fr minmax(260px, 42%);
    height: 320px;
  }

  .project-slide {
    flex: 0 0 min(76vw, 70rem);
    width: min(76vw, 70rem);
  }

  @supports (width: 1cqw) {
    .project-slide {
      flex: 0 0 min(75cqw, 70rem);
      width: min(75cqw, 70rem);
    }
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "links contact"
      "strap strap";
    gap: 2rem 2.5rem;
  }

  .footer-col.footer-links {
    justify-self: start;
  }

  .footer-col.footer-brand {
    justify-self: center;
  }

  .footer-col.footer-contact {
    justify-self: start;
    text-align: left;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Header always available (touch / small screens) */
  .site-header {
    pointer-events: auto;
  }

  .site-header__bar {
    transform: translateY(0);
  }

  /* Disable scroll snap */
  .scroll-wrapper {
    scroll-snap-type: none;
    height: auto;
    overflow-y: visible;
  }

  .section {
    scroll-snap-align: none;
    min-height: auto;
    width: 100%;
    padding-top: 0;
  }

  /* Header */
  .main-nav { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-section {
    min-height: 100svh;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    padding-top: calc(var(--header-h) + 10px);
  }

  .hero-editorial {
    max-width: min(100%, 100vw - 1.25rem);
    padding: 0 0.5rem;
  }

  .hero-kicker {
    letter-spacing: 0.32em;
  }

  .hero-title {
    font-size: clamp(1.85rem, 10.5vw, 4.6rem);
    line-height: 1.06;
    letter-spacing: 0.02em;
  }

  .hero-title-wrap {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
  }

  .hero-line--lead {
    animation-delay: 3.25s;
  }

  .hero-line--muted {
    animation-delay: 3.45s;
  }

  .hero-meta {
    animation-delay: 3.6s;
  }

  /* Closer to JCI mark height (logo img ~40px) so the pair feels balanced */
  .header-heritage-mark {
    max-width: min(158px, 52vw);
    height: clamp(30px, 8.25vw, 38px);
  }

  .hero-line--lead .hero-line__break {
    display: inline;
  }

  .hero-line--lead {
    max-width: none;
  }

  /* About */
  .jci-editorial {
    padding: 1.65rem 1.1rem 2rem;
  }

  .jci-editorial__grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .jci-editorial__intro {
    border-right: none;
    padding-right: 0;
  }

  .jci-editorial__mv {
    gap: 2.5rem;
    padding-top: 1.75rem;
  }

  .jci-editorial__lede::first-letter {
    font-size: 2.45em;
    line-height: 0.88;
  }

  .jci-editorial__creed {
    max-width: none;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(110, 16, 51, 0.085);
  }

  .jci-creed__inner {
    padding: 1.5rem 1rem 1.75rem;
  }

  .about-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .stat-num { font-size: 1.5rem; }

  /* TOPP */
  .topp-inner { padding-top: calc(var(--header-h) + 2rem); }

  .topp-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(200px, 42vw) auto;
    height: auto;
  }

  .topp-side-imgs {
    flex-direction: row;
  }

  .topp-side-imgs img {
    height: auto;
    min-height: 100px;
    aspect-ratio: 3 / 2;
    width: calc(50% - 0.5rem);
  }

  /* Projects showcase */
  .projects-viewport {
    mask-image: none;
    -webkit-mask-image: none;
    padding: 0.6rem 0 1rem;
  }

  .project-slide {
    flex: 0 0 min(92vw, 26.5rem);
    width: min(92vw, 26.5rem);
    max-width: 100%;
    transform: scale(0.92);
    opacity: 0.58;
  }

  .project-slide.is-active {
    transform: scale(1);
    opacity: 1;
  }

  .project-slide__card {
    max-height: none;
  }

  .project-slide__body {
    margin: 0.35rem 0.4rem 0.4rem;
    flex: 0 1 auto;
  }

  .project-slide__media {
    flex: 0 0 auto;
    min-height: 0;
  }

  .project-slide__text {
    max-height: none;
    flex: 0 0 auto;
  }

  .projects-showcase {
    padding: 0;
  }

  .project-slide__grid,
  .project-slide__grid--1,
  .project-slide__grid--2,
  .project-slide__grid--3,
  .project-slide__grid--4 {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .project-slide__grid--1 .project-slide__fig--wide,
  .project-slide__grid--1 .project-slide__fig,
  .project-slide__grid--2 .project-slide__fig,
  .project-slide__grid--3 .project-slide__fig--hero,
  .project-slide__grid--3 .project-slide__fig,
  .project-slide__grid--4 .project-slide__fig,
  .project-slide__grid--4 .project-slide__fig--wide {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 16 / 10 !important;
    align-self: stretch;
  }

  .project-slide__grid--2 .project-slide__fig--tall {
    aspect-ratio: 16 / 10 !important;
  }

  .projects-arrow {
    font-size: 1.35rem;
    width: 2.65rem;
    height: 2.65rem;
  }

  .projects-arrow--prev {
    left: 0.12rem;
  }

  .projects-arrow--next {
    right: 0.12rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-pill {
    border-radius: var(--radius);
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "links"
      "contact"
      "strap";
    gap: 2rem;
  }

  .footer-col.footer-links,
  .footer-col.footer-brand {
    justify-self: center;
    text-align: center;
  }

  .footer-col.footer-contact {
    justify-self: stretch;
    text-align: left;
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
  }

  .footer-col.footer-contact ul {
    align-items: flex-start;
  }

  .footer-contact a {
    justify-content: flex-start;
  }

  .footer-strapline {
    flex-direction: column;
    row-gap: clamp(1.1rem, 3.5vh, 1.75rem);
    column-gap: 0;
  }

  .footer-strapline__dot {
    font-size: 0.85em;
  }
}

/* ═══════════════════════════════════════════════════════════
   Heritage mark easter egg (pointer: fine only — see script.js)
   ═══════════════════════════════════════════════════════════ */
@media (pointer: fine) {
  .header-heritage-mark {
    cursor: pointer;
  }
}

/* Custom cursor URL is injected by script.js (absolute URL + * selector) so it
   survives child cursor:pointer rules and different hosting paths. */

.heritage-cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 100px;
  height: 100px;
  margin-left: -50px;
  margin-top: -50px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  background: radial-gradient(
    circle,
    rgba(232, 201, 106, 0.65) 0%,
    rgba(201, 168, 76, 0.4) 28%,
    rgba(216, 55, 114, 0.12) 55%,
    transparent 72%
  );
  box-shadow: 0 0 28px rgba(201, 168, 76, 0.35);
  animation: heritage-cursor-glow 0.6s ease-out forwards;
}

@keyframes heritage-cursor-glow {
  0% {
    transform: scale(0.4);
    opacity: 1;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .heritage-cursor-glow {
    animation-duration: 0.15s;
  }
}

/* ═══════════════════════════════════════════════════════════
   FOCUS STATES (Accessibility)
   ═══════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
