:root {
  --cream: #fff8f0;
  --peach: #fde4d3;
  --red: #a7192e;
  --red-dark: #861227;
  --navy: #082d50;
  --gold: #ffbd38;
  --text: #18334d;
  --muted: #5d6878;
  --white: #ffffff;
  --border: rgba(127, 68, 38, .14);
  --shadow: 0 10px 30px rgba(105, 58, 30, .12);
  --shadow-hover: 0 18px 40px rgba(105, 58, 30, .2);
  --radius: 22px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 15%, rgba(255, 198, 135, .2), transparent 32%),
    radial-gradient(circle at 92% 65%, rgba(167, 25, 46, .06), transparent 35%),
    var(--cream);
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Container: 96% wide, capped at 1400px */
.container {
  width: min(1400px, 96%);
  margin-inline: auto;
}

/* ---------- SCROLL PROGRESS BAR ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1100;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform-origin: left;
  transform: scaleX(0);
  animation: growBar linear both;
  animation-timeline: scroll(root);
}

@keyframes growBar {
  to {
    transform: scaleX(1);
  }
}

/* ---------- TYPOGRAPHY ---------- */

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  overflow-wrap: break-word;
}

.script-title {
  font-family: 'Caveat', cursive;
  color: var(--red);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: .8rem;
  display: inline-block;
  position: relative;
}

.script-title::after {
  content: "";
  display: block;
  width: 110px;
  height: 5px;
  margin-top: 8px;
  background: var(--gold);
  border-radius: 999px;
  transform: rotate(-3deg);
  transform-origin: left;
  transition: width .6s var(--ease);
}

.script-title:hover::after {
  width: 100%;
}

section h2:not(.script-title) {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

/* ---------- BUTTONS ---------- */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}

/* light sweep across buttons on hover */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--ease);
  pointer-events: none;
}

.btn:hover::before {
  left: 130%;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(0) scale(.98);
}

.btn i {
  transition: transform .3s var(--ease);
}

.btn:hover i {
  transform: translateX(5px);
}

.btn-red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(167, 25, 46, .25);
}

.btn-red:hover {
  background: var(--red-dark);
  box-shadow: 0 14px 28px rgba(167, 25, 46, .36);
}

.btn-outline {
  border-color: var(--red);
  background: rgba(255, 255, 255, .85);
  color: var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

/* =========================================
   HEADER / NAVIGATION (ATTRACTIVE + COMPACT)
   Layout: logo (left) | menu (centre) | register (right)
   Uses root variables from style.css:
   --red, --red-dark, --navy, --gold, --border, --ease
========================================= */

/* ---------- BAR ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 250, 244, .8);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(127, 68, 38, .12);
  box-shadow: 0 6px 24px rgba(105, 58, 30, .06);
  transition: background .4s, box-shadow .4s;
}

/* animated accent line along the top edge */
.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  background-size: 200% 100%;
  animation: flowLine 6s linear infinite;
}

/* soft glow under the bar */
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 14px;
  background: linear-gradient(180deg, rgba(255, 189, 56, .12), transparent);
  pointer-events: none;
}

.topbar.scrolled {
  background: rgba(255, 250, 244, .96);
  box-shadow: 0 12px 30px rgba(105, 58, 30, .12);
}

/* three columns: logo | menu | register */
.nav-container {
  width: min(1400px, 94%);
  height: 100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  transition: height .35s var(--ease);
}

.topbar.scrolled .nav-container {
  height: 64px;
}

/* ---------- LOGO (LEFT) ---------- */

.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: transform .35s var(--ease);
}

.brand:hover {
  transform: translateY(-2px);
}

.brand-badge {
  position: relative;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px rgba(255, 189, 56, .6),
    0 8px 20px rgba(105, 58, 30, .14);
  transition: transform .5s var(--ease), width .35s var(--ease), height .35s var(--ease), box-shadow .4s;
}

.brand:hover .brand-badge {
  transform: rotate(-8deg) scale(1.05);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px rgba(167, 25, 46, .45),
    0 12px 26px rgba(105, 58, 30, .18);
}

.topbar.scrolled .brand-badge {
  width: 62px;
  height: 62px;
}

/* the emblem fills the circle; overflow: hidden trims any edge margin */
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform .5s var(--ease);
}

/* shown only when logo.png is missing (set by header.js) */
.brand-fallback {
  display: none;
  font-size: 1.5rem;
  color: var(--red);
}

.brand-badge.no-logo .brand-logo {
  display: none;
}

.brand-badge.no-logo .brand-fallback {
  display: block;
}


/* ---------- MENU (CENTRE) ---------- */

.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.nav-link {
  position: relative;
  padding: 9px 14px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--navy);
  white-space: nowrap;
  transition: color .3s, transform .35s var(--ease);
}

/* hover effect: gradient underline sweeps in from the left */
.nav-link::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease);
}

/* soft glow behind the text on hover */
.nav-link::after {
  content: "";
  position: absolute;
  inset: 4px 6px;
  z-index: -1;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 100%, rgba(255, 189, 56, .22), transparent 70%);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .35s, transform .35s var(--ease);
}

.nav-link:hover {
  color: var(--red);
  transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link.active::before {
  transform: scaleX(1);
}

.nav-link:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* active link stays red with the underline visible */
.nav-link.active {
  color: var(--red);
}

/* mobile-only copy of Register (hidden on desktop) */
.nav-cta-mobile {
  display: none;
}

/* ---------- REGISTER (RIGHT) ---------- */

.nav-cta-desktop {
  position: relative;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  box-shadow:
    0 8px 18px rgba(167, 25, 46, .28),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .3s var(--ease), box-shadow .3s;
}

/* shimmer sweep */
.nav-cta-desktop::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .4), transparent);
  transition: left .7s var(--ease);
  pointer-events: none;
}

.nav-cta-desktop:hover::after {
  left: 140%;
}

.nav-cta-desktop:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 24px rgba(167, 25, 46, .36),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}

.nav-cta-desktop i {
  transition: transform .4s var(--ease);
}

.nav-cta-desktop:hover i {
  transform: rotate(-12deg) scale(1.1);
}

.nav-cta-desktop:active {
  transform: translateY(0) scale(.98);
}

/* ---------- HAMBURGER (hidden on desktop) ---------- */

.menu-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(167, 25, 46, .09);
  cursor: pointer;
  transition: background .3s;
}

.menu-toggle:hover {
  background: rgba(167, 25, 46, .16);
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--navy);
  transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease);
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 20px;
}

.menu-toggle span:nth-child(3) {
  top: 26px;
}

/* morph into an X when open */
.menu-toggle.open span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

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

.menu-toggle.open span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

/* ---------- ANIMATIONS ---------- */

@keyframes flowLine {
  to {
    background-position: 200% 0;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================================
   HERO SECTION (SLEEK)
   Uses root variables and keyframes from style.css:
   --red, --red-dark, --navy, --gold, --border,
   --shadow-hover, --ease, fadeUp, fadeIn, floaty,
   heartbeat, slowZoom, scrollDot
   Defines: blobMove, twinkle
========================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 0 0 36px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 18%, #fffaf3 0, transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(255, 189, 56, .2), transparent 40%),
    linear-gradient(125deg, #fff8f0 0%, #fbe3cf 100%);
}

/* background photo with a cream wash */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 248, 240, .97) 0%, rgba(255, 248, 240, .86) 48%, rgba(255, 248, 240, .6) 100%),
    url('../images/hero-bg.webp') center 40% / cover no-repeat;
  animation: slowZoom 22s ease-in-out infinite alternate;
}

/* soft glow blobs */
.hero-blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .45;
  pointer-events: none;
  animation: blobMove 14s ease-in-out infinite alternate;
}

.blob-1 {
  width: 320px;
  height: 320px;
  background: #ffc27a;
  top: -120px;
  left: -110px;
}

.blob-2 {
  width: 280px;
  height: 280px;
  background: #f5a3a8;
  bottom: -130px;
  right: -70px;
  animation-duration: 18s;
}

/* ---------- LAYOUT ---------- */

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 56px 0 40px;
}

/* staggered entrance for the text column */
.hero-text {
  max-width: 560px;
}

.hero-text>* {
  opacity: 0;
  animation: fadeUp .8s var(--ease) forwards;
}

.hero-text> :nth-child(1) {
  animation-delay: .05s;
}

.hero-text> :nth-child(2) {
  animation-delay: .12s;
}

.hero-text> :nth-child(3) {
  animation-delay: .2s;
}

.hero-text> :nth-child(4) {
  animation-delay: .3s;
}

.hero-text> :nth-child(5) {
  animation-delay: .4s;
}

.hero-text> :nth-child(6) {
  animation-delay: .5s;
}

/* ---------- TEXT ---------- */

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(105, 58, 30, .07);
  color: var(--red);
  font-size: .82rem;
  font-weight: 800;
}

.hero-chip i {
  color: var(--gold);
  font-size: .78rem;
  animation: twinkle 2.4s ease-in-out infinite;
}

.school-name {
  display: inline-block;
  margin-bottom: 2px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--gold);
  color: var(--navy);
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .2px;
}

.hero h1 {
  font-family: 'Caveat', cursive;
  font-size: clamp(3.6rem, 6vw, 5.4rem);
  font-weight: 700;
  color: var(--red);
  line-height: .92;
  margin: 8px 0 12px;
  transform: rotate(-2deg);
  transform-origin: left;
  text-shadow: 0 6px 18px rgba(167, 25, 46, .12);
}

.hero h1 .beat {
  display: inline-block;
  font-size: 1.8rem;
  vertical-align: middle;
  color: var(--red);
  animation: heartbeat 1.6s ease-in-out infinite;
}

.hero-lead {
  max-width: 480px;
  margin-bottom: 24px;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--navy);
}

/* ---------- BUTTONS ---------- */

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 12px 22px;
  font-size: .94rem;
  border-radius: 14px;
}

.hero-buttons .btn-red {
  box-shadow: 0 10px 22px rgba(167, 25, 46, .26);
}

.hero-buttons .btn-outline {
  background: rgba(255, 255, 255, .85);
  color: var(--red);
}

/* ---------- STAT CHIPS ---------- */

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 480px;
  margin-top: 26px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--border);
  box-shadow: 0 6px 14px rgba(105, 58, 30, .06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .35s var(--ease), box-shadow .35s, background .35s;
}

.hero-stats li:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 12px 22px rgba(105, 58, 30, .12);
}

.hero-stats strong {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.hero-stats span {
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- VISUAL COLUMN ---------- */

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeIn 1.2s .4s both;
}

/* main polaroid */
.hero-polaroid {
  --tilt: -3deg;
  position: relative;
  z-index: 2;
  width: min(400px, 100%);
  padding: 12px 12px 18px;
  background: #fffdf8;
  border-radius: 6px;
  box-shadow: 0 22px 44px rgba(60, 30, 15, .2);
  transform: rotate(var(--tilt));
  transition: transform .5s var(--ease), box-shadow .5s;
}

/* washi tape */
.hero-polaroid::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 92px;
  height: 24px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(255, 189, 56, .6);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .06);
}

.hero-polaroid:hover {
  transform: rotate(-1deg) scale(1.02);
  box-shadow: 0 30px 56px rgba(60, 30, 15, .26);
}

.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(135deg, #f9dcc0, #f4b9a4);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: sepia(.1) saturate(1.1);
  transition: transform .9s var(--ease), filter .6s;
}

.hero-polaroid:hover .hero-photo img {
  transform: scale(1.06);
  filter: sepia(0) saturate(1.2);
}

.hero-polaroid .caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--navy);
}

.hero-polaroid .caption i {
  color: var(--red);
  font-size: .9rem;
}

/* small inset photo, tucked at the top-left corner of the frame */
.hero-mini {
  position: absolute;
  z-index: 3;
  top: -18px;
  left: -22px;
  width: 104px;
  padding: 5px 5px 8px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .14);
  transform: rotate(-6deg);
  animation: floaty 7s ease-in-out infinite;
}

.hero-mini img {
  display: block;
  width: 100%;
  height: 78px;
  object-fit: cover;
  background: linear-gradient(135deg, #fde3cf, #f9c9b0);
}

/* circular date badge, top-right of the frame */
.hero-badge {
  position: absolute;
  z-index: 4;
  top: -14px;
  right: -14px;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border: 3px solid #fff8f0;
  box-shadow: 0 10px 22px rgba(167, 25, 46, .3);
  animation: floaty 5s ease-in-out infinite reverse;
}

.hero-badge strong {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1;
}

.hero-badge span {
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

/* countdown: a full-width strip below the photo, so it never covers anything */
.hero-countdown {
  width: min(400px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px rgba(60, 30, 15, .1);
}

.cd-box {
  padding: 8px 4px;
  text-align: center;
  border-radius: 11px;
  background: #fff3e6;
  transition: transform .3s var(--ease), background .3s;
}

.cd-box:hover {
  transform: translateY(-2px);
  background: #ffe6cf;
}

.cd-box b {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.cd-box span {
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- SCROLL HINT ---------- */

.scroll-hint {
  position: absolute;
  z-index: 3;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 2px solid var(--red);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  transition: background .3s;
}

.scroll-hint:hover {
  background: rgba(167, 25, 46, .08);
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  background: var(--red);
  border-radius: 999px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

/* ---------- KEYFRAMES ---------- */

@keyframes blobMove {
  to {
    transform: translate(50px, -35px) scale(1.1);
  }
}

@keyframes twinkle {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.2) rotate(12deg);
  }
}

/* =========================================
   ALUMNI CONNECTION STRIP
   Uses root variables from style.css:
   --red, --red-dark, --navy, --gold, --border,
   --shadow, --shadow-hover, --radius, --ease
========================================= */

.connection {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  gap: 34px;
  margin-top: -60px;
  margin-bottom: 44px;
  padding: 30px 34px;
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .96), rgba(255, 246, 236, .96));
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow:
    0 22px 50px rgba(105, 58, 30, .14),
    0 0 0 1px var(--border);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(.98);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

/* gradient accent along the left edge */
.connection::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--red), var(--gold), var(--red));
  background-size: 100% 200%;
  animation: edgeFlow 5s linear infinite;
}

/* soft glow in the corner */
.connection::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 189, 56, .22), transparent 70%);
  pointer-events: none;
}

.connection.visible {
  opacity: 1;
  transform: none;
}

/* ---------- HEADING ---------- */

.connection-heading {
  position: relative;
  z-index: 1;
  padding-right: 24px;
  border-right: 1px solid var(--border);
}

.connection-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(167, 25, 46, .08);
  color: var(--red);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.connection-eyebrow i {
  animation: spinSlow 6s linear infinite;
}

.connection-heading h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2rem;
  line-height: 1.12;
  color: var(--navy);
}

/* ---------- GRID OF ITEMS ---------- */

.connection-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.connection-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 18px 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(105, 58, 30, .07);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}

/* light sweep across the card on hover */
.connection-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .7), transparent);
  transition: left .8s var(--ease);
  pointer-events: none;
}

.connection-item:hover::before {
  left: 140%;
}

.connection-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(167, 25, 46, .25);
}

/* small number in the corner */
.connection-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(8, 45, 80, .18);
  transition: color .4s;
}

.connection-item:hover .connection-num {
  color: var(--red);
}

/* tinted icon tile */
.connection-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fde3cf, #fbc9b0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
  transition: transform .5s var(--ease), background .4s;
}

.connection-icon i {
  font-size: 1.7rem;
  color: var(--red);
  animation: iconPulse 3.2s ease-in-out infinite;
}

.connection-item:hover .connection-icon {
  transform: rotate(-8deg) scale(1.08);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.connection-item:hover .connection-icon i {
  color: #fff;
  animation: none;
}

/* text */

.connection-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.connection-text strong {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy);
}

.connection-text small {
  font-size: .98rem;
  font-weight: 600;
  color: #5d6878;
  margin-top: 2px;
}

/* arrow that slides in on hover */
.connection-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-size: 1rem;
  color: var(--red);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .35s, transform .45s var(--ease);
}

.connection-item:hover .connection-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- ANIMATIONS ---------- */

@keyframes edgeFlow {
  to {
    background-position: 0 -200%;
  }
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}



/* =========================================
   ABOUT SECTION (EDITORIAL SPLIT)
   Uses root variables from style.css:
   --red, --red-dark, --navy, --gold, --border, --ease
   Uses keyframes: heartbeat (from style.css)
========================================= */

.about {
  position: relative;
  margin-bottom: 32px;
}

/* two panels: red (left) and cream (right); the photo bridges the seam */
.about-split {
  --seam: 42%;
  position: relative;
  display: grid;
  grid-template-columns: var(--seam) 1fr;
  min-height: 340px;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(90deg, var(--red) 0 var(--seam), #fff4e8 var(--seam) 100%);
  box-shadow: 0 20px 44px rgba(105, 58, 30, .14);
}

/* ---------- LEFT PANEL (RED) ---------- */

.about-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 40px 230px 40px 40px;
  color: #fff8f0;
}

/* faint dot texture on the red panel */
.about-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.3px);
  background-size: 18px 18px;
  pointer-events: none;
}

/* huge vertical year running up the left edge */
.about-vertical-year {
  position: absolute;
  left: 14px;
  bottom: 22px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 800;
  font-size: 5.6rem;
  line-height: 1;
  color: rgba(255, 210, 122, .16);
  letter-spacing: 2px;
  pointer-events: none;
}

.about-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 210, 122, .45);
  color: #ffd27a;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.about-kicker i {
  font-size: .68rem;
  animation: heartbeat 1.8s ease-in-out infinite;
}

.about-panel .script-title {
  position: relative;
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  line-height: 1.02;
  color: #fff8f0;
}

.about-panel .script-title::after {
  background: var(--gold);
}

/* ---------- RIGHT PANEL (CREAM) ---------- */

.about-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 40px 44px 36px 230px;
  min-width: 0;
}

.about-lead {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text);
}

.about-quote {
  position: relative;
  padding: 12px 18px 12px 42px;
  border-left: 3px solid var(--red);
  border-radius: 0 14px 14px 0;
  background: #fff;
  box-shadow: 0 8px 18px rgba(105, 58, 30, .07);
}

.about-quote::before {
  content: "\201C";
  position: absolute;
  left: 14px;
  top: 2px;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold);
}

.about-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.4;
  color: var(--navy);
}

/* stats as a row with vertical rules */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 16px;
  border-top: 1px dashed rgba(127, 68, 38, .25);
}

.about-stat {
  padding: 0 14px;
  transition: transform .35s var(--ease);
}

.about-stat:first-child {
  padding-left: 0;
}

.about-stat+.about-stat {
  border-left: 1px solid rgba(127, 68, 38, .14);
}

.about-stat:hover {
  transform: translateY(-3px);
}

.about-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.about-stat span {
  display: block;
  margin-top: 6px;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- PHOTO (STRADDLES THE SEAM) ---------- */

.about-photo {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: var(--seam);
  width: 330px;
  margin: 0;
  padding: 8px;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 22px 44px rgba(60, 30, 15, .28),
    0 0 0 1px rgba(255, 189, 56, .35);
  transform: translate(-50%, -50%) rotate(-2deg);
  transition: transform .5s var(--ease), box-shadow .5s;
}

.about-photo:hover {
  transform: translate(-50%, -52%) rotate(0deg);
  box-shadow: 0 30px 56px rgba(60, 30, 15, .34);
}

.about-photo img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #f9dcc0, #f4b9a4);
  transition: transform .9s var(--ease);
}

.about-photo:hover img {
  transform: scale(1.05);
}

/* caption pill overlapping the bottom edge of the photo */
.about-photo figcaption {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #ffd27a);
  color: var(--navy);
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(105, 58, 30, .22);
}

.about-photo figcaption i {
  color: var(--red);
  font-size: .8rem;
}




/* =========================================
   REUNION SECTION (EVENT TICKET)
   Uses root variables from style.css:
   --red, --red-dark, --navy, --gold, --border, --ease
   Uses keyframes: heartbeat (from style.css)
   Defines: rnFloat
========================================= */

.reunion {
  position: relative;
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
}

/* ---------- TICKET ---------- */

.rn-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 300px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .9), transparent 40%),
    linear-gradient(120deg, #fde3cf 0%, #fff4e8 60%, #fff9f2 100%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 18px 40px rgba(105, 58, 30, .1);
}

/* ---------- MAIN (LEFT) ---------- */

.rn-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 30px 34px;
}

.rn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--red);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.rn-eyebrow i {
  animation: heartbeat 1.8s ease-in-out infinite;
}

.rn-main h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--red);
}

.rn-lead {
  max-width: 480px;
  font-size: .98rem;
  line-height: 1.6;
  color: var(--navy);
}

/* compact meta row */
.rn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.rn-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: .84rem;
  font-weight: 700;
  color: var(--navy);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.rn-meta span:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(105, 58, 30, .1);
}

.rn-meta i {
  color: var(--red);
  font-size: .8rem;
}

.rn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.rn-actions .btn {
  padding: 11px 20px;
  font-size: .92rem;
  border-radius: 12px;
}

/* ---------- STUB (RIGHT) ---------- */

.rn-stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 26px 22px;
  color: #fff8f0;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 189, 56, .3), transparent 45%),
    linear-gradient(160deg, var(--red), var(--red-dark));
  border-left: 2px dashed rgba(255, 255, 255, .35);
}

/* ticket notches cut into the seam */
.rn-stub::before,
.rn-stub::after {
  content: "";
  position: absolute;
  left: -13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fde7d4;
}

.rn-stub::before {
  top: -13px;
}

.rn-stub::after {
  bottom: -13px;
}

.rn-date {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rn-date span {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: #ffd27a;
}

.rn-date strong {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1;
}

.rn-date small {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  opacity: .85;
}

/* small floating photo card inside the stub */
.rn-photo {
  width: 100%;
  margin: 0;
  padding: 7px 7px 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .2);
  transform: rotate(-2deg);
  animation: rnFloat 6s ease-in-out infinite;
  transition: transform .5s var(--ease);
}

.rn-photo:hover {
  transform: rotate(0) scale(1.03);
}

.rn-photo img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 5px;
  background: linear-gradient(135deg, #f9dcc0, #f4b9a4);
}

.rn-photo figcaption {
  margin-top: 6px;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--navy);
}

.rn-photo figcaption i {
  color: var(--red);
  font-size: .8rem;
}

/* ---------- SCHEDULE (HORIZONTAL TIMELINE) ---------- */

.schedule {
  padding: 22px 28px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(105, 58, 30, .08);
}

.schedule-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.schedule-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(167, 25, 46, .26);
}

.schedule-head h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--red);
}

.schedule-head p {
  font-size: .82rem;
  font-weight: 600;
  color: #5d6878;
}

.schedule-list {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

/* the connecting line runs behind the dots */
.schedule-list::before {
  content: "";
  position: absolute;
  top: 43px;
  left: 7%;
  right: 7%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  opacity: .5;
}

.schedule-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 4px 2px;
  text-align: center;
  transition: transform .35s var(--ease);
}

.schedule-list li:hover {
  transform: translateY(-3px);
}

.sch-time {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: .72rem;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background .3s, color .3s, border-color .3s;
}

.schedule-list li:hover .sch-time {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.sch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .95);
  transition: transform .35s var(--ease), background .3s;
}

.schedule-list li:hover .sch-dot {
  transform: scale(1.35);
  background: var(--gold);
}

.sch-text {
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

/* ---------- KEYFRAMES ---------- */

@keyframes rnFloat {

  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }

  50% {
    transform: rotate(-2deg) translateY(-5px);
  }
}



/* =========================================
   REGISTRATION SECTION (BOARDING PASS)
   Uses root variables from style.css:
   --red, --red-dark, --navy, --gold, --border, --muted, --ease
   Uses keyframes: heartbeat (from style.css)
   Defines: rgShine
========================================= */

.registration {
  position: relative;
  margin-bottom: 36px;
}

.rg-pass {
  overflow: hidden;
  border-radius: 24px;
  background: #fffaf5;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(105, 58, 30, .1);
}

/* ---------- HEADER BAND ---------- */

.rg-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 24px;
  color: #fff8f0;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 189, 56, .25), transparent 40%),
    linear-gradient(120deg, #0b3a63 0%, #052c4c 100%);
  overflow: hidden;
}

.rg-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.3px);
  background-size: 18px 18px;
  pointer-events: none;
}

.rg-head>* {
  position: relative;
  z-index: 1;
}

.rg-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.rg-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--gold), #ffd27a);
  color: var(--navy);
  font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(255, 189, 56, .3);
}

.rg-kicker {
  display: block;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffd27a;
}

.rg-title h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.8rem;
  line-height: 1.05;
  color: #fff8f0;
}

.rg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rg-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: .78rem;
  font-weight: 700;
  color: #fff3e6;
}

.rg-meta i {
  color: #ffd27a;
  font-size: .75rem;
}

.rg-meta .rg-fee {
  background: linear-gradient(135deg, #ffe2b3, #ffd58a);
  border-color: transparent;
  color: var(--red);
}

.rg-meta .rg-fee i {
  color: var(--red);
}

/* ---------- PROGRESS ---------- */

.rg-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px 0;
}

.rg-seg-row {
  display: flex;
  flex: 1;
  gap: 6px;
}

.rg-seg {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #efe3d9;
  transition: background .4s var(--ease), box-shadow .4s;
}

.rg-seg.on {
  background: linear-gradient(90deg, var(--red), var(--gold));
  box-shadow: 0 0 10px rgba(255, 189, 56, .4);
}

.rg-progress-count {
  flex-shrink: 0;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--navy);
  white-space: nowrap;
}

/* ---------- FORM FIELDS ---------- */

.rg-form {
  padding: 18px 24px 0;
}

.rg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
}

.rg-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.rg-full {
  grid-column: 1 / -1;
}

.rg-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--navy);
}

.rg-label em {
  font-style: normal;
  color: var(--red);
}

.rg-input {
  position: relative;
  display: flex;
  align-items: center;
}

.rg-input>i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: #9aa2ab;
  font-size: .82rem;
  pointer-events: none;
  transition: color .3s;
}

.rg-input input,
.rg-input select,
.rg-input textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 12px 9px 36px;
  font: inherit;
  font-size: .9rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid #e6dcd3;
  border-radius: 11px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .3s, box-shadow .3s;
}

.rg-input select {
  cursor: pointer;
  padding-right: 32px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.rg-input input::placeholder,
.rg-input textarea::placeholder {
  color: #aab1b8;
}

.rg-input:hover input,
.rg-input:hover select,
.rg-input:hover textarea {
  border-color: #cfc3b8;
}

.rg-input input:focus,
.rg-input select:focus,
.rg-input textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(167, 25, 46, .12);
}

.rg-input:focus-within>i {
  color: var(--red);
}

.rg-area>i {
  top: 13px;
  transform: none;
}

.rg-area textarea {
  min-height: 60px;
  padding-top: 9px;
  resize: vertical;
}

/* ---------- FOOTER STUB ---------- */

/* left: donation chips | right: total, receipt and submit in one row */
.rg-stub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 20px -24px 0;
  padding: 18px 24px 20px;
  background: linear-gradient(135deg, #fde3cf 0%, #fff1e2 100%);
  border-top: 2px dashed rgba(127, 68, 38, .25);
}

.rg-donate {
  min-width: 0;
}

.rg-stub-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--red);
}

.rg-stub-label i {
  animation: heartbeat 2s ease-in-out infinite;
}

.rg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rg-chip {
  position: relative;
  cursor: pointer;
}

.rg-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rg-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid #ecdcd0;
  font-size: .84rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s;
}

.rg-chip:hover span {
  transform: translateY(-2px);
  border-color: rgba(167, 25, 46, .4);
}

.rg-chip input:checked+span {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 6px 14px rgba(167, 25, 46, .25);
}

.rg-chip input:focus-visible+span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

#customDonation {
  display: none;
  width: 100%;
  max-width: 260px;
  margin-top: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: .88rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid #e6dcd3;
  border-radius: 11px;
  outline: none;
}

#customDonation:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(167, 25, 46, .12);
}

/* right side: one row, every item the same height */
.rg-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.rg-total,
.rg-upload,
.rg-submit {
  height: 66px;
  border-radius: 14px;
}

.rg-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 150px;
  padding: 0 16px;
  background: linear-gradient(135deg, #ffe2b3, #ffd58a);
  color: var(--red);
  box-shadow: 0 6px 14px rgba(255, 189, 56, .22);
}

.rg-total span {
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.rg-total strong {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-style: normal;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}

.rg-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 250px;
  padding: 0 14px;
  border: 1.5px dashed #d9bfb0;
  background: #fff;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}

.rg-upload:hover {
  border-color: var(--red);
  background: #fffaf7;
}

.rg-upload>i {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--red);
}

.rg-upload-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rg-upload-text {
  font-size: .84rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rg-upload-text em {
  font-style: normal;
  color: var(--red);
}

.rg-upload small {
  font-size: .68rem;
  color: var(--muted);
  white-space: nowrap;
}

.rg-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.rg-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 220px;
  padding: 0 20px;
  border: 0;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: .92rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(167, 25, 46, .3);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.rg-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(167, 25, 46, .38);
}

.rg-submit i {
  font-size: .9rem;
  transition: transform .3s var(--ease);
}

.rg-submit:hover i {
  transform: translateX(4px);
}

/* ---------- KEYFRAMES ---------- */

@keyframes rgShine {
  from {
    left: -40%;
  }

  to {
    left: 140%;
  }
}


/* =========================================
   THEN & NOW (COMPACT + SLEEK)
   Uses root variables from style.css:
   --red, --red-dark, --navy, --gold, --border, --ease
   Uses keyframes: heartbeat (from style.css)
   Defines: tnPulse
========================================= */

.then-now {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 40px;
  margin-bottom: 36px;
  padding: 36px 40px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 255, 255, .85), transparent 36%),
    linear-gradient(120deg, #fbe6cf 0%, #fff4e6 60%, #fff8ec 100%);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(105, 58, 30, .1);
}

/* ---------- HEADING ---------- */

.tn-head {
  position: relative;
  z-index: 1;
}

.tn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--border);
  color: var(--red);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.tn-eyebrow i {
  font-size: .68rem;
  animation: heartbeat 2s ease-in-out infinite;
}

.tn-head .script-title {
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  margin-bottom: 0;
}

.tn-head p {
  max-width: 340px;
  margin-top: 10px;
  font-size: .98rem;
  line-height: 1.6;
  color: var(--text);
}

/* ---------- STAGE: TWO PRINTS + CONNECTOR ---------- */

.tn-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  align-items: center;
  gap: 0;
}

.tn-frame {
  position: relative;
  margin: 0;
  padding: 10px 10px 14px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(60, 30, 15, .16);
  transition: transform .5s var(--ease), box-shadow .5s;
}

.tn-then {
  transform: rotate(-3deg);
}

.tn-now {
  transform: rotate(2.5deg) translateY(10px);
}

.tn-frame:hover {
  transform: rotate(0) translateY(-6px);
  box-shadow: 0 24px 44px rgba(60, 30, 15, .24);
  z-index: 3;
}

/* small tape strip on each print */
.tn-frame::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 84px;
  height: 22px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 189, 56, .6);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .06);
  z-index: 2;
}

.tn-now::before {
  background: rgba(167, 25, 46, .28);
  transform: translateX(-50%) rotate(3deg);
}

/* tag pill on the photo corner */
.tn-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}

.tn-then .tn-tag {
  background: var(--navy);
}

.tn-now .tn-tag {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.tn-photo {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(135deg, #f9dcc0, #f4b9a4);
}

.tn-then .tn-photo {
  background: linear-gradient(135deg, #e7dcd2, #cdbfb2);
}

.tn-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease), filter .6s;
}

/* the past is sepia, the present is in full colour */
.tn-then .tn-photo img {
  filter: sepia(.5) saturate(.75);
}

.tn-now .tn-photo img {
  filter: saturate(1.08);
}

.tn-frame:hover .tn-photo img {
  transform: scale(1.06);
  filter: sepia(0) saturate(1.12);
}

.tn-frame figcaption {
  margin-top: 8px;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--navy);
}

/* ---------- CONNECTOR ---------- */

.tn-connector {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* dashed track that runs through the arrow */
.tn-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0;
  border-top: 2px dashed rgba(167, 25, 46, .3);
  transform: translateY(-50%);
}

.tn-arrow {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ffd27a);
  color: var(--navy);
  font-size: .95rem;
  box-shadow: 0 8px 18px rgba(255, 189, 56, .4);
}

/* soft pulse behind the arrow */
.tn-arrow::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 189, 56, .55);
  animation: tnPulse 2.4s ease-out infinite;
}

.tn-arrow i {
  animation: nudge 1.6s ease-in-out infinite;
}

/* ---------- KEYFRAMES ---------- */

@keyframes tnPulse {
  0% {
    transform: scale(.9);
    opacity: .9;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}


/* ---------- FIND FRIENDS ---------- */

/* =========================================
   FIND YOUR OLD FRIENDS SECTION
   Uses root variables from style.css:
   --red, --red-dark, --navy, --gold, --border,
   --shadow, --shadow-hover, --ease
========================================= */

.find-friends {
  position: relative;
  margin-bottom: 44px;
  padding: 46px 48px 34px;
  text-align: center;
  background: none;
}

/* soft drifting glow */
.find-glow {
  position: absolute;
  top: -140px;
  left: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 189, 56, .2);
  filter: blur(70px);
  animation: blobDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

/* ---------- TOP: ICON, EYEBROW, TITLE ---------- */

.ff-top,
.ff-search-wrap,
.ff-footer {
  position: relative;
  z-index: 1;
}

.ff-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.find-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 16px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 2.2rem;
  box-shadow: 0 16px 30px rgba(167, 25, 46, .28);
  animation: floaty 4s ease-in-out infinite;
  transition: transform .5s var(--ease);
}

.find-friends:hover .find-icon {
  transform: rotate(-6deg) scale(1.05);
}

.ff-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--border);
  color: var(--red);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.ff-eyebrow i {
  animation: spinSlow 8s linear infinite;
}

.find-friends .script-title {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  margin-bottom: 0;
}

/* center the gold underline under the title */
.find-friends .script-title::after {
  margin: 8px auto 0;
}

.ff-top>p {
  margin-top: 10px;
  font-size: 1.1rem;
  color: var(--text);
}

/* ---------- SEARCH ---------- */

.ff-search-wrap {
  width: 100%;
  max-width: 760px;
  margin: 28px auto 0;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid #e0d6cd;
  box-shadow: 0 12px 26px rgba(105, 58, 30, .09);
  transition: border-color .3s, box-shadow .3s;
}

.search-box:hover {
  border-color: #cfc3b8;
}

.search-box:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 5px rgba(167, 25, 46, .12), 0 12px 26px rgba(105, 58, 30, .09);
}

.search-lead {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  color: #9aa2ab;
  font-size: 1.1rem;
  transition: color .3s;
}

.search-box:focus-within .search-lead {
  color: var(--red);
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 8px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1.02rem;
  font-family: inherit;
  color: var(--text);
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

.search-box input::placeholder {
  color: #aab1b8;
}

.search-box input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}

.search-clear {
  display: none;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 6px;
  border: 0;
  border-radius: 50%;
  background: #f3e7de;
  color: var(--navy);
  font-size: .85rem;
  cursor: pointer;
  transition: background .3s, color .3s, transform .4s var(--ease);
}

.search-clear.show {
  display: grid;
}

.search-clear:hover {
  background: var(--red);
  color: #fff;
  transform: rotate(90deg);
}

.search-submit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(167, 25, 46, .28);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.search-submit i {
  transition: transform .4s var(--ease);
}

.search-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(167, 25, 46, .36);
}

.search-submit:hover i {
  transform: translateX(4px);
}

.search-submit:active {
  transform: scale(.97);
}

/* ---------- QUICK CHIPS ---------- */

.ff-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.ff-chips-label {
  margin-right: 2px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
}

.ff-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .9);
  color: var(--navy);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}

.ff-chip:hover {
  transform: translateY(-3px);
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 8px 18px rgba(167, 25, 46, .22);
}

/* ---------- RESULTS ---------- */

.friend-results {
  width: 100%;
  margin-top: 20px;
  text-align: left;
  font-size: 1rem;
  color: var(--navy);
}

.results-empty,
.results-loading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .6);
  border: 1.5px dashed rgba(127, 68, 38, .28);
  color: #5d6878;
  font-weight: 600;
}

.results-loading {
  border-style: solid;
  border-color: var(--border);
}

.results-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #fde3cf, #fbc9b0);
  color: var(--red);
  font-size: 1.05rem;
}

/* result state, added automatically once a search runs */
.friend-results.has-result {
  padding: 18px 20px 18px 26px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px rgba(105, 58, 30, .1);
  position: relative;
  overflow: hidden;
  animation: fadeUp .5s var(--ease) both;
}

.friend-results.has-result::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--red), var(--gold));
}

.friend-count {
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--navy);
}

/* cards flow into two columns on wide screens */
.friend-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.friend-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 14px rgba(105, 58, 30, .07);
  transition: transform .35s var(--ease), box-shadow .35s;
}

.friend-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.friend-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .5px;
}

.friend-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.friend-name {
  font-size: 1rem;
  color: var(--navy);
}

.friend-meta {
  font-size: .88rem;
  font-weight: 600;
  color: #5d6878;
}

/* ---------- FOOTER: TIPS + STATS ---------- */

.ff-footer {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px dashed rgba(127, 68, 38, .22);
}

.ff-tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
  list-style: none;
}

.ff-tips li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--border);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  text-align: left;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}

.ff-tips li:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 10px 20px rgba(105, 58, 30, .1);
}

.ff-tip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--gold);
  font-size: .95rem;
}

.ff-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  font-size: .95rem;
  font-weight: 600;
  color: #5d6878;
}

.ff-stats strong {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--red);
}

.ff-stats-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- KEYFRAMES ---------- */

@keyframes blobDrift {
  to {
    transform: translate(80px, 50px) scale(1.1);
  }
}




/* =========================================
   MEMORY LANE (CONTACT SHEET + MOTION)
   HTML is unchanged. Replace only this CSS.
   Uses root variables from style.css:
   --red, --red-dark, --navy, --gold, --border, --text, --ease
   Uses keyframes: blobDrift, spinSlow (from style.css)
   Defines: mgIn, mgSheen, mgTagSpin, iconBob, ctaShine
========================================= */

.memory-lane {
  position: relative;
  margin-bottom: 36px;
  padding: 26px 28px 28px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 255, 255, .7), transparent 32%),
    linear-gradient(120deg, #f9dcc0 0%, #fff0e0 55%, #fff6e8 100%);
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(105, 58, 30, .09);
}

/* soft glow in the corner */
.ml-glow {
  position: absolute;
  right: -110px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 189, 56, .22);
  filter: blur(70px);
  animation: blobDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

/* ---------- HEADER ---------- */

.ml-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-bottom: 18px;
}

.ml-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* icon tile gently bobs, and tilts on hover */
.section-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(167, 25, 46, .26);
  animation: iconBob 4s ease-in-out infinite;
  transition: transform .45s var(--ease), box-shadow .45s;
}

.ml-title:hover .section-icon {
  transform: rotate(-10deg) scale(1.08);
  box-shadow: 0 16px 28px rgba(167, 25, 46, .34);
}

.ml-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--border);
  color: var(--red);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.ml-eyebrow i {
  font-size: .6rem;
  animation: spinSlow 8s linear infinite;
}

.ml-title .script-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0;
}

.ml-sub {
  flex: 1;
  min-width: 200px;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--text);
}

/* button with a light sweep and a lift */
.ml-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--red);
  background: rgba(255, 255, 255, .9);
  color: var(--red);
  font-size: .86rem;
  font-weight: 800;
  overflow: hidden;
  transition: background .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
}

.ml-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .5), transparent);
  transition: left .7s var(--ease);
  pointer-events: none;
}

.ml-cta:hover::after {
  left: 140%;
}

.ml-cta i {
  font-size: .75rem;
  transition: transform .35s var(--ease);
}

.ml-cta:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(167, 25, 46, .26);
}

.ml-cta:hover i {
  transform: translateX(4px);
}

.ml-cta:active {
  transform: translateY(0) scale(.97);
}

/* ---------- CONTACT SHEET GRID ---------- */

.memory-gallery {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-auto-rows: 168px;
  gap: 12px;
}

/* each frame rises in with a stagger on load */
.mg-item {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #fde3cf, #f4b9a4);
  box-shadow: 0 8px 18px rgba(105, 58, 30, .12);
  transition: transform .5s var(--ease), box-shadow .5s;
  animation: mgIn .8s var(--ease) backwards;
}

.mg-item:nth-child(1) {
  animation-delay: .05s;
}

.mg-item:nth-child(2) {
  animation-delay: .15s;
}

.mg-item:nth-child(3) {
  animation-delay: .25s;
}

.mg-item:nth-child(4) {
  animation-delay: .35s;
}

.mg-item:nth-child(5) {
  animation-delay: .45s;
}

.mg-featured {
  grid-row: 1 / span 2;
}

/* fallback camera icon when the photo is missing */
.mg-item::before {
  content: "\f030";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.8rem;
  color: rgba(167, 25, 46, .3);
  z-index: 0;
}

.mg-item img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter .6s;
}

/* soft shade at the bottom, deepens on hover */
.mg-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(8, 45, 80, .45), transparent);
  z-index: 2;
  opacity: .6;
  transition: opacity .5s;
  pointer-events: none;
}

/* numbered tag, spins in on hover */
.mg-no {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--red);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
  transition: transform .5s var(--ease), background .3s, color .3s;
}

/* caption pill, always visible, with a sheen on hover */
.mg-item figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 20px);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
  transition: transform .4s var(--ease), background .3s, color .3s;
}

.mg-item figcaption::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

.mg-item figcaption i {
  flex-shrink: 0;
  color: var(--red);
  font-size: .72rem;
  transition: transform .4s var(--ease);
}

/* ---------- HOVER EFFECTS ---------- */

.mg-item:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 22px 36px rgba(105, 58, 30, .22);
  z-index: 4;
}

.mg-item:hover img {
  transform: scale(1.1);
  filter: saturate(1.15) contrast(1.03);
}

.mg-item:hover::after {
  opacity: 1;
}

.mg-item:hover .mg-no {
  transform: rotate(-12deg) scale(1.12);
  background: var(--red);
  color: #fff;
}

.mg-item:hover figcaption {
  transform: translateY(-3px);
  background: #fff;
}

.mg-item:hover figcaption::before {
  animation: mgSheen .9s ease forwards;
}

.mg-item:hover figcaption i {
  transform: scale(1.25) rotate(-8deg);
}

/* ---------- KEYFRAMES ---------- */

@keyframes mgIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(.94);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mgSheen {
  from {
    left: -60%;
  }

  to {
    left: 130%;
  }
}

@keyframes iconBob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}



/* =========================================
   FEATURE SECTION (SINGLE-PAGE TABS)
   No links: each chapter opens inline in a panel.
   Uses root variables from style.css:
   --red, --red-dark, --navy, --gold, --border, --text, --ease
   Defines: fxIn
========================================= */

.fx {
  position: relative;
  margin-bottom: 36px;
  padding: 20px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 189, 56, .18), transparent 40%),
    linear-gradient(120deg, #fde3cf 0%, #fff4e8 60%, #fff9f2 100%);
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(105, 58, 30, .08);
}

/* ---------- TAB STRIP ---------- */

.fx-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fx-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s, color .35s, box-shadow .35s, border-color .35s;
}

.fx-tab:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(105, 58, 30, .1);
}

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

.fx-tab-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fde3cf, #fbc9b0);
  color: var(--red);
  font-size: .9rem;
  transition: transform .4s var(--ease), background .35s, color .35s;
}

.fx-tab:hover .fx-tab-icon {
  transform: rotate(-8deg) scale(1.06);
}

.fx-tab-text {
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.25;
}

.fx-tab-text small {
  display: block;
  margin-bottom: 2px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: .72rem;
  color: var(--red);
  transition: color .35s;
}

/* active tab fills with the brand red */
.fx-tab.is-active {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 22px rgba(167, 25, 46, .28);
}

.fx-tab.is-active .fx-tab-icon {
  background: rgba(255, 255, 255, .18);
  color: var(--gold);
}

.fx-tab.is-active .fx-tab-text small {
  color: #ffd27a;
}

/* ---------- STAGE + PANELS ---------- */

.fx-stage {
  margin-top: 18px;
}

.fx-panel {
  display: none;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
  animation: fxIn .5s var(--ease) both;
}

.fx-panel.is-active {
  display: grid;
}

/* media side */
.fx-media {
  position: relative;
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #0b3a63, #052c4c);
  box-shadow: 0 14px 28px rgba(5, 44, 76, .2);
}

.fx-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease), filter .6s;
  filter: saturate(1.08);
}

.fx-panel:hover .fx-media img {
  transform: scale(1.06);
  filter: saturate(1.18);
}

/* letter illustration */
.fx-media-letter {
  background: linear-gradient(160deg, #f7dca6, #e6b765);
}

.fx-letter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: auto;
  width: min(230px, 70%);
  height: fit-content;
  padding: 22px 18px;
  border-radius: 8px;
  background: #fffaf0;
  color: var(--navy);
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 14px 28px rgba(60, 30, 15, .22);
  transform: rotate(-4deg);
  transition: transform .6s var(--ease);
}

.fx-letter i {
  font-size: 1.4rem;
  color: var(--red);
}

.fx-panel:hover .fx-letter {
  transform: rotate(-1deg) scale(1.04);
}

/* teachers illustration */
.fx-media-book {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #b7791f, #6e4313);
}

.fx-media-book i {
  color: rgba(255, 248, 240, .92);
  font-size: 6rem;
  text-shadow: 0 14px 26px rgba(0, 0, 0, .3);
  transform: rotate(-6deg);
  transition: transform .6s var(--ease);
}

.fx-panel:hover .fx-media-book i {
  transform: rotate(0) scale(1.08);
}

/* text side */
.fx-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 6px 4px;
}

.fx-body .script-title {
  margin: 0;
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  line-height: 1;
  color: var(--red);
}

.fx-body .script-title::after {
  width: 64px;
  height: 3px;
}

.fx-lead {
  font-size: .98rem;
  line-height: 1.6;
  color: var(--text);
}

/* list items for stories and traditions */
.fx-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.fx-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.fx-list li:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 16px rgba(105, 58, 30, .08);
}

.fx-list li i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--gold);
  font-size: .72rem;
}

/* handwritten note for letters and teachers */
.fx-note {
  position: relative;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff9dc, #fff0b5);
  box-shadow: 0 10px 22px rgba(105, 58, 30, .1);
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--navy);
  transform: rotate(-1deg);
}

/* ---------- KEYFRAMES ---------- */

@keyframes fxIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}



/* =========================================
   ALUMNI VOICES, BEYOND THE CLASSROOM, NETWORK
   (COMPACT + SLEEK)
   HTML is unchanged. Replace only this CSS.
   Uses root variables from style.css:
   --red, --red-dark, --navy, --gold, --border, --text, --ease
   Uses keyframes: spinSlow, fadeUp, floaty, heartbeat, nudge
========================================= */

/* ================= ALUMNI VOICES ================= */

.voices {
  position: relative;
  margin-bottom: 32px;
  padding: 30px 32px 26px;
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .8), transparent 40%),
    linear-gradient(120deg, #f9dcc0 0%, #fff1e2 60%, #fff8ef 100%);
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(105, 58, 30, .09);
}

/* faint oversized quote mark, kept subtle */
.voices::before {
  content: "\201C";
  position: absolute;
  top: -26px;
  left: 22px;
  font-family: 'Playfair Display', serif;
  font-size: 9rem;
  line-height: 1;
  color: rgba(167, 25, 46, .06);
  pointer-events: none;
}

.voices-head,
.testimonial {
  position: relative;
  z-index: 1;
}

.voices-head {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--border);
  color: var(--red);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.vs-eyebrow i {
  font-size: .62rem;
  animation: spinSlow 8s linear infinite;
}

.voices .script-title {
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  margin-bottom: 0;
}

.voices .script-title::after {
  margin: 4px auto 0;
  width: 84px;
}

/* arrows flank a single quote card */
.testimonial {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.testimonial-content {
  min-width: 0;
  padding: 22px 30px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(105, 58, 30, .07);
  animation: fadeUp .6s var(--ease);
}

.vs-quote {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: .95rem;
  box-shadow: 0 8px 16px rgba(167, 25, 46, .26);
  animation: floaty 3.6s ease-in-out infinite;
}

#testimonialText {
  margin: 0 0 12px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  color: var(--navy);
}

#testimonialAuthor {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--red);
  font-size: .84rem;
  font-weight: 800;
}

/* round arrows, compact */
.slider-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: .9rem;
  box-shadow: 0 8px 18px rgba(105, 58, 30, .12);
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s, color .3s;
}

.slider-arrow:hover {
  background: var(--red);
  color: #fff;
  transform: scale(1.08);
}

.slider-arrow:active {
  transform: scale(.95);
}

/* slim pill dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e5bda8;
  cursor: pointer;
  transition: width .4s var(--ease), background .4s;
}

.slider-dots button:hover {
  background: #d9a48a;
}

.slider-dots button.active {
  width: 22px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

/* ================= BEYOND THE CLASSROOM ================= */

.beyond {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
  padding: 28px 30px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(110deg, #fbe0c6 0%, #fff3e4 100%);
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(105, 58, 30, .09);
}

.beyond::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  filter: blur(60px);
  pointer-events: none;
}

.beyond>* {
  position: relative;
  z-index: 1;
}

.bc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--border);
  color: var(--red);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.bc-eyebrow i {
  color: var(--gold);
  font-size: .62rem;
  animation: spinSlow 8s linear infinite;
}

.beyond-copy .script-title {
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  margin-bottom: 0;
}

.beyond-copy>p {
  max-width: 420px;
  margin: 10px 0 16px;
  font-size: .98rem;
  line-height: 1.6;
  color: var(--text);
}

.bc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 20px;
}

.bc-tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(105, 58, 30, .06);
  color: var(--navy);
  font-size: .82rem;
  font-weight: 700;
  transition: transform .3s var(--ease), box-shadow .3s;
}

.bc-tags li i {
  color: var(--red);
  font-size: .75rem;
}

.bc-tags li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(105, 58, 30, .1);
}

/* mosaic: one tall tile, two stacked tiles */
.beyond-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 290px;
}

.bg-tile {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #fde3cf, #f4b9a4);
  box-shadow: 0 8px 18px rgba(105, 58, 30, .12);
  transition: transform .45s var(--ease), box-shadow .45s;
}

.bg-tall {
  grid-row: span 2;
}

.bg-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}

.bg-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 45, 80, .5), transparent 55%);
  z-index: 1;
  opacity: .8;
  transition: opacity .4s;
  pointer-events: none;
}

.bg-tile figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--navy);
  font-size: .74rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

.bg-tile figcaption i {
  color: var(--red);
  font-size: .7rem;
}

.bg-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(105, 58, 30, .18);
}

.bg-tile:hover img {
  transform: scale(1.08);
}

.bg-tile:hover::after {
  opacity: 1;
}

/* ================= NETWORK ================= */

.network {
  position: relative;
  margin-bottom: 8px;
  padding: 36px 36px 30px;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 94% 0%, rgba(255, 189, 56, .25), transparent 35%),
    linear-gradient(135deg, #0b3a63 0%, #052c4c 100%);
  box-shadow: 0 20px 44px rgba(5, 44, 76, .26);
}

.network::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .1) 1.2px, transparent 1.3px);
  background-size: 20px 20px;
  pointer-events: none;
}

.net-top,
.net-stats {
  position: relative;
  z-index: 1;
}

.net-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
}

.net-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: var(--gold);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.net-eyebrow i {
  font-size: .62rem;
  animation: spinSlow 8s linear infinite;
}

.network h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 6px;
}

.net-copy p {
  max-width: 460px;
  font-size: .98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
}

.net-cta {
  flex-shrink: 0;
  padding: 11px 18px;
  font-size: .9rem;
  border-radius: 999px;
}

/* four stat tiles, icon on the left, number over label */
.net-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.net-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  text-align: left;
  transition: transform .35s var(--ease), background .35s, box-shadow .35s;
}

.net-stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
}

.net-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--gold), #ffd27a);
  color: var(--navy);
  font-size: .95rem;
  box-shadow: 0 8px 16px rgba(255, 189, 56, .25);
  transition: transform .4s var(--ease);
}

.net-stat:hover .net-icon {
  transform: rotate(-8deg) scale(1.06);
}

.net-stat strong {
  grid-column: 2;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.1;
  color: #fff;
}

.net-stat>span:last-child {
  grid-column: 2;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}



/* =========================================
   DESIGNATED PERSONS (TEAM) SECTION
   Stylish committee cards
   Uses root variables from style.css:
   --red, --red-dark, --navy, --gold, --border, --text, --ease
   Uses keyframes: spinSlow (from style.css)
   Defines: teamHalo
========================================= */

.team {
  position: relative;
  margin-bottom: 36px;
  padding: 42px 40px 44px;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background:
    radial-gradient(circle at 6% 0%, rgba(255, 255, 255, .9), transparent 32%),
    radial-gradient(circle at 96% 100%, rgba(255, 189, 56, .2), transparent 36%),
    linear-gradient(120deg, #fbe3dc 0%, #fff1e6 60%, #fff7f0 100%);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(105, 58, 30, .08);
}

/* faint dotted texture across the section */
.team::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(167, 25, 46, .06) 1.2px, transparent 1.3px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* ---------- HEADER ---------- */

.team-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.team-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 4px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(105, 58, 30, .06);
  color: var(--red);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.team-eyebrow i {
  font-size: .62rem;
  animation: spinSlow 8s linear infinite;
}

.team-intro .script-title {
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  margin-bottom: 0;
}

.team-intro .script-title::after {
  width: 84px;
  margin: 4px auto 0;
}

.team-intro>p {
  max-width: 520px;
  margin-top: 8px;
  font-size: .98rem;
  line-height: 1.55;
  color: var(--text);
}

/* ---------- GRID ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* ---------- CARD ---------- */

.team-card {
  --accent: var(--red);
  --accent-2: var(--red-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 16px 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #fff 0%, #fffaf5 100%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow:
    0 12px 26px rgba(105, 58, 30, .09),
    0 0 0 1px var(--border);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s;
}

.team-card:nth-child(2) {
  --accent: #0b3a63;
  --accent-2: #052c4c;
}

.team-card:nth-child(3) {
  --accent: #b7791f;
  --accent-2: #ffbd38;
}

.team-card:nth-child(4) {
  --accent: #8b4a6b;
  --accent-2: #6d2f52;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 22px 40px rgba(105, 58, 30, .18),
    0 0 0 1px rgba(255, 189, 56, .35);
}

/* coloured band across the top */
.tc-band {
  position: relative;
  width: 120%;
  height: 74px;
  margin: 0 -1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  overflow: hidden;
}

/* soft light sweep on the band */
.tc-band::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg);
  transition: left .9s var(--ease);
}

.team-card:hover .tc-band::after {
  left: 130%;
}

/* photo ring with a rotating gold halo on hover */
.tc-photo {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 104px;
  height: 104px;
  margin-top: -52px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: linear-gradient(135deg, #fde3cf, #f4b9a4);
  box-shadow: 0 10px 22px rgba(105, 58, 30, .2);
  overflow: visible;
  transition: transform .5s var(--ease), box-shadow .5s;
}

/* the photo clips to a circle inside the ring */
.tc-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
  transition: transform .6s var(--ease);
}

/* gold halo that appears on hover */
.tc-photo::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 189, 56, .7);
  opacity: 0;
  transform: rotate(0deg);
  transition: opacity .4s;
  pointer-events: none;
}

.team-card:hover .tc-photo::before {
  opacity: 1;
  animation: teamHalo 8s linear infinite;
}

/* initials sit behind the photo, and show when it is missing */
.tc-initials {
  position: relative;
  z-index: 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.team-card:hover .tc-photo {
  transform: scale(1.04);
  box-shadow: 0 0 0 6px rgba(255, 189, 56, .25), 0 14px 26px rgba(105, 58, 30, .22);
}

.team-card:hover .tc-photo img {
  transform: scale(1.08);
}

/* name sits on a soft plate */
.tc-name {
  margin-top: 4px;
  padding: 0 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
}

/* role pill, colour set per card */
.role {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 999px;
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
  transition: transform .3s var(--ease), letter-spacing .3s;
}

.team-card:nth-child(3) .role {
  color: var(--navy);
}

.team-card:hover .role {
  transform: translateY(-2px);
  letter-spacing: .6px;
}

/* ---------- KEYFRAMES ---------- */

@keyframes teamHalo {
  to {
    transform: rotate(360deg);
  }
}



/* =========================================
   FAQ SECTION (SMOOTH ACCORDION)
   HTML is unchanged. Works with the jQuery accordion (toggles .open).
   Animates only grid-template-rows, opacity and transform,
   which avoids the layout jank of animating max-height and padding.
   Uses root variables from style.css:
   --red, --red-dark, --navy, --gold, --border, --text, --ease
   Uses keyframes: floaty, heartbeat (from style.css)
========================================= */

.faq {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
  padding: 28px 30px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .85), transparent 36%),
    linear-gradient(120deg, #fbe7d6 0%, #fff4ea 60%, #fffaf5 100%);
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(105, 58, 30, .08);
}

/* ---------- INTRO (LEFT) ---------- */

.faq .faq-intro {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq .faq-intro-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 10px 22px rgba(167, 25, 46, .28);
  animation: floaty 5s ease-in-out infinite;
}

.faq .faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--border);
  color: var(--red);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.faq .faq-eyebrow i {
  color: var(--gold);
  font-size: .62rem;
  animation: heartbeat 2s ease-in-out infinite;
}

.faq .faq-intro h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: var(--navy);
}

.faq .faq-intro>p {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--text);
}

/* help card, navy with a gold heading */
.faq .faq-help {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #0b3a63, #052c4c);
  box-shadow: 0 12px 24px rgba(5, 44, 76, .2);
}

.faq .faq-help strong {
  font-size: .92rem;
  color: #ffd27a;
}

.faq .faq-help span {
  font-size: .84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
}

.faq .faq-help a {
  color: #fff;
  font-weight: 800;
  word-break: break-all;
  border-bottom: 1px solid rgba(255, 210, 122, .6);
  transition: color .3s, border-color .3s;
}

.faq .faq-help a:hover {
  color: #ffd27a;
  border-color: #ffd27a;
}

/* ---------- ACCORDION (RIGHT) ---------- */

.faq .faq-list {
  display: grid;
  gap: 8px;
}

/* contain stops a change in one item from reflowing the whole page */
.faq .faq-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #ecdcce;
  contain: layout paint;
  transition: border-color .25s, background-color .25s;
}

/* gold-to-red bar on the open item, animated with transform only */
.faq .faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red), var(--gold));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s ease;
}

.faq .faq-item:hover {
  border-color: rgba(167, 25, 46, .25);
}

.faq .faq-item.open {
  border-color: rgba(167, 25, 46, .22);
}

.faq .faq-item.open::before {
  transform: scaleY(1);
}

/* question row */
.faq .faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--navy);
  font: inherit;
}

.faq .faq-question:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
  border-radius: 14px;
}

.faq .faq-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fde3cf, #fbc9b0);
  color: var(--red);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: .8rem;
  font-weight: 800;
  transition: transform .3s ease, background-color .3s, color .3s;
}

.faq .faq-q-text {
  flex: 1;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  transition: color .25s;
}

.faq .faq-chevron {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f7ece4;
  color: var(--navy);
  font-size: .7rem;
  transition: transform .3s ease, background-color .3s, color .3s;
}

.faq .faq-question:hover .faq-q-text {
  color: var(--red);
}

/* open state */
.faq .faq-item.open .faq-q-text {
  color: var(--red);
}

.faq .faq-item.open .faq-num {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  transform: rotate(-6deg);
}

.faq .faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--red);
  color: #fff;
}

/* answer: the grid row animates from 0fr to 1fr, so no padding or max-height is animated */
.faq .faq-item .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.faq .faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq .faq-item .faq-answer p {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 14px;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s ease, transform .25s ease, padding .35s ease;
}

.faq .faq-item.open .faq-answer p {
  padding: 0 14px 14px;
  opacity: 1;
  transform: none;
  transition-delay: .05s;
}


/* =========================================
   SHARE YOUR MEMORIES (SLEEK + COMPACT)
   HTML is unchanged. Replace the old share-memory CSS.
   Uses root variables from style.css:
   --red, --red-dark, --navy, --gold, --border, --text, --ease
   Uses keyframes: fadeUp, floaty, spinSlow, nudge (from style.css)
   Defines: smDrift
========================================= */

.share-memory {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  margin-bottom: 36px;
  padding: 36px 40px;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, .85), transparent 34%),
    radial-gradient(circle at 4% 100%, rgba(255, 189, 56, .2), transparent 38%),
    linear-gradient(110deg, #fbdcc0 0%, #fde9d7 55%, #fff5e9 100%);
  box-shadow: 0 18px 40px rgba(105, 58, 30, .09);
}

/* soft drifting glow */
.sm-glow {
  position: absolute;
  top: -110px;
  right: -90px;
  z-index: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  filter: blur(70px);
  animation: smDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

/* faint dot pattern, bottom-left */
.sm-dots {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 0;
  width: 110px;
  height: 110px;
  background-image: radial-gradient(rgba(167, 25, 46, .2) 1.4px, transparent 1.5px);
  background-size: 13px 13px;
  opacity: .6;
  pointer-events: none;
}

.share-text,
.share-preview {
  position: relative;
  z-index: 1;
}

/* ---------- LEFT: COPY ---------- */

.sm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--border);
  color: var(--red);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.sm-eyebrow i {
  font-size: .62rem;
  animation: spinSlow 8s linear infinite;
}

.share-text .script-title {
  font-size: clamp(2.3rem, 3.6vw, 3rem);
  margin-bottom: 0;
}

.share-text p {
  max-width: 460px;
  margin: 10px 0 16px;
  font-size: .98rem;
  line-height: 1.6;
  color: var(--text);
}

/* checklist as a compact row of chips */
.sm-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.sm-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(105, 58, 30, .05);
  font-size: .84rem;
  font-weight: 700;
  color: var(--navy);
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}

.sm-points li:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 8px 16px rgba(105, 58, 30, .1);
}

.sm-points i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--gold);
  font-size: .7rem;
}

/* call to action */
.sm-btn {
  padding: 13px 24px;
  font-size: .96rem;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(167, 25, 46, .3);
}

.sm-btn i {
  font-size: .85rem;
  transition: transform .35s var(--ease);
}

.sm-btn:hover i {
  transform: translateX(4px);
}

/* ---------- RIGHT: PHOTO CARDS ---------- */

.share-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  padding-top: 12px;
}

.sm-card {
  position: relative;
  margin: 0;
  padding: 7px 7px 12px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(60, 30, 15, .16);
  transition: transform .5s var(--ease), box-shadow .5s;
}

.sm-card-1 {
  transform: rotate(-4deg);
}

.sm-card-2 {
  transform: rotate(2.5deg) translateY(12px);
}

.sm-card-3 {
  transform: rotate(-2deg);
}

.sm-card:hover {
  transform: rotate(0) translateY(-8px) scale(1.04);
  box-shadow: 0 22px 40px rgba(60, 30, 15, .24);
  z-index: 3;
}

/* washi tape strip */
.sm-tape {
  position: absolute;
  top: -9px;
  left: 50%;
  z-index: 2;
  width: 70px;
  height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 189, 56, .6);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .06);
}

.sm-card-2 .sm-tape {
  background: rgba(167, 25, 46, .28);
  transform: translateX(-50%) rotate(4deg);
}

.sm-card-photo {
  position: relative;
  height: 130px;
  overflow: hidden;
  border-radius: 2px;
  background: linear-gradient(135deg, #fde3cf, #f4b9a4);
}

.sm-card-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.1) saturate(1.1);
  transition: transform .9s var(--ease), filter .6s;
}

.sm-card:hover .sm-card-photo img {
  transform: scale(1.07);
  filter: sepia(0) saturate(1.18);
}

/* camera icon behind the photo, shown only if the image is missing */
.sm-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 0;
  font-size: 1.6rem;
  color: rgba(167, 25, 46, .3);
}

.sm-card figcaption {
  margin-top: 8px;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--navy);
}

/* round badge overlapping the bottom-right corner */
.sm-badge {
  position: absolute;
  right: -6px;
  bottom: -18px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 84px;
  height: 84px;
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  text-align: center;
  border: 3px solid #fff5e9;
  box-shadow: 0 10px 22px rgba(167, 25, 46, .32);
  font-size: .64rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .3px;
  animation: floaty 5s ease-in-out infinite;
}

.sm-badge i {
  font-size: 1.1rem;
  color: var(--gold);
}

/* ---------- KEYFRAMES ---------- */

@keyframes smDrift {
  to {
    transform: translate(-50px, 40px) scale(1.1);
  }
}


/* =========================================
   STAY CONNECTED (FOOTER CTA, SLEEK + COMPACT)
   HTML is unchanged. Replace the old footer CTA CSS.
   Uses root variables from style.css:
   --red, --red-dark, --navy, --gold, --border, --ease
   Uses keyframes: heartbeat, floaty (from style.css)
   Defines: fctaShine
========================================= */

.footer-cta {
  position: relative;
  padding: 40px 0;
  background: none;
}

/* compact navy band with warm glow spots */
.fcta-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 34px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  color: #fff8f0;
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 189, 56, .3), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(167, 25, 46, .35), transparent 42%),
    linear-gradient(120deg, #0b3a63 0%, #052c4c 100%);
  box-shadow: 0 18px 36px rgba(5, 44, 76, .26);
}

/* faint dot texture */
.fcta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.3px);
  background-size: 18px 18px;
  pointer-events: none;
}

/* ---------- LEFT ---------- */

.fcta-main {
  min-width: 0;
}

.fcta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 210, 122, .45);
  color: #ffd27a;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.fcta-eyebrow i {
  font-size: .62rem;
  animation: heartbeat 2s ease-in-out infinite;
}

.fcta-main .script-title {
  margin: 8px 0 0;
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  color: #ffd27a;
}

.fcta-main .script-title::after {
  width: 84px;
  background: var(--red);
}

.fcta-main p {
  max-width: 460px;
  margin-top: 10px;
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(255, 248, 240, .85);
}

/* chips: glass pills */
.fcta-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.fcta-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: .8rem;
  font-weight: 700;
  color: #fff3e6;
  transition: transform .3s var(--ease), background .3s;
}

.fcta-points li:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .18);
}

.fcta-points i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ffd27a);
  color: var(--navy);
  font-size: .66rem;
}

/* ---------- RIGHT ---------- */

.fcta-side {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

/* smaller seal with a gold ring */
.fcta-seal {
  display: grid;
  place-items: center;
  align-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  text-align: center;
  border: 3px solid var(--gold);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .3), 0 0 0 6px rgba(255, 189, 56, .12);
  animation: floaty 6s ease-in-out infinite;
}

.fcta-seal i {
  display: block;
  margin-bottom: 2px;
  font-size: 1.2rem;
  color: var(--gold);
}

.fcta-seal span {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.1;
}

.fcta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* gold call to action, so it stands out on the navy band */
.fcta-btn {
  position: relative;
  overflow: hidden;
  padding: 12px 20px;
  font-size: .94rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #ffd27a);
  color: var(--navy);
  box-shadow: 0 10px 22px rgba(255, 189, 56, .32);
}

.fcta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .55), transparent);
  transition: left .7s var(--ease);
  pointer-events: none;
}

.fcta-btn:hover::after {
  left: 140%;
}

.fcta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(255, 189, 56, .42);
  color: #fff;
}

.fcta-btn i {
  transition: transform .3s var(--ease);
}

.fcta-btn:hover i {
  transform: translateX(4px);
}

/* quiet text link */
.fcta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  color: #ffd27a;
  font-size: .86rem;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, color .3s;
}

.fcta-link i {
  font-size: .72rem;
  transition: transform .3s var(--ease);
}

.fcta-link:hover {
  color: #fff;
  border-color: #ffd27a;
}

.fcta-link:hover i {
  transform: translateX(3px);
}



/* =========================================
   FOOTER (compact)
   Uses root variables from style.css:
   --red, --red-dark, --gold, --navy, --white, --ease
   Uses keyframes from style.css: blobDrift
========================================= */

.footer {
  position: relative;
  overflow: hidden;
  padding: 46px 0 18px;
  color: var(--white);
  background:
    radial-gradient(circle at 98% 0%, rgba(255, 189, 56, .12) 0, transparent 34%),
    linear-gradient(120deg, #052c4c 0%, #0a3658 60%, #0c3c62 100%);
}

/* thin animated accent line on top */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  background-size: 200% 100%;
  animation: footerFlow 6s linear infinite;
}

/* faint dot texture */
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  pointer-events: none;
}

.footer-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .3;
  pointer-events: none;
  animation: blobDrift 16s ease-in-out infinite alternate;
  z-index: 0;
}

.footer-glow-1 {
  top: -130px;
  left: -110px;
  background: rgba(167, 25, 46, .55);
}

.footer-glow-2 {
  bottom: -150px;
  right: -90px;
  background: rgba(255, 189, 56, .35);
  animation-duration: 20s;
}

.footer-grid,
.footer-bottom {
  position: relative;
  z-index: 1;
}

/* ---------- GRID ---------- */

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .7fr 1.2fr 1fr;
  gap: 34px;
  padding-bottom: 30px;
}

/* ---------- BRAND ---------- */

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-badge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform .5s var(--ease);
}

.footer-logo-img {
  width: 100px;
  height: 70px;
  object-fit: contain;
}

.footer-logo:hover .footer-logo-badge {
  transform: rotate(-6deg) scale(1.05);
}

.footer-logo div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.footer-logo strong {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: #ffd27a;
}

.footer-logo b {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 800;
}

.footer-brand p {
  max-width: 290px;
  margin: 14px 0 14px;
  font-size: .92rem;
  line-height: 1.6;
  color: #b9cadb;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: .8rem;
  font-weight: 700;
  color: #ffd27a;
}

.footer-chip i {
  font-size: .75rem;
}

/* ---------- HEADINGS ---------- */

.footer h4 {
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffd27a;
}

.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transition: width .4s var(--ease);
}

.footer-links:hover h4::after,
.footer-contact:hover h4::after,
.footer-social:hover h4::after {
  width: 56px;
}

/* ---------- QUICK LINKS ---------- */

.fl-list {
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .93rem;
  font-weight: 600;
  color: #b9cadb;
  transition: color .3s, transform .3s var(--ease);
}

.footer-links a i {
  font-size: .55rem;
  color: var(--gold);
  transition: transform .3s var(--ease);
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer-links a:hover i {
  transform: translateX(2px);
}

/* ---------- CONTACT ---------- */

.footer-contact {
  display: grid;
  gap: 8px;
  align-content: start;
}

.fc-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid transparent;
  font-size: .92rem;
  color: #c9d7e4;
  transition: background .3s, border-color .3s, transform .3s var(--ease), color .3s;
}

a.fc-row:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .14);
  color: var(--white);
  transform: translateX(4px);
}

.fc-tile {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #ffd27a;
  font-size: .8rem;
  transition: background .35s, transform .35s var(--ease);
}

a.fc-row:hover .fc-tile {
  background: var(--red);
  color: var(--white);
  transform: rotate(-6deg);
}

/* ---------- SOCIAL ---------- */

.footer-social-text {
  margin-bottom: 16px;
  font-size: .92rem;
  line-height: 1.55;
  color: #b9cadb;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-icons a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--white);
  font-size: .95rem;
  transition: background .3s, color .3s, transform .4s var(--ease), border-color .3s, box-shadow .3s;
}

.social-icons a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 189, 56, .3);
}

/* ---------- BOTTOM BAR ---------- */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
  color: #8fa6bb;
}

.fb-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fb-links a {
  color: #c3d3e2;
  transition: color .3s;
}

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

.fb-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

/* round back-to-top button */
.back-top {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--gold);
  font-size: .75rem;
  transition: background .3s, color .3s, transform .3s var(--ease);
}

.back-top:hover {
  background: brown;
  color: var(--navy);
  transform: translateY(-3px);
}

/* ---------- KEYFRAMES ---------- */

@keyframes footerFlow {
  to {
    background-position: 200% 0;
  }
}

/* ---------- MODAL ---------- */

/* =========================================
   SHARE MEMORY MODAL (COMPACT)
   Uses root variables from style.css:
   --cream, --red, --red-dark, --navy, --gold,
   --border, --text, --muted, --ease
   Uses keyframes: heartbeat (from style.css)
========================================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  padding: 16px;
  align-items: center;
  justify-content: center;
  background: rgba(3, 24, 42, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal.active {
  display: flex;
  animation: mmFadeIn .25s ease both;
}

.modal-content {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  background: #fffdfb;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .3);
}

.modal.active .modal-content {
  animation: mmPopIn .35s var(--ease) both;
}

/* ---------- CLOSE ---------- */

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(105, 58, 30, .14);
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s, color .3s;
}

.modal-close:hover {
  transform: rotate(90deg);
  background: var(--red);
  color: #fff;
}

/* ---------- HEADER ---------- */

.mm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 56px 16px 20px;
  background: linear-gradient(135deg, #fbdcc0 0%, #fff1e2 100%);
  border-bottom: 1px solid rgba(127, 68, 38, .14);
}

.mm-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--gold);
  font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(167, 25, 46, .28);
}

.mm-head-text {
  min-width: 0;
}

.mm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  color: var(--red);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.mm-eyebrow i {
  font-size: .6rem;
  animation: heartbeat 2s ease-in-out infinite;
}

.modal-content .script-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.modal-content .script-title::after {
  width: 64px;
  height: 3px;
  margin-top: 4px;
}

/* ---------- FORM ---------- */

.mm-form {
  display: grid;
  gap: 12px;
  padding: 16px 20px 20px;
}

.mm-lead {
  font-size: .9rem;
  line-height: 1.5;
  color: var(--muted);
}

.mm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mm-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.mm-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy);
}

.mm-input {
  position: relative;
  display: flex;
  align-items: center;
}

.mm-input>i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: #9aa2ab;
  font-size: .8rem;
  pointer-events: none;
  transition: color .3s;
}

.mm-input input,
.mm-input textarea {
  width: 100%;
  padding: 9px 12px 9px 34px;
  font: inherit;
  font-size: .92rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid #e0d6cd;
  border-radius: 10px;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}

.mm-input input::placeholder,
.mm-input textarea::placeholder {
  color: #aab1b8;
}

.mm-input input:focus,
.mm-input textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(167, 25, 46, .12);
}

.mm-input:focus-within>i {
  color: var(--red);
}

.mm-textarea>i {
  top: 12px;
  transform: none;
}

.mm-textarea textarea {
  min-height: 84px;
  padding-top: 9px;
  resize: vertical;
}

/* ---------- UPLOAD (single compact row) ---------- */

.mm-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px dashed #d9bfb0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}

.mm-upload:hover {
  border-color: var(--red);
  background: #fffaf7;
}

.mm-upload>i {
  color: var(--red);
  font-size: 1.1rem;
}

.mm-upload-text {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
}

.mm-upload small {
  margin-left: auto;
  font-size: .75rem;
  color: var(--muted);
}

.mm-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ---------- SUBMIT ---------- */

.mm-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(167, 25, 46, .28);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.mm-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(167, 25, 46, .36);
}

.mm-submit i {
  transition: transform .3s var(--ease);
}

.mm-submit:hover i {
  transform: translateX(4px);
}

/* ---------- KEYFRAMES ---------- */

@keyframes mmFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes mmPopIn {
  from {
    opacity: 0;
    transform: scale(.94) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ---------- KEYFRAMES ---------- */

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0) rotate(var(--tilt, 0deg));
  }

  50% {
    transform: translateY(-12px) rotate(var(--tilt, 0deg));
  }
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.18);
  }

  30% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.12);
  }
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  80% {
    transform: translateY(16px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

@keyframes nudge {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(8px);
  }
}

@keyframes pulseSoft {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 189, 56, .4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(255, 189, 56, 0);
  }
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}