/**
 * RIPS public website — Royal International Public School
 * Scoped tokens and components; Bootstrap utilities used alongside rips-* classes.
 */

:root {
  --rips-navy: #0a2647;
  --rips-navy-soft: #123a5c;
  --rips-gold: #c9a227;
  --rips-gold-hover: #ddb52e;
  --rips-cream: #f6f3eb;
  --rips-ink: #1a2d3d;
  --rips-muted: #5c6b7a;
  --rips-border: rgba(10, 38, 71, 0.12);
  --rips-radius: 0.5rem;
  --rips-radius-lg: 1rem;
  /* PT Sans — body & UI; Playfair Display — headings & display */
  --rips-font-body: "PT Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rips-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  /* Pencil cursor — data URI so path/subfolder installs work; hotspot at nib */
  --rips-cursor-school: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20fill%3D%22%23f6e9b8%22%20stroke%3D%22%230a2647%22%20stroke-width%3D%221.1%22%20stroke-linejoin%3D%22round%22%20d%3D%22M22%204l6%206-14%2014-7%202%202-7L22%204z%22%2F%3E%3Cpath%20fill%3D%22%23c9a227%22%20stroke%3D%22%230a2647%22%20stroke-width%3D%220.9%22%20stroke-linejoin%3D%22round%22%20d%3D%22M22%204l2-2%206%206-2%202-6-6z%22%2F%3E%3Cpath%20fill%3D%22%232d2118%22%20d%3D%22M7%2025l-4%205%205-1%202-2-3-2z%22%2F%3E%3Cpath%20fill%3D%22%230a2647%22%20opacity%3D%220.35%22%20d%3D%22M9%2023l2%202-1%201-3-1%202-2z%22%2F%3E%3C%2Fsvg%3E")
    4 28,
    auto;
  /* Pressed pencil — nib pivots slightly (JS: rips-cursor--click on mousedown) */
  --rips-cursor-school-pressed: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20aria-hidden%3D%22true%22%3E%3Cg%20transform%3D%22rotate(-14%207%2026)%22%3E%3Cpath%20fill%3D%22%23f6e9b8%22%20stroke%3D%22%230a2647%22%20stroke-width%3D%221.1%22%20stroke-linejoin%3D%22round%22%20d%3D%22M22%204l6%206-14%2014-7%202%202-7L22%204z%22%2F%3E%3Cpath%20fill%3D%22%23c9a227%22%20stroke%3D%22%230a2647%22%20stroke-width%3D%220.9%22%20stroke-linejoin%3D%22round%22%20d%3D%22M22%204l2-2%206%206-2%202-6-6z%22%2F%3E%3Cpath%20fill%3D%22%232d2118%22%20d%3D%22M7%2025l-4%205%205-1%202-2-3-2z%22%2F%3E%3Cpath%20fill%3D%22%230a2647%22%20opacity%3D%220.35%22%20d%3D%22M9%2023l2%202-1%201-3-1%202-2z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")
    4 28,
    auto;
}

/* SweetAlert2 above promos / fixed header */
body.rips-public .swal2-container {
  z-index: 20050;
}

body.rips-public {
  font-family: var(--rips-font-body);
  font-weight: 400;
  font-style: normal;
  color: var(--rips-ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga" 1;
  font-kerning: normal;
  cursor: var(--rips-cursor-school);
}

/* Bootstrap sets cursor:pointer on links/buttons — override so the school cursor shows */
body.rips-public a,
body.rips-public button,
body.rips-public [type="button"],
body.rips-public [type="submit"],
body.rips-public [type="reset"],
body.rips-public [role="button"],
body.rips-public label,
body.rips-public summary,
body.rips-public select,
body.rips-public .btn,
body.rips-public .nav-link,
body.rips-public .dropdown-item,
body.rips-public .page-link,
body.rips-public .rips-scrolltop {
  cursor: var(--rips-cursor-school) !important;
}

body.rips-public.rips-cursor--click,
body.rips-public.rips-cursor--click a,
body.rips-public.rips-cursor--click button,
body.rips-public.rips-cursor--click [type="button"],
body.rips-public.rips-cursor--click [type="submit"],
body.rips-public.rips-cursor--click [type="reset"],
body.rips-public.rips-cursor--click [role="button"],
body.rips-public.rips-cursor--click label,
body.rips-public.rips-cursor--click summary,
body.rips-public.rips-cursor--click select,
body.rips-public.rips-cursor--click input,
body.rips-public.rips-cursor--click textarea,
body.rips-public.rips-cursor--click .btn,
body.rips-public.rips-cursor--click .nav-link,
body.rips-public.rips-cursor--click .dropdown-item,
body.rips-public.rips-cursor--click .page-link,
body.rips-public.rips-cursor--click .rips-scrolltop {
  cursor: var(--rips-cursor-school-pressed) !important;
}

@media (pointer: coarse) {
  body.rips-public,
  body.rips-public a,
  body.rips-public button,
  body.rips-public [type="button"],
  body.rips-public [type="submit"],
  body.rips-public [type="reset"],
  body.rips-public [role="button"],
  body.rips-public label,
  body.rips-public summary,
  body.rips-public select,
  body.rips-public .btn,
  body.rips-public .nav-link,
  body.rips-public .dropdown-item,
  body.rips-public .page-link,
  body.rips-public .rips-scrolltop {
    cursor: auto !important;
  }

  body.rips-public.rips-cursor--click,
  body.rips-public.rips-cursor--click a,
  body.rips-public.rips-cursor--click button,
  body.rips-public.rips-cursor--click [type="button"],
  body.rips-public.rips-cursor--click [type="submit"],
  body.rips-public.rips-cursor--click [type="reset"],
  body.rips-public.rips-cursor--click [role="button"],
  body.rips-public.rips-cursor--click label,
  body.rips-public.rips-cursor--click summary,
  body.rips-public.rips-cursor--click select,
  body.rips-public.rips-cursor--click input,
  body.rips-public.rips-cursor--click textarea,
  body.rips-public.rips-cursor--click .btn,
  body.rips-public.rips-cursor--click .nav-link,
  body.rips-public.rips-cursor--click .dropdown-item,
  body.rips-public.rips-cursor--click .page-link,
  body.rips-public.rips-cursor--click .rips-scrolltop {
    cursor: auto !important;
  }
}

body.rips-public input[type="text"],
body.rips-public input[type="email"],
body.rips-public input[type="search"],
body.rips-public input[type="tel"],
body.rips-public input[type="url"],
body.rips-public input[type="password"],
body.rips-public input[type="number"],
body.rips-public textarea {
  cursor: text !important;
}

/* -------------------------------------------------------------------------- */
/* 3D cursor companion — “learning ring” + mini book (JS: initRipsCursor3d)   */
/* Desktop only; disabled when prefers-reduced-motion or coarse pointer       */
/* -------------------------------------------------------------------------- */

#rips-cursor-3d {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 10035;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform, opacity;
}

#rips-cursor-3d.rips-cursor-3d--visible {
  opacity: 1;
}

#rips-cursor-3d .rips-cursor-3d__pivot {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  perspective: 280px;
  perspective-origin: center center;
}

#rips-cursor-3d .rips-cursor-3d__inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  transform-style: preserve-3d;
}

#rips-cursor-3d .rips-cursor-3d__ring {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid rgba(201, 162, 39, 0.95);
  box-shadow:
    0 0 0 1px rgba(10, 38, 71, 0.35),
    inset 0 2px 8px rgba(255, 255, 255, 0.45),
    inset 0 -3px 10px rgba(10, 38, 71, 0.18),
    0 6px 16px rgba(10, 38, 71, 0.22);
}

#rips-cursor-3d .rips-cursor-3d__ring--front {
  transform: translateZ(10px);
}

#rips-cursor-3d .rips-cursor-3d__ring--back {
  inset: 6px;
  opacity: 0.55;
  border-color: rgba(10, 38, 71, 0.45);
  transform: translateZ(-8px) scale(0.92);
}

#rips-cursor-3d .rips-cursor-3d__spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fffef6, var(--rips-gold) 55%, #8a7018);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.75);
  transform: translateZ(14px);
}

#rips-cursor-3d .rips-cursor-3d__book {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 16px;
  margin: -8px 0 0 -11px;
  transform-style: preserve-3d;
  transform: translateZ(18px) rotateX(-8deg);
  pointer-events: none;
}

#rips-cursor-3d .rips-cursor-3d__book-page {
  position: absolute;
  top: 0;
  width: 11px;
  height: 16px;
  border-radius: 1px;
  backface-visibility: hidden;
}

#rips-cursor-3d .rips-cursor-3d__book-page--left {
  left: 0;
  background: linear-gradient(135deg, #f6f3eb, #e8dcc4);
  border: 1px solid rgba(10, 38, 71, 0.25);
  transform-origin: right center;
  transform: rotateY(-28deg);
}

#rips-cursor-3d .rips-cursor-3d__book-page--right {
  right: 0;
  background: linear-gradient(225deg, #fffef9, #f0e6c8);
  border: 1px solid rgba(10, 38, 71, 0.25);
  transform-origin: left center;
  transform: rotateY(28deg);
}

#rips-cursor-3d.rips-cursor-3d--on-ui .rips-cursor-3d__inner {
  filter: drop-shadow(0 0 12px rgba(201, 162, 39, 0.55));
}

#rips-cursor-3d.rips-cursor-3d--on-ui .rips-cursor-3d__ring--front {
  border-color: var(--rips-gold-hover);
}

#rips-cursor-3d.rips-cursor-3d--click .rips-cursor-3d__inner {
  transition: filter 0.1s ease;
  filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.65)) brightness(1.06);
}

@media (pointer: coarse) {
  #rips-cursor-3d {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #rips-cursor-3d {
    display: none !important;
  }
}

body.rips-public strong,
body.rips-public b {
  font-weight: 700;
}

/* Stack below site header so fixed nav / dropdowns stay above hero & sections */
main#rips-main.rips-main {
  position: relative;
  z-index: 0;
}

body.rips-public .btn,
body.rips-public button,
body.rips-public input,
body.rips-public select,
body.rips-public textarea {
  font-family: var(--rips-font-body);
}

/* Inline SVG icons (replaces icon font) */
.rips-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: block;
}

.rips-icon--card {
  width: 1.35rem;
  height: 1.35rem;
}

.rips-icon--scroll {
  width: 1.75rem;
  height: 1.75rem;
}

.rips-public h1,
.rips-public h2,
.rips-public h3,
.rips-public .rips-hero-title,
.rips-public .rips-section-title,
.rips-public .rips-card-title,
.rips-public .rips-pillar-title {
  font-family: var(--rips-font-display);
  font-optical-sizing: auto;
  font-style: normal;
  letter-spacing: -0.008em;
}

.rips-skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1080;
  padding: 0.5rem 1rem;
  background: var(--rips-gold);
  color: var(--rips-navy);
  font-weight: 600;
  border-radius: var(--rips-radius);
}

/* ----- Site header: mini + brand scroll away; only nav bar sticks ----- */
/* Must sit above <main> so fixed .rips-header-nav-wrap is not covered by hero / sections */
.rips-site-header {
  position: relative;
  z-index: 1030;
  background: #fff;
}

/* 1 — Mini bar */
.rips-header-mini {
  background: var(--rips-navy);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
}

.rips-header-mini-inner {
  min-height: 2.375rem;
}

.rips-header-mini-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
}

.rips-header-mini-link:hover,
.rips-header-mini-link:focus-visible {
  color: var(--rips-gold);
}

.rips-header-mini-icon .rips-icon {
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0.9;
}

.rips-header-mini-sep {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  user-select: none;
}

.rips-header-mini-right {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.rips-header-clock {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 2 — Brand block — animated colour wash
   Layers use background-size > 100% so background-position actually pans (100% + 100% = no visible motion). */
@keyframes rips-header-brand-aurora {
  0%,
  100% {
    background-position:
      12% 42%,
      88% 58%,
      45% 15%,
      55% 85%;
  }
  25% {
    background-position:
      55% 62%,
      42% 38%,
      72% 35%,
      28% 65%;
  }
  50% {
    background-position:
      78% 35%,
      22% 65%,
      38% 72%,
      62% 28%;
  }
  75% {
    background-position:
      35% 55%,
      65% 45%,
      58% 22%,
      42% 78%;
  }
}

/* Brand strip borders: travelling highlight (top L→R, bottom R→L) */
@keyframes rips-header-brand-border-sheen {
  0% {
    background-position:
      0% 0,
      100% 100%;
  }
  100% {
    background-position:
      100% 0,
      0% 100%;
  }
}

/* Base stack: radials + linears pan (oversized layers); ledger + hatch scroll */
@keyframes rips-header-brand-texture {
  0%,
  100% {
    background-position:
      52% -20%,
      -2% 46%,
      102% 46%,
      0 0,
      0 0,
      8% 6%,
      2% 4%;
  }
  50% {
    background-position:
      44% -12%,
      10% 38%,
      90% 54%,
      0 22px,
      28px 22px,
      42% 32%,
      18% 22%;
  }
}

.rips-header-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: none;
  border-bottom: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(10, 38, 71, 0.08),
    0 4px 22px rgba(10, 38, 71, 0.09),
    0 10px 36px rgba(10, 38, 71, 0.07);
  background-color: #eceef3;
  background-image:
    radial-gradient(ellipse 130% 95% at 50% -22%, rgba(221, 181, 46, 0.16) 0%, rgba(201, 162, 39, 0.06) 38%, transparent 58%),
    radial-gradient(ellipse 75% 130% at -5% 48%, rgba(10, 38, 71, 0.09) 0%, rgba(18, 58, 92, 0.03) 45%, transparent 62%),
    radial-gradient(ellipse 75% 130% at 105% 48%, rgba(10, 38, 71, 0.09) 0%, rgba(18, 58, 92, 0.03) 45%, transparent 62%),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 10px,
      rgba(10, 38, 71, 0.038) 10px,
      rgba(10, 38, 71, 0.038) 11px
    ),
    repeating-linear-gradient(
      118deg,
      transparent 0,
      transparent 16px,
      rgba(10, 38, 71, 0.022) 16px,
      rgba(10, 38, 71, 0.022) 17px
    ),
    linear-gradient(
      152deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(250, 246, 236, 0.55) 22%,
      rgba(255, 255, 255, 0.5) 42%,
      rgba(220, 232, 248, 0.35) 58%,
      rgba(255, 255, 255, 0) 74%
    ),
    linear-gradient(
      185deg,
      #fffefb 0%,
      #f7f4ec 14%,
      #eef1f7 38%,
      #e3eaf3 68%,
      #d8e2ee 100%
    );
  background-size:
    128% 128%,
    122% 122%,
    122% 122%,
    100% 100%,
    125% 125%,
    168% 168%,
    135% 155%;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat, no-repeat;
  background-position:
    52% -20%,
    -2% 46%,
    102% 46%,
    0 0,
    0 0,
    8% 6%,
    2% 4%;
  animation: rips-header-brand-texture 26s ease-in-out infinite;
  will-change: background-position;
}

/* Brighter shifting colour wash — oversized layers so position animation pans visible colour */
.rips-header-brand::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
  inset: -2px;
  opacity: 0.92;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(ellipse 95% 82% at 32% 38%, rgba(255, 220, 120, 0.22) 0%, rgba(221, 181, 46, 0.38) 28%, transparent 58%),
    radial-gradient(ellipse 92% 88% at 70% 58%, rgba(12, 48, 82, 0.32) 0%, rgba(28, 72, 108, 0.2) 42%, transparent 58%),
    radial-gradient(ellipse 105% 72% at 48% 16%, rgba(230, 242, 255, 0.72) 0%, rgba(200, 220, 245, 0.35) 45%, transparent 52%),
    radial-gradient(ellipse 88% 78% at 16% 74%, rgba(180, 210, 235, 0.42) 0%, rgba(140, 175, 210, 0.12) 48%, transparent 55%);
  background-size:
    210% 210%,
    200% 200%,
    220% 220%,
    205% 205%;
  background-repeat: no-repeat;
  background-position:
    12% 42%,
    88% 58%,
    45% 15%,
    55% 85%;
  animation: rips-header-brand-aurora 18s ease-in-out infinite;
  will-change: background-position;
}

@media (prefers-reduced-motion: reduce) {
  .rips-header-brand {
    animation: none;
    will-change: auto;
  }

  .rips-header-brand::after {
    animation: none;
    opacity: 0.68;
    mix-blend-mode: normal;
    background-position:
      50% 45%,
      50% 55%,
      50% 22%,
      50% 78%;
    will-change: auto;
  }

  .rips-header-brand::before {
    animation: none;
    background-position:
      50% 0,
      50% 100%;
    filter: none;
    will-change: auto;
  }
}

.rips-header-brand::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 2;
  inset: 0;
  /* Top: warm gold / champagne beam (L → R) */
  background-image:
    linear-gradient(
      90deg,
      rgba(10, 38, 71, 0.72) 0%,
      rgba(120, 82, 18, 0.28) 22%,
      rgba(255, 248, 220, 0.55) 44%,
      #fffef5 48.5%,
      #ffe082 50%,
      var(--rips-gold) 50.6%,
      rgba(255, 224, 130, 0.95) 52%,
      rgba(201, 162, 39, 0.35) 62%,
      rgba(10, 38, 71, 0.45) 100%
    ),
    /* Bottom: cool sky / silver on navy (R → L) */
    linear-gradient(
      90deg,
      rgba(6, 22, 42, 0.88) 0%,
      rgba(20, 55, 88, 0.42) 24%,
      rgba(160, 205, 245, 0.5) 46%,
      #e8f4ff 49.2%,
      #9ecbfa 50.1%,
      rgba(70, 130, 190, 0.85) 51%,
      rgba(200, 228, 255, 0.65) 53%,
      rgba(18, 58, 92, 0.38) 72%,
      rgba(6, 22, 42, 0.88) 100%
    );
  background-size:
    300% 5px,
    300% 5px;
  background-position:
    0% 0,
    100% 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 5px rgba(201, 162, 39, 0.45)) drop-shadow(0 -1px 6px rgba(130, 185, 235, 0.42));
  animation: rips-header-brand-border-sheen 2.85s linear infinite;
  will-change: background-position;
}

.rips-header-brand > .container-xxl {
  position: relative;
  z-index: 1;
}

.rips-header-brand-link {
  width: auto;
  max-width: 100%;
  color: inherit;
  align-items: center;
}

.rips-header-brand-home {
  color: inherit;
}

.rips-header-brand-home:hover,
.rips-header-brand-home:focus-visible {
  color: inherit;
}

.rips-header-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-align: center;
}

.rips-header-brand-logo {
  width: 8.5rem;
  height: 8.5rem;
  max-width: min(8.5rem, 32vw);
  object-fit: contain;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

@media (min-width: 576px) {
  .rips-header-brand-logo {
    width: 8.75rem;
    height: 8.75rem;
    max-width: none;
  }
}

@media (min-width: 768px) {
  .rips-header-brand-logo {
    width: 9rem;
    height: 9rem;
  }
}

@media (min-width: 992px) {
  .rips-header-brand-logo {
    width: 9.25rem;
    height: 9.25rem;
  }
}

.rips-header-brand-name {
  font-family: var(--rips-font-display);
  font-optical-sizing: auto;
  font-weight: 800;
  font-size: clamp(1rem, 2.4vw, 1.55rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--rips-navy);
  line-height: 1.2;
}

.rips-header-brand-address {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--rips-muted);
  line-height: 1.45;
  max-width: none;
}

.rips-header-brand-affil {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rips-navy);
  line-height: 1.4;
}

.rips-header-brand-meta-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.12rem;
  border: 1px solid rgba(10, 38, 71, 0.22);
  background: rgba(10, 38, 71, 0.04);
  color: var(--rips-navy);
  border-radius: 999px;
  padding: 0.18rem 0.62rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rips-header-brand-meta-toggle:hover,
.rips-header-brand-meta-toggle:focus-visible {
  background: rgba(201, 162, 39, 0.18);
  border-color: rgba(201, 162, 39, 0.35);
}

/* Narrow screens: smaller address / affiliation for cleaner header */
@media (max-width: 767.98px) {
  .rips-header-brand-copy {
    gap: 0.12rem;
  }

  .rips-header-brand-address {
    font-size: 0.6875rem;
    line-height: 1.35;
    font-weight: 500;
  }

  .rips-header-brand-affil {
    font-size: 0.6rem;
    letter-spacing: 0.035em;
    line-height: 1.35;
  }

  .rips-header-brand-meta {
    margin-top: 0.15rem;
  }
}

@media (max-width: 575.98px) {
  .rips-header-mini-inner {
    justify-content: center !important;
    row-gap: 0.25rem;
  }

  .rips-header-mini-left {
    width: 100%;
    justify-content: center;
  }

  .rips-header-mini-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .rips-header-brand-address {
    font-size: 0.625rem;
    line-height: 1.3;
  }

  .rips-header-brand-affil {
    font-size: 0.5625rem;
    letter-spacing: 0.03em;
    line-height: 1.3;
  }
}

/* 3 — Navbar (fixed after mini+brand; theme shifts when fixed) */
@keyframes rips-nav-fixed-enter {
  from {
    opacity: 0.88;
    transform: translateY(-0.65rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rips-header-nav-wrap {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--rips-border);
  background: #fff;
  transition:
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.38s ease;
}

.rips-header-nav-wrap.rips-nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  background: linear-gradient(180deg, var(--rips-navy) 0%, #0d3358 100%);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  animation: rips-nav-fixed-enter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .rips-header-nav-wrap {
    transition-duration: 0.01ms;
  }

  .rips-header-nav-wrap.rips-nav-fixed {
    animation: none;
  }
}

/* Below xl: never use fixed/sticky nav (hamburger layout); JS also skips — this resets if classes linger */
@media (max-width: 1199.98px) {
  .rips-header-nav-wrap.rips-nav-fixed,
  .rips-header-nav-wrap.rips-nav-stuck {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    z-index: 1 !important;
    background: #fff !important;
    border-bottom: 1px solid var(--rips-border) !important;
    box-shadow: none !important;
    animation: none !important;
  }

  .rips-header-nav-wrap.rips-nav-fixed .rips-navbar-toggler {
    border-color: var(--rips-border) !important;
  }

  .rips-header-nav-wrap.rips-nav-fixed .navbar-toggler-icon {
    filter: none;
  }
}

.rips-header-nav-wrap.rips-nav-stuck,
.rips-header-nav-wrap.rips-nav-fixed {
  box-shadow: 0 8px 28px rgba(10, 38, 71, 0.22);
}

.rips-header-nav-wrap .dropdown-menu {
  z-index: 1060;
}

.rips-navbar {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.rips-navbar-toggler {
  padding: 0.35rem 0.6rem;
  border-radius: var(--rips-radius);
  border: 1px solid var(--rips-border) !important;
  transition: border-color 0.25s ease;
}

.rips-navbar-toggler .navbar-toggler-icon {
  width: 1.35rem;
  height: 1.35rem;
  transition: filter 0.25s ease;
}

.rips-header-nav-wrap.rips-nav-fixed .rips-navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.rips-header-nav-wrap.rips-nav-fixed .navbar-toggler-icon {
  filter: invert(1) brightness(1.85);
}

.rips-navbar-nav {
  row-gap: 0.15rem;
}

/* "|" highlighter — gold bar to the left of the label */
.rips-navbar-nav .nav-link.rips-nav-link {
  font-family: var(--rips-font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rips-ink);
  padding: 0.5rem 0.6rem;
  border: 1px solid transparent;
  border-radius: var(--rips-radius);
  transition:
    color 0.28s ease,
    background-color 0.28s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.rips-navbar-nav .nav-link.rips-nav-link .rips-nav-text {
  position: relative;
  display: inline-block;
  padding-left: 0.55rem;
}

.rips-navbar-nav .nav-link.rips-nav-link .rips-nav-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 3px;
  border-radius: 2px;
  background: var(--rips-gold);
  opacity: 0;
  transform: scaleY(0.35);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.rips-navbar-nav .nav-link.rips-nav-link.is-active .rips-nav-text::before {
  opacity: 1;
  transform: scaleY(1);
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--rips-gold-hover) 0%, var(--rips-gold) 55%, #a9861c 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 12px rgba(201, 162, 39, 0.55);
}

.rips-navbar-nav .nav-link.rips-nav-link:hover,
.rips-navbar-nav .nav-link.rips-nav-link:focus-visible {
  color: var(--rips-navy);
  background: rgba(201, 162, 39, 0.14);
  transform: translateY(-1px);
  outline: none;
  box-shadow: none;
}

.rips-navbar-nav .nav-link.rips-nav-link.is-active {
  color: var(--rips-navy);
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.22) 0%, rgba(10, 38, 71, 0.09) 100%);
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow:
    inset 0 0 0 1px rgba(201, 162, 39, 0.28),
    0 3px 10px rgba(10, 38, 71, 0.1);
  transform: translateY(-1px);
  font-weight: 800;
}

.rips-navbar-nav .nav-link.rips-nav-link--erp:not(.is-active) {
  color: inherit;
  background: transparent;
}

.rips-navbar-nav .nav-link.rips-nav-link--erp:hover {
  background: rgba(201, 162, 39, 0.14);
}

.rips-navbar-nav .nav-link.rips-nav-link--erp.is-active:hover {
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.26) 0%, rgba(10, 38, 71, 0.1) 100%);
}

.rips-navbar-nav .nav-link.rips-nav-link:hover .rips-nav-text::before,
.rips-navbar-nav .nav-link.rips-nav-link:focus-visible .rips-nav-text::before,
.rips-navbar-nav .nav-link.rips-nav-link.dropdown-toggle.show .rips-nav-text::before {
  opacity: 1;
  transform: scaleY(1);
}

.rips-navbar-nav .nav-link.rips-nav-link.dropdown-toggle.show,
.rips-navbar-nav .nav-link.rips-nav-link:active {
  border-color: transparent;
  outline: none;
  box-shadow: none;
}

/* Scrolled / fixed bar — light text on navy */
.rips-header-nav-wrap.rips-nav-fixed .rips-navbar-nav .nav-link.rips-nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.rips-header-nav-wrap.rips-nav-fixed .rips-navbar-nav .nav-link.rips-nav-link:hover,
.rips-header-nav-wrap.rips-nav-fixed .rips-navbar-nav .nav-link.rips-nav-link:focus-visible {
  color: #fff;
  background: rgba(201, 162, 39, 0.18);
  transform: translateY(-1px);
  outline: none;
  box-shadow: none;
}

.rips-header-nav-wrap.rips-nav-fixed .rips-navbar-nav .nav-link.rips-nav-link.is-active .rips-nav-text::before {
  background: linear-gradient(180deg, #f0dc8a 0%, var(--rips-gold) 50%, #b8921a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45),
    0 0 14px rgba(255, 214, 120, 0.45);
}

.rips-header-nav-wrap.rips-nav-fixed .rips-navbar-nav .nav-link.rips-nav-link.is-active {
  color: #fff;
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.42) 0%, rgba(255, 255, 255, 0.14) 100%);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(201, 162, 39, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.22);
  font-weight: 800;
}

.rips-header-nav-wrap.rips-nav-fixed .rips-navbar-nav .nav-link.rips-nav-link--erp:not(.is-active) {
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.rips-header-nav-wrap.rips-nav-fixed .rips-navbar-nav .nav-link.rips-nav-link--erp:hover {
  color: #fff;
  background: rgba(201, 162, 39, 0.18);
}

.rips-header-nav-wrap.rips-nav-fixed .rips-navbar-nav .nav-link.rips-nav-link--erp.is-active:hover {
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.48) 0%, rgba(255, 255, 255, 0.16) 100%);
}

.rips-navbar-nav .dropdown-toggle::after {
  margin-left: 0.35em;
  vertical-align: 0.12em;
  border-top-color: currentColor;
}

.rips-dropdown-menu {
  border: 1px solid var(--rips-border);
  border-radius: var(--rips-radius);
  box-shadow: 0 12px 36px rgba(10, 38, 71, 0.15);
  padding: 0.4rem 0;
  min-width: 13rem;
  margin-top: 0.2rem !important;
}

.rips-header-nav-wrap.rips-nav-fixed .rips-dropdown-menu {
  border-color: rgba(10, 38, 71, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.rips-dropdown-menu .dropdown-item {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  color: var(--rips-ink);
}

.rips-dropdown-menu .dropdown-item:hover,
.rips-dropdown-menu .dropdown-item:focus {
  background: rgba(201, 162, 39, 0.15);
  color: var(--rips-navy);
}

@keyframes rips-nav-dd-item {
  from {
    opacity: 0;
    transform: translateX(-0.35rem);
  }

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

/* Submenu links: light stagger when panel opens (desktop + mobile drawer) */
#ripsNavCollapse .nav-item.dropdown > .dropdown-menu.show .dropdown-item {
  animation: rips-nav-dd-item 0.34s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

#ripsNavCollapse .nav-item.dropdown > .dropdown-menu.show li:nth-child(1) .dropdown-item {
  animation-delay: 0.02s;
}

#ripsNavCollapse .nav-item.dropdown > .dropdown-menu.show li:nth-child(2) .dropdown-item {
  animation-delay: 0.05s;
}

#ripsNavCollapse .nav-item.dropdown > .dropdown-menu.show li:nth-child(3) .dropdown-item {
  animation-delay: 0.08s;
}

#ripsNavCollapse .nav-item.dropdown > .dropdown-menu.show li:nth-child(4) .dropdown-item {
  animation-delay: 0.11s;
}

#ripsNavCollapse .nav-item.dropdown > .dropdown-menu.show li:nth-child(5) .dropdown-item {
  animation-delay: 0.14s;
}

#ripsNavCollapse .nav-item.dropdown > .dropdown-menu.show li:nth-child(6) .dropdown-item {
  animation-delay: 0.17s;
}

#ripsNavCollapse .nav-item.dropdown > .dropdown-menu.show li:nth-child(7) .dropdown-item {
  animation-delay: 0.2s;
}

#ripsNavCollapse .nav-item.dropdown > .dropdown-menu.show li:nth-child(8) .dropdown-item {
  animation-delay: 0.23s;
}

#ripsNavCollapse .nav-item.dropdown > .dropdown-menu.show li:nth-child(9) .dropdown-item {
  animation-delay: 0.26s;
}

#ripsNavCollapse .nav-item.dropdown > .dropdown-menu.show li:nth-child(10) .dropdown-item {
  animation-delay: 0.29s;
}

/* Desktop: dropdown sits under item; hover handled in JS — smooth fade (avoid transform on menu: Popper positions with transform) */
@media (min-width: 1200px) {
  #ripsNavCollapse .nav-item.dropdown {
    position: relative;
  }

  #ripsNavCollapse .nav-item.dropdown > .dropdown-menu.rips-dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.32s linear,
      box-shadow 0.32s ease;
  }

  #ripsNavCollapse .nav-item.dropdown > .dropdown-menu.rips-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ripsNavCollapse .nav-item.dropdown > .dropdown-menu.show .dropdown-item {
    animation: none !important;
  }
}

@media (min-width: 1200px) and (prefers-reduced-motion: reduce) {
  #ripsNavCollapse .nav-item.dropdown > .dropdown-menu.rips-dropdown-menu {
    transition: none !important;
  }
}

@media (max-width: 1199.98px) {
  .rips-navbar-panel {
    width: min(86vw, 22rem) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, var(--rips-navy) 0%, #0d3358 100%);
    color: #fff;
    box-shadow: -18px 0 42px rgba(2, 10, 22, 0.42);
  }

  .rips-navbar-panel .offcanvas-header {
    padding: 1rem 1rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .rips-navbar-panel .offcanvas-title {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--rips-gold);
    font-size: 0.78rem;
  }

  .rips-navbar-panel .offcanvas-body {
    padding: 0.65rem 0.75rem 1rem;
  }

  .rips-navbar-nav .nav-item {
    width: 100%;
  }

  .rips-navbar-nav .nav-link.rips-nav-link {
    color: rgba(255, 255, 255, 0.92);
    border-radius: 0.6rem;
    padding: 0.72rem 0.65rem;
    margin: 0.1rem 0;
  }

  .rips-navbar-nav .nav-link.rips-nav-link:hover,
  .rips-navbar-nav .nav-link.rips-nav-link:focus-visible {
    color: #fff;
    background: rgba(201, 162, 39, 0.2);
    transform: none;
  }

  .rips-navbar-nav .nav-link.rips-nav-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.38) 0%, rgba(255, 255, 255, 0.12) 100%);
    border: 1px solid rgba(201, 162, 39, 0.55);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.12),
      0 4px 16px rgba(0, 0, 0, 0.2);
    transform: none;
    font-weight: 800;
  }

  .rips-navbar-nav .nav-link.rips-nav-link.is-active .rips-nav-text::before {
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, #f0dc8a 0%, var(--rips-gold) 55%, #a9861c 100%);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.35),
      0 0 12px rgba(201, 162, 39, 0.5);
  }

  .rips-dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    padding-left: 0;
    margin-bottom: 0.35rem;
    margin-top: 0.2rem !important;
  }

  .rips-dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.92);
    padding: 0.45rem 0.75rem;
    border-radius: 0.4rem;
    transition:
      background-color 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease;
  }

  .rips-dropdown-menu .dropdown-item:hover,
  .rips-dropdown-menu .dropdown-item:focus,
  .rips-dropdown-menu .dropdown-item:active {
    background: rgba(201, 162, 39, 0.2);
    color: #fff;
    transform: translateX(2px);
  }

  /* Mobile submenu parent hover/open state */
  .rips-navbar-panel .nav-link.rips-nav-link.dropdown-toggle.show,
  .rips-navbar-panel .nav-link.rips-nav-link.dropdown-toggle:hover {
    background: rgba(201, 162, 39, 0.24);
    color: #fff;
  }

  .rips-navbar-panel .rips-dropdown-menu {
    overflow: hidden;
  }
}

@media (min-width: 1200px) {
  .rips-navbar-panel {
    background: transparent;
    box-shadow: none;
    border-left: 0;
  }

  .rips-navbar-panel .offcanvas-body {
    padding: 0;
  }
}

/* ----- Buttons ----- */
.rips-btn-gold {
  --bs-btn-color: var(--rips-navy);
  --bs-btn-bg: var(--rips-gold);
  --bs-btn-border-color: var(--rips-gold);
  --bs-btn-hover-color: var(--rips-navy);
  --bs-btn-hover-bg: var(--rips-gold-hover);
  --bs-btn-hover-border-color: var(--rips-gold-hover);
  --bs-btn-active-color: var(--rips-navy);
  --bs-btn-active-bg: var(--rips-gold-hover);
  --bs-btn-active-border-color: var(--rips-gold-hover);
  font-weight: 700;
  border-radius: var(--rips-radius);
}

.rips-btn-outline {
  --bs-btn-color: var(--rips-navy);
  --bs-btn-border-color: rgba(10, 38, 71, 0.35);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--rips-navy);
  --bs-btn-hover-border-color: var(--rips-navy);
  font-weight: 600;
  border-radius: var(--rips-radius);
}

.rips-btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.55);
  --bs-btn-hover-color: var(--rips-navy);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  font-weight: 600;
  border-radius: var(--rips-radius);
  background: rgba(255, 255, 255, 0.06);
}

/* Sleek compact buttons — pill shape, smaller type (hero, modals, tight UI) */
.btn.rips-btn-sleek {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  line-height: 1.25;
  border-width: 1px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.btn.rips-btn-sleek:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.38);
}

.btn.rips-btn-sleek:hover {
  transform: translateY(-1px);
}

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

.btn.rips-btn-sleek--gold {
  color: var(--rips-navy);
  background: linear-gradient(180deg, var(--rips-gold-hover) 0%, var(--rips-gold) 100%);
  border-color: rgba(201, 162, 39, 0.88);
  box-shadow: 0 2px 10px rgba(10, 38, 71, 0.12);
}

.btn.rips-btn-sleek--gold:hover {
  background: linear-gradient(180deg, #e4bc3a 0%, var(--rips-gold-hover) 100%);
  color: var(--rips-navy);
  border-color: rgba(201, 162, 39, 1);
}

.btn.rips-btn-sleek--outline-light {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.48);
}

.btn.rips-btn-sleek--outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

/* outline-light is for dark bands; on light paper (forms + contact card) use navy */
.rips-form-page .btn.rips-btn-sleek--outline-light,
.rips-contact-page .btn.rips-btn-sleek--outline-light {
  color: var(--rips-navy);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(10, 38, 71, 0.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.rips-form-page .btn.rips-btn-sleek--outline-light:hover,
.rips-contact-page .btn.rips-btn-sleek--outline-light:hover {
  color: var(--rips-navy);
  background: #fff;
  border-color: rgba(10, 38, 71, 0.48);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 6px 18px rgba(10, 38, 71, 0.08);
}

.rips-form-page .btn.rips-btn-sleek--outline-light:focus-visible,
.rips-contact-page .btn.rips-btn-sleek--outline-light:focus-visible {
  color: var(--rips-navy);
}

.btn.rips-btn-sleek--ghost {
  color: var(--rips-navy);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(10, 38, 71, 0.18);
}

.btn.rips-btn-sleek--ghost:hover {
  background: #fff;
  border-color: rgba(10, 38, 71, 0.3);
  color: var(--rips-navy);
}

/* Post-load admissions promo (Bootstrap modal, home only) */
.rips-promo-modal .modal-dialog {
  max-width: min(32rem, calc(100% - 1.25rem));
}

/*
 * Entrance: no tilt by default (phones, tablets, landscape).
 * Diagonal + rotate only on large screens — otherwise many “mobile” widths still match desktop and look tilted.
 */
.rips-promo-modal.modal.fade .modal-dialog {
  transform: translate(0, 0.6rem) scale(0.97);
  transition: transform 0.58s cubic-bezier(0.28, 1.15, 0.42, 1);
  transform-origin: center center;
  will-change: transform;
}

.rips-promo-modal.modal.show .modal-dialog {
  transform: translate(0, 0) scale(1);
  will-change: auto;
}

@media (min-width: 992px) {
  .rips-promo-modal.modal.fade .modal-dialog {
    transform: translate(28vw, -32vh) rotate(8deg) scale(0.9);
  }

  .rips-promo-modal.modal.show .modal-dialog {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

/* Small screens: width + padding; entrance is already untilted above */
@media (max-width: 575.98px) {
  .rips-promo-modal .modal-dialog {
    max-width: calc(100% - 1rem);
    margin-left: auto;
    margin-right: auto;
  }

  .rips-promo-modal__body {
    padding: 1rem 1rem 0.5rem;
  }

  .rips-promo-modal__footer {
    padding: 0.65rem 1rem 1rem !important;
    flex-direction: column;
    align-items: stretch;
  }

  .rips-promo-modal__footer .btn {
    width: 100%;
    justify-content: center;
  }

  .rips-promo-modal__slide-img {
    max-height: min(42vh, 22rem);
  }

  .rips-promo-modal__carousel .rips-promo-modal__carousel-btn {
    top: clamp(3.25rem, 18vh, 9.5rem);
  }
}

.rips-promo-modal__sheet {
  border-radius: var(--rips-radius-lg) !important;
  overflow: hidden;
  background: linear-gradient(168deg, #fdfcfa 0%, #f2f0ea 52%, #ebe6dc 100%);
  box-shadow:
    0 0 0 1px rgba(10, 38, 71, 0.1),
    0 24px 48px rgba(4, 12, 24, 0.28);
}

.rips-promo-modal__accent {
  height: 4px;
  background: linear-gradient(90deg, var(--rips-navy) 0%, var(--rips-gold) 50%, var(--rips-navy-soft) 100%);
}

.rips-promo-modal__carousel {
  position: relative;
  margin: 0 0 1.1rem;
  border-radius: calc(var(--rips-radius-lg) - 2px);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(10, 38, 71, 0.1),
    0 10px 28px rgba(4, 12, 24, 0.14);
}

.rips-promo-modal__carousel-inner {
  border-radius: inherit;
}

/*
 * Do NOT set display/float/width on .carousel-item here — Bootstrap needs
 * display:none / block, float, margin-right:-100%, and translateX for slides.
 * Layout lives on .rips-promo-modal__slide instead.
 */
.rips-promo-modal__slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 0;
  padding: 0.2rem 0 0.35rem;
  background: rgba(10, 38, 71, 0.04);
}

.rips-promo-modal__slide-figure {
  display: flex;
  justify-content: center;
  width: 100%;
}

.rips-promo-modal__slide-caption {
  width: 100%;
  padding: 0.65rem 0.35rem 0;
  text-align: center;
}

.rips-promo-modal__slide-caption .rips-promo-modal__lead {
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.rips-promo-modal__slide-img {
  width: min(100%, 13.5rem);
  aspect-ratio: 3 / 4;
  height: auto;
  max-height: min(52vh, 26rem);
  object-fit: cover;
  object-position: center;
  margin: 0 auto;
  display: block;
  border-radius: 0.35rem;
}

.rips-promo-modal__carousel-indicators {
  margin-bottom: 0.45rem;
  gap: 0.35rem;
}

.rips-promo-modal__carousel-indicators [data-bs-target] {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rips-promo-modal__carousel-indicators [data-bs-target].active {
  background: var(--rips-gold);
  transform: scale(1.25);
}

/* Keep prev/next in the upper (image) band so they do not sit over caption text */
.rips-promo-modal__carousel .rips-promo-modal__carousel-btn {
  width: 2.25rem;
  height: 2.25rem;
  top: clamp(4.5rem, 22vh, 12rem);
  bottom: auto;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(10, 38, 71, 0.45);
  opacity: 1;
  transition: background 0.2s ease;
}

.rips-promo-modal__carousel .carousel-control-prev.rips-promo-modal__carousel-btn {
  left: 0.45rem;
}

.rips-promo-modal__carousel .carousel-control-next.rips-promo-modal__carousel-btn {
  right: 0.45rem;
}

.rips-promo-modal__carousel .rips-promo-modal__carousel-btn:hover {
  background: rgba(10, 38, 71, 0.65);
}

.rips-promo-modal__carousel-btn .carousel-control-prev-icon,
.rips-promo-modal__carousel-btn .carousel-control-next-icon {
  width: 1rem;
  height: 1rem;
}

.rips-promo-modal__body {
  padding: 1.35rem 1.5rem 0.5rem;
}

.rips-promo-modal__title {
  font-family: var(--rips-font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--rips-navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.rips-promo-modal__lead {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--rips-muted);
}

.rips-promo-modal__footer {
  padding: 0.85rem 1.5rem 1.35rem !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(246, 243, 235, 0.65) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .btn.rips-btn-sleek {
    transition: none;
  }

  .btn.rips-btn-sleek:hover {
    transform: none;
  }

  .rips-promo-modal .carousel-item {
    transition: none;
  }

  .rips-promo-modal.modal.fade .modal-dialog {
    transform: translate(0, -50px);
    transition: none;
    will-change: auto;
  }

  .rips-promo-modal.modal.show .modal-dialog {
    transform: none;
  }
}

/* ----- Gallery & Events page ----- */
.rips-gallery-events-page .rips-pg-main__texture {
  background-color: #d9e4f1;
}

.rips-ge-page-surface {
  position: relative;
  overflow: hidden;
}

.rips-ge-page-surface .container-xxl {
  animation: ripsGePageEnter 0.65s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.rips-ge-page-surface.is-leaving .container-xxl {
  animation: ripsGePageLeave 0.28s ease both;
}

@keyframes ripsGePageEnter {
  from { opacity: 0; transform: translateY(18px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ripsGePageLeave {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

/* Gallery & events — matches site tokens (navy / gold / contact-style panel) */
.rips-ge-gallery-panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--rips-radius-lg);
  border: 1px solid rgba(10, 38, 71, 0.1);
  background:
    repeating-linear-gradient(
      -14deg,
      rgba(10, 38, 71, 0.025) 0 1px,
      transparent 1px 12px
    ),
    linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 245, 238, 0.94) 100%);
  box-shadow:
    0 16px 42px rgba(10, 38, 71, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.rips-ge-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.35rem;
  margin: 0 0 1.25rem;
  border-radius: 999px;
  background: rgba(10, 38, 71, 0.06);
  border: 1px solid var(--rips-border);
}

.rips-ge-tabs .nav-item {
  margin: 0;
}

.rips-ge-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--rips-navy);
  border: 0;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.rips-ge-tabs .nav-link:hover {
  background: rgba(255, 255, 255, 0.75);
}

.rips-ge-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--rips-navy) 0%, var(--rips-navy-soft) 100%);
  box-shadow: 0 4px 14px rgba(10, 38, 71, 0.2);
}

.rips-ge-tabs .nav-link.active .rips-ge-tabs__count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.rips-ge-tabs__count {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(10, 38, 71, 0.08);
  color: var(--rips-navy);
}

.rips-ge-tab-panels {
  position: relative;
}

.rips-ge-empty--panel {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--rips-radius);
  color: var(--rips-muted);
  margin: 0;
  border: 1px dashed var(--rips-border);
  background: rgba(255, 255, 255, 0.5);
}

.rips-ge-cat-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rips-ge-cat-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.65rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rips-border);
}

.rips-ge-cat-group__title {
  font-family: var(--rips-font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--rips-navy);
  margin: 0;
  line-height: 1.25;
}

.rips-ge-cat-group__badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rips-navy);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.rips-ge-cat-group--videos .rips-ge-cinema {
  padding-top: 0;
}

/* Album category skins — lv 0–5 from stable hash per category (see gallery-events.blade.php) */
.rips-ge-cat-group--lv1 .rips-ge-cat-group__head {
  border-bottom: none;
  padding-left: 1rem;
  margin-left: -0.15rem;
  border-left: 4px solid var(--rips-gold);
}

.rips-ge-cat-group--lv2 .rips-ge-cat-group__head {
  border-bottom: 2px solid rgba(201, 162, 39, 0.42);
  padding-bottom: 0.9rem;
}

.rips-ge-cat-group--lv3 .rips-ge-cat-group__title {
  font-size: clamp(1.28rem, 2.45vw, 1.58rem);
}

.rips-ge-cat-group--lv4 .rips-ge-cat-group__badge {
  background: rgba(10, 38, 71, 0.07);
  border-color: rgba(10, 38, 71, 0.22);
}

.rips-ge-cat-group--lv5 .rips-ge-cat-group__head {
  padding: 0.65rem 0.85rem 0.85rem;
  border-radius: var(--rips-radius);
  margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
  background: linear-gradient(100deg, rgba(201, 162, 39, 0.12) 0%, transparent 72%);
}

/* Gallery ↔ Events 3D flip (two rips-ge-gallery-panel faces) */
.rips-ge-flip-scene {
  width: 100%;
  perspective: 1400px;
  perspective-origin: 50% 45%;
  overflow-x: hidden;
}

.rips-ge-flip-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.33, 1, 0.32, 1);
}

.rips-ge-flip-inner.is-events {
  transform: rotateY(180deg);
}

.rips-ge-flip-face {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.rips-ge-flip-face--gallery {
  position: relative;
  z-index: 2;
  transform: rotateY(0deg);
}

.rips-ge-flip-face--events {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: rotateY(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .rips-ge-flip-inner {
    transition: none;
  }
}

/* —— Gallery theatre: hero stage + filmstrip + album rail —— */
.rips-ge-gallery-panel--theatre {
  padding: clamp(1.1rem, 2.6vw, 1.65rem);
}

.rips-ge-theatre-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1.1rem;
}

.rips-ge-theatre-toolbar--tabs-only {
  justify-content: center;
  margin-bottom: 1.15rem;
}

.rips-ge-tabs--toolbar {
  margin: 0;
}

.rips-ge-theatre {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: stretch;
}

@media (max-width: 991.98px) {
  .rips-ge-theatre {
    grid-template-columns: 1fr;
  }

  .rips-ge-filmstrip {
    width: min(22rem, 100%);
    margin-inline: auto;
    --rips-ge-filmstrip-height: 280px;
  }
}

.rips-ge-theatre__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: center;
  min-width: 0;
}

.rips-ge-theatre__main--stage-only {
  grid-template-columns: minmax(0, 1fr);
}

.rips-ge-theatre__chev {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 38, 71, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--rips-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 4px 14px rgba(10, 38, 71, 0.08);
}

.rips-ge-theatre__chev:hover:not(:disabled) {
  background: #fff;
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(10, 38, 71, 0.12);
}

.rips-ge-theatre__chev:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.rips-ge-theatre__stage-col {
  min-width: 0;
}

.rips-ge-theatre__stage-shell {
  border-radius: var(--rips-radius-lg);
  padding: 0.35rem;
  background: linear-gradient(145deg, rgba(10, 38, 71, 0.08) 0%, rgba(10, 38, 71, 0.02) 55%, rgba(201, 162, 39, 0.08) 100%);
  border: 1px solid rgba(10, 38, 71, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 18px 48px rgba(10, 38, 71, 0.1);
}

.rips-ge-theatre__stage {
  position: relative;
  border-radius: calc(var(--rips-radius-lg) - 4px);
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
    linear-gradient(165deg, #0a2647 0%, #071a2e 100%);
  min-height: clamp(220px, 42vw, 420px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.rips-ge-theatre__stage--video {
  min-height: 0;
}

.rips-ge-theatre__stage.rips-ge-theatre__stage--swap {
  opacity: 0;
  transform: scale(0.985) translateY(6px);
}

.rips-ge-theatre__stage--awaiting .rips-ge-theatre__stage-img {
  opacity: 0.08;
}

.rips-ge-theatre__stage--awaiting .rips-ge-theatre__play,
.rips-ge-theatre__stage--awaiting .rips-ge-theatre__enlarge {
  opacity: 0;
  pointer-events: none;
}

.rips-ge-theatre__stage--awaiting .rips-ge-theatre__stage-veil {
  opacity: 0.2;
}

.rips-ge-theatre__stage-img.rips-ge-theatre__stage-img--just-landed {
  animation: ripsGeTheatreLand 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ripsGeTheatreLand {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Incoming frame feeds upward into the gate (gallery theatre) */
.rips-ge-theatre__stage-incoming {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  border-radius: inherit;
  transform: translateY(100%);
  transition: transform 0.56s cubic-bezier(0.28, 0.82, 0.36, 1);
  pointer-events: none;
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.35);
}

.rips-ge-theatre__stage-incoming--shown {
  transform: translateY(0);
}

.rips-ge-theatre__stage-incoming img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .rips-ge-theatre__stage {
    transition: none;
  }

  .rips-ge-theatre__stage-img.rips-ge-theatre__stage-img--just-landed {
    animation: none;
  }

  .rips-ge-theatre__stage-incoming {
    transition: none;
    transform: translateY(0);
  }
}

.rips-ge-theatre__stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.rips-ge-theatre__stage:not(.rips-ge-theatre__stage--video):not(.rips-ge-theatre__stage--awaiting):hover
  .rips-ge-theatre__stage-img {
  transform: scale(1.02);
}

.rips-ge-theatre__stage-veil {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 46, 0.15) 0%, transparent 38%, rgba(7, 26, 46, 0.55) 100%);
  opacity: 0.85;
}

.rips-ge-theatre__enlarge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.rips-ge-theatre__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  border: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(10, 38, 71, 0.55);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.rips-ge-theatre__play:hover {
  transform: scale(1.06);
  background: rgba(201, 162, 39, 0.88);
  color: #0a2647;
}

.rips-ge-theatre__caption {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--rips-navy);
  text-align: center;
  min-height: 1.35em;
}

/* Filmstrip reel */
.rips-ge-filmstrip {
  --rips-ge-filmstrip-height: clamp(19rem, 52vh, 30rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: clamp(5.5rem, 12vw, 7.25rem);
  height: var(--rips-ge-filmstrip-height);
  outline: none;
}

.rips-ge-filmstrip:focus-visible {
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.45);
  border-radius: 0.5rem;
}

.rips-ge-filmstrip__step-nav {
  display: flex;
  gap: 0.35rem;
  justify-content: stretch;
}

.rips-ge-filmstrip__step {
  flex: 1;
  min-height: 2rem;
  padding: 0 0.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(10, 38, 71, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--rips-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 2px 10px rgba(10, 38, 71, 0.06);
}

.rips-ge-filmstrip__step:hover:not(:disabled) {
  background: #fff;
  transform: scale(1.02);
}

.rips-ge-filmstrip__step:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.rips-ge-filmstrip__track-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.rips-ge-filmstrip__active-highlight {
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  z-index: 4;
  pointer-events: none;
  border-radius: 0.48rem;
  border: 3px solid rgba(201, 162, 39, 0.98);
  box-shadow:
    0 0 0 1px rgba(10, 38, 71, 0.45),
    0 0 0 5px rgba(255, 255, 255, 0.18),
    0 12px 32px rgba(201, 162, 39, 0.42);
  transition: top 0.42s cubic-bezier(0.22, 1, 0.36, 1), height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
  opacity: 0;
  top: 0;
  height: 0;
  box-sizing: border-box;
}

.rips-ge-filmstrip__active-highlight.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .rips-ge-filmstrip__active-highlight {
    transition: opacity 0.15s ease;
  }
}

.rips-ge-filmstrip__scroll {
  flex-shrink: 0;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(10, 38, 71, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--rips-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rips-ge-filmstrip__scroll:hover {
  background: #fff;
  transform: scale(1.03);
}

.rips-ge-filmstrip__viewport {
  position: relative;
  flex: 0 0 auto;
  height: calc(var(--rips-ge-filmstrip-height) - 4.7rem);
  min-height: 0;
  display: flex;
  align-items: stretch;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 50%, #141414 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.4),
    0 12px 36px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.rips-ge-filmstrip__viewport .rips-ge-filmstrip__track-wrap {
  flex: 1;
  min-height: 0;
  height: 100%;
}

.rips-ge-filmstrip__viewport--reel::before,
.rips-ge-filmstrip__viewport--reel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.75rem;
  z-index: 2;
  pointer-events: none;
}

.rips-ge-filmstrip__viewport--reel::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
}

.rips-ge-filmstrip__viewport--reel::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(45, 44, 44, 0.65) 0%, transparent 100%);
}

.rips-ge-filmstrip__perfs {
  width: 6px;
  flex-shrink: 0;
  align-self: stretch;
  background: transparent;
  pointer-events: none;
}

.rips-ge-filmstrip__track {
  flex: 1;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.5rem 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, 0.5) transparent;
}

.rips-ge-filmstrip__track-wrap .rips-ge-filmstrip__track {
  position: relative;
  z-index: 1;
}

.rips-ge-filmstrip__track::-webkit-scrollbar {
  width: 5px;
}

.rips-ge-filmstrip__track::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 39, 0.45);
  border-radius: 999px;
}

.rips-ge-filmstrip__track--reel {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0 1px,
    transparent 1px 6px
  );
  background-size: 100% 7px;
  border-inline: 1px solid rgba(0, 0, 0, 0.35);
}

.rips-ge-filmstrip__track--reel .rips-ge-filmstrip__thumb {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  flex-shrink: 0;
}

.rips-ge-filmstrip__track--reel .rips-ge-filmstrip__thumb:not(:last-child) {
  padding-bottom: 0.4rem;
  margin-bottom: 0.1rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .rips-ge-filmstrip__track--reel {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
}

.rips-ge-filmstrip__thumb {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 0.45rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.2s ease;
}

.rips-ge-filmstrip__thumb--off {
  display: none !important;
}

.rips-ge-filmstrip__thumb-frame {
  display: block;
  border-radius: 0.4rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.35s ease, opacity 0.35s ease,
    filter 0.35s ease;
}

.rips-ge-filmstrip__thumb--pulling .rips-ge-filmstrip__thumb-frame {
  transform: scale(0.92);
  opacity: 0.4;
  filter: brightness(1.15);
}

.rips-ge-filmstrip__thumb:hover .rips-ge-filmstrip__thumb-frame {
  border-color: rgba(201, 162, 39, 0.65);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.rips-ge-filmstrip__thumb.is-active .rips-ge-filmstrip__thumb-frame {
  border-color: rgba(201, 162, 39, 0.95);
  box-shadow:
    0 0 0 2px rgba(10, 38, 71, 0.35),
    0 12px 28px rgba(201, 162, 39, 0.25);
}

.rips-ge-filmstrip__thumb:hover {
  transform: translateY(-2px) scale(1.02);
}

.rips-ge-filmstrip__thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.rips-ge-filmstrip__thumb--video {
  position: relative;
}

.rips-ge-filmstrip__mini-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
}

/* Album category chips (organic stagger) */
.rips-ge-album-rail-wrap {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(10, 38, 71, 0.12);
}

.rips-ge-album-rail__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rips-muted);
  margin: 0;
}

.rips-ge-album-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: flex-end;
}

.rips-ge-album-chip {
  appearance: none;
  border: 1px solid rgba(10, 38, 71, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--rips-navy);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.42rem 0.85rem 0.42rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 10px rgba(10, 38, 71, 0.06);
}

.rips-ge-album-chip:nth-child(3n + 1) {
  border-radius: 1.1rem 0.55rem 1rem 0.65rem;
  transform: rotate(-0.4deg);
}

.rips-ge-album-chip:nth-child(3n + 2) {
  border-radius: 0.65rem 1.15rem 0.7rem 1rem;
  transform: rotate(0.35deg);
  padding-inline: 1rem;
}

.rips-ge-album-chip:nth-child(3n) {
  border-radius: 1rem 0.75rem 1.2rem 0.85rem;
  transform: rotate(-0.2deg);
}

.rips-ge-album-chip:hover {
  transform: translateY(-2px) scale(1.02);
  background: #fff;
  border-color: rgba(201, 162, 39, 0.45);
}

.rips-ge-album-chip.is-active {
  background: linear-gradient(135deg, var(--rips-navy) 0%, var(--rips-navy-soft) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(10, 38, 71, 0.28);
  transform: translateY(-1px) rotate(0deg);
}

.rips-ge-album-chip__count {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  background: rgba(10, 38, 71, 0.08);
}

.rips-ge-album-chip.is-active .rips-ge-album-chip__count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.rips-ge-media-wall-wrap {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(10, 38, 71, 0.12);
}

.rips-ge-media-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.65rem;
}

.rips-ge-media-wall__item {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 0.95rem;
  background: rgba(10, 38, 71, 0.08);
  box-shadow: 0 10px 24px rgba(10, 38, 71, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
  grid-column: span 3;
  aspect-ratio: 1 / 1;
}

.rips-ge-media-wall__item.is-sm {
  grid-column: span 3;
  aspect-ratio: 1 / 1;
}

.rips-ge-media-wall__item.is-wide {
  grid-column: span 6;
  aspect-ratio: 16 / 9;
}

.rips-ge-media-wall__item.is-tall {
  grid-column: span 3;
  aspect-ratio: 3 / 4;
}

.rips-ge-media-wall__item.is-lg {
  grid-column: span 6;
  aspect-ratio: 4 / 3;
}

.rips-ge-media-wall__item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 34px rgba(10, 38, 71, 0.2);
}

.rips-ge-media-wall__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rips-ge-media-wall__item--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.rips-ge-media-wall__play {
  position: absolute;
  right: 0.6rem;
  bottom: 0.55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(10, 38, 71, 0.78);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.rips-ge-media-wall__item.is-hidden-page {
  display: none !important;
}

.rips-ge-all-events__item.is-hidden-page {
  display: none !important;
}

.rips-ge-media-wall__pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.rips-ge-media-wall__pager-btn {
  border: 1px solid rgba(10, 38, 71, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--rips-navy);
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rips-ge-media-wall__pager-btn:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 4px 14px rgba(10, 38, 71, 0.12);
}

.rips-ge-media-wall__pager-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--rips-navy) 0%, var(--rips-navy-soft) 100%);
  box-shadow: 0 8px 18px rgba(10, 38, 71, 0.22);
}

@media (max-width: 991.98px) {
  .rips-ge-media-wall__item,
  .rips-ge-media-wall__item.is-sm,
  .rips-ge-media-wall__item.is-tall {
    grid-column: span 6;
  }

  .rips-ge-media-wall__item.is-wide,
  .rips-ge-media-wall__item.is-lg {
    grid-column: span 12;
  }
}

@media (max-width: 575.98px) {
  /* Two equal columns on phones — easier to scan than single full-width tiles */
  .rips-ge-media-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .rips-ge-media-wall__item,
  .rips-ge-media-wall__item.is-sm,
  .rips-ge-media-wall__item.is-wide,
  .rips-ge-media-wall__item.is-tall,
  .rips-ge-media-wall__item.is-lg {
    grid-column: auto;
    aspect-ratio: 1 / 1;
  }
}

/* Events theatre + recent strip */
.rips-ge-events-head__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.95);
  margin: 0 0 0.35rem;
}

.rips-ge-theatre--events .rips-ge-theatre__stage--event {
  min-height: clamp(240px, 44vw, 440px);
  display: flex;
  flex-direction: column;
}

.rips-ge-theatre__stage--event .rips-ge-theatre__stage-img {
  max-height: min(52vw, 320px);
  object-fit: cover;
  flex-shrink: 0;
}

.rips-ge-theatre__event-meta {
  position: relative;
  z-index: 2;
  padding: 1rem 1.15rem 1.2rem;
  background: linear-gradient(180deg, rgba(248, 245, 238, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-top: 1px solid rgba(10, 38, 71, 0.08);
  flex: 1;
}

.rips-ge-theatre__event-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rips-navy-soft);
  margin-bottom: 0.35rem;
}

.rips-ge-theatre__event-title {
  font-family: var(--rips-font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--rips-navy);
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.rips-ge-theatre__event-period {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(201, 162, 39, 0.95);
  margin: 0 0 0.5rem;
}

.rips-ge-theatre__event-text {
  font-size: 0.88rem;
  color: var(--rips-muted);
  margin: 0;
  line-height: 1.55;
}

.rips-ge-recent-events__scroller {
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
  .rips-ge-recent-events__scroller {
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
}

.rips-ge-recent-events__row {
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .rips-ge-recent-events__row.flex-md-nowrap > .rips-ge-recent-events__col {
    flex-shrink: 0;
  }
}

.rips-ge-event-card--recent {
  border-radius: 1rem 1.25rem 0.85rem 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(10, 38, 71, 0.1);
  background: #fff;
  box-shadow: 0 14px 36px rgba(10, 38, 71, 0.08);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
  cursor: pointer;
}

.rips-ge-recent-events__row .rips-ge-recent-events__col:nth-child(3n + 1) .rips-ge-event-card--recent {
  border-radius: 1.2rem 0.75rem 1.05rem 0.9rem;
}

.rips-ge-recent-events__row .rips-ge-recent-events__col:nth-child(3n + 2) .rips-ge-event-card--recent {
  border-radius: 0.85rem 1.15rem 1.2rem 0.95rem;
  transform: rotate(-0.35deg);
}

.rips-ge-recent-events__row .rips-ge-recent-events__col:nth-child(3n) .rips-ge-event-card--recent {
  border-radius: 1rem 1rem 0.7rem 1.3rem;
  transform: rotate(0.25deg);
}

.rips-ge-event-card--recent:hover,
.rips-ge-event-card--recent.is-active {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 0 22px 50px rgba(10, 38, 71, 0.14);
}

.rips-ge-event-card--recent.is-active {
  outline: 2px solid rgba(201, 162, 39, 0.65);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .rips-ge-theatre__stage,
  .rips-ge-filmstrip__thumb,
  .rips-ge-album-chip,
  .rips-ge-event-card--recent {
    transition: none;
  }

  .rips-ge-album-chip:nth-child(n) {
    transform: none;
  }

  .rips-ge-recent-events__row .rips-ge-recent-events__col:nth-child(n) .rips-ge-event-card--recent {
    transform: none;
  }
}

/* Photo mosaic (bento grid) */
.rips-ge-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.85rem;
  grid-auto-rows: minmax(72px, auto);
}

.rips-ge-mosaic--atelier {
  gap: 0.85rem;
  grid-auto-rows: minmax(76px, auto);
  padding: 0.15rem 0 0.35rem;
}

/* Mosaic per-album layout variants (paired with .rips-ge-mosaic--lv0 … --lv5) */
.rips-ge-mosaic--lv1 {
  gap: 0.62rem 1.05rem;
  grid-auto-rows: minmax(74px, auto);
}

.rips-ge-mosaic--lv2 {
  transform: scaleX(-1);
}

.rips-ge-mosaic--lv2 .rips-ge-mosaic__item {
  transform: scaleX(-1);
}

.rips-ge-mosaic--lv3 {
  gap: 1.02rem 0.68rem;
  padding: 0.5rem;
  border-radius: var(--rips-radius-lg);
  background: rgba(10, 38, 71, 0.035);
  outline: 1px solid rgba(10, 38, 71, 0.07);
}

.rips-ge-mosaic--lv4 .rips-ge-mosaic__item:nth-child(odd) {
  border-radius: 0.5rem 1.12rem 0.72rem 0.48rem;
}

.rips-ge-mosaic--lv4 .rips-ge-mosaic__item:nth-child(even) {
  border-radius: 1.05rem 0.48rem 0.48rem 1.05rem;
}

.rips-ge-mosaic--lv5 {
  gap: 0.72rem 0.88rem;
  grid-auto-flow: dense;
}

.rips-ge-mosaic--lv5 .rips-ge-mosaic__overlay {
  background: linear-gradient(205deg, rgba(10, 38, 71, 0) 36%, rgba(10, 38, 71, 0.8) 100%);
}

.rips-ge-mosaic__item {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--rips-border);
  border-radius: var(--rips-radius-lg);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  background: var(--rips-navy);
  color: #fff;
  box-shadow: 0 8px 24px rgba(10, 38, 71, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.rips-ge-mosaic__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(10, 38, 71, 0.16);
  border-color: rgba(201, 162, 39, 0.45);
}

.rips-ge-mosaic--lv2 .rips-ge-mosaic__item:hover {
  transform: scaleX(-1) translateY(-4px);
}

.rips-ge-mosaic--lv2 .rips-ge-mosaic__item:focus-visible {
  transform: scaleX(-1);
}

.rips-ge-mosaic__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.rips-ge-mosaic__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.rips-ge-mosaic__item:hover .rips-ge-mosaic__media img {
  transform: scale(1.08);
}

.rips-ge-mosaic__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem 0.95rem;
  background: linear-gradient(180deg, rgba(10, 38, 71, 0) 40%, rgba(10, 38, 71, 0.78) 100%);
  pointer-events: none;
}

.rips-ge-mosaic__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rips-ge-mosaic__item-title {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.rips-ge-mosaic__item-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

/* Mosaic: puzzle reveal on load (same language as lightbox) */
.rips-ge-mosaic__puzzle-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  pointer-events: none;
}

.rips-ge-mosaic__puzzle-piece {
  border-radius: 0.12rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    linear-gradient(165deg, var(--rips-navy-soft) 0%, var(--rips-navy) 100%);
  border: 1px solid rgba(201, 162, 39, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transform-origin: center center;
  transition:
    transform 0.62s cubic-bezier(0.34, 1.15, 0.52, 1),
    opacity 0.48s ease;
}

.rips-ge-mosaic__item--puzzle-solved .rips-ge-mosaic__puzzle-piece {
  opacity: 0;
}

.rips-ge-mosaic__item--puzzle-solved .rips-ge-mosaic__puzzle-piece:nth-child(1) {
  transform: translate(-108%, -102%) rotate(-20deg) scale(0.86);
  transition-delay: 0.02s;
}

.rips-ge-mosaic__item--puzzle-solved .rips-ge-mosaic__puzzle-piece:nth-child(2) {
  transform: translate(0, -112%) rotate(5deg) scale(0.88);
  transition-delay: 0.06s;
}

.rips-ge-mosaic__item--puzzle-solved .rips-ge-mosaic__puzzle-piece:nth-child(3) {
  transform: translate(108%, -98%) rotate(16deg) scale(0.86);
  transition-delay: 0.1s;
}

.rips-ge-mosaic__item--puzzle-solved .rips-ge-mosaic__puzzle-piece:nth-child(4) {
  transform: translate(-104%, 6%) rotate(12deg) scale(0.88);
  transition-delay: 0.05s;
}

.rips-ge-mosaic__item--puzzle-solved .rips-ge-mosaic__puzzle-piece:nth-child(5) {
  transform: translate(0, -40%) rotate(8deg) scale(0.8);
  transition-delay: 0.12s;
}

.rips-ge-mosaic__item--puzzle-solved .rips-ge-mosaic__puzzle-piece:nth-child(6) {
  transform: translate(104%, 0) rotate(-14deg) scale(0.88);
  transition-delay: 0.08s;
}

.rips-ge-mosaic__item--puzzle-solved .rips-ge-mosaic__puzzle-piece:nth-child(7) {
  transform: translate(-102%, 108%) rotate(18deg) scale(0.86);
  transition-delay: 0.14s;
}

.rips-ge-mosaic__item--puzzle-solved .rips-ge-mosaic__puzzle-piece:nth-child(8) {
  transform: translate(0, 118%) rotate(-7deg) scale(0.88);
  transition-delay: 0.09s;
}

.rips-ge-mosaic__item--puzzle-solved .rips-ge-mosaic__puzzle-piece:nth-child(9) {
  transform: translate(102%, 104%) rotate(-18deg) scale(0.86);
  transition-delay: 0.11s;
}

.rips-ge-mosaic__item--puzzle-solved .rips-ge-mosaic__puzzle-layer {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .rips-ge-mosaic__puzzle-piece {
    transition: opacity 0.2s ease;
  }

  .rips-ge-mosaic__item--puzzle-solved .rips-ge-mosaic__puzzle-piece {
    transform: none;
  }
}

@media (min-width: 992px) {
  .rips-ge-mosaic__item--a {
    grid-column: span 7;
    grid-row: span 3;
    min-height: 14rem;
  }

  .rips-ge-mosaic__item--b {
    grid-column: span 5;
    grid-row: span 2;
    min-height: 9rem;
  }

  .rips-ge-mosaic__item--c {
    grid-column: span 5;
    grid-row: span 2;
    min-height: 9rem;
  }

  .rips-ge-mosaic__item--d {
    grid-column: span 4;
    grid-row: span 2;
    min-height: 8.5rem;
  }

  .rips-ge-mosaic__item--e {
    grid-column: span 4;
    grid-row: span 2;
    min-height: 8.5rem;
  }

  .rips-ge-mosaic__item--f {
    grid-column: span 4;
    grid-row: span 2;
    min-height: 8.5rem;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .rips-ge-mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .rips-ge-mosaic__item--a {
    grid-column: span 6;
    grid-row: span 2;
    min-height: 12rem;
  }

  .rips-ge-mosaic__item--b,
  .rips-ge-mosaic__item--c {
    grid-column: span 3;
    grid-row: span 2;
    min-height: 9rem;
  }

  .rips-ge-mosaic__item--d,
  .rips-ge-mosaic__item--e,
  .rips-ge-mosaic__item--f {
    grid-column: span 3;
    min-height: 8rem;
  }
}

@media (max-width: 575.98px) {
  .rips-ge-mosaic {
    grid-template-columns: 1fr;
  }

  .rips-ge-mosaic__item {
    min-height: 13.5rem;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }

  .rips-ge-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .rips-ge-tabs .nav-link {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
  }
}

/* Video strip — horizontal scroll, site-aligned cards */
.rips-ge-cinema {
  position: relative;
  padding: 0.75rem 0 0.25rem;
}

.rips-ge-cinema--atelier {
  padding: 0.85rem 0 0.35rem;
}

.rips-ge-cinema--lv1 .rips-ge-cinema__track {
  gap: 1.2rem;
}

.rips-ge-cinema--lv2 {
  padding: 0.45rem 0 0.35rem 0.85rem;
  border-left: 3px solid rgba(201, 162, 39, 0.5);
  border-radius: 0 var(--rips-radius) var(--rips-radius) 0;
  background: linear-gradient(90deg, rgba(10, 38, 71, 0.04) 0%, transparent 55%);
}

.rips-ge-cinema--lv3 .rips-ge-cinema__track {
  gap: 0.85rem 1.15rem;
}

.rips-ge-cinema--lv4 .rips-ge-cinema__frame {
  border-radius: 0.55rem 1.05rem 0.75rem 0.55rem;
}

.rips-ge-cinema--lv5 .rips-ge-cinema__track {
  padding-bottom: 1.15rem;
  border-bottom: 1px dashed rgba(10, 38, 71, 0.12);
}

.rips-ge-cinema__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.35rem 0.15rem 1rem;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, 0.55) rgba(10, 38, 71, 0.08);
}

.rips-ge-cinema__track--stagger {
  gap: 1rem;
  padding: 0.5rem 0.15rem 1rem;
}

.rips-ge-cinema__track::-webkit-scrollbar {
  height: 6px;
}

.rips-ge-cinema__track::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 39, 0.55);
  border-radius: 999px;
}

.rips-ge-cinema__frame {
  position: relative;
  flex: 0 0 min(88vw, 300px);
  scroll-snap-align: start;
  border: 1px solid var(--rips-border);
  padding: 0;
  border-radius: var(--rips-radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  color: var(--rips-navy);
  box-shadow: 0 8px 24px rgba(10, 38, 71, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rips-ge-cinema__frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(10, 38, 71, 0.14);
  border-color: rgba(201, 162, 39, 0.4);
}

.rips-ge-cinema__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.rips-ge-cinema__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rips-ge-cinema__puzzle-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  pointer-events: none;
}

.rips-ge-cinema__puzzle-piece {
  border-radius: 0.12rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    linear-gradient(165deg, var(--rips-navy-soft) 0%, var(--rips-navy) 100%);
  border: 1px solid rgba(201, 162, 39, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transform-origin: center center;
  transition:
    transform 0.62s cubic-bezier(0.34, 1.15, 0.52, 1),
    opacity 0.48s ease;
}

.rips-ge-cinema__frame--puzzle-solved .rips-ge-cinema__puzzle-piece {
  opacity: 0;
}

.rips-ge-cinema__frame--puzzle-solved .rips-ge-cinema__puzzle-piece:nth-child(1) {
  transform: translate(-108%, -102%) rotate(-20deg) scale(0.86);
  transition-delay: 0.02s;
}

.rips-ge-cinema__frame--puzzle-solved .rips-ge-cinema__puzzle-piece:nth-child(2) {
  transform: translate(0, -112%) rotate(5deg) scale(0.88);
  transition-delay: 0.06s;
}

.rips-ge-cinema__frame--puzzle-solved .rips-ge-cinema__puzzle-piece:nth-child(3) {
  transform: translate(108%, -98%) rotate(16deg) scale(0.86);
  transition-delay: 0.1s;
}

.rips-ge-cinema__frame--puzzle-solved .rips-ge-cinema__puzzle-piece:nth-child(4) {
  transform: translate(-104%, 6%) rotate(12deg) scale(0.88);
  transition-delay: 0.05s;
}

.rips-ge-cinema__frame--puzzle-solved .rips-ge-cinema__puzzle-piece:nth-child(5) {
  transform: translate(0, -40%) rotate(8deg) scale(0.8);
  transition-delay: 0.12s;
}

.rips-ge-cinema__frame--puzzle-solved .rips-ge-cinema__puzzle-piece:nth-child(6) {
  transform: translate(104%, 0) rotate(-14deg) scale(0.88);
  transition-delay: 0.08s;
}

.rips-ge-cinema__frame--puzzle-solved .rips-ge-cinema__puzzle-piece:nth-child(7) {
  transform: translate(-102%, 108%) rotate(18deg) scale(0.86);
  transition-delay: 0.14s;
}

.rips-ge-cinema__frame--puzzle-solved .rips-ge-cinema__puzzle-piece:nth-child(8) {
  transform: translate(0, 118%) rotate(-7deg) scale(0.88);
  transition-delay: 0.09s;
}

.rips-ge-cinema__frame--puzzle-solved .rips-ge-cinema__puzzle-piece:nth-child(9) {
  transform: translate(102%, 104%) rotate(-18deg) scale(0.86);
  transition-delay: 0.11s;
}

.rips-ge-cinema__frame--puzzle-solved .rips-ge-cinema__puzzle-layer {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .rips-ge-cinema__puzzle-piece {
    transition: opacity 0.2s ease;
  }

  .rips-ge-cinema__frame--puzzle-solved .rips-ge-cinema__puzzle-piece {
    transform: none;
  }
}

.rips-ge-cinema__play {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.42) 100%);
  color: #fff;
  pointer-events: none;
}

.rips-ge-cinema__play svg {
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}

.rips-ge-cinema__caption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.85rem 0.75rem;
  text-align: left;
  background: #fff;
  border-top: 1px solid var(--rips-border);
}

.rips-ge-cinema__title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rips-navy);
}

.rips-ge-cinema__cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rips-muted);
}

.rips-ge-events-head {
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rips-border);
}

.rips-ge-events-head__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rips-gold);
  margin-bottom: 0.35rem;
}

.rips-ge-events-head__title {
  font-family: var(--rips-font-display);
  letter-spacing: -0.02em;
}

.rips-ge-event-card {
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(10, 38, 71, 0.12);
  background: #fff;
  box-shadow: 0 12px 24px rgba(10, 38, 71, 0.1);
}

.rips-ge-event-card__img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  display: block;
}

.rips-ge-event-card__body {
  padding: 0.85rem 0.95rem 1rem;
}

.rips-ge-event-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rips-navy);
}

.rips-ge-event-card__title {
  font-size: 1rem;
  margin: 0.45rem 0 0.25rem;
  color: var(--rips-navy);
}

.rips-ge-event-card__date {
  font-size: 0.78rem;
  color: var(--rips-muted);
  margin-bottom: 0.4rem;
}

.rips-ge-event-card__text {
  font-size: 0.9rem;
  color: var(--rips-muted);
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .rips-ge-event-card--recent .rips-ge-event-card__img,
  .rips-ge-all-events__card .rips-ge-event-card__img {
    height: 6.75rem;
  }

  .rips-ge-event-card--recent .rips-ge-event-card__body,
  .rips-ge-all-events__card .rips-ge-event-card__body {
    padding: 0.55rem 0.6rem 0.65rem;
  }

  .rips-ge-event-card--recent .rips-ge-event-card__title,
  .rips-ge-all-events__card .rips-ge-event-card__title {
    font-size: 0.86rem;
    line-height: 1.25;
  }

  .rips-ge-event-card--recent .rips-ge-event-card__text,
  .rips-ge-all-events__card .rips-ge-event-card__text {
    font-size: 0.78rem;
    line-height: 1.45;
  }
}

.rips-ge-empty {
  border: 1px dashed rgba(10, 38, 71, 0.25);
  border-radius: 0.8rem;
  padding: 0.95rem;
  text-align: center;
  color: var(--rips-muted);
  background: rgba(255, 255, 255, 0.72);
}

.rips-ge-pagination {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  flex-wrap: wrap;
}

.rips-ge-pagination a {
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--rips-navy);
  border: 1px solid rgba(10, 38, 71, 0.2);
  background: #fff;
  font-weight: 700;
}

.rips-ge-pagination a.is-active {
  color: #fff;
  border-color: rgba(10, 38, 71, 0.9);
  background: var(--rips-navy);
  box-shadow: 0 8px 16px rgba(10, 38, 71, 0.25);
}

/* Gallery lightbox: cinema frame + puzzle reveal */
.rips-ge-viewer__dialog {
  max-width: min(1040px, 94vw);
  margin-left: auto;
  margin-right: auto;
}

/* Phones / small tablets: edge-to-edge viewer so photos & video feel large enough to use */
@media (max-width: 767.98px) {
  .modal.rips-ge-viewer .modal-dialog.rips-ge-viewer__dialog.modal-fullscreen-md-down {
    max-width: 100%;
  }

  .modal.rips-ge-viewer .rips-ge-viewer__content {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    border-radius: 0;
  }

  .modal.rips-ge-viewer .rips-ge-viewer__header {
    flex-shrink: 0;
    padding: 0.6rem 0.75rem 0.5rem !important;
  }

  .modal.rips-ge-viewer .rips-ge-viewer__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0.5rem 0.5rem 0.75rem !important;
  }

  .modal.rips-ge-viewer .rips-ge-viewer__stage {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(58dvh, 520px);
  }

  .modal.rips-ge-viewer .rips-ge-viewer__media-stack {
    width: 100%;
    max-width: 100%;
  }

  .modal.rips-ge-viewer .rips-ge-viewer__img {
    max-height: min(82dvh, 960px);
    width: 100%;
    object-fit: contain;
  }

  .modal.rips-ge-viewer .rips-ge-viewer__video-shell {
    width: 100% !important;
    max-width: 100%;
  }

  .modal.rips-ge-viewer .rips-ge-viewer__video-shell.ratio {
    max-height: min(52dvh, 480px);
  }

  .modal.rips-ge-viewer .rips-ge-viewer__video-shell iframe {
    border-radius: 0.4rem;
  }

  .modal.rips-ge-viewer .rips-ge-viewer__nav {
    width: 2.85rem;
    height: 2.85rem;
    z-index: 10;
  }

  .modal.rips-ge-viewer .rips-ge-viewer__nav--prev {
    left: 0.25rem;
  }

  .modal.rips-ge-viewer .rips-ge-viewer__nav--next {
    right: 0.25rem;
  }
}

.rips-ge-viewer__content {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.42);
  border-radius: 1.15rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
    linear-gradient(165deg, #0b1a2c 0%, #0d2844 38%, #050a12 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(201, 162, 39, 0.08);
}

.rips-ge-viewer__chrome {
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.rips-ge-viewer__chrome-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #3d4f63;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

.rips-ge-viewer__chrome-dot:nth-child(1) {
  background: #c45c3e;
}

.rips-ge-viewer__chrome-dot:nth-child(2) {
  background: #c9a227;
}

.rips-ge-viewer__chrome-dot:nth-child(3) {
  background: #2d7a4a;
}

.rips-ge-viewer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem 0.65rem !important;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2) !important;
}

.rips-ge-viewer__kicker {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.85);
  margin-bottom: 0.25rem;
}

.rips-ge-viewer__title {
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: -0.02em;
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.25;
}

.rips-ge-viewer__pos {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(201, 162, 39, 0.8);
  margin-top: 0.35rem !important;
}

.rips-ge-viewer__close {
  opacity: 0.85;
  margin-top: 0.15rem;
}

.rips-ge-viewer__body {
  padding: 1rem 1rem 1.15rem !important;
}

.rips-ge-viewer__stage {
  position: relative;
  border-radius: 0.65rem;
  background: #020508;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 12px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.rips-ge-viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(10, 38, 71, 0.55);
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.rips-ge-viewer__nav:hover:not(:disabled) {
  background: rgba(201, 162, 39, 0.35);
  border-color: rgba(201, 162, 39, 0.55);
}

.rips-ge-viewer__nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.45);
}

.rips-ge-viewer__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.rips-ge-viewer__nav--prev {
  left: 0.5rem;
}

.rips-ge-viewer__nav--next {
  right: 0.5rem;
}

@media (max-width: 575.98px) {
  .rips-ge-viewer__nav {
    width: 2.25rem;
    height: 2.25rem;
  }

  .rips-ge-viewer__nav--prev {
    left: 0.35rem;
  }

  .rips-ge-viewer__nav--next {
    right: 0.35rem;
  }
}

.rips-ge-viewer__corner {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  z-index: 5;
  pointer-events: none;
  border-color: rgba(201, 162, 39, 0.85);
  border-style: solid;
  border-width: 0;
}

.rips-ge-viewer__corner--tl {
  top: 0.5rem;
  left: 0.5rem;
  border-top-width: 2px;
  border-left-width: 2px;
}

.rips-ge-viewer__corner--tr {
  top: 0.5rem;
  right: 0.5rem;
  border-top-width: 2px;
  border-right-width: 2px;
}

.rips-ge-viewer__corner--bl {
  bottom: 0.5rem;
  left: 0.5rem;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.rips-ge-viewer__corner--br {
  bottom: 0.5rem;
  right: 0.5rem;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.rips-ge-viewer__media-stack {
  position: relative;
  z-index: 1;
}

.rips-ge-viewer__img {
  display: block;
  width: 100%;
  max-height: min(72vh, 820px);
  object-fit: contain;
  margin: 0 auto;
  background: #020508;
}

.rips-ge-viewer__video-shell {
  background: #000;
}

.rips-ge-viewer__video-shell iframe {
  border: 0;
  border-radius: 0.35rem;
}

/* Use full-screen canvas when previewing videos to avoid cramped/distorted framing. */
.modal.rips-ge-viewer.rips-ge-viewer--video-open .modal-dialog.rips-ge-viewer__dialog {
  max-width: 100vw;
  width: 100vw;
  height: 100dvh;
  margin: 0;
}

.modal.rips-ge-viewer.rips-ge-viewer--video-open .rips-ge-viewer__content {
  min-height: 100dvh;
  height: 100dvh;
  border-radius: 0;
}

.modal.rips-ge-viewer.rips-ge-viewer--video-open .rips-ge-viewer__body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.rips-ge-viewer.rips-ge-viewer--video-open .rips-ge-viewer__stage {
  width: min(96vw, 1800px);
  min-height: min(84dvh, 1200px);
}

.modal.rips-ge-viewer.rips-ge-viewer--video-open .rips-ge-viewer__video-shell,
.modal.rips-ge-viewer.rips-ge-viewer--video-open .rips-ge-viewer__video-shell.ratio {
  width: 100%;
  max-width: 100%;
  max-height: 84dvh;
}

/* 3×3 puzzle tile overlay (staggered “solve” animation) */
.rips-ge-viewer__puzzle {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  pointer-events: none;
}

.rips-ge-viewer__puzzle-piece {
  position: relative;
  border-radius: 0.2rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    linear-gradient(165deg, #1a2d45 0%, #0a1520 100%);
  border: 1px solid rgba(201, 162, 39, 0.25);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 4px 12px rgba(0, 0, 0, 0.35);
  transform-origin: center center;
  transition:
    transform 0.72s cubic-bezier(0.34, 1.2, 0.52, 1),
    opacity 0.55s ease;
}

/* Jigsaw “knob” illusion via clip-path (subtle) */
.rips-ge-viewer__puzzle-piece:nth-child(odd) {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
}

.rips-ge-viewer__puzzle-piece:nth-child(even) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%, 0 88%);
}

.rips-ge-viewer__puzzle-piece:nth-child(3n) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.rips-ge-viewer__puzzle--solved .rips-ge-viewer__puzzle-piece {
  opacity: 0;
  pointer-events: none;
}

.rips-ge-viewer__puzzle--solved .rips-ge-viewer__puzzle-piece:nth-child(1) {
  transform: translate(-120%, -115%) rotate(-22deg) scale(0.88);
  transition-delay: 0.02s;
}

.rips-ge-viewer__puzzle--solved .rips-ge-viewer__puzzle-piece:nth-child(2) {
  transform: translate(0, -125%) rotate(6deg) scale(0.9);
  transition-delay: 0.06s;
}

.rips-ge-viewer__puzzle--solved .rips-ge-viewer__puzzle-piece:nth-child(3) {
  transform: translate(125%, -110%) rotate(18deg) scale(0.88);
  transition-delay: 0.1s;
}

.rips-ge-viewer__puzzle--solved .rips-ge-viewer__puzzle-piece:nth-child(4) {
  transform: translate(-118%, 8%) rotate(14deg) scale(0.9);
  transition-delay: 0.05s;
}

.rips-ge-viewer__puzzle--solved .rips-ge-viewer__puzzle-piece:nth-child(5) {
  transform: translate(0, -45%) rotate(10deg) scale(0.82);
  opacity: 0;
  transition-delay: 0.12s;
}

.rips-ge-viewer__puzzle--solved .rips-ge-viewer__puzzle-piece:nth-child(6) {
  transform: translate(120%, 0) rotate(-16deg) scale(0.9);
  transition-delay: 0.08s;
}

.rips-ge-viewer__puzzle--solved .rips-ge-viewer__puzzle-piece:nth-child(7) {
  transform: translate(-115%, 120%) rotate(20deg) scale(0.88);
  transition-delay: 0.14s;
}

.rips-ge-viewer__puzzle--solved .rips-ge-viewer__puzzle-piece:nth-child(8) {
  transform: translate(0, 128%) rotate(-8deg) scale(0.9);
  transition-delay: 0.09s;
}

.rips-ge-viewer__puzzle--solved .rips-ge-viewer__puzzle-piece:nth-child(9) {
  transform: translate(118%, 115%) rotate(-20deg) scale(0.88);
  transition-delay: 0.11s;
}

.rips-ge-viewer__puzzle--solved {
  pointer-events: none;
}

.rips-ge-viewer__puzzle--instant {
  visibility: hidden;
  pointer-events: none;
}

.rips-ge-viewer__puzzle--instant .rips-ge-viewer__puzzle-piece {
  opacity: 0;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .rips-ge-viewer__puzzle-piece {
    transition: opacity 0.2s ease;
  }

  .rips-ge-viewer__puzzle--solved .rips-ge-viewer__puzzle-piece {
    transform: none;
  }
}

/* Gallery viewer: stack above backdrop (modal was inside <main> with z-index 0; JS moves #ripsGeViewerModal to body) */
.modal.rips-ge-viewer {
  z-index: 1055;
}

body.modal-open > .modal-backdrop {
  z-index: 1050;
}

/* ----- Hero (4-slide carousel: slide / wave / puzzle / zoom) ----- */
.rips-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Visible while hero media is awaiting images (matches banner/collage palette) */
  background: linear-gradient(160deg, #0a2647 0%, #0c2f52 45%, #071a2e 100%);
}

.rips-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Banner strip (left) + gallery collage (right) */
.rips-hero-media--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 34%);
  gap: 0;
  align-items: stretch;
}

.rips-hero-media-main {
  position: relative;
  isolation: isolate;
  z-index: 3;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.rips-hero-media-main .rips-hero-carousel {
  position: absolute;
  inset: 0;
}

.rips-hero-media-collage {
  position: relative;
  z-index: 2;
  pointer-events: none;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #071a2e 0%, #0a2647 50%, #051428 100%);
  border-left: 1px solid rgba(201, 162, 39, 0.28);
}

.rips-hero-collage-stack {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 11rem;
  align-self: stretch;
}

.rips-hero-collage-stack--empty .rips-hero-collage-empty {
  position: relative;
  z-index: 2;
}

@media (max-width: 767.98px) {
  .rips-hero-media--split {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(210px, 40vh) minmax(148px, auto);
  }

  .rips-hero-media-collage {
    border-left: none;
    border-top: 1px solid rgba(201, 162, 39, 0.28);
  }
}

.rips-hero-carousel {
  perspective: 1200px;
}

.rips-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transform-origin: center center;
  will-change: transform, opacity, clip-path, filter;
  /* Letterboxing when images use object-fit: contain */
  background: linear-gradient(180deg, #06182a 0%, #0a2647 50%, #051428 100%);
}

.rips-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.rips-hero-slide.is-leaving {
  z-index: 2;
  visibility: visible;
}

.rips-hero-slide.is-entering {
  z-index: 3;
  visibility: visible;
}

.rips-hero-slide-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* —— Enter: slide (from right) —— */
.rips-hero-slide.is-entering.rips-hero-enter-slide {
  animation: rips-hero-enter-slide 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rips-hero-slide.is-leaving.rips-hero-leave-slide {
  animation: rips-hero-leave-slide 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes rips-hero-enter-slide {
  from {
    transform: translateX(18%);
    opacity: 0.65;
  }

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

@keyframes rips-hero-leave-slide {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(-14%);
    opacity: 0;
  }
}

/* —— Enter: wave (elliptical reveal) —— */
.rips-hero-slide.is-entering.rips-hero-enter-wave {
  animation: rips-hero-enter-wave 0.82s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

.rips-hero-slide.is-leaving.rips-hero-leave-wave {
  animation: rips-hero-leave-wave 0.78s ease forwards;
}

@keyframes rips-hero-enter-wave {
  from {
    clip-path: ellipse(95% 0% at 50% 100%);
    opacity: 0.9;
  }

  to {
    clip-path: ellipse(140% 140% at 50% 45%);
    opacity: 1;
  }
}

@keyframes rips-hero-leave-wave {
  from {
    opacity: 1;
    transform: translateY(0);
    filter: brightness(1);
  }

  to {
    opacity: 0;
    transform: translateY(-5%);
    filter: brightness(0.75);
  }
}

/* —— Enter: puzzle (center box opens) —— */
.rips-hero-slide.is-entering.rips-hero-enter-puzzle {
  animation: rips-hero-enter-puzzle 0.8s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.rips-hero-slide.is-leaving.rips-hero-leave-puzzle {
  animation: rips-hero-leave-puzzle 0.75s cubic-bezier(0.55, 0, 0.45, 1) forwards;
}

@keyframes rips-hero-enter-puzzle {
  from {
    clip-path: inset(38% 38% 38% 38%);
    opacity: 0.85;
  }

  to {
    clip-path: inset(0);
    opacity: 1;
  }
}

@keyframes rips-hero-leave-puzzle {
  from {
    clip-path: inset(0);
    opacity: 1;
  }

  to {
    clip-path: inset(0 0 100% 0);
    opacity: 0.4;
  }
}

/* —— Enter: zoom —— */
.rips-hero-slide.is-entering.rips-hero-enter-zoom {
  animation: rips-hero-enter-zoom 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rips-hero-slide.is-leaving.rips-hero-leave-zoom {
  animation: rips-hero-leave-zoom 0.75s ease forwards;
}

@keyframes rips-hero-enter-zoom {
  from {
    transform: scale(1.12);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rips-hero-leave-zoom {
  from {
    transform: scale(1);
    opacity: 1;
  }

  to {
    transform: scale(0.9);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rips-hero-slide.is-entering,
  .rips-hero-slide.is-leaving {
    animation: none !important;
  }
}

/* Banner column: lighter overlay so headline copy stays readable */
.rips-hero-overlay--main {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(10, 38, 71, 0.62) 0%,
    rgba(10, 38, 71, 0.42) 48%,
    rgba(10, 38, 71, 0.22) 92%
  );
}

/* Puzzle collage: tilted cards, non-overlapping grid; shuffle order from Blade */
.rips-hero-collage--puzzle {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  gap: 1px;
  padding: 0;
  box-sizing: border-box;
  min-height: 0;
  pointer-events: none;
  perspective: 1100px;
  perspective-origin: 50% 40%;
}

.rips-hero-collage--n-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.rips-hero-collage--n-2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.rips-hero-collage--n-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* Tall left + two stacked right (classic puzzle) */
.rips-hero-collage--n-3 .rips-hero-collage__cell:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.rips-hero-collage--n-3 .rips-hero-collage__cell:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.rips-hero-collage--n-3 .rips-hero-collage__cell:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.rips-hero-collage--n-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.rips-hero-collage__cell {
  margin: 0;
  min-height: 0;
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.rips-hero-collage__cell-inner {
  flex: 1 1 auto;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(155deg, #f8fafc 0%, #e2e8f0 8%, #06182a 22%, #0c2f52 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.12) inset,
    0 14px 32px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(10, 38, 71, 0.35);
  transform-style: preserve-3d;
  transform: rotateZ(-3.5deg) rotateX(2deg);
}

.rips-hero-collage__cell:nth-child(2) .rips-hero-collage__cell-inner {
  transform: rotateZ(4deg) rotateX(-2deg);
}

.rips-hero-collage__cell:nth-child(3) .rips-hero-collage__cell-inner {
  transform: rotateZ(-2deg) rotateX(3deg);
}

.rips-hero-collage__cell:nth-child(4) .rips-hero-collage__cell-inner {
  transform: rotateZ(3.5deg) rotateX(-2.5deg);
}

.rips-hero-collage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .rips-hero-collage__img {
    animation: rips-collage-diagonal-drift 18s ease-in-out infinite alternate;
  }

  .rips-hero-collage__cell:nth-child(2) .rips-hero-collage__img {
    animation-duration: 21s;
    animation-delay: -3s;
  }

  .rips-hero-collage__cell:nth-child(3) .rips-hero-collage__img {
    animation-duration: 16s;
    animation-delay: -7s;
  }

  .rips-hero-collage__cell:nth-child(4) .rips-hero-collage__img {
    animation-duration: 19s;
    animation-delay: -11s;
  }
}

@keyframes rips-collage-diagonal-drift {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(5px, -6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rips-hero-collage__img {
    animation: none;
  }
}

/* Tint over gallery photos (formulas sit above this) — lighter to align with banner column overlay */
.rips-hero-collage-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(4, 14, 28, 0.22) 0%,
    rgba(10, 38, 71, 0.36) 48%,
    rgba(6, 20, 40, 0.28) 100%
  );
}

/* Hide hero imagery until critical images decoded (see rips-site.js); base .rips-hero bg shows through */
body.rips-home-hero-awaiting .rips-hero-media {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body:not(.rips-home-hero-awaiting) .rips-hero-media {
  opacity: 1;
}

.rips-hero-collage-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem 0.75rem;
  height: 100%;
  min-height: 9rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(0.65rem, 1.4vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rips-hero-collage-empty__icon {
  display: flex;
  opacity: 0.5;
  color: rgba(201, 162, 39, 0.95);
}

/* Floating equations — only over the gallery column */
.rips-hero-science-float--collage {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.rips-hero-formula-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(1.45rem, auto);
  gap: 0.22rem 0.34rem;
  padding: 0.5rem 0.6rem;
  align-content: stretch;
}

.rips-hero-media-collage .rips-hero-formula-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0.4rem 0.45rem;
  gap: 0.18rem 0.26rem;
}

@media (min-width: 576px) {
  .rips-hero-formula-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.2rem 0.32rem;
  }

  .rips-hero-media-collage .rips-hero-formula-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .rips-hero-formula-grid {
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 0.22rem 0.38rem;
  }

  .rips-hero-media-collage .rips-hero-formula-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .rips-hero-formula-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .rips-hero-media-collage .rips-hero-formula-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.rips-hero-formula-grid--offset {
  transform: translate(2.5%, 1.8%) rotate(0.5deg);
  opacity: 0.56;
  mix-blend-mode: normal;
}

/* JS-driven bounce + collisions (replaces grid layout for that layer) */
.rips-hero-formula-grid--physics {
  display: block;
  padding: 0;
  gap: 0;
}

.rips-hero-formula-grid--physics .rips-hero-formula--cell {
  position: absolute;
  left: 0;
  top: 0;
  justify-self: unset;
  align-self: unset;
  max-width: none;
  white-space: nowrap;
  animation: none;
  will-change: transform;
  transform-origin: center center;
}

.rips-hero-formula {
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 600;
  color: rgba(229, 203, 137, 0.62);
  text-shadow:
    0 0 0.4rem rgba(6, 24, 46, 0.5),
    0 0 1.1rem rgba(201, 162, 39, 0.28);
  user-select: none;
}

.rips-hero-formula--cell {
  position: relative;
  justify-self: center;
  align-self: center;
  font-size: clamp(0.55rem, 1.2vw, 0.95rem);
  line-height: 1.12;
  white-space: normal;
  max-width: 100%;
  text-align: center;
  animation-name: var(--float-name, rips-hero-formula-float);
  animation-duration: var(--float-dur, 14s);
  animation-delay: var(--float-delay, 0s);
  animation-timing-function: var(--float-ease, ease-in-out);
  animation-direction: var(--float-dir, normal);
  animation-iteration-count: infinite;
}

.rips-hero-formula--ghost {
  color: rgba(176, 210, 255, 0.34);
}

.rips-hero-formula sup,
.rips-hero-formula sub {
  font-size: 0.72em;
}

@keyframes rips-hero-formula-float {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.72;
  }

  33% {
    transform: translate(4px, -7px);
    opacity: 0.95;
  }

  66% {
    transform: translate(-4px, 5px);
    opacity: 0.58;
  }
}

@keyframes rips-hero-formula-float-alt {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.45;
  }

  40% {
    transform: translate(-5px, 6px);
    opacity: 0.72;
  }

  70% {
    transform: translate(4px, -4px);
    opacity: 0.38;
  }
}

@keyframes rips-hero-formula-float-wobble {
  0%,
  100% {
    transform: translate(-3px, 4px);
    opacity: 0.62;
  }

  20% {
    transform: translate(6px, -5px);
    opacity: 0.92;
  }

  45% {
    transform: translate(-4px, -7px);
    opacity: 0.55;
  }

  72% {
    transform: translate(5px, 3px);
    opacity: 0.78;
  }
}

/* Extra motion curves so cells rarely share the same phase shape */
@keyframes rips-hero-formula-float-drift {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.48;
  }

  27% {
    transform: translate(5px, 3px);
    opacity: 0.82;
  }

  61% {
    transform: translate(-3px, -6px);
    opacity: 0.58;
  }

  89% {
    transform: translate(2px, -2px);
    opacity: 0.74;
  }
}

@keyframes rips-hero-formula-float-swirl {
  0% {
    transform: translate(0, 0);
    opacity: 0.52;
  }

  25% {
    transform: translate(6px, -4px);
    opacity: 0.9;
  }

  50% {
    transform: translate(-5px, 5px);
    opacity: 0.48;
  }

  75% {
    transform: translate(3px, 4px);
    opacity: 0.68;
  }

  100% {
    transform: translate(0, 0);
    opacity: 0.52;
  }
}

@keyframes rips-hero-formula-float-breathe {
  0%,
  100% {
    transform: translate(-2px, -2px);
    opacity: 0.38;
  }

  18% {
    transform: translate(4px, 5px);
    opacity: 0.86;
  }

  41% {
    transform: translate(-6px, -2px);
    opacity: 0.52;
  }

  67% {
    transform: translate(3px, -6px);
    opacity: 0.7;
  }

  84% {
    transform: translate(-2px, 3px);
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rips-hero-formula--cell {
    animation: none;
    opacity: 0.55;
  }

  .rips-hero-formula-grid--offset {
    transform: none;
    opacity: 0.28;
  }
}

/* Prev / next */
.rips-hero-nav {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}

.rips-hero-nav-btn {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(10, 38, 71, 0.45);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.rips-hero-nav-btn--prev {
  left: clamp(0.5rem, 2vw, 1.25rem);
}

.rips-hero-nav-btn--next {
  right: clamp(1.5rem, 4vw, 3rem);
}

.rips-hero-nav-btn:hover {
  background: rgba(201, 162, 39, 0.35);
  border-color: rgba(232, 212, 160, 0.55);
  color: #fff;
}

.rips-hero-nav-btn:focus-visible {
  outline: 2px solid var(--rips-gold);
  outline-offset: 3px;
}

.rips-hero-nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.rips-icon--hero-nav {
  width: 1.15rem;
  height: 1.15rem;
}

#rips-hero:focus-visible {
  outline: none;
}

#rips-hero:focus-visible .rips-hero-inner {
  outline: 2px solid rgba(232, 212, 160, 0.45);
  outline-offset: 4px;
  border-radius: 4px;
}

.rips-hero-inner {
  z-index: 10;
  pointer-events: none;
}

.rips-hero-text-block {
  pointer-events: none;
}

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

.rips-hero-row {
  /* Banner height; slide images use cover to fill the banner column edge-to-edge */
  min-height: clamp(18.5rem, 54vh, 32rem);
}

.rips-hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rips-gold);
  margin-bottom: 0.75rem;
}

.rips-hero-title {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
  text-shadow:
    0 2px 28px rgba(4, 12, 24, 0.75),
    0 1px 3px rgba(0, 0, 0, 0.35);
}

.rips-hero-lead {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 38rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 18px rgba(4, 12, 24, 0.65);
}

@media (max-width: 767.98px) {
  .rips-hero-media--split {
    grid-template-rows: minmax(280px, 54vh) minmax(136px, auto);
  }

  .rips-hero-row {
    min-height: clamp(16rem, 48vh, 24rem);
    align-items: flex-start !important;
    padding-top: clamp(0.35rem, 1.4vw, 0.55rem) !important;
    padding-bottom: clamp(0.8rem, 2.8vw, 1.1rem) !important;
  }

  .rips-hero-title {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
    line-height: 1.18;
    margin-bottom: 0.72rem;
  }

  .rips-hero-lead {
    font-size: clamp(0.98rem, 3.5vw, 1.08rem);
    line-height: 1.5;
    margin-bottom: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .rips-hero-media--split {
    grid-template-rows: minmax(300px, 58vh) minmax(128px, auto);
  }

  .rips-hero-text-block {
    margin-top: 54px;
  }

  .rips-hero-row {
    min-height: clamp(17rem, 52vh, 25rem);
    padding-top: 0.3rem !important;
    padding-bottom: 0.9rem !important;
  }

  .rips-hero-eyebrow {
    margin-bottom: 0.55rem;
    letter-spacing: 0.09em;
  }

  .rips-hero-title {
    font-size: clamp(1.35rem, 8.2vw, 1.85rem);
  }

  .rips-hero-lead {
    font-size: 0.96rem;
    line-height: 1.42;
  }
}

/* Hero copy — exit/enter synced with banner (slide / wave / puzzle / zoom) */
.rips-hero-text-block {
  overflow: hidden;
  will-change: transform, opacity, filter, clip-path;
}

.rips-hero-text-block.rips-hero-text--exit-slide {
  animation: rips-hero-text-exit-slide 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.rips-hero-text-block.rips-hero-text--enter-slide .rips-hero-eyebrow {
  animation: rips-hero-line-slide-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.02s both;
}

.rips-hero-text-block.rips-hero-text--enter-slide .rips-hero-title {
  animation: rips-hero-line-slide-in 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.rips-hero-text-block.rips-hero-text--enter-slide .rips-hero-lead {
  animation: rips-hero-line-slide-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.rips-hero-text-block.rips-hero-text--enter-slide .rips-hero-actions a:nth-child(1) {
  animation: rips-hero-line-slide-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.rips-hero-text-block.rips-hero-text--enter-slide .rips-hero-actions a:nth-child(2) {
  animation: rips-hero-line-slide-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

@keyframes rips-hero-text-exit-slide {
  to {
    opacity: 0;
    transform: translateX(-1.25rem);
  }
}

@keyframes rips-hero-line-slide-in {
  from {
    opacity: 0;
    transform: translateX(1.75rem);
  }

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

.rips-hero-text-block.rips-hero-text--exit-wave {
  animation: rips-hero-text-exit-wave 0.38s ease forwards;
}

.rips-hero-text-block.rips-hero-text--enter-wave .rips-hero-eyebrow {
  animation: rips-hero-line-wave-in 0.42s ease 0.02s both;
}

.rips-hero-text-block.rips-hero-text--enter-wave .rips-hero-title {
  animation: rips-hero-line-wave-in 0.48s ease 0.1s both;
}

.rips-hero-text-block.rips-hero-text--enter-wave .rips-hero-lead {
  animation: rips-hero-line-wave-in 0.44s ease 0.2s both;
}

.rips-hero-text-block.rips-hero-text--enter-wave .rips-hero-actions a:nth-child(1) {
  animation: rips-hero-line-wave-in 0.42s ease 0.26s both;
}

.rips-hero-text-block.rips-hero-text--enter-wave .rips-hero-actions a:nth-child(2) {
  animation: rips-hero-line-wave-in 0.42s ease 0.34s both;
}

@keyframes rips-hero-text-exit-wave {
  to {
    opacity: 0;
    transform: translateY(1.1rem);
    filter: blur(5px);
  }
}

@keyframes rips-hero-line-wave-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.rips-hero-text-block.rips-hero-text--exit-puzzle {
  animation: rips-hero-text-exit-puzzle 0.38s cubic-bezier(0.55, 0, 0.45, 1) forwards;
}

.rips-hero-text-block.rips-hero-text--enter-puzzle {
  animation: rips-hero-text-enter-puzzle 0.46s cubic-bezier(0.34, 1.15, 0.64, 1) forwards;
}

@keyframes rips-hero-text-exit-puzzle {
  to {
    opacity: 0;
    clip-path: inset(42% 42% 42% 42%);
  }
}

@keyframes rips-hero-text-enter-puzzle {
  from {
    opacity: 0.85;
    clip-path: inset(44% 44% 44% 44%);
  }

  to {
    opacity: 1;
    clip-path: inset(0);
  }
}

.rips-hero-text-block.rips-hero-text--exit-zoom {
  animation: rips-hero-text-exit-zoom 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.rips-hero-text-block.rips-hero-text--enter-zoom .rips-hero-eyebrow {
  animation: rips-hero-line-zoom-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.02s both;
}

.rips-hero-text-block.rips-hero-text--enter-zoom .rips-hero-title {
  animation: rips-hero-line-zoom-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.rips-hero-text-block.rips-hero-text--enter-zoom .rips-hero-lead {
  animation: rips-hero-line-zoom-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.rips-hero-text-block.rips-hero-text--enter-zoom .rips-hero-actions a:nth-child(1) {
  animation: rips-hero-line-zoom-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.rips-hero-text-block.rips-hero-text--enter-zoom .rips-hero-actions a:nth-child(2) {
  animation: rips-hero-line-zoom-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

@keyframes rips-hero-text-exit-zoom {
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

@keyframes rips-hero-line-zoom-in {
  from {
    opacity: 0;
    transform: scale(1.08);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rips-hero-text-block[class*="rips-hero-text--exit"],
  .rips-hero-text-block[class*="rips-hero-text--enter"],
  .rips-hero-text-block[class*="rips-hero-text--enter"] .rips-hero-eyebrow,
  .rips-hero-text-block[class*="rips-hero-text--enter"] .rips-hero-title,
  .rips-hero-text-block[class*="rips-hero-text--enter"] .rips-hero-lead,
  .rips-hero-text-block[class*="rips-hero-text--enter"] .rips-hero-actions a {
    animation: none !important;
  }
}

/* Slim marquee between hero and welcome — links scroll on a navy / gold-accent bar */
.rips-home-marquee {
  position: relative;
  z-index: 3;
  max-width: 100%;
  overflow-x: hidden;
}

.rips-home-marquee-viewport {
  overflow: hidden;
  border-top: 1px solid rgba(201, 162, 39, 0.42);
  border-bottom: 1px solid rgba(10, 38, 71, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, transparent 42%),
    linear-gradient(105deg, #06182a 0%, var(--rips-navy) 42%, var(--rips-navy-soft) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 18px rgba(4, 12, 24, 0.18);
}

.rips-home-marquee-track {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  width: max-content;
  animation: rips-home-marquee-scroll 22s linear infinite;
  will-change: transform;
}

@keyframes rips-home-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Each segment is one full viewport wide so motion reads left → right across the bar (not “floating” in the middle) */
.rips-home-marquee-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  box-sizing: border-box;
  gap: clamp(0.65rem, 2vw, 1.1rem);
  padding-block: 0.48rem;
  padding-inline: clamp(1.25rem, 4vw, 2.75rem);
  min-width: 100vw;
  white-space: nowrap;
}

.rips-home-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.rips-home-marquee-link {
  color: rgba(255, 248, 235, 0.95);
  text-decoration: none;
  font-size: clamp(0.68rem, 1.35vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* Home ticker strip only (#rips-home-marquee) — not the Notice Board section */
#rips-home-marquee .rips-home-marquee-file-tag {
  flex-shrink: 0;
  display: inline-block;
  font-size: clamp(0.52rem, 1.05vw, 0.58rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.1rem 0.42rem 0.12rem;
  line-height: 1.2;
  color: #0f172a;
  border-radius: 999px;
  background: linear-gradient(165deg, #fff8e8 0%, #f4d77a 38%, #c9a227 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 1px 2px rgba(10, 38, 71, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  pointer-events: none;
  user-select: none;
}

.rips-home-marquee-link:hover,
.rips-home-marquee-link:focus-visible {
  color: var(--rips-gold);
  text-shadow: 0 0 1rem rgba(201, 162, 39, 0.35);
}

.rips-home-marquee-sep {
  color: rgba(201, 162, 39, 0.88);
  font-weight: 400;
  font-size: 0.85em;
  opacity: 0.95;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .rips-home-marquee-track {
    animation: none;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.35rem;
  }

  .rips-home-marquee-viewport {
    overflow: visible;
  }

  .rips-home-marquee-group[aria-hidden="true"] {
    display: none;
  }
}

/* ----- Sections ----- */
.rips-main .rips-section {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.rips-event-detail-shell {
  background:
    radial-gradient(ellipse 70% 45% at 85% 0%, rgba(201, 162, 39, 0.12), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
}

.rips-event-detail-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 4vw, 2.8rem) 0 clamp(1.5rem, 3.6vw, 2.2rem);
}

.rips-event-detail-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(142deg, #071f3a 0%, #0b3458 48%, #071a2e 100%),
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(201, 162, 39, 0.22), transparent 60%);
  opacity: 0.98;
}

.rips-event-detail-hero__title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 52rem;
}

.rips-event-detail-hero__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rips-event-detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(201, 162, 39, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.rips-event-detail-chip--muted {
  background: rgba(255, 255, 255, 0.14);
}

.rips-event-detail-content {
  padding: clamp(1.4rem, 3.6vw, 2.3rem) 0 clamp(4rem, 10vw, 6rem);
}

.rips-event-detail-panel {
  background: #fff;
  border: 1px solid rgba(10, 38, 71, 0.09);
  border-radius: 1rem;
  box-shadow: 0 10px 34px rgba(10, 38, 71, 0.08);
  overflow: hidden;
}

.rips-event-detail-panel--compact {
  border-radius: 0.9rem;
}

.rips-event-detail-panel__body {
  padding: clamp(1rem, 2.2vw, 1.4rem);
}

.rips-event-detail-panel__heading {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a2647;
  font-weight: 800;
}

.rips-event-detail-panel__text {
  margin-top: 0.45rem;
  color: #334155;
  line-height: 1.75;
  white-space: pre-wrap;
}

.rips-event-detail-cover img {
  width: 100%;
  max-height: 460px;
  display: block;
  object-fit: cover;
}

.rips-event-detail-cover__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.rips-event-detail-side {
  position: sticky;
  top: 5.8rem;
}

.rips-event-detail-gallery__count {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.rips-event-detail-gallery__item {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(10, 38, 71, 0.08);
  box-shadow: 0 6px 18px rgba(10, 38, 71, 0.08);
  background: transparent;
  cursor: zoom-in;
}

.rips-event-detail-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.rips-event-detail-gallery__item:hover img {
  transform: scale(1.04);
}

.rips-event-detail-related {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.rips-event-detail-related img {
  border-radius: 0.55rem;
  flex-shrink: 0;
  object-fit: cover;
}

.rips-event-detail-related__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rips-event-detail-related__tag {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.rips-event-detail-related__title {
  font-size: 0.88rem;
  line-height: 1.38;
  color: #0f172a;
  font-weight: 700;
  margin-top: 0.1rem;
}

.rips-event-viewer__content {
  background: #071a2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal.rips-event-viewer {
  z-index: 1055;
}

.modal-backdrop.show {
  z-index: 1050;
}

.rips-event-viewer__stage {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.rips-event-viewer__img {
  display: block;
  width: 100%;
  max-height: min(74vh, 640px);
  object-fit: contain;
  margin: 0 auto;
}

.rips-event-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.3rem;
  height: 2.3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 26, 46, 0.72);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rips-event-viewer__nav--prev {
  left: 0.65rem;
}

.rips-event-viewer__nav--next {
  right: 0.65rem;
}

@media (max-width: 991.98px) {
  .rips-event-detail-side {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .rips-event-detail-hero {
    padding-top: 1.4rem;
  }

  .rips-event-detail-hero__title {
    font-size: clamp(1.3rem, 8vw, 1.75rem);
  }

  .rips-event-detail-panel__text {
    line-height: 1.62;
  }
}

.rips-band-light {
  background: var(--rips-cream);
}

/* Home: each block has its own background so sections read clearly (no “mixed” look) */
/* Welcome — framed band with light paper texture on all edges + scroll-in fade (see .rips-welcome--) */
#rips-about.rips-welcome-section {
  position: relative;
  border: 1px solid rgba(10, 38, 71, 0.13);
  background-color: #faf9f6;
  /* Welcome: large soft washes only — distinct from brand ledger lines & gallery diagonal hatch */
  background-image:
    radial-gradient(ellipse 85% 55% at 12% 25%, rgba(201, 162, 39, 0.09), transparent 52%),
    radial-gradient(ellipse 70% 50% at 88% 70%, rgba(18, 58, 92, 0.07), transparent 48%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 46%),
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(201, 162, 39, 0.12), transparent 52%),
    linear-gradient(180deg, #fffefb 0%, #f4ede3 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(10, 38, 71, 0.07),
    inset 1px 0 0 rgba(10, 38, 71, 0.04),
    inset -1px 0 0 rgba(10, 38, 71, 0.04),
    0 3px 16px rgba(10, 38, 71, 0.07);
}

.rips-welcome-content {
  perspective: 1100px;
}

.rips-welcome-content > * {
  transform-style: preserve-3d;
  transition:
    opacity 0.88s cubic-bezier(0.34, 1.18, 0.52, 1),
    transform 0.98s cubic-bezier(0.34, 1.18, 0.52, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.rips-welcome-section.rips-welcome--pending .rips-welcome-content > * {
  opacity: 0;
  transform: translate3d(0, 2rem, -45px) rotateX(11deg) scale(0.92);
  filter: blur(5px);
}

.rips-welcome-section.rips-welcome--visible .rips-welcome-content > * {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0) scale(1);
  filter: none;
}

.rips-welcome-section.rips-welcome--visible .rips-welcome-content > *:nth-child(1) {
  transition-delay: 0.04s;
}

.rips-welcome-section.rips-welcome--visible .rips-welcome-content > *:nth-child(2) {
  transition-delay: 0.16s;
}

.rips-welcome-section.rips-welcome--visible .rips-welcome-content > *:nth-child(3) {
  transition-delay: 0.28s;
}

@media (prefers-reduced-motion: reduce) {
  .rips-welcome-section .rips-welcome-content > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* Re-arm scroll reveal off-screen without playing the exit transition (animation replays on next scroll-in) */
#rips-about.rips-reveal-instant .rips-welcome-content > *,
#rips-notices.rips-reveal-instant .rips-notices-heading,
#rips-notices.rips-reveal-instant .rips-notices-col,
#rips-events-gallery.rips-reveal-instant .rips-events-section-heading,
#rips-events-gallery.rips-reveal-instant .rips-events-section-grid > *,
#rips-events-gallery.rips-reveal-instant .rips-gallery-home__reveal-item,
#rips-testimonials.rips-reveal-instant .rips-google-reviews__reveal,
#rips-contact.rips-reveal-instant .rips-contact__reveal {
  transition: none !important;
  filter: none !important;
}

#rips-notices {
  position: relative;
  isolation: isolate;
  background:
    /* soft vignette */
    radial-gradient(ellipse 85% 55% at 50% 0%, rgba(255, 255, 255, 0.55), transparent 58%),
    /* fine canvas weave */
    repeating-linear-gradient(
      -18deg,
      rgba(10, 38, 71, 0.028) 0 1px,
      transparent 1px 9px
    ),
    repeating-linear-gradient(
      18deg,
      rgba(10, 38, 71, 0.02) 0 1px,
      transparent 1px 11px
    ),
    /* paper grain */
    repeating-radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.06) 0 1px,
      transparent 1px 3px
    ),
    linear-gradient(180deg, #f3f6fa 0%, #e4ebf3 100%);
  border-block: 1px solid rgba(10, 38, 71, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* Notice section — heading fade, columns slide in from sides (paired with JS .rips-notices--visible) */
#rips-notices.rips-notices--pending {
  overflow-x: hidden;
}

.rips-notices-heading {
  transition:
    opacity 0.78s cubic-bezier(0.34, 1.15, 0.55, 1),
    transform 0.85s cubic-bezier(0.34, 1.15, 0.55, 1);
}

.rips-notices-col {
  transition:
    opacity 0.95s cubic-bezier(0.34, 1.12, 0.55, 1),
    transform 1.05s cubic-bezier(0.34, 1.12, 0.55, 1);
}

#rips-notices.rips-notices--pending .rips-notices-heading {
  opacity: 0;
  transform: translateY(0.85rem) scale(0.94);
}

#rips-notices.rips-notices--pending .rips-notices-col--board {
  opacity: 0;
  transform: translate3d(calc(-1 * clamp(1.5rem, 8vw, 5.25rem)), 0.35rem, 0) rotate(-1.8deg) scale(0.91);
  pointer-events: none;
}

#rips-notices.rips-notices--pending .rips-notices-col--cbse {
  opacity: 0;
  transform: translate3d(clamp(1.5rem, 8vw, 5.25rem), 0.35rem, 0) rotate(1.8deg) scale(0.91);
  pointer-events: none;
}

#rips-notices.rips-notices--visible .rips-notices-heading {
  opacity: 1;
  transform: none;
  transition-delay: 0.06s;
}

#rips-notices.rips-notices--visible .rips-notices-col--board,
#rips-notices.rips-notices--visible .rips-notices-col--cbse {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

/* Title first; columns start nearly together from L/R (tiny stagger for polish) */
#rips-notices.rips-notices--visible .rips-notices-col--board {
  transition-delay: 0.17s;
}

#rips-notices.rips-notices--visible .rips-notices-col--cbse {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  #rips-notices .rips-notices-heading,
  #rips-notices .rips-notices-col {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    pointer-events: auto !important;
  }
}

/* Events + Gallery: one surface, one frame, one reveal wave (#rips-events-gallery) */
#rips-events-gallery.rips-events-gallery-combined {
  position: relative;
  isolation: isolate;
  border-left: 5px solid var(--rips-gold);
  border-right: 5px solid var(--rips-gold);
  border-bottom: 1px solid rgba(10, 38, 71, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  background-color: #faf8f4;
  background-image:
    radial-gradient(ellipse 88% 52% at 10% 18%, rgba(201, 162, 39, 0.09), transparent 55%),
    radial-gradient(ellipse 72% 48% at 92% 78%, rgba(10, 38, 71, 0.06), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(201, 162, 39, 0.06), transparent 45%),
    repeating-linear-gradient(
      118deg,
      rgba(10, 38, 71, 0.017) 0 1px,
      transparent 1px 14px
    ),
    repeating-linear-gradient(
      -118deg,
      rgba(10, 38, 71, 0.013) 0 1px,
      transparent 1px 18px
    ),
    linear-gradient(180deg, #fdfcfa 0%, #efe9df 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

#rips-events-gallery #rips-events {
  background: transparent;
}

/* Single scroll reveal for the whole shell — Events block then Gallery block (one stagger) */
#rips-events-gallery.rips-events-gallery--pending {
  overflow-x: hidden;
}

#rips-events-gallery .rips-events-section-heading {
  transition:
    opacity 0.82s cubic-bezier(0.34, 1.12, 0.55, 1),
    transform 0.88s cubic-bezier(0.34, 1.12, 0.55, 1),
    clip-path 0.92s cubic-bezier(0.34, 1.12, 0.55, 1);
}

#rips-events-gallery .rips-events-section-grid > *,
#rips-events-gallery .rips-gallery-home__reveal-item {
  transition:
    opacity 0.85s cubic-bezier(0.34, 1.12, 0.55, 1),
    transform 0.95s cubic-bezier(0.34, 1.12, 0.55, 1),
    filter 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 0.88s cubic-bezier(0.34, 1.12, 0.55, 1);
}

#rips-events-gallery.rips-events-gallery--pending .rips-events-section-heading {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateY(0.75rem) skewX(-2.5deg);
  transform-origin: left center;
}

#rips-events-gallery.rips-events-gallery--pending .rips-events-section-grid > *:nth-child(1) {
  opacity: 0;
  transform: translate3d(calc(-1 * clamp(1rem, 5vw, 3rem)), 0.5rem, 0) rotate(-2deg) scale(0.93);
}

#rips-events-gallery.rips-events-gallery--pending .rips-events-section-grid > *:nth-child(2) {
  opacity: 0;
  transform: translate3d(clamp(1rem, 5vw, 3rem), 0.5rem, 0) rotate(2deg) scale(0.93);
}

#rips-events-gallery.rips-events-gallery--pending .rips-gallery-home__reveal-item {
  opacity: 0;
  transform: translateY(1.15rem) scale(0.94);
}

#rips-events-gallery.rips-events-gallery--pending .rips-gallery-home__reveal-item--heading {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateY(1rem) scale(0.88);
  filter: blur(4px);
}

#rips-events-gallery.rips-events-gallery--pending .rips-gallery-home__reveal-item--empty {
  transform: scale(0.92);
  filter: blur(3px);
}

#rips-events-gallery.rips-events-gallery--pending .rips-gallery-home__reveal-item--stage {
  transform: translate3d(-1.75rem, 0.75rem, 0) rotateY(5deg) scale(0.93);
  transform-origin: right center;
}

#rips-events-gallery.rips-events-gallery--pending .rips-gallery-home__reveal-item--feed {
  transform: translate3d(1.75rem, 0.75rem, 0) rotateY(-5deg) scale(0.93);
  transform-origin: left center;
}

#rips-events-gallery.rips-events-gallery--pending .rips-gallery-home__reveal-item--cta {
  transform: translateY(1.25rem) scale(0.9);
}

#rips-events-gallery .rips-gallery-dual__row {
  perspective: 1000px;
}

#rips-events-gallery.rips-events-gallery--visible .rips-events-section-heading {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateY(0) skewX(0);
}

#rips-events-gallery.rips-events-gallery--visible .rips-events-section-grid > *,
#rips-events-gallery.rips-events-gallery--visible .rips-gallery-home__reveal-item {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 0 0 0);
}

#rips-events-gallery.rips-events-gallery--visible .rips-events-section-heading {
  transition-delay: 0.05s;
}

#rips-events-gallery.rips-events-gallery--visible .rips-events-section-grid > *:nth-child(1) {
  transition-delay: 0.14s;
}

#rips-events-gallery.rips-events-gallery--visible .rips-events-section-grid > *:nth-child(2) {
  transition-delay: 0.23s;
}

#rips-events-gallery.rips-events-gallery--visible .rips-gallery-home__reveal-item--heading {
  transition-delay: 0.32s;
}

#rips-events-gallery.rips-events-gallery--visible .rips-gallery-home__reveal-item--empty {
  transition-delay: 0.32s;
}

#rips-events-gallery.rips-events-gallery--visible .rips-gallery-home__reveal-item--stage {
  transition-delay: 0.4s;
}

#rips-events-gallery.rips-events-gallery--visible .rips-gallery-home__reveal-item--feed {
  transition-delay: 0.48s;
}

#rips-events-gallery.rips-events-gallery--visible .rips-gallery-home__reveal-item--cta {
  transition-delay: 0.56s;
}

@media (prefers-reduced-motion: reduce) {
  #rips-events-gallery .rips-events-section-heading,
  #rips-events-gallery .rips-events-section-grid > *,
  #rips-events-gallery .rips-gallery-home__reveal-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}

/* Events split: school column + birthday celebrations */
.rips-events-split .rips-events-col-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--rips-radius);
  background: rgba(201, 162, 39, 0.2);
  color: var(--rips-navy);
}

.rips-events-split .rips-events-col-heading {
  color: var(--rips-navy);
  letter-spacing: 0.04em;
}

/* School event preview cards — visible gold frame + subtle inner texture */
.rips-event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--rips-radius-lg);
  border: 3px solid rgba(201, 162, 39, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #faf7f0 100%);
  box-shadow:
    0 0 0 2px rgba(10, 38, 71, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 14px 36px rgba(10, 38, 71, 0.1);
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    transform 0.2s ease,
    filter 0.2s ease,
    border-color 0.2s ease;
}

.rips-event-card:hover {
  border-color: #c9a227;
  box-shadow:
    0 0 0 2px rgba(10, 38, 71, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    0 20px 44px rgba(10, 38, 71, 0.16);
  transform: translateY(-3px);
  filter: saturate(1.02);
}

.rips-event-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #e8ecf2, #dfe6ef);
  overflow: hidden;
}

.rips-event-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.rips-event-card:hover .rips-event-card__img {
  transform: scale(1.04);
}

.rips-event-card__carousel {
  height: 100%;
}

.rips-event-card__carousel .carousel-inner,
.rips-event-card__carousel .carousel-item {
  height: 100%;
}

.rips-event-card__control {
  width: 2rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rips-event-card__control .carousel-control-prev-icon,
.rips-event-card__control .carousel-control-next-icon {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background-color: rgba(10, 38, 71, 0.62);
  background-size: 60% 60%;
}

.rips-event-card__media:hover .rips-event-card__control,
.rips-event-card__media:focus-within .rips-event-card__control {
  opacity: 1;
}

.rips-event-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.15rem 1.15rem;
}

.rips-event-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rips-navy);
  margin: 0 0 0.15rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.rips-event-card__excerpt {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--rips-muted);
  flex: 1;
}

.rips-event-card__more {
  align-self: flex-start;
  margin-top: auto;
}

.rips-events-check-more {
  min-width: 12rem;
}

.rips-events-modal-content {
  border: none;
  border-radius: var(--rips-radius-lg);
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(4, 12, 24, 0.35);
}

.rips-events-modal-header {
  border-bottom: 1px solid var(--rips-border);
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.rips-events-modal-body {
  padding: 1.25rem 1.25rem 1.75rem;
  background: #fdfcfa;
}

.rips-events-modal-row {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(10, 38, 71, 0.08);
  scroll-margin-top: 1rem;
}

.rips-events-modal-row:first-of-type {
  padding-top: 0;
}

.rips-events-modal-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rips-events-modal-row__media {
  border-radius: var(--rips-radius);
  overflow: hidden;
  border: 1px solid rgba(10, 38, 71, 0.1);
  background: #eef2f7;
  aspect-ratio: 4 / 3;
}

.rips-events-modal-row__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rips-events-modal-row__tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rips-navy);
  background: rgba(201, 162, 39, 0.22);
  border-radius: 0.3rem;
  margin-bottom: 0.35rem;
}

.rips-events-modal-row__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rips-navy);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.rips-events-modal-row__text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--rips-muted);
  white-space: pre-wrap;
}

@media (max-width: 575.98px) {
  .rips-events-modal-row {
    grid-template-columns: 1fr;
  }

  .rips-events-modal-row__media {
    max-height: 12rem;
  }

  /* Home “Events & Celebrations” modal: full-width sheet with safe vertical space on small screens */
  .modal.rips-modal-pop .rips-events-modal-dialog.modal-dialog-scrollable {
    width: calc(100% - 1rem);
    max-width: none;
    margin: 0.5rem auto;
    max-height: min(90dvh, calc(100% - 1rem));
    min-height: 0;
  }

  .rips-events-modal-header {
    padding: 0.85rem 1rem;
  }

  .rips-events-modal-body {
    padding: 1rem 1rem 1.25rem;
  }
}

/*
 * Events modal: neutralize Bootstrap .modal-dialog motion; animate inner shell via
 * keyframes + class .rips-events-modal-animate--in (added on shown.bs.modal in rips-site.js).
 */
.modal.rips-modal-pop.fade .modal-dialog,
.modal.rips-modal-pop.fade.show .modal-dialog {
  transform: none !important;
  opacity: 1 !important;
  transition: none !important;
}

.modal.rips-modal-pop .rips-events-modal-dialog.modal-dialog-scrollable {
  min-height: 0;
}

.modal.rips-modal-pop .rips-events-modal-animate {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  transform: translate3d(0, 0, 0);
}

.modal.rips-modal-pop .rips-events-modal-dialog.modal-dialog-scrollable .rips-events-modal-animate {
  max-height: 100%;
  overflow: hidden;
}

@keyframes rips-events-modal-pop-in {
  from {
    opacity: 0;
    transform: translate3d(0, 1.35rem, 0) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.modal.rips-modal-pop .rips-events-modal-animate.rips-events-modal-animate--in {
  animation: rips-events-modal-pop-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .modal.rips-modal-pop .rips-events-modal-animate.rips-events-modal-animate--in {
    animation: none !important;
  }
}

.rips-birthday-panel {
  position: relative;
  border-radius: var(--rips-radius-lg);
  overflow: visible;
  border: 1px solid rgba(201, 162, 39, 0.38);
  box-shadow:
    0 22px 50px rgba(10, 38, 71, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  min-height: 18rem;
}

@media (min-width: 992px) {
  .rips-birthday-panel {
    position: sticky;
    top: 5.5rem;
  }
}

.rips-birthday-panel__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--rips-radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(232, 72, 85, 0.12), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(201, 162, 39, 0.14), transparent 42%),
    linear-gradient(168deg, #1a3352 0%, #0d1f33 48%, #122a44 100%);
}

.rips-birthday-panel__sparkles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.rips-birthday-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  left: calc(4% + var(--spark) * 5.8%);
  top: calc(10% + var(--spark) * 4.5%);
  background: radial-gradient(circle at 35% 35%, #ffffff, #fff3a0 55%, rgba(255, 215, 120, 0.35) 72%, transparent 78%);
  box-shadow:
    0 0 8px 2px rgba(255, 235, 160, 0.75),
    0 0 2px 1px rgba(255, 255, 255, 0.95);
  animation: rips-birthday-spark-pop 2.4s ease-in-out infinite;
  animation-delay: calc(var(--spark) * 0.14s);
}

@keyframes rips-birthday-spark-pop {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.2) translateY(4px);
  }
  25% {
    opacity: 1;
    transform: scale(1.15) translateY(0);
  }
  55% {
    opacity: 0.85;
    transform: scale(0.75) translateY(-3px);
  }
  80% {
    opacity: 0;
    transform: scale(0.35) translateY(2px);
  }
}

/* SVG balloons — drift like helium (whole balloon + string moves together) */
.rips-birthday-balloons {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.rips-birthday-balloon-wrap {
  position: absolute;
  width: clamp(3.25rem, 14vw, 4.5rem);
  height: auto;
  transform-origin: 50% 85%;
  will-change: transform;
}

.rips-birthday-balloon-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.rips-birthday-balloon-wrap--a {
  left: 4%;
  top: 2%;
  animation: rips-balloon-drift-a 10s ease-in-out infinite;
}

.rips-birthday-balloon-wrap--b {
  left: 50%;
  top: 0;
  margin-left: clamp(-2.1rem, -7vw, -2.25rem);
  animation: rips-balloon-drift-b 11.5s ease-in-out infinite;
  animation-delay: -2s;
}

.rips-birthday-balloon-wrap--c {
  right: 3%;
  top: 4%;
  animation: rips-balloon-drift-c 9.5s ease-in-out infinite;
  animation-delay: -4.5s;
}

@keyframes rips-balloon-drift-a {
  0% {
    transform: translate(0, 0) rotate(-6deg) scale(1);
  }
  18% {
    transform: translate(10px, -26px) rotate(4deg) scale(1.02);
  }
  38% {
    transform: translate(-6px, -44px) rotate(-3deg) scale(1);
  }
  58% {
    transform: translate(14px, -22px) rotate(6deg) scale(1.03);
  }
  78% {
    transform: translate(-4px, -12px) rotate(-2deg) scale(1);
  }
  100% {
    transform: translate(0, 0) rotate(-6deg) scale(1);
  }
}

@keyframes rips-balloon-drift-b {
  0% {
    transform: translate(0, 0) rotate(3deg) scale(1);
  }
  22% {
    transform: translate(-12px, -32px) rotate(-5deg) scale(1.02);
  }
  45% {
    transform: translate(8px, -48px) rotate(4deg) scale(1);
  }
  68% {
    transform: translate(-10px, -18px) rotate(-4deg) scale(1.03);
  }
  88% {
    transform: translate(6px, -8px) rotate(2deg) scale(1);
  }
  100% {
    transform: translate(0, 0) rotate(3deg) scale(1);
  }
}

@keyframes rips-balloon-drift-c {
  0% {
    transform: translate(0, 0) rotate(5deg) scale(1);
  }
  20% {
    transform: translate(-14px, -20px) rotate(-6deg) scale(1.02);
  }
  42% {
    transform: translate(10px, -40px) rotate(3deg) scale(1);
  }
  64% {
    transform: translate(-8px, -52px) rotate(-4deg) scale(1.03);
  }
  82% {
    transform: translate(12px, -16px) rotate(5deg) scale(1);
  }
  100% {
    transform: translate(0, 0) rotate(5deg) scale(1);
  }
}

.rips-birthday-ribbon--corner {
  position: absolute;
  top: 0.85rem;
  right: 0;
  z-index: 5;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.rips-birthday-ribbon__text {
  display: block;
  padding: 0.55rem 1.65rem 0.55rem 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #ffe4e8 100%);
  color: #9f1239;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1;
  border: 2px solid #fda4af;
  border-right: none;
  clip-path: polygon(0.55rem 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Horizontal ribbon banner — clear “award” ribbon */
.rips-birthday-ribbon--top {
  position: relative;
  z-index: 1;
  margin: 0 auto 1.1rem;
  max-width: 16rem;
  padding: 0.5rem 2.25rem;
  text-align: center;
  background: linear-gradient(180deg, #e11d48 0%, #9f1239 48%, #881337 100%);
  border: 2px solid #fecdd3;
  border-radius: 2px;
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.rips-birthday-ribbon__top-text {
  position: relative;
  z-index: 2;
  display: block;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: none;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.rips-birthday-ribbon__top-notch {
  position: absolute;
  bottom: -10px;
  width: 0;
  height: 0;
  border-style: solid;
  z-index: 1;
}

.rips-birthday-ribbon__top-notch--left {
  left: 0.35rem;
  border-width: 10px 10px 0 0;
  border-color: #6b0f24 transparent transparent transparent;
}

.rips-birthday-ribbon__top-notch--right {
  right: 0.35rem;
  border-width: 10px 0 0 10px;
  border-color: #6b0f24 transparent transparent transparent;
}

.rips-birthday-panel__inner {
  position: relative;
  z-index: 2;
  padding: clamp(5.75rem, 26vw, 7.25rem) 1.35rem 1.65rem;
}

.rips-birthday-panel__title-wrap {
  text-align: center;
  margin-bottom: 1.35rem;
}

.rips-birthday-cake {
  margin: 0 auto 0.75rem;
  max-width: 7.25rem;
}

.rips-birthday-cake-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.32));
}

.rips-birthday-cake-flame {
  transform-origin: center;
  animation: rips-birthday-cake-flicker 0.85s ease-in-out infinite;
}

.rips-birthday-cake-flame--1 {
  animation-delay: 0s;
}

.rips-birthday-cake-flame--2 {
  animation-delay: 0.2s;
}

.rips-birthday-cake-flame--3 {
  animation-delay: 0.4s;
}

@keyframes rips-birthday-cake-flicker {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  45% {
    opacity: 0.75;
    transform: scale(1.18) translateY(-0.5px);
  }
}

.rips-birthday-panel__title {
  font-family: var(--rips-font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: #fff8e8;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.rips-birthday-panel__date {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 248, 232, 0.72);
  letter-spacing: 0.04em;
}

/* Featured celebration portrait (avatar-style slot; image URL can be passed from backend later) */
.rips-birthday-spotlight {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.rips-birthday-spotlight__frame {
  flex-shrink: 0;
  width: clamp(5.5rem, 22vw, 7.25rem);
  height: clamp(5.5rem, 22vw, 7.25rem);
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 224, 160, 0.85), rgba(198, 161, 90, 0.95));
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rips-birthday-spotlight__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(26, 18, 10, 0.28);
  background: rgba(0, 0, 0, 0.15);
}

.rips-birthday-spotlight__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.rips-birthday-list__item {
  position: relative;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.65rem;
  margin-bottom: 0.5rem;
  border-radius: var(--rips-radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.rips-birthday-list__item:last-child {
  margin-bottom: 0;
}

.rips-birthday-list__avatar {
  flex-shrink: 0;
}

.rips-birthday-list__photo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.rips-birthday-list__ribbon {
  flex-shrink: 0;
  width: 1.5rem;
  align-self: stretch;
  min-height: 3.15rem;
  position: relative;
  background: linear-gradient(180deg, #f43f5e 0%, #e11d48 22%, #c9a227 52%, #2563eb 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 50% 100%, 0 calc(100% - 12px));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    2px 0 8px rgba(0, 0, 0, 0.2);
  border-radius: 2px 2px 0 0;
}

.rips-birthday-list__content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.rips-birthday-list__name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.015em;
}

.rips-birthday-list__meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 248, 232, 0.72);
}

.rips-birthday-empty {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 248, 232, 0.82);
  padding: 0.35rem 0.25rem 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .rips-birthday-spark,
  .rips-birthday-balloon-wrap {
    animation: none !important;
  }

  .rips-birthday-spark {
    opacity: 0.75;
    transform: none;
  }

  .rips-birthday-cake-flame {
    animation: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Home gallery — photos: vertical strip + TV “fall in”; videos: 3D reel        */
/* -------------------------------------------------------------------------- */

#rips-gallery.rips-gallery-dual {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
  color: var(--rips-ink);
}

/* Slightly wider gap between Photos and Videos columns (Bootstrap row gutter) */
#rips-gallery .rips-gallery-dual__row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1rem;
}

@media (min-width: 992px) {
  #rips-gallery .rips-gallery-dual__row {
    --bs-gutter-x: 2rem;
  }
}

/* Videos column: space below heading — 3D reel draws above its container */
#rips-gallery .rips-gallery-home__reveal-item--feed .rips-gallery-dual__label {
  margin-bottom: clamp(1.35rem, 3.5vw, 2.25rem);
}

#rips-gallery #rips-gallery-videos {
  padding-top: clamp(0.65rem, 2vw, 1.35rem);
}

/* 3D reel extends past column — avoid clipping */
#rips-gallery .rips-gallery-dual__row > .col-12.col-lg-4:last-child {
  overflow: visible;
}

#rips-events-gallery.rips-events-gallery-combined #rips-gallery.rips-gallery-dual {
  padding-block: clamp(1.5rem, 4vw, 2.5rem) 0;
  margin-top: clamp(0.25rem, 1.5vw, 0.75rem);
}

#rips-events-gallery.rips-events-gallery-combined #rips-gallery.rips-gallery-dual::before {
  content: "";
  display: block;
  width: min(11rem, 42vw);
  height: 2px;
  margin: 0 auto clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 162, 39, 0.55),
    transparent
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.rips-gallery-dual__label {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.rips-gallery-dual__badge {
  flex-shrink: 0;
  width: 4px;
  min-height: 3.25rem;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--rips-gold) 0%, rgba(10, 38, 71, 0.55) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.rips-gallery-dual__badge--video {
  background: linear-gradient(180deg, rgba(10, 38, 71, 0.85) 0%, var(--rips-gold) 100%);
}

.rips-gallery-dual__heading {
  color: var(--rips-navy);
  letter-spacing: -0.02em;
}

/* Photos: vertical thumbnail strip beside / above TV */
.rips-gallery-photos {
  min-width: 0;
}

.rips-gallery-tv__stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .rips-gallery-tv__stage {
    flex-direction: row;
    align-items: stretch;
    gap: 0.85rem;
  }
}

.rips-gallery-tv__film-outer {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  border-radius: 0.55rem;
  padding: 0.4rem 0.45rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(236, 241, 248, 0.96) 100%);
  border: 1px solid rgba(10, 38, 71, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@media (min-width: 576px) {
  .rips-gallery-tv__film-outer {
    width: min(7.5rem, 26vw);
    max-height: min(42vh, 22rem);
  }
}

.rips-gallery-tv__film {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 0.2rem 0.15rem;
  max-height: min(36vh, 14rem);
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 38, 71, 0.28) transparent;
}

@media (min-width: 576px) {
  .rips-gallery-tv__film {
    max-height: min(42vh, 22rem);
  }
}

.rips-gallery-tv__film--vertical {
  flex-direction: column;
}

.rips-gallery-tv__film::-webkit-scrollbar {
  width: 6px;
}

.rips-gallery-tv__film::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(10, 38, 71, 0.22);
}

.rips-gallery-tv__cell {
  flex: 0 0 auto;
}

.rips-gallery-tv__thumb {
  display: block;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 0.4rem;
  overflow: hidden;
  cursor: pointer;
  background: #dfe6f0;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.rips-gallery-tv__thumb img {
  display: block;
  width: 100%;
  max-width: 6.5rem;
  height: 4.25rem;
  margin: 0 auto;
  object-fit: cover;
}

@media (min-width: 576px) {
  .rips-gallery-tv__thumb img {
    width: 100%;
    max-width: none;
    height: 3.6rem;
  }
}

.rips-gallery-tv__cell.is-active .rips-gallery-tv__thumb {
  border-color: rgba(201, 162, 39, 0.95);
  box-shadow: 0 4px 12px rgba(10, 38, 71, 0.2);
}

.rips-gallery-tv__cell:nth-child(odd) .rips-gallery-tv__thumb {
  transform: rotate(-1.25deg);
}

.rips-gallery-tv__cell:nth-child(even) .rips-gallery-tv__thumb {
  transform: rotate(1.1deg);
}

.rips-gallery-tv__cell.is-active .rips-gallery-tv__thumb,
.rips-gallery-tv__thumb:hover {
  transform: rotate(0deg) translateY(-1px);
}

.rips-gallery-tv {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.rips-gallery-tv__bezel {
  position: relative;
  border-radius: 0.65rem;
  padding: 0.45rem;
  background: linear-gradient(160deg, #2a3444 0%, #121820 42%, #0a0f16 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 0 2px rgba(201, 162, 39, 0.35),
    0 14px 36px rgba(10, 22, 40, 0.28);
}

.rips-gallery-tv__brand {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%);
  width: 2.25rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0.5;
  pointer-events: none;
}

.rips-gallery-tv__viewport {
  position: relative;
  width: 100%;
  max-height: min(65vh, 36rem);
  aspect-ratio: 16 / 9;
  border-radius: 0.35rem;
  overflow: hidden;
  background: #05070c;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.rips-gallery-tv__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  will-change: transform;
}

.rips-gallery-tv__img--fall {
  animation: rips-gallery-tv-fall 0.78s cubic-bezier(0.25, 0.9, 0.32, 1) both;
}

@keyframes rips-gallery-tv-fall {
  0% {
    transform: translateY(-42%) rotate(-9deg) scale(0.82);
    filter: brightness(0.88) blur(0.5px);
    opacity: 0.92;
  }
  55% {
    transform: translateY(4%) rotate(1.5deg) scale(1.02);
    filter: brightness(0.98);
    opacity: 1;
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    filter: brightness(1);
    opacity: 1;
  }
}

.rips-gallery-tv__caption {
  color: var(--rips-navy);
  line-height: 1.35;
}

/* Videos: 3D cylinder reel — one smooth rotateY step = 360°/n (continuous, no bounce) */
.rips-gallery-videos {
  min-width: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

/* Prev / next — below reel so 3D cards never cover the controls */
.rips-gallery-videos__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.rips-gallery-videos__nav-btn {
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--rips-navy);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(10, 38, 71, 0.22);
  box-shadow: 0 1px 3px rgba(10, 22, 40, 0.08);
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.rips-gallery-videos__nav-btn--next {
  color: #fff;
  background: linear-gradient(180deg, var(--rips-gold) 0%, #a88620 100%);
  border-color: rgba(10, 38, 71, 0.28);
}

.rips-gallery-videos__nav-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.rips-gallery-videos__nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rips-gallery-videos__shuffle {
  position: relative;
  width: 100%;
  min-height: min(54vw, 18rem);
  max-width: 28rem;
  margin-inline: auto;
  overflow: visible;
  perspective: 1200px;
  perspective-origin: 50% 40%;
  --reel-r: min(10.5rem, 34vw);
  flex: 0 0 auto;
}

@media (min-width: 992px) {
  .rips-gallery-videos__shuffle {
    margin-inline: 0;
    max-width: none;
  }
}

.rips-gallery-videos__reel {
  --reel-deg: 0deg;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(var(--reel-deg));
  transition: transform 0.92s cubic-bezier(0.22, 0.05, 0.18, 1);
  will-change: transform;
}

.rips-gallery-videos__reel--instant {
  transition: none !important;
}

.rips-gallery-videos__card {
  position: absolute;
  left: 50%;
  top: 0;
  width: 92%;
  margin-left: -46%;
  max-width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #0a1628;
  border: 2px solid rgba(201, 162, 39, 0.55);
  box-shadow:
    0 12px 32px rgba(10, 22, 40, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: rotateY(calc(360deg / var(--reel-n, 3) * var(--slot, 0))) translateZ(var(--reel-r));
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  pointer-events: none;
  cursor: default;
  transition:
    opacity 0.35s ease,
    filter 0.35s ease,
    box-shadow 0.35s ease;
}

.rips-gallery-videos__card.is-reel-front {
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
  filter: saturate(1.05);
  z-index: 50;
  box-shadow:
    0 16px 40px rgba(10, 22, 40, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.rips-gallery-videos__card:not(.is-reel-front) {
  opacity: 0.82;
  filter: saturate(0.9) brightness(0.94);
}

.rips-gallery-videos__card-media {
  position: relative;
  background: #000;
}

.rips-gallery-videos__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rips-gallery-videos__card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 38, 71, 0.38));
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s ease;
}

.rips-gallery-videos__card-play:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(10, 38, 71, 0.55));
}

.rips-gallery-videos__card-label {
  margin: 0;
  padding: 0.55rem 0.75rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
  background: linear-gradient(180deg, rgba(10, 38, 71, 0.2) 0%, rgba(10, 38, 71, 0.92) 100%);
}

/* Full-screen video viewer (embed + Watch on YouTube + close) */
.rips-gallery-videos__viewer {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.rips-gallery-videos__viewer:not([hidden]).rips-gallery-videos__viewer--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rips-gallery-videos__viewer-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(4, 12, 24, 0.78);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.rips-gallery-videos__viewer-panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 56rem);
  max-height: min(92vh, 48rem);
  display: flex;
  flex-direction: column;
  border-radius: 0.85rem;
  overflow: hidden;
  background: linear-gradient(165deg, #121a28 0%, #0a1628 55%, #060d16 100%);
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 56px rgba(4, 10, 22, 0.55);
}

.rips-gallery-videos__viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 22, 40, 0.55);
}

.rips-gallery-videos__viewer-title {
  flex: 1 1 8rem;
  min-width: 0;
  color: #f1f5f9;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rips-gallery-videos__viewer-frame {
  flex: 1 1 auto;
  min-height: 0;
  background: #000;
}

.rips-gallery-videos__viewer-frame .rips-gallery-videos__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .rips-gallery-videos__viewer {
    transition: none;
  }

  .rips-gallery-videos__card {
    transition: none !important;
  }

  .rips-gallery-videos__reel {
    transition: none !important;
  }

  .rips-gallery-tv__img--fall {
    animation: none !important;
  }

  .rips-gallery-tv__film {
    scroll-behavior: auto;
  }
}

.rips-gallery-home__split {
  position: relative;
  z-index: 1;
}

.rips-gallery-home__stage {
  height: 100%;
}

.rips-gallery-home__monitor {
  position: relative;
  padding: 0.5rem 0 0;
}

.rips-gallery-home__monitor-glow {
  position: absolute;
  left: 50%;
  top: -4%;
  width: 92%;
  height: 42%;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 90% at 50% 0%,
    rgba(201, 162, 39, 0.2) 0%,
    rgba(255, 255, 255, 0.08) 45%,
    transparent 70%
  );
  filter: blur(2px);
}

.rips-gallery-home__monitor-bezel {
  position: relative;
  border-radius: 14px;
  padding: 11px 12px 13px;
  background: linear-gradient(155deg, #1e2a3a 0%, #0a1628 42%, #060d18 100%);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.35),
    0 0 0 2px rgba(10, 38, 71, 0.5),
    0 20px 40px rgba(10, 22, 40, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (min-width: 992px) {
  .rips-gallery-home__monitor-bezel {
    padding: 13px 15px 17px;
    border-radius: 15px;
  }
}

@media (min-width: 1200px) {
  .rips-gallery-home__monitor-bezel {
    padding: 14px 16px 18px;
    border-radius: 16px;
  }
}

@media (max-width: 991.98px) {
  .rips-gallery-home__col-screen .rips-gallery-home__monitor {
    max-width: 36rem;
    margin-inline: auto;
  }
}

.rips-gallery-home__monitor-notch {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 56px;
  height: 5px;
  margin-left: -28px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.2));
  z-index: 2;
}

.rips-gallery-home__screen {
  border-radius: 8px;
  overflow: hidden;
  background: #05070a;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.65);
}

.rips-gallery-home__screen-pad {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 4px;
  background: linear-gradient(145deg, #0d1118 0%, #020306 100%);
}

.rips-gallery-home__screen-live {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
  background: #000;
  transform-origin: center center;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease,
    opacity 0.45s ease;
}

.rips-gallery-home__screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rips-gallery-home__screen-video-wrap {
  position: absolute;
  inset: 0;
  background: #000;
}

.rips-gallery-home__screen-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rips-gallery-home__screen-live--awaken {
  animation: rips-gallery-screen-awaken 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rips-gallery-screen-awaken {
  0% {
    opacity: 0.82;
    transform: scale(0.9);
    filter: brightness(0.88) saturate(0.92);
  }

  55% {
    opacity: 1;
    transform: scale(1.035);
    filter: brightness(1.05) saturate(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) saturate(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rips-gallery-home__screen-live--awaken {
    animation: none !important;
  }

  .rips-gallery-home__screen-live {
    transition: none;
  }
}

.rips-gallery-home__screen-title {
  margin: 1rem 0 0;
  font-family: var(--rips-font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--rips-navy);
  min-height: 1.5em;
}

.rips-gallery-home__feed-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rips-gallery-home__feed-label {
  letter-spacing: 0.14em;
}

.rips-gallery-home__feed-split {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.rips-gallery-home__subsection-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rips-navy-soft);
}

@media (max-width: 575.98px) {
  .rips-gallery-home__feed-head {
    flex-direction: column;
    align-items: center !important;
    text-align: center;
  }

  .rips-gallery-home__feed-head > .d-flex {
    justify-content: center;
    width: 100%;
  }
}

.rips-gallery-home__feed-connector {
  display: none;
  align-items: center;
  gap: 0;
  margin: 0 0 0.75rem;
  opacity: 0.75;
}

@media (min-width: 992px) {
  .rips-gallery-home__feed-connector {
    display: flex;
  }
}

.rips-gallery-home__feed-connector-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.55), rgba(10, 38, 71, 0.12));
  border-radius: 2px;
}

.rips-gallery-home__feed-connector-arrow {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent rgba(201, 162, 39, 0.65);
  margin-left: -1px;
}

.rips-gallery-home__mask {
  flex: 1;
  min-height: 10rem;
  overflow: hidden;
}

@media (min-width: 576px) {
  .rips-gallery-home__mask {
    min-height: 11.5rem;
  }
}

@media (min-width: 992px) {
  .rips-gallery-home__mask {
    min-height: 12.5rem;
  }
}

.rips-gallery-home__track {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 1rem;
  padding: 1.1rem 0.85rem 1.35rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rips-gallery-home__track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* One thumbnail per “page”: snap step scroll (videos / photos split) */
.rips-gallery-home__mask--step {
  min-height: 12.5rem;
  min-width: 0;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(244, 247, 251, 0.95) 100%);
  border: 1px solid rgba(10, 38, 71, 0.1);
}

#rips-gallery .rips-gallery-home__track--step {
  width: 100%;
  min-width: 0;
  gap: 0;
  padding: 0.5rem 0 0.65rem;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}

#rips-gallery .rips-gallery-home__track--step .rips-gallery-home__cell {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  scroll-snap-align: center;
  padding-inline: 0.2rem;
  box-sizing: border-box;
}

.rips-gallery-home__cell {
  flex: 0 0 min(72vw, 188px);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

@media (min-width: 400px) {
  .rips-gallery-home__cell {
    flex-basis: min(58vw, 200px);
  }
}

@media (min-width: 576px) {
  .rips-gallery-home__cell {
    flex-basis: min(40vw, 214px);
  }
}

@media (min-width: 992px) {
  .rips-gallery-home__cell {
    flex-basis: min(52%, 220px);
  }
}

.rips-gallery-home__cell.is-active {
  transform: translateX(-2px) scale(1.04);
  z-index: 2;
}

.rips-gallery-home__cell.is-active .rips-gallery-home__frame {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 0 0 2px rgba(201, 162, 39, 0.85),
    0 16px 32px rgba(10, 38, 71, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .rips-gallery-home__cell {
    transition: none;
  }

  .rips-gallery-home__cell.is-active {
    transform: none;
  }
}

.rips-gallery-home__tile {
  --rips-gallery-mat: #f2ebe0;
  --rips-gallery-wood: #3d2c24;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--rips-navy);
  background: transparent;
}

.rips-gallery-home__tile:focus-visible {
  outline: 2px solid var(--rips-gold);
  outline-offset: 4px;
}

.rips-gallery-home__frame {
  display: block;
  padding: 8px;
  border-radius: 4px;
  background: linear-gradient(150deg, #fff 0%, var(--rips-gallery-mat) 55%, #e8dfd2 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(201, 162, 39, 0.35),
    0 10px 22px rgba(10, 38, 71, 0.1);
  transition: box-shadow 0.35s ease;
}

.rips-gallery-home__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0c0f;
  border-radius: 2px;
}

.rips-gallery-home__tile--video .rips-gallery-home__media {
  aspect-ratio: 16 / 9;
}

.rips-gallery-home__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.rips-gallery-home__cell:hover .rips-gallery-home__img,
.rips-gallery-home__cell:focus-within .rips-gallery-home__img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .rips-gallery-home__cell:hover .rips-gallery-home__img,
  .rips-gallery-home__cell:focus-within .rips-gallery-home__img {
    transform: none;
  }
}

.rips-gallery-home__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 38, 71, 0.45) 100%);
  pointer-events: none;
}

.rips-gallery-home__film-corner {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.25) 2px,
    transparent 2px,
    transparent 5px
  );
  mask-image: linear-gradient(180deg, #000 0%, transparent 35%);
}

.rips-gallery-home__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.rips-gallery-home__tile-label {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rips-navy-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rips-gallery-home__empty {
  color: var(--rips-muted);
  font-style: italic;
}

.rips-band-navy {
  background: linear-gradient(135deg, var(--rips-navy) 0%, var(--rips-navy-soft) 100%);
}

.rips-section-title {
  font-size: clamp(1.6rem, 3vw, 2.125rem);
  font-weight: 600;
  color: var(--rips-navy);
  margin-bottom: 1rem;
  letter-spacing: -0.012em;
}

.rips-band-navy .rips-section-title {
  color: #fff;
}

.rips-section-lead {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--rips-muted);
}

.rips-band-navy .rips-section-lead {
  color: rgba(255, 255, 255, 0.8);
}

/* ----- Google-style testimonials (Maps / Business Profile look) ----- */
.rips-google-reviews {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(155deg, #071a2e 0%, var(--rips-navy) 38%, #0d3a5c 100%);
}

.rips-google-reviews__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 15% 20%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 75%, rgba(66, 133, 244, 0.08), transparent 50%),
    repeating-linear-gradient(
      -12deg,
      rgba(255, 255, 255, 0.02) 0 1px,
      transparent 1px 48px
    );
  opacity: 1;
}

.rips-google-reviews .container-xxl {
  z-index: 1;
}

.rips-google-reviews__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.95);
  margin-bottom: 0.65rem;
}

.rips-google-reviews__title {
  font-family: var(--rips-font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.rips-google-reviews__lead {
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.rips-google-reviews__aggregate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--rips-radius-lg);
  background-color: rgba(255, 255, 255, 0.07);
  background-image:
    repeating-linear-gradient(
      -18deg,
      rgba(255, 255, 255, 0.04) 0 1px,
      transparent 1px 11px
    ),
    repeating-linear-gradient(
      18deg,
      rgba(0, 0, 0, 0.06) 0 1px,
      transparent 1px 14px
    ),
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 255, 255, 0.1), transparent 55%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.rips-google-reviews__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}

.rips-google-reviews__brand-text {
  letter-spacing: -0.02em;
}

.rips-google-reviews__score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.rips-google-reviews__stars {
  display: inline-flex;
  gap: 0.12rem;
}

.rips-google-reviews__star-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: #fbbc04;
  flex-shrink: 0;
}

.rips-google-reviews__rating-num {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.rips-google-reviews__rating-count {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
}

.rips-btn-google-maps {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.rips-btn-google-maps:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff !important;
  transform: translateY(-1px);
}

.rips-google-reviews__ext {
  font-size: 0.85em;
  opacity: 0.85;
}

/* ----- Google reviews carousel + uniform cards ----- */
.rips-google-reviews__carousel {
  position: relative;
  padding-inline: clamp(2.75rem, 8vw, 4.5rem);
  padding-bottom: 2.35rem;
}

.rips-google-reviews__carousel-inner {
  overflow: visible;
}

.rips-google-reviews__carousel.carousel-fade .carousel-item {
  transition-duration: 0.55s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.rips-google-reviews__slide {
  min-height: 1px;
}

.rips-google-reviews__slide--quad {
  --rips-review-card-min-h: clamp(15.75rem, 28vw, 18.5rem);
}

.rips-google-reviews__slide--single {
  --rips-review-card-min-h: clamp(14rem, 38vw, 18rem);
}

.rips-google-reviews__carousel--mobile {
  padding-inline: clamp(1.15rem, 5vw, 2.75rem);
  padding-bottom: 2rem;
}

.rips-google-reviews__indicators {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 1.35rem auto 0;
  width: auto;
  max-width: 100%;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}

.rips-google-reviews__indicators [data-bs-target] {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 1.65rem;
  height: 0.22rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
  text-indent: -9999px;
  cursor: pointer;
  transition:
    width 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.rips-google-reviews__indicators [data-bs-target]:hover,
.rips-google-reviews__indicators [data-bs-target]:focus-visible {
  background: rgba(255, 255, 255, 0.42);
  outline: none;
}

.rips-google-reviews__indicators [data-bs-target].active {
  width: 2.15rem;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.85), rgba(255, 214, 120, 0.95));
  box-shadow: 0 0 14px rgba(201, 162, 39, 0.35);
}

.rips-google-reviews__control {
  width: clamp(2.5rem, 7vw, 3.25rem);
  opacity: 0.92;
}

.rips-google-reviews__control .carousel-control-prev-icon,
.rips-google-reviews__control .carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
  filter: invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.rips-google-reviews__control:hover,
.rips-google-reviews__control:focus {
  opacity: 1;
}

.rips-google-review-card {
  position: relative;
  padding: 1.35rem 1.45rem 1.2rem;
  border-radius: 0.65rem;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(0, 0, 0, 0.08) 100%),
    rgba(12, 28, 48, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transition:
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.rips-google-review-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.22;
  background-image: repeating-linear-gradient(
    -18deg,
    rgba(255, 255, 255, 0.03) 0 1px,
    transparent 1px 11px
  );
}

.rips-google-review-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.88;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 162, 39, 0.15) 18%,
    rgba(201, 162, 39, 0.75) 50%,
    rgba(201, 162, 39, 0.15) 82%,
    transparent 100%
  );
}

.rips-google-review-card:hover {
  border-color: rgba(201, 162, 39, 0.28);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(201, 162, 39, 0.12) inset,
    0 0 28px rgba(201, 162, 39, 0.08);
  transform: translateY(-2px);
}

.rips-google-review-card > * {
  position: relative;
  z-index: 1;
}

.rips-google-review-card--uniform {
  display: flex;
  flex-direction: column;
  min-height: var(--rips-review-card-min-h, clamp(17.5rem, 42vw, 20rem));
  height: 100%;
}

.rips-google-review-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rips-google-review-card__stars {
  display: flex;
  gap: 0.12rem;
  margin-bottom: 0.85rem;
}

.rips-google-review-card__star {
  width: 1rem;
  height: 1rem;
  color: #fbbc04;
}

.rips-google-review-card__quote-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.rips-google-review-card__quote-wrap .rips-google-review-card__quote {
  margin-bottom: 0;
}

.rips-google-review-card__quote {
  position: relative;
  margin: 0 0 0.65rem;
  padding: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  border: none;
  flex: 1 1 auto;
}

.rips-google-review-card__quote-inner {
  display: inline;
  vertical-align: baseline;
}

.rips-google-review-card--collapsible:not(.is-quote-expanded) .rips-google-review-card__quote-inner {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.rips-google-review-card--collapsible.is-quote-expanded .rips-google-review-card__quote-inner {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.rips-google-review-card__toggle {
  align-self: flex-start;
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(201, 162, 39, 0.98);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.rips-google-review-card__toggle:hover,
.rips-google-review-card__toggle:focus-visible {
  color: #fff;
}

.rips-google-review-card__toggle:focus-visible {
  outline: 2px solid rgba(201, 162, 39, 0.65);
  outline-offset: 2px;
}

.rips-google-review-card__qmark {
  display: inline;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  line-height: 0;
  color: rgba(201, 162, 39, 0.5);
  vertical-align: -0.12em;
  margin-right: 0.12rem;
}

.rips-google-review-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
  margin-top: auto;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rips-google-review-card__meta {
  flex: 1 1 auto;
  min-width: 0;
}

.rips-google-review-card__avatar {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--rips-navy);
  background: linear-gradient(155deg, #ffffff 0%, #ebe6dc 100%);
  box-shadow:
    0 0 0 2px rgba(201, 162, 39, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.rips-google-review-card__author {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.rips-google-review-card__time {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.1rem;
}

.rips-google-review-card__badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

/* Testimonials — scroll reveal (paired with rips-site.js) */
#rips-testimonials.rips-google-reviews--pending {
  overflow-x: hidden;
}

.rips-google-reviews__reveal {
  transition:
    opacity 0.85s cubic-bezier(0.34, 1.12, 0.55, 1),
    transform 0.95s cubic-bezier(0.34, 1.12, 0.55, 1),
    filter 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

#rips-testimonials.rips-google-reviews--pending .rips-google-reviews__reveal {
  opacity: 0;
}

#rips-testimonials.rips-google-reviews--pending .rips-google-reviews__reveal--intro {
  transform: translate3d(0, 2.25rem, -40px) rotateX(10deg) scale(0.88);
  filter: blur(6px);
}

#rips-testimonials.rips-google-reviews--pending .rips-google-reviews__reveal--aggregate {
  transform: translateY(1.35rem) rotate(-1.2deg) scale(0.9);
}

#rips-testimonials.rips-google-reviews--pending .rips-google-reviews__slide--single > .rips-google-reviews__reveal--card:nth-child(1) {
  transform: translate3d(0, 2rem, 0) scale(0.93);
}

#rips-testimonials.rips-google-reviews--pending .rips-google-reviews__slide--quad > .rips-google-reviews__reveal--card:nth-child(1) {
  transform: translate3d(-1.1rem, 2rem, 0) rotate(-3deg) scale(0.94);
}

#rips-testimonials.rips-google-reviews--pending .rips-google-reviews__slide--quad > .rips-google-reviews__reveal--card:nth-child(2) {
  transform: translate3d(-0.35rem, 2.1rem, 0) scale(0.92);
}

#rips-testimonials.rips-google-reviews--pending .rips-google-reviews__slide--quad > .rips-google-reviews__reveal--card:nth-child(3) {
  transform: translate3d(0.35rem, 2.1rem, 0) scale(0.92);
}

#rips-testimonials.rips-google-reviews--pending .rips-google-reviews__slide--quad > .rips-google-reviews__reveal--card:nth-child(4) {
  transform: translate3d(1.1rem, 2rem, 0) rotate(3deg) scale(0.94);
}

#rips-testimonials.rips-google-reviews--visible .rips-google-reviews__reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

#rips-testimonials.rips-google-reviews--visible .rips-google-reviews__reveal--intro {
  transition-delay: 0.04s;
}

#rips-testimonials.rips-google-reviews--visible .rips-google-reviews__reveal--aggregate {
  transition-delay: 0.14s;
}

#rips-testimonials.rips-google-reviews--visible .rips-google-reviews__slide--single > .rips-google-reviews__reveal--card:nth-child(1) {
  transition-delay: 0.2s;
}

#rips-testimonials.rips-google-reviews--visible .rips-google-reviews__slide--quad > .rips-google-reviews__reveal--card:nth-child(1) {
  transition-delay: 0.2s;
}

#rips-testimonials.rips-google-reviews--visible .rips-google-reviews__slide--quad > .rips-google-reviews__reveal--card:nth-child(2) {
  transition-delay: 0.26s;
}

#rips-testimonials.rips-google-reviews--visible .rips-google-reviews__slide--quad > .rips-google-reviews__reveal--card:nth-child(3) {
  transition-delay: 0.32s;
}

#rips-testimonials.rips-google-reviews--visible .rips-google-reviews__slide--quad > .rips-google-reviews__reveal--card:nth-child(4) {
  transition-delay: 0.38s;
}

@media (prefers-reduced-motion: reduce) {
  #rips-testimonials .rips-google-reviews__reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

@media (max-width: 575.98px) {
  .rips-google-reviews__aggregate {
    flex-direction: column;
    text-align: center;
  }

  .rips-google-review-card__badge {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

/* ----- Contact band (structured tiles + steps) ----- */
.rips-main .rips-contact-section {
  padding-block: clamp(2.25rem, 5vw, 3.35rem);
}

.rips-contact-section {
  position: relative;
  background:
    radial-gradient(ellipse 90% 60% at 10% 0%, rgba(201, 162, 39, 0.07), transparent 55%),
    linear-gradient(180deg, #fbf9f5 0%, #f0ebe3 100%);
  border-top: 1px solid rgba(10, 38, 71, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Contact — scroll reveal */
#rips-contact.rips-contact-section--pending {
  overflow-x: hidden;
}

.rips-contact__reveal {
  transition:
    opacity 0.82s cubic-bezier(0.34, 1.12, 0.55, 1),
    transform 0.92s cubic-bezier(0.34, 1.12, 0.55, 1);
}

.rips-contact__reveal--head {
  transition:
    opacity 0.82s cubic-bezier(0.34, 1.12, 0.55, 1),
    transform 0.92s cubic-bezier(0.34, 1.12, 0.55, 1),
    clip-path 0.88s cubic-bezier(0.34, 1.12, 0.55, 1);
}

#rips-contact.rips-contact-section--pending .rips-contact__reveal {
  opacity: 0;
}

#rips-contact.rips-contact-section--pending .rips-contact__reveal--head {
  clip-path: inset(0 0 100% 0);
  transform: translateY(-0.65rem);
}

#rips-contact.rips-contact-section--pending .rips-contact__reveal--tiles {
  transform: translate3d(-2.25rem, 0.35rem, 0) rotate(-1.5deg) scale(0.93);
}

#rips-contact.rips-contact-section--pending .rips-contact__reveal--map {
  transform: translate3d(2.25rem, 0.35rem, 0) rotate(1.5deg) scale(0.93);
}

#rips-contact.rips-contact-section--visible .rips-contact__reveal {
  opacity: 1;
  transform: none;
}

#rips-contact.rips-contact-section--visible .rips-contact__reveal--head {
  clip-path: inset(0 0 0 0);
}

#rips-contact.rips-contact-section--visible .rips-contact__reveal--head {
  transition-delay: 0.04s;
}

#rips-contact.rips-contact-section--visible .rips-contact__reveal--tiles {
  transition-delay: 0.14s;
}

#rips-contact.rips-contact-section--visible .rips-contact__reveal--map {
  transition-delay: 0.22s;
}

@media (prefers-reduced-motion: reduce) {
  #rips-contact .rips-contact__reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}

.rips-contact-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rips-gold);
  margin-bottom: 0.5rem;
}

.rips-contact-title {
  font-family: var(--rips-font-display);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--rips-navy);
  margin-bottom: 0.45rem;
  line-height: 1.15;
}

.rips-contact-lead {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--rips-muted);
  font-weight: 500;
  max-width: 32rem;
}

.rips-contact-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.rips-contact-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  background-image:
    repeating-linear-gradient(
      -12deg,
      rgba(10, 38, 71, 0.025) 0 1px,
      transparent 1px 10px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(201, 162, 39, 0.04) 0 1px,
      transparent 1px 14px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 247, 240, 0.9) 100%);
  border: 1px solid rgba(10, 38, 71, 0.09);
  border-radius: var(--rips-radius-lg);
  box-shadow:
    0 8px 26px rgba(10, 38, 71, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.rips-contact-tile:hover {
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow:
    0 12px 36px rgba(10, 38, 71, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  color: inherit;
}

.rips-contact-tile--static {
  cursor: default;
}

.rips-contact-tile--static:hover {
  transform: translateY(-1px);
}

.rips-contact-tile--wide {
  grid-column: 1 / -1;
}

.rips-contact-tile__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--rips-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.22), rgba(201, 162, 39, 0.08));
  color: var(--rips-navy);
}

.rips-contact-tile__icon .rips-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.rips-contact-tile__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rips-muted);
  margin-bottom: 0.3rem;
}

.rips-contact-tile__value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--rips-navy);
  line-height: 1.45;
  word-break: break-word;
}

a.rips-contact-tile__value--link {
  text-decoration: none;
  color: var(--rips-navy);
  transition: color 0.15s ease;
}

a.rips-contact-tile__value--link:hover {
  color: var(--rips-gold-hover);
}

.rips-contact-tile__value--link + .rips-contact-tile__value--link {
  margin-top: 0.25rem;
}

.rips-contact-tile__hint {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rips-gold);
}

.rips-contact-map-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.rips-contact-map-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rips-muted);
  margin-bottom: 0.5rem;
}

.rips-contact-map {
  position: relative;
  flex: 1;
  min-height: 16rem;
  border-radius: var(--rips-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(10, 38, 71, 0.1);
  box-shadow:
    0 12px 36px rgba(10, 38, 71, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  background:
    repeating-linear-gradient(-12deg, rgba(10, 38, 71, 0.02) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, #e8e4dc 0%, #dfe8f0 100%);
}

.rips-contact-map__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rips-contact-map__fallback {
  min-height: 16rem;
  background: rgba(255, 255, 255, 0.5);
}

.rips-contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rips-navy);
  text-decoration: none;
}

.rips-contact-map-link:hover {
  color: var(--rips-gold-hover);
}

@media (max-width: 575.98px) {
  .rips-contact-tiles {
    grid-template-columns: 1fr;
  }
}

.rips-section-subtitle {
  max-width: 40rem;
  color: var(--rips-muted);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
}

/* Cards & pillars */
.rips-card {
  background: #fff;
  border: 1px solid var(--rips-border);
  border-radius: var(--rips-radius-lg);
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(10, 38, 71, 0.06);
}

.rips-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--rips-radius);
  background: rgba(201, 162, 39, 0.2);
  color: var(--rips-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.rips-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--rips-navy);
  letter-spacing: -0.025em;
}

.rips-pillar {
  height: 100%;
  padding: 1.75rem;
  border-radius: var(--rips-radius-lg);
  border: 1px solid var(--rips-border);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rips-pillar:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 16px 40px rgba(10, 38, 71, 0.08);
}

.rips-pillar-step {
  font-family: var(--rips-font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--rips-gold);
  display: block;
  margin-bottom: 0.75rem;
}

.rips-pillar-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--rips-navy);
  letter-spacing: -0.025em;
}

/* Notice TV board */
.rips-notice-tv {
  border-radius: var(--rips-radius-lg);
  border: 1px solid rgba(10, 38, 71, 0.32);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.04) 0 7px,
      rgba(0, 0, 0, 0.03) 7px 14px
    ),
    linear-gradient(165deg, #1f2f44 0%, #0a223f 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    0 18px 38px rgba(4, 12, 24, 0.32);
  padding: 0.9rem;
}

.rips-notice-tv-head {
  color: #f4f7ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.rips-notice-tv-screen {
  border-radius: 0.9rem;
  padding: 0.65rem;
  min-height: 14rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(rgba(120, 180, 220, 0.08), rgba(120, 180, 220, 0.08)),
    radial-gradient(circle at 30% 12%, rgba(145, 220, 255, 0.25), transparent 55%),
    linear-gradient(180deg, rgba(2, 7, 14, 0.86) 0%, rgba(6, 14, 27, 0.9) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(120, 210, 255, 0.16),
    inset 0 -8px 22px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: 50% 42%;
}

.rips-notice-tv-screen:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow:
    inset 0 0 0 2px rgba(201, 162, 39, 0.35),
    inset 0 -8px 22px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(201, 162, 39, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  .rips-notice-tv-screen.is-reading {
    transform: scale(1.075);
    filter: saturate(1.05);
    border-color: rgba(201, 162, 39, 0.58);
    box-shadow:
      inset 0 0 0 2px rgba(201, 162, 39, 0.38),
      inset 0 -8px 22px rgba(0, 0, 0, 0.22),
      0 14px 34px rgba(7, 18, 36, 0.42);
    z-index: 3;
    position: relative;
  }
}

.rips-notice-screen-inner {
  padding: 0.45rem 0.35rem 0.35rem;
  max-height: min(22rem, 52vh);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, 0.5) rgba(255, 255, 255, 0.06);
}

.rips-notice-screen-inner.is-pass-in {
  animation: rips-notice-pass-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rips-notice-pass-in {
  from {
    opacity: 0.35;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rips-notice-screen-inner.is-pass-in {
    animation: none;
  }
  .rips-notice-tv-body {
    transition: none;
  }
}

/* Title + date (left) and file / no-file (right) share one row */
.rips-notice-tv-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.rips-notice-tv-top-main {
  flex: 1 1 auto;
  min-width: 0;
}

.rips-notice-tv-title {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(1.06rem, 2.2vw, 1.22rem);
  font-weight: 700;
  line-height: 1.35;
}

.rips-notice-tv-date {
  display: inline-block;
  margin-top: 0.35rem;
  color: rgba(244, 247, 255, 0.78);
  font-size: 0.78rem;
}

.rips-notice-tv-body {
  margin-top: 0;
  color: rgba(248, 251, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition:
    max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    margin-top 0.24s ease,
    transform 0.24s ease;
}

.rips-notice-tv-screen.is-reading .rips-notice-tv-body {
  margin-top: 0.65rem;
  max-height: 22rem;
  opacity: 1;
  transform: translateY(0);
}

.rips-notice-tv-preview {
  margin-top: 0.65rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.2);
}

.rips-notice-tv-preview-img {
  display: block;
  width: 100%;
  max-height: 12rem;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.15);
}

.rips-notice-tv-attachment {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.35rem;
  max-width: min(15rem, 50%);
  text-align: right;
}

.rips-notice-tv-no-file {
  display: block;
  width: 100%;
  padding: 0.4rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px dashed rgba(201, 162, 39, 0.55);
  background: rgba(201, 162, 39, 0.12);
  color: rgba(255, 248, 230, 0.95);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.25;
}

/* Large PDF / file glyph above the “View file” link (not inside the button) */
.rips-notice-tv-file-offer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  width: 100%;
}

.rips-notice-tv-file-symbol {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  line-height: 0;
  filter: drop-shadow(0 3px 12px rgba(201, 162, 39, 0.42));
}

/* Visibly larger than the “View file” control below */
.rips-notice-tv-file-icon--large {
  width: clamp(3.75rem, 10vw, 5rem);
  height: clamp(3.75rem, 10vw, 5rem);
  flex-shrink: 0;
  color: rgba(236, 214, 140, 0.98);
}

.rips-notice-tv-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 0.4rem;
  background: rgba(201, 162, 39, 0.35);
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.25;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rips-notice-tv-file-label {
  text-align: center;
}

@media (max-width: 420px) {
  .rips-notice-tv-top {
    flex-direction: column;
    align-items: stretch;
  }

  .rips-notice-tv-attachment {
    max-width: none;
    align-self: stretch;
  }

  .rips-notice-tv-file-offer {
    align-items: flex-end;
  }

  .rips-notice-tv-no-file {
    width: auto;
    max-width: 100%;
  }
}

.rips-notice-tv-file:hover,
.rips-notice-tv-file:focus-visible {
  background: rgba(201, 162, 39, 0.48);
  color: #fff;
}

.rips-notice-tv-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin: 0.65rem 0 0.55rem;
}

.rips-notice-nav-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  line-height: 1;
}

.rips-notice-nav-btn:hover,
.rips-notice-nav-btn:focus-visible {
  background: rgba(201, 162, 39, 0.3);
}

.rips-notice-tv-ticker {
  /* Exactly two compact rows visible; rest queue below the fold */
  --rips-notice-slot: 5.1rem;
  max-height: calc(2 * var(--rips-notice-slot) + 0.95rem);
  overflow: hidden;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 8, 16, 0.46);
  padding: 0.5rem;
}

.rips-notice-scroll-track {
  will-change: transform;
}

.rips-notice-tv .rips-notice-item {
  background: rgba(240, 247, 255, 0.96);
  border: 1px solid rgba(10, 38, 71, 0.16);
  border-left: 4px solid var(--rips-gold);
  border-radius: 0.5rem;
  padding: 0.55rem 0.6rem;
  margin-bottom: 0.45rem;
  min-height: var(--rips-notice-slot, 5.1rem);
  max-height: var(--rips-notice-slot, 5.1rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.rips-notice-item-compact {
  min-width: 0;
  width: 100%;
}

.rips-notice-item-compact .rips-notice-item-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.15rem;
}

.rips-notice-item.rips-notice-fade-in {
  opacity: 0;
  transform: translateY(6px);
}

.rips-notice-item-title {
  margin: 0 0 0.25rem;
  color: var(--rips-ink);
  font-weight: 700;
  line-height: 1.35;
}

.rips-notice-item-date {
  color: var(--rips-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .rips-notice-tv-ticker {
    max-height: calc(2 * var(--rips-notice-slot, 5.1rem) + 0.95rem);
    overflow: hidden;
  }

  .rips-notice-screen-inner {
    max-height: min(18rem, 40vh);
  }
}

/* Footer — left quick links | center brand + social + visitors | right contact */
.rips-footer {
  background: linear-gradient(180deg, #071a2e 0%, var(--rips-navy) 35%, #0a1f35 100%);
  color: rgba(255, 255, 255, 0.88);
  padding-block: 1.85rem 0;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rips-footer-main {
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rips-footer-logo {
  width: 7rem;
  height: 7rem;
  object-fit: contain;
  border-radius: 0.45rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.rips-footer-brand {
  font-family: var(--rips-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  line-height: 1.25;
  color: #fff;
  max-width: 22rem;
}

.rips-footer-tagline {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.38;
  max-width: 28rem;
}

.rips-footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.95);
  margin-bottom: 0.5rem;
}

.rips-footer-links--stack a {
  display: block;
  padding: 0.16rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.rips-footer-links--stack a:hover {
  color: #fff;
  padding-left: 0.2rem;
}

.rips-footer-center {
  padding-inline: 0.35rem;
}

.rips-footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.rips-footer-social-btn:hover {
  background: rgba(201, 162, 39, 0.25);
  border-color: rgba(201, 162, 39, 0.45);
  color: #fff;
  transform: translateY(-2px);
}

.rips-footer-visitors {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
}

.rips-footer-visitors__label {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(201, 162, 39, 0.95);
}

.rips-footer-visitors__num {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #fff;
}

.rips-footer-contact-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.9);
  margin-bottom: 0.15rem;
}

.rips-footer-contact-text {
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.rips-footer-contact-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
}

.rips-footer-contact-link:hover {
  color: var(--rips-gold-hover);
}

.rips-footer-base {
  padding: 0.95rem 0 1.2rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

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

@media (min-width: 576px) {
  .rips-footer-base-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 0.75rem;
  }
}

.rips-footer-copy {
  color: rgba(255, 255, 255, 0.58);
}

.rips-footer-powered {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

.rips-footer-powered-link {
  color: rgba(201, 162, 39, 0.95);
  font-weight: 600;
  text-decoration: none;
}

.rips-footer-powered-link:hover {
  color: var(--rips-gold-hover);
  text-decoration: underline;
}

/* Scroll top */
.rips-scrolltop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--rips-gold);
  color: var(--rips-navy);
  font-size: 1.5rem;
  z-index: 1080;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(10, 38, 71, 0.2);
}

.rips-scrolltop.active,
.rips-scrolltop:focus-visible {
  opacity: 1;
  visibility: visible;
}

.rips-scrolltop:hover {
  color: var(--rips-navy);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* Homepage intro — black hold, title write-on + shine, center-split shutter */
/* -------------------------------------------------------------------------- */

body.rips-home-intro-pending,
body.rips-inner-intro-pending {
  overflow: hidden;
}

.rips-home-intro {
  position: fixed;
  inset: 0;
  z-index: 10040;
  pointer-events: none;
  visibility: visible;
}

.rips-home-intro.rips-home-intro--finished {
  display: none;
}

.rips-home-intro-shutter {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: #000;
  transform: translateX(0);
  will-change: transform;
  transition: transform 0.88s cubic-bezier(0.65, 0, 0.2, 1);
}

.rips-home-intro-shutter--left {
  left: 0;
}

.rips-home-intro-shutter--right {
  right: 0;
}

.rips-home-intro.rips-home-intro--open .rips-home-intro-shutter--left {
  transform: translateX(-100%);
}

.rips-home-intro.rips-home-intro--open .rips-home-intro-shutter--right {
  transform: translateX(100%);
}

.rips-home-intro-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.rips-home-intro.rips-home-intro--title .rips-home-intro-center {
  opacity: 1;
}

.rips-home-intro.rips-home-intro--open .rips-home-intro-center {
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
}

.rips-home-intro-title {
  text-align: center;
  padding: 0 max(0.75rem, env(safe-area-inset-left, 0px)) 0 max(0.75rem, env(safe-area-inset-right, 0px));
  max-width: 100%;
  width: min(100%, 52rem);
  box-sizing: border-box;
}

.rips-home-intro-line {
  margin: 0;
  /* Do not clip: long one-line title must show full word (e.g. SCHOOL). Reveal uses clip-path on the span. */
  overflow: visible;
  line-height: 1.22;
}

.rips-home-intro-line + .rips-home-intro-line {
  margin-top: 0.55em;
}

.rips-home-intro-line-text {
  display: inline-block;
  /* vw-only middle term was ~10px on phones; add rem floor so “Welcome” + school name stay readable */
  font-size: clamp(1.05rem, 0.65rem + 3.6vw, 2.65rem);
  letter-spacing: 0.03em;
  text-transform: none;
  white-space: nowrap;
  /* Extra end space so last letter + letter-spacing isn’t clipped by gradient/clip */
  padding-inline-end: 0.12em;
  background: linear-gradient(
    100deg,
    #8a7018 0%,
    var(--rips-gold) 18%,
    #fffef6 42%,
    #f0e6b8 52%,
    var(--rips-gold) 68%,
    #fff8e0 82%,
    #6b5712 100%
  );
  background-size: 240% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

.rips-home-intro.rips-home-intro--title .rips-home-intro-line--welcome .rips-home-intro-line-text {
  animation:
    rips-home-intro-write 1.3s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    rips-home-intro-text-shine 3.2s ease-in-out infinite;
}

.rips-home-intro.rips-home-intro--title .rips-home-intro-line--name .rips-home-intro-line-text {
  animation:
    rips-home-intro-write 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.52s forwards,
    rips-home-intro-text-shine 3.2s ease-in-out infinite 0.52s;
}

@keyframes rips-home-intro-write {
  from {
    clip-path: inset(0 100% 0 0);
  }

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

@keyframes rips-home-intro-text-shine {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rips-home-intro-line-text {
    clip-path: inset(0 0 0 0) !important;
    animation: none !important;
  }

  .rips-home-intro-shutter {
    transition-duration: 0.01ms;
  }

  .rips-home-intro-center {
    transition-duration: 0.01ms;
  }
}

@media (max-width: 575.98px) {
  .rips-home-intro-line--welcome .rips-home-intro-line-text {
    font-size: clamp(1.15rem, 0.75rem + 3.8vw, 2.2rem);
  }

  .rips-home-intro-line--name .rips-home-intro-line-text {
    font-size: clamp(1.2rem, 0.85rem + 3.5vw, 2.65rem);
    line-height: 1.18;
  }
}

@media (max-width: 389.98px) {
  /* Very narrow phones: wrap the school name only so lines stay readable without horizontal scroll */
  .rips-home-intro-line--name .rips-home-intro-line-text {
    white-space: normal;
  }

  .rips-home-intro-title {
    width: 100%;
  }
}

/* -------------------------------------------------------------------------- */
/* Inner pages — bell + rich loader + same center-split shutter as home       */
/* -------------------------------------------------------------------------- */

.rips-inner-page-intro {
  position: fixed;
  inset: 0;
  z-index: 10035;
  pointer-events: none;
  visibility: visible;
}

.rips-inner-page-intro.rips-inner-page-intro--finished {
  display: none;
}

.rips-inner-page-intro-shutter {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: #030910;
  transform: translateX(0);
  will-change: transform;
  transition: transform 0.88s cubic-bezier(0.65, 0, 0.2, 1);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.06);
}

.rips-inner-page-intro-shutter--left {
  left: 0;
}

.rips-inner-page-intro-shutter--right {
  right: 0;
}

.rips-inner-page-intro.rips-inner-page-intro--open .rips-inner-page-intro-shutter--left {
  transform: translateX(-100%);
}

.rips-inner-page-intro.rips-inner-page-intro--open .rips-inner-page-intro-shutter--right {
  transform: translateX(100%);
}

.rips-inner-page-intro-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  opacity: 1;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.rips-inner-intro-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  width: min(100%, 26rem);
}

.rips-inner-intro-stack--bell-only {
  align-items: center;
  gap: 1.55rem;
}

/* --- Bell stage: centered, large, glow + ripples when ringing --- */
.rips-inner-intro-bell-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6.35rem;
  margin: 0;
}

.rips-inner-intro-stack--bell-only .rips-inner-intro-bell-stage {
  margin-bottom: 0;
}

/* Loader card below bell — layered glow, sparkles, orbits, shimmer bar */
.rips-inner-intro-loader {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 7.5rem;
  width: min(100%, 17.5rem);
  padding: 1.15rem 1.35rem 1.25rem;
  border-radius: 1.15rem;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(155deg, rgba(15, 23, 42, 0.72) 0%, rgba(3, 9, 16, 0.94) 48%, rgba(8, 15, 28, 0.9) 100%);
  border: 1px solid rgba(201, 162, 39, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 22px 56px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(201, 162, 39, 0.06);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0s linear 0.45s;
}

.rips-inner-page-intro--loading .rips-inner-intro-loader {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.rips-inner-page-intro:not(.rips-inner-page-intro--loading) .rips-inner-intro-loader {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.45rem) scale(0.985);
  pointer-events: none;
}

.rips-inner-intro-loader__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.rips-inner-intro-loader__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.55;
  animation: rips-inner-loader-glow-drift 7s ease-in-out infinite;
}

.rips-inner-intro-loader__glow--a {
  width: 120%;
  height: 85%;
  top: -42%;
  left: -28%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.35) 0%, transparent 68%);
}

.rips-inner-intro-loader__glow--b {
  width: 95%;
  height: 90%;
  bottom: -48%;
  right: -32%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
  animation-delay: -2.2s;
}

.rips-inner-intro-loader__glow--c {
  width: 70%;
  height: 70%;
  top: 18%;
  left: 8%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 65%);
  animation: rips-inner-loader-glow-pulse 4.5s ease-in-out infinite;
  filter: blur(28px);
}

@keyframes rips-inner-loader-glow-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(6%, 4%) scale(1.06);
    opacity: 0.68;
  }
}

@keyframes rips-inner-loader-glow-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(1.08);
  }
}

.rips-inner-intro-loader__spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 250, 235, 0.95);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.65);
  opacity: 0;
  animation: rips-inner-loader-spark 2.8s ease-in-out infinite;
}

.rips-inner-intro-loader__spark--1 {
  top: 18%;
  left: 14%;
  animation-delay: 0s;
}

.rips-inner-intro-loader__spark--2 {
  top: 62%;
  left: 8%;
  width: 2px;
  height: 2px;
  animation-delay: 0.45s;
}

.rips-inner-intro-loader__spark--3 {
  top: 28%;
  right: 12%;
  animation-delay: 0.9s;
}

.rips-inner-intro-loader__spark--4 {
  bottom: 22%;
  right: 20%;
  width: 2px;
  height: 2px;
  animation-delay: 1.35s;
}

.rips-inner-intro-loader__spark--5 {
  bottom: 38%;
  left: 42%;
  animation-delay: 1.8s;
}

@keyframes rips-inner-loader-spark {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4) translateY(4px);
  }

  15% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  55% {
    opacity: 0.45;
    transform: scale(0.85) translateY(-3px);
  }
}

.rips-inner-intro-loader__main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  width: 100%;
}

.rips-inner-intro-loader__rings {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rips-inner-intro-loader__orbit {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  border-color: transparent;
}

.rips-inner-intro-loader__orbit--outer {
  inset: 0;
  border-width: 2px;
  border-top-color: rgba(201, 162, 39, 0.92);
  border-right-color: rgba(201, 162, 39, 0.22);
  border-bottom-color: rgba(148, 163, 184, 0.12);
  border-left-color: rgba(148, 163, 184, 0.08);
  animation: rips-inner-loader-orbit-cw 1.35s cubic-bezier(0.55, 0.1, 0.3, 1) infinite;
}

.rips-inner-intro-loader__orbit--mid {
  inset: 0.55rem;
  border-width: 2px;
  border-bottom-color: rgba(96, 165, 250, 0.55);
  border-left-color: rgba(96, 165, 250, 0.2);
  border-top-color: rgba(148, 163, 184, 0.1);
  border-right-color: rgba(148, 163, 184, 0.08);
  animation: rips-inner-loader-orbit-ccw 1.05s cubic-bezier(0.55, 0.1, 0.3, 1) infinite;
}

.rips-inner-intro-loader__orbit--inner {
  inset: 1.05rem;
  border-width: 1px;
  border-top-color: rgba(255, 251, 235, 0.35);
  border-right-color: rgba(201, 162, 39, 0.45);
  border-bottom-color: rgba(201, 162, 39, 0.12);
  border-left-color: rgba(255, 255, 255, 0.06);
  animation: rips-inner-loader-orbit-cw 0.85s linear infinite;
}

.rips-inner-page-intro:not(.rips-inner-page-intro--loading) .rips-inner-intro-loader__orbit--outer,
.rips-inner-page-intro:not(.rips-inner-page-intro--loading) .rips-inner-intro-loader__orbit--mid,
.rips-inner-page-intro:not(.rips-inner-page-intro--loading) .rips-inner-intro-loader__orbit--inner {
  animation: none;
}

@keyframes rips-inner-loader-orbit-cw {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rips-inner-loader-orbit-ccw {
  to {
    transform: rotate(-360deg);
  }
}

.rips-inner-intro-loader__core {
  position: relative;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fffef8, #c9a227 55%, #6b5718);
  box-shadow:
    0 0 12px rgba(201, 162, 39, 0.75),
    0 0 28px rgba(201, 162, 39, 0.25);
  animation: rips-inner-loader-core-pulse 1.1s ease-in-out infinite;
}

.rips-inner-page-intro:not(.rips-inner-page-intro--loading) .rips-inner-intro-loader__core {
  animation: none;
}

@keyframes rips-inner-loader-core-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.12);
    opacity: 0.92;
  }
}

.rips-inner-intro-loader__track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.rips-inner-intro-loader__shimmer {
  display: block;
  height: 100%;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 162, 39, 0.15) 20%,
    rgba(253, 224, 71, 0.55) 50%,
    rgba(201, 162, 39, 0.2) 80%,
    transparent
  );
  animation: rips-inner-loader-shimmer 1.45s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.rips-inner-page-intro:not(.rips-inner-page-intro--loading) .rips-inner-intro-loader__shimmer {
  animation: none;
}

@keyframes rips-inner-loader-shimmer {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(320%);
  }
}

.rips-inner-intro-loader__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.rips-inner-intro-bell-aura {
  position: absolute;
  width: clamp(5.25rem, 32vw, 7.25rem);
  height: clamp(5.25rem, 32vw, 7.25rem);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 162, 39, 0.22) 0%,
    rgba(201, 162, 39, 0.06) 45%,
    transparent 68%
  );
  opacity: 0.85;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  pointer-events: none;
}

.rips-inner-intro-bell-stage--ring .rips-inner-intro-bell-aura {
  animation: rips-inner-bell-aura-pulse 0.55s ease-in-out 4;
}

@keyframes rips-inner-bell-aura-pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.rips-inner-intro-bell-ripples {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.rips-inner-intro-bell-ripple {
  position: absolute;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  border: 2px solid rgba(201, 162, 39, 0.55);
  opacity: 0;
  transform: scale(0.6);
}

.rips-inner-intro-bell-stage--ring .rips-inner-intro-bell-ripple {
  animation: rips-inner-bell-ripple-out 1.15s cubic-bezier(0.22, 0.9, 0.35, 1) infinite;
}

.rips-inner-intro-bell-stage--ring .rips-inner-intro-bell-ripple:nth-child(1) {
  animation-delay: 0s;
}

.rips-inner-intro-bell-stage--ring .rips-inner-intro-bell-ripple:nth-child(2) {
  animation-delay: 0.22s;
}

.rips-inner-intro-bell-stage--ring .rips-inner-intro-bell-ripple:nth-child(3) {
  animation-delay: 0.44s;
}

@keyframes rips-inner-bell-ripple-out {
  0% {
    opacity: 0.65;
    transform: scale(0.65);
  }

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

.rips-inner-intro-bell {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 20px rgba(201, 162, 39, 0.25));
}

.rips-inner-intro-bell__motion {
  display: block;
  transform-origin: 50% 11%;
  will-change: transform;
}

.rips-inner-intro-bell__svg {
  display: block;
  width: clamp(3.95rem, 21vw, 5.45rem);
  height: auto;
}

.rips-inner-intro-bell-stage--ring .rips-inner-intro-bell__motion {
  animation: rips-inner-bell-swing-main 0.48s cubic-bezier(0.34, 1.25, 0.64, 1) 4;
}

.rips-inner-intro-bell__clapper-group {
  transform-box: fill-box;
  transform-origin: 50% 64%;
}

.rips-inner-intro-bell-stage--ring .rips-inner-intro-bell__clapper-group {
  animation: rips-inner-bell-clapper 0.19s cubic-bezier(0.45, 0, 0.55, 1.5) 10;
}

@keyframes rips-inner-bell-swing-main {
  0%,
  100% {
    transform: rotate(0deg);
  }

  12% {
    transform: rotate(-22deg);
  }

  28% {
    transform: rotate(18deg);
  }

  45% {
    transform: rotate(-14deg);
  }

  62% {
    transform: rotate(11deg);
  }

  78% {
    transform: rotate(-7deg);
  }

  90% {
    transform: rotate(3deg);
  }
}

@keyframes rips-inner-bell-clapper {
  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(11deg);
  }

  75% {
    transform: rotate(-11deg);
  }
}

.rips-inner-page-intro.rips-inner-page-intro--open .rips-inner-page-intro-center {
  opacity: 0;
  transition: opacity 0.35s ease 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  .rips-inner-page-intro-shutter {
    transition-duration: 0.01ms;
  }

  .rips-inner-page-intro-center {
    transition-duration: 0.01ms;
  }

  .rips-inner-intro-loader__glow,
  .rips-inner-intro-loader__spark,
  .rips-inner-intro-loader__orbit--outer,
  .rips-inner-intro-loader__orbit--mid,
  .rips-inner-intro-loader__orbit--inner,
  .rips-inner-intro-loader__core,
  .rips-inner-intro-loader__shimmer {
    animation: none !important;
  }

  .rips-inner-intro-loader__orbit--outer,
  .rips-inner-intro-loader__orbit--mid,
  .rips-inner-intro-loader__orbit--inner {
    opacity: 0.85;
  }

  .rips-inner-intro-bell-stage--ring .rips-inner-intro-bell__motion,
  .rips-inner-intro-bell-stage--ring .rips-inner-intro-bell__clapper-group,
  .rips-inner-intro-bell-stage--ring .rips-inner-intro-bell-ripple,
  .rips-inner-intro-bell-stage--ring .rips-inner-intro-bell-aura {
    animation: none !important;
  }
}

/* PT Sans utilities — same faces as Google Fonts snippet; use when you need explicit weight/style */
.pt-sans-regular {
  font-family: "PT Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.pt-sans-bold {
  font-family: var(--rips-font-body);
  font-weight: 700;
  font-style: normal;
}

.pt-sans-regular-italic {
  font-family: var(--rips-font-body);
  font-weight: 400;
  font-style: italic;
}

.pt-sans-bold-italic {
  font-family: var(--rips-font-body);
  font-weight: 700;
  font-style: italic;
}

/* Lobster Two — display / accent */
.lobster-two-regular {
  font-family: "Lobster Two", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* ----- About page (standalone) ----- */
body.rips-public.rips-about-page .rips-about-tabs-section,
body.rips-public.rips-about-page .rips-about-tabs-section [id] {
  scroll-margin-top: clamp(5rem, 12vw, 7.5rem);
}

.rips-page-hero {
  position: relative;
  color: #fff;
}

.rips-page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 12% 20%, rgba(201, 162, 39, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 75%, rgba(255, 255, 255, 0.06), transparent 52%),
    linear-gradient(135deg, var(--rips-navy) 0%, #071a2e 45%, var(--rips-navy-soft) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
}

/* Photo under navy wash — --rips-hero-photo set inline (About page) */
.rips-page-hero__bg--photo {
  background-image:
    radial-gradient(ellipse 80% 55% at 12% 20%, rgba(201, 162, 39, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 75%, rgba(255, 255, 255, 0.07), transparent 52%),
    linear-gradient(
      135deg,
      rgba(10, 38, 71, 0.88) 0%,
      rgba(7, 26, 46, 0.84) 42%,
      rgba(18, 58, 92, 0.9) 100%
    ),
    var(--rips-hero-photo, none);
}

/* About hero: keep about2 visible and reduce heavy overlay so subject area is not hidden */
body.rips-public.rips-about-page .rips-page-hero__bg--photo {
  background-image:
    radial-gradient(ellipse 72% 46% at 14% 20%, rgba(201, 162, 39, 0.16), transparent 58%),
    radial-gradient(ellipse 68% 48% at 88% 74%, rgba(255, 255, 255, 0.06), transparent 54%),
    linear-gradient(135deg, rgba(10, 38, 71, 0.72) 0%, rgba(7, 26, 46, 0.68) 44%, rgba(18, 58, 92, 0.74) 100%),
    var(--rips-hero-photo, none);
  background-position: var(--rips-hero-photo-position, center);
  background-size: cover;
  background-repeat: no-repeat;
}

@media (max-width: 991.98px) {
  body.rips-public.rips-about-page .rips-page-hero__bg--photo {
    background-position: 50% 37%;
  }
}

.rips-page-hero__title {
  font-family: var(--rips-font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
  color: #fff;
}

.rips-page-hero__lead {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
}

.rips-page-breadcrumb__list {
  --bs-breadcrumb-divider: "›";
  font-size: 0.88rem;
}

.rips-page-breadcrumb__list .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.45);
}

.rips-page-breadcrumb__list a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.rips-page-breadcrumb__list a:hover {
  color: var(--rips-gold-hover);
  text-decoration: underline;
}

.rips-page-breadcrumb__list .active {
  color: rgba(255, 255, 255, 0.55);
}

/* About page — sleek diagonal tab strip (Bootstrap tabs) */
.rips-about-tabs-section {
  position: relative;
}

.rips-about-tabstrip-scroll {
  margin-bottom: 1.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 38, 71, 0.35) transparent;
  padding-bottom: 4px;
  margin-inline: -0.25rem;
  padding-inline: 0.25rem;
}

.rips-about-tabstrip-scroll::-webkit-scrollbar {
  height: 5px;
}

.rips-about-tabstrip-scroll::-webkit-scrollbar-thumb {
  background: rgba(10, 38, 71, 0.22);
  border-radius: 999px;
}

.rips-about-tabstrip {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-bottom: 1px solid rgba(10, 38, 71, 0.12);
  width: max-content;
  min-width: 100%;
}

.rips-about-tabstrip__item {
  flex: 0 0 auto;
}

.rips-about-tabstrip__btn {
  position: relative;
  display: block;
  margin: 0 0 -1px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: skewX(-11deg);
  transition: filter 0.2s ease;
}

.rips-about-tabstrip__inner {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.38rem 0.95rem 0.48rem;
  margin-right: 0.2rem;
  min-height: 2.35rem;
  transform: skewX(11deg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 38, 71, 0.52);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 244, 0.92) 100%);
  border: 1px solid rgba(10, 38, 71, 0.12);
  border-bottom: 1px solid transparent;
  clip-path: polygon(0.45rem 0, calc(100% - 0.45rem) 0, 100% 100%, 0 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.rips-about-tabstrip__btn:hover .rips-about-tabstrip__inner {
  color: var(--rips-navy);
  background: linear-gradient(180deg, #fff 0%, rgba(201, 162, 39, 0.1) 100%);
  border-color: rgba(201, 162, 39, 0.45);
}

.rips-about-tabstrip__btn.active .rips-about-tabstrip__inner {
  color: #fff;
  background: linear-gradient(135deg, #0a2647 0%, #123a5c 48%, #0e3355 100%);
  border-color: rgba(201, 162, 39, 0.65);
  box-shadow:
    0 10px 24px rgba(10, 38, 71, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.rips-about-tabstrip__btn.active .rips-about-tabstrip__icon {
  color: var(--rips-gold);
}

.rips-about-tabstrip__btn:focus-visible {
  outline: none;
}

.rips-about-tabstrip__btn:focus-visible .rips-about-tabstrip__inner {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(201, 162, 39, 0.75);
}

.rips-about-tabstrip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(10, 38, 71, 0.45);
  transition: color 0.2s ease;
}

.rips-about-tabstrip__btn.active .rips-about-tabstrip__icon {
  color: var(--rips-gold);
}

.rips-about-tabstrip__icon .rips-icon {
  width: 1rem;
  height: 1rem;
}

.rips-about-tabstrip__label {
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .rips-about-tabstrip__inner {
    padding: 0.34rem 0.72rem 0.42rem;
    font-size: 0.68rem;
    gap: 0.3rem;
  }
}

.rips-about-tab-panels {
  position: relative;
  perspective: 1400px;
  perspective-origin: 50% 12%;
  overflow-x: hidden;
  min-height: 10rem;
}

.rips-about-tab-pane {
  transform-origin: 50% 0;
  backface-visibility: hidden;
}

.rips-about-panel-card {
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  border-radius: var(--rips-radius-lg);
  border: 1px solid rgba(10, 38, 71, 0.09);
  background:
    radial-gradient(ellipse 70% 50% at 10% 12%, rgba(201, 162, 39, 0.05), transparent 55%),
    linear-gradient(180deg, #fff 0%, #faf9f6 100%);
  box-shadow: 0 12px 40px rgba(10, 38, 71, 0.06);
}

/* Tab body copy — slightly more air between words and lines for long reads */
.rips-about-tab-panels .rips-about-panel-card {
  word-spacing: 0.06em;
}

.rips-about-tab-panels .rips-section-title {
  letter-spacing: 0.02em;
  word-spacing: 0.1em;
}

.rips-about-tab-panels .rips-section-lead,
.rips-about-tab-panels .rips-section-subtitle {
  line-height: 1.82;
  word-spacing: 0.05em;
  letter-spacing: 0.015em;
}

.rips-about-tab-panels .rips-about-panel-card p {
  line-height: 1.82;
  word-spacing: 0.05em;
  letter-spacing: 0.012em;
}

.rips-about-tab-panels .rips-about-message-body p {
  line-height: 1.85;
  word-spacing: 0.06em;
  letter-spacing: 0.012em;
}

.rips-about-tab-panels .rips-about-vision-list__item {
  line-height: 1.82;
  word-spacing: 0.05em;
  letter-spacing: 0.01em;
}

.rips-about-tab-panels .rips-about-vision-hub--grid .rips-about-vision-list__item {
  line-height: 1.55;
  margin-bottom: 0.45rem;
  letter-spacing: 0.008em;
}

.rips-about-tab-panels .rips-about-vision-hub--grid .rips-about-vision-list__item:last-child {
  margin-bottom: 0;
}

.rips-about-tab-panels .rips-about-signature__line {
  line-height: 1.65;
  word-spacing: 0.04em;
  letter-spacing: 0.02em;
}

.rips-about-message-body {
  font-size: 1.04rem;
  line-height: 1.75;
}

.rips-about-message-body p:last-child {
  margin-bottom: 0 !important;
}

/* Leadership portraits — identical slot for Principal, Director, Chairman, President */
.rips-about-msg-photo--portrait {
  position: relative;
  width: 100%;
  max-width: min(500px, 100%);
  height: min(600px, 74vh);
  min-height: 420px;
  margin-inline: auto;
  border-radius: var(--rips-radius-lg);
  border: 1px solid rgba(10, 38, 71, 0.1);
  background: linear-gradient(180deg, #f8f6f2 0%, #ece8e0 100%);
  box-shadow: 0 10px 28px rgba(10, 38, 71, 0.08);
  overflow: hidden;
}

.rips-about-msg-photo--portrait__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.rips-about-signature {
  border-top: 1px solid rgba(10, 38, 71, 0.1);
  padding-top: 1rem;
}

.rips-about-signature__line:first-child {
  font-style: italic;
  color: var(--rips-muted);
  margin-bottom: 0.65rem !important;
}

.rips-about-signature__line:nth-child(2) {
  font-weight: 700;
  color: var(--rips-navy);
  font-size: 1.02rem;
}

.rips-about-signature__line:nth-child(3) {
  font-weight: 600;
  color: var(--rips-navy-soft);
}

.rips-about-signature__line:nth-child(n + 4) {
  font-size: 0.92rem;
  color: var(--rips-muted);
  line-height: 1.45;
}

/* Mobile / stacked layout — shorter slot than desktop, slightly higher face crop */
@media (max-width: 767.98px) {
  .rips-about-msg-photo--portrait {
    width: 100%;
    max-width: min(440px, 100%);
    height: min(480px, 58vh);
    min-height: 340px;
  }

  .rips-about-msg-photo--portrait__img {
    object-position: center 18%;
  }
}

/* Small phones — full column width cap, compact height, tighter radius */
@media (max-width: 575.98px) {
  .rips-about-msg-photo--portrait {
    max-width: 100%;
    height: min(400px, 52vh);
    min-height: 260px;
    border-radius: var(--rips-radius);
    box-shadow: 0 6px 20px rgba(10, 38, 71, 0.07);
  }

  .rips-about-msg-photo--portrait__img {
    object-position: center 15%;
  }
}

/* Very narrow / short viewports — avoid dominating the fold */
@media (max-width: 389.98px) {
  .rips-about-msg-photo--portrait {
    height: min(340px, 48vh);
    min-height: 220px;
  }
}

/* Landscape phones — shallow band so message text stays reachable */
@media (max-width: 767.98px) and (orientation: landscape) and (max-height: 460px) {
  .rips-about-msg-photo--portrait {
    max-width: min(220px, 42vw);
    height: min(200px, 38vh);
    min-height: 160px;
    margin-inline: auto;
  }

  .rips-about-msg-photo--portrait__img {
    object-position: center 20%;
  }
}

@keyframes rips-tab-reveal {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateY(-7deg) translate3d(12px, 0, -8px);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg) translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes rips-tab-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.rips-tab-anim--reveal {
  animation: rips-tab-reveal 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rips-tab-anim--rise {
  animation: rips-tab-rise 0.52s cubic-bezier(0.33, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .rips-tab-anim--reveal,
  .rips-tab-anim--rise {
    animation: none !important;
  }
}

.rips-about-vision-block {
  max-width: min(100%, 92rem);
}

.rips-about-vision-block__lead {
  max-width: 42rem;
}

.rips-about-vision-block__head {
  margin-bottom: 0.75rem;
}

.rips-about-vision-block__head .rips-section-title {
  margin-bottom: 0.4rem;
}

.rips-about-tab-panels .rips-about-vision-block__lead {
  line-height: 1.58;
}

.rips-about-vision-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.rips-about-vision-list__item {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
  line-height: 1.65;
  color: var(--rips-ink);
}

.rips-about-vision-list__idx {
  flex-shrink: 0;
  min-width: 1.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(201, 162, 39, 0.95);
}

.rips-about-vision-list__body {
  min-width: 0;
}

.rips-about-tab-photo {
  position: relative;
  margin: 0;
  border-radius: var(--rips-radius-lg);
  border: 1px solid rgba(10, 38, 71, 0.1);
  background: linear-gradient(180deg, #f8f6f2 0%, #ece8e0 100%);
  box-shadow: 0 10px 28px rgba(10, 38, 71, 0.08);
  overflow: hidden;
}

.rips-about-collage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 4.25rem;
  grid-auto-flow: dense;
  gap: 0.45rem;
}

.rips-about-collage__item {
  position: relative;
  margin: 0;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(10, 38, 71, 0.14);
  background: #f6f3ee;
  box-shadow:
    0 10px 24px rgba(10, 38, 71, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  grid-column: span 1;
  grid-row: span 1;
  transition: none;
  will-change: auto;
}

.rips-about-collage__item--1 { grid-column: span 2; grid-row: span 2; }
.rips-about-collage__item--2 { grid-column: span 2; grid-row: span 1; }
.rips-about-collage__item--3 { grid-column: span 1; grid-row: span 2; }
.rips-about-collage__item--4 { grid-column: span 1; grid-row: span 1; }
.rips-about-collage__item--5 { grid-column: span 2; grid-row: span 1; }
.rips-about-collage__item--6 { grid-column: span 1; grid-row: span 1; }
.rips-about-collage__item--7 { grid-column: span 1; grid-row: span 2; }
.rips-about-collage__item--8 { grid-column: span 1; grid-row: span 1; }
.rips-about-collage__item--9 { grid-column: span 2; grid-row: span 1; }
.rips-about-collage__item--10 { grid-column: span 2; grid-row: span 2; }

.rips-about-collage__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.rips-about-collage__item:hover .rips-about-collage__img {
  transform: none;
}

.rips-about-tab-photo--side {
  aspect-ratio: 4 / 3;
  max-height: min(420px, 52vh);
}

.rips-about-tab-photo--wide {
  aspect-ratio: 21 / 9;
  max-height: min(320px, 40vh);
}

/* Our Vision — grid: side columns span full height; center = photo + points below */
.rips-about-vision-hub {
  --rips-vision-hub-photo-max: 340px;
}

.rips-about-vision-hub--grid {
  display: grid;
  column-gap: 0.85rem;
  row-gap: 0.35rem;
  align-items: start;
}

@media (min-width: 992px) {
  .rips-about-vision-hub--grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, var(--rips-vision-hub-photo-max)) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .rips-about-vision-hub__side--left {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .rips-about-vision-hub__photo-wrap {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 100%;
    max-width: var(--rips-vision-hub-photo-max);
  }

  .rips-about-vision-hub__mid-list {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-width: var(--rips-vision-hub-photo-max);
    justify-self: center;
    padding-top: 0;
    margin-top: 0;
  }

  .rips-about-vision-hub__side--right {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 991.98px) {
  .rips-about-vision-hub--grid {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
    column-gap: 0;
  }

  .rips-about-vision-hub--grid > .rips-about-vision-hub__photo-wrap,
  .rips-about-vision-hub--grid > .rips-about-vision-hub__side--left,
  .rips-about-vision-hub--grid > .rips-about-vision-hub__mid-list,
  .rips-about-vision-hub--grid > .rips-about-vision-hub__side--right {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
    justify-self: stretch;
  }
}

.rips-about-tab-photo--vision-hub {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: min(100%, var(--rips-vision-hub-photo-max));
  max-height: min(380px, 46vh);
}

@media (max-width: 991.98px) {
  .rips-about-tab-photo--vision-hub {
    aspect-ratio: 16 / 10;
    max-width: min(100%, 28rem);
    max-height: min(220px, 36vh);
  }
}

.rips-about-tab-photo__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

@media (max-width: 991.98px) {
  .rips-about-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 6rem;
  }

  .rips-about-collage__item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .rips-about-collage__item--1,
  .rips-about-collage__item--6,
  .rips-about-collage__item--10 {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  .rips-about-tab-photo--side {
    max-height: none;
    aspect-ratio: 16 / 10;
  }

  .rips-about-tab-photo--wide {
    aspect-ratio: 16 / 9;
    max-height: none;
  }
}

@media (max-width: 575.98px) {
  .rips-about-collage {
    grid-auto-rows: 5rem;
    gap: 0.38rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rips-about-collage__item { transition: none; }
}

.rips-about-vision-list__item strong {
  font-weight: 700;
  color: var(--rips-navy);
}

.rips-media-placeholder__frame {
  position: relative;
  border-radius: var(--rips-radius-lg);
  border: 2px dashed rgba(10, 38, 71, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.65) 0%, rgba(246, 243, 235, 0.9) 100%);
  min-height: 14rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.rips-media-placeholder__frame--wide {
  min-height: 12rem;
}

.rips-media-placeholder__frame--portrait {
  min-height: 18rem;
  max-width: 22rem;
  margin-inline: auto;
}

.rips-media-placeholder__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 38, 71, 0.35);
}

/* ——— School curriculum page ——— */
.rips-curriculum-page .rips-cv-hero .rips-page-hero__bg--photo {
  background-image:
    radial-gradient(ellipse 85% 65% at 18% 25%, rgba(201, 162, 39, 0.2), transparent 48%),
    linear-gradient(118deg, rgba(6, 22, 42, 0.93) 0%, rgba(10, 38, 71, 0.9) 45%, rgba(18, 58, 92, 0.85) 100%),
    var(--rips-hero-photo, none);
  background-size: cover;
  background-position: center;
}

.rips-curriculum-page .rips-main .rips-section.rips-cv-main {
  padding-block: 0 !important;
}

.rips-cv-main {
  position: relative;
  background:
    radial-gradient(ellipse 100% 60% at 80% 0%, rgba(201, 162, 39, 0.05), transparent 50%),
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(10, 38, 71, 0.04), transparent 55%),
    linear-gradient(180deg, #e8edf4 0%, #f8fafc 18%, #f1f5f9 100%);
}

.rips-cv-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Ccircle cx='1' cy='1' r='1' fill='%230a2647' fill-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.85;
}

.rips-cv-shell {
  position: relative;
  z-index: 1;
  max-width: min(75rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.rips-cv-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.rips-cv-hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.rips-cv-hero-chips li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9a227;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.35);
  flex-shrink: 0;
}

.rips-cv-highlight-card {
  position: relative;
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 1rem;
  background: linear-gradient(155deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 12px 32px -16px rgba(10, 38, 71, 0.14);
  overflow: hidden;
}

.rips-cv-highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #c9a227, rgba(10, 38, 71, 0.35));
  border-radius: 4px 0 0 4px;
}

.rips-cv-highlight-card__label {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--rips-navy);
  margin: 0 0 0.4rem;
  padding-left: 0.35rem;
}

.rips-cv-highlight-card__text {
  font-size: 0.84rem;
  line-height: 1.58;
  color: #475569;
  padding-left: 0.35rem;
}

.rips-cv-toc-mobile-wrap {
  position: relative;
  margin-bottom: 1rem;
  padding: 0.15rem 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%);
}

.rips-cv-toc-mobile {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 0.25rem 0.5rem 0.75rem;
  margin: 0 -0.5rem;
  scrollbar-width: thin;
}

@media (min-width: 992px) {
  .rips-cv-toc-mobile-wrap {
    display: none;
  }
}

.rips-cv-toc-mobile a {
  scroll-snap-align: start;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rips-navy);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  white-space: nowrap;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.rips-cv-toc-mobile a:hover {
  background: #fff;
  border-color: rgba(201, 162, 39, 0.5);
  color: #062a52;
  transform: translateY(-1px);
}

.rips-cv-toc-mobile__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.25rem;
  border-radius: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(145deg, #123a5c 0%, var(--rips-navy) 100%);
}

.rips-cv-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 992px) {
  .rips-cv-layout {
    grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
    gap: clamp(1.35rem, 3.2vw, 2.25rem);
  }
}

.rips-cv-toc-desktop {
  display: none;
}

@media (min-width: 992px) {
  .rips-cv-toc-desktop {
    display: block;
    position: sticky;
    top: calc(var(--rips-header-offset, 5.5rem) + 0.75rem);
  }
}

.rips-cv-toc-desktop-inner {
  padding: 1rem 0.85rem 1.05rem;
  border-radius: 1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.rips-cv-toc-desktop-inner::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  margin-bottom: 0.65rem;
  margin-left: 0.15rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #c9a227, rgba(201, 162, 39, 0.25));
}

.rips-cv-toc-desktop__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a7b1a;
  margin: 0 0 0.5rem;
  padding-left: 0.15rem;
}

.rips-cv-toc-desktop__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rips-cv-toc-desktop__link {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.5rem 0.35rem;
  margin: 0 -0.35rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #334155;
  transition: background 0.2s ease, color 0.2s ease;
}

.rips-cv-toc-desktop__link:hover {
  background: rgba(201, 162, 39, 0.1);
  color: var(--rips-navy);
}

.rips-cv-toc-desktop__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
  border-radius: 0.4rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(145deg, #143d5c 0%, var(--rips-navy) 100%);
}

.rips-cv-toc-desktop__label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.rips-cv-stream {
  display: flex;
  flex-direction: column;
  gap: clamp(1.15rem, 2.5vw, 1.65rem);
}

.rips-cv-block {
  scroll-margin-top: calc(var(--rips-header-offset, 5.5rem) + 0.75rem);
  padding: 0;
  background: linear-gradient(165deg, #ffffff 0%, #fafbfd 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.05rem;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.05),
    0 20px 44px -18px rgba(10, 38, 71, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  position: relative;
  overflow: hidden;
}

.rips-cv-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.55), rgba(10, 38, 71, 0.35), rgba(201, 162, 39, 0.55), transparent);
  pointer-events: none;
}

.rips-cv-block::after {
  content: "";
  position: absolute;
  top: 3.25rem;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.55), transparent 68%);
  border-radius: 0 2px 2px 0;
  pointer-events: none;
  opacity: 0.85;
}

.rips-cv-block__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.1rem 0.35rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.06), transparent 55%);
}

.rips-cv-block__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.35rem;
  border-radius: 0.55rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(148deg, #143d5c 0%, var(--rips-navy) 48%, #0d3a66 100%);
  box-shadow: 0 2px 8px rgba(10, 38, 71, 0.25);
}

.rips-cv-block__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a7b1a;
}

.rips-cv-block__body {
  padding: 0.65rem clamp(1rem, 2.5vw, 1.45rem) clamp(1.1rem, 2.5vw, 1.45rem);
}

.rips-curriculum-page .rips-cv-prose h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.05rem, 1.9vw, 1.32rem);
  font-weight: 700;
  color: var(--rips-navy);
  margin: 0 0 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(201, 162, 39, 0.42);
}

.rips-curriculum-page .rips-cv-prose h2:first-child {
  margin-top: 0;
}

.rips-curriculum-page .rips-cv-prose h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rips-navy);
  margin: 1rem 0 0.4rem;
}

.rips-curriculum-page .rips-cv-prose h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--rips-navy);
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
}

.rips-curriculum-page .rips-cv-prose p,
.rips-curriculum-page .rips-cv-prose li {
  color: #334155;
  font-size: 0.875rem;
  line-height: 1.65;
}

.rips-curriculum-page .rips-cv-prose p {
  margin: 0 0 0.65rem;
}

.rips-curriculum-page .rips-cv-prose ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}

.rips-curriculum-page .rips-cv-prose li {
  margin-bottom: 0.35rem;
}

.rips-cv-method-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

@media (min-width: 768px) {
  .rips-cv-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rips-cv-method-card {
  padding: 0.85rem 0.95rem;
  border-radius: 0.65rem;
  background: linear-gradient(165deg, #fafbfc 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.07);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

@media (hover: hover) {
  .rips-cv-method-card:hover {
    border-color: rgba(201, 162, 39, 0.35);
    box-shadow: 0 8px 24px -8px rgba(10, 38, 71, 0.18);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .rips-cv-method-card:hover {
    transform: translateY(-2px);
  }
}

.rips-cv-method-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #9a7b1a;
  margin: 0 0 0.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rips-cv-method-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.58;
  color: #334155;
}

.rips-cv-timeline {
  position: relative;
  list-style: none;
  margin: 0.85rem 0 1rem;
  padding: 0 0 0 0.15rem;
}

.rips-cv-timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.5rem;
  bottom: 0.65rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c9a227, rgba(10, 38, 71, 0.18));
}

.rips-cv-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.65rem;
  align-items: start;
  padding-bottom: 0.85rem;
}

.rips-cv-timeline li:last-child {
  padding-bottom: 0;
}

.rips-cv-timeline__dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.35rem;
  margin-left: 0.26rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #c9a227;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2);
}

.rips-cv-timeline__content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rips-cv-timeline__when {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a7b1a;
}

.rips-cv-timeline__what {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--rips-navy);
  line-height: 1.4;
}

.rips-cv-pillar-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

@media (min-width: 768px) {
  .rips-cv-pillar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rips-cv-pillar {
  padding: 0.75rem 0.85rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.9));
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-top: 2px solid rgba(201, 162, 39, 0.45);
}

.rips-cv-pillar__title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a7b1a;
  margin: 0 0 0.4rem;
}

.rips-cv-pillar__text {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #475569;
}

/* ——— Fee structure & SMC PDF library pages ——— */
.rips-pdf-page .rips-main .rips-section.rips-pdf-section {
  padding-block: 0 !important;
}

.rips-pdf-page .rips-pdf-hero .rips-page-hero__bg--photo {
  background-image:
    radial-gradient(ellipse 88% 60% at 15% 20%, rgba(201, 162, 39, 0.22), transparent 52%),
    linear-gradient(122deg, rgba(6, 22, 42, 0.92) 0%, rgba(10, 38, 71, 0.88) 42%, rgba(18, 58, 92, 0.84) 100%),
    var(--rips-hero-photo, none);
  background-size: cover;
  background-position: center;
}

.rips-pdf-section {
  position: relative;
  overflow: visible;
  background-color: #dfe6f0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(10, 38, 71, 0.07) 0,
      rgba(10, 38, 71, 0.07) 1px,
      transparent 1px,
      transparent 14px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(201, 162, 39, 0.09) 0,
      rgba(201, 162, 39, 0.09) 1px,
      transparent 1px,
      transparent 14px
    ),
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(175deg, #e4eaf3 0%, #eef2f8 35%, #dce4f0 100%);
}

.rips-pdf-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%230a2647' stroke-opacity='0.06' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.9;
}

.rips-pdf-page--smc .rips-pdf-section {
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(201, 162, 39, 0.08) 0,
      rgba(201, 162, 39, 0.08) 1px,
      transparent 1px,
      transparent 14px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(10, 38, 71, 0.06) 0,
      rgba(10, 38, 71, 0.06) 1px,
      transparent 1px,
      transparent 14px
    ),
    radial-gradient(ellipse 100% 70% at 100% 0%, rgba(201, 162, 39, 0.12), transparent 50%),
    linear-gradient(185deg, #ebe6dc 0%, #f0f4f8 40%, #e5e9f0 100%);
}

.rips-pdf-empty {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 2.5rem 1.75rem;
  border-radius: 1.15rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88));
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 50px -20px rgba(10, 38, 71, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.rips-pdf-empty__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.rips-pdf-empty__svg {
  width: 3.25rem;
  height: 3.25rem;
  color: rgba(201, 162, 39, 0.85);
  filter: drop-shadow(0 2px 8px rgba(10, 38, 71, 0.12));
}

.rips-pdf-empty__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rips-navy);
  margin: 0 0 0.65rem;
}

.rips-pdf-empty__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #475569;
}

.rips-pdf-reader {
  position: relative;
  z-index: 1;
}

/* PDF viewer: diagonal slide in/out (Fee Structure + List of SMC) */
.rips-pdf-viewer-flip {
  overflow: visible;
}

.rips-pdf-viewer-flip__inner {
  transform-origin: 50% 55%;
  will-change: transform, opacity;
}

.rips-pdf-viewer-flip__inner--out {
  animation: rips-pdf-diag-out 0.82s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

.rips-pdf-viewer-flip__inner--in {
  animation: rips-pdf-diag-in 1.1s cubic-bezier(0.2, 0.95, 0.32, 1) forwards;
}

/* Exits toward upper-right (subtle diagonal slide) */
@keyframes rips-pdf-diag-out {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
    filter: brightness(1);
  }

  100% {
    transform: translate(14%, -11%) rotate(1.5deg) scale(0.95);
    opacity: 0.25;
    filter: brightness(0.92);
  }
}

/* Enters from lower-left */
@keyframes rips-pdf-diag-in {
  0% {
    transform: translate(-14%, 13%) rotate(-2deg) scale(0.95);
    opacity: 0;
    filter: brightness(0.93);
  }

  50% {
    opacity: 1;
    filter: brightness(1.02);
  }

  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rips-pdf-viewer-flip__inner--out,
  .rips-pdf-viewer-flip__inner--in {
    animation: none !important;
  }

  .rips-pdf-viewer-flip__inner {
    will-change: auto;
  }
}

.rips-pdf-list-card {
  padding: 1.1rem 1rem 1.15rem;
  border-radius: 1rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    0 8px 30px -12px rgba(10, 38, 71, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.rips-pdf-list-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rips-navy);
  margin: 0 0 0.35rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(201, 162, 39, 0.35);
}

.rips-pdf-list-card__hint {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.rips-pdf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rips-pdf-list__btn {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.75);
  color: var(--rips-navy);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.rips-pdf-list__btn:hover {
  background: #fff;
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 4px 14px rgba(10, 38, 71, 0.08);
}

.rips-pdf-list__btn.is-active {
  background: linear-gradient(135deg, rgba(10, 38, 71, 0.95), rgba(18, 58, 92, 0.92));
  color: #fff;
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: 0 6px 20px rgba(10, 38, 71, 0.25);
}

.rips-pdf-list__btn.is-active .rips-icon {
  color: #f0d78c;
}

.rips-pdf-list__btn-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.rips-pdf-list__btn-icon .rips-icon {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

.rips-pdf-viewer-card {
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    0 10px 40px -16px rgba(10, 38, 71, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.rips-pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(90deg, var(--rips-navy) 0%, #123a5c 50%, #143d5c 100%);
  border-bottom: 2px solid rgba(201, 162, 39, 0.45);
}

.rips-pdf-toolbar__titles {
  min-width: 0;
}

.rips-pdf-toolbar__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.15rem;
}

.rips-pdf-toolbar__doc {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  word-break: break-word;
}

.rips-pdf-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex-shrink: 0;
}

.rips-pdf-toolbar__btn {
  border-radius: 0.45rem;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.rips-pdf-toolbar__btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
}

.rips-pdf-toolbar__btn--gold {
  background: linear-gradient(145deg, #d4af37, #b8922a) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: var(--rips-navy) !important;
}

.rips-pdf-toolbar__btn--gold:hover {
  filter: brightness(1.06);
  color: var(--rips-navy) !important;
}

.rips-pdf-toolbar__btn .rips-icon {
  width: 0.95rem;
  height: 0.95rem;
  vertical-align: -0.12em;
}

.rips-pdf-frame-wrap {
  position: relative;
  background: #e2e8f0;
  min-height: min(70vh, 52rem);
}

.rips-pdf-frame {
  display: block;
  width: 100%;
  height: min(70vh, 52rem);
  min-height: 22rem;
  border: 0;
  background: #52525b;
}

.rips-pdf-frame-note {
  font-size: 0.75rem;
  color: #64748b;
  padding: 0.55rem 0.85rem 0.75rem;
  background: rgba(248, 250, 252, 0.95);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

@media (max-width: 575.98px) {
  .rips-pdf-frame-wrap {
    min-height: 50vh;
  }

  .rips-pdf-frame {
    height: 50vh;
    min-height: 18rem;
  }
}

/* ——— Coming soon pages (Book Details, PTA Members, etc.) ——— */
.rips-coming-soon-page .rips-main .rips-section.rips-coming-soon-section {
  padding-block: 0 !important;
}

.rips-coming-soon-page .rips-cs-hero .rips-page-hero__bg--photo {
  background-image:
    radial-gradient(ellipse 85% 60% at 18% 22%, rgba(201, 162, 39, 0.2), transparent 50%),
    linear-gradient(118deg, rgba(6, 22, 42, 0.93) 0%, rgba(10, 38, 71, 0.9) 45%, rgba(18, 58, 92, 0.85) 100%),
    var(--rips-hero-photo, none);
  background-size: cover;
  background-position: center;
}

.rips-coming-soon-section {
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(10, 38, 71, 0.05), transparent 55%),
    linear-gradient(180deg, #eef2f7 0%, #f8fafc 40%, #f1f5f9 100%);
}

.rips-coming-soon-card {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 2.25rem 1.75rem 2.5rem;
  border-radius: 1.1rem;
  background: linear-gradient(165deg, #ffffff 0%, #fafbfd 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 48px -20px rgba(10, 38, 71, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.rips-coming-soon-card::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0 auto 1.1rem;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #c9a227, rgba(10, 38, 71, 0.35), #c9a227, transparent);
}

.rips-coming-soon-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a7b1a;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.rips-coming-soon-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--rips-navy);
  margin: 0 0 0.85rem;
  line-height: 1.35;
}

.rips-coming-soon-card__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #475569;
}

/* ——— Process Guidelines (Admissions) ——— */
.rips-process-guidelines-page .rips-main .rips-section.rips-pg-main {
  padding-block: 0 !important;
}

.rips-process-guidelines-page .rips-pg-hero .rips-page-hero__bg--photo {
  background-image:
    radial-gradient(ellipse 90% 60% at 15% 15%, rgba(201, 162, 39, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 45% at 90% 85%, rgba(255, 255, 255, 0.08), transparent 48%),
    linear-gradient(125deg, rgba(6, 22, 42, 0.92) 0%, rgba(10, 38, 71, 0.88) 38%, rgba(18, 58, 92, 0.82) 100%),
    var(--rips-hero-photo, none);
  background-size: cover;
  background-position: center;
}

.rips-pg-main {
  position: relative;
  overflow: hidden;
}

/* Star-field tile: soft sky + gold/white stars (repeating) */
.rips-pg-main__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #d9e3f0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Crect fill='%23dce6f2' width='220' height='220'/%3E%3Ccircle cx='18' cy='24' r='1.1' fill='%23c9a227' opacity='0.42'/%3E%3Ccircle cx='52' cy='12' r='0.65' fill='%23ffffff' opacity='0.55'/%3E%3Ccircle cx='88' cy='30' r='1.2' fill='%23c9a227' opacity='0.32'/%3E%3Ccircle cx='128' cy='18' r='0.6' fill='%23ffffff' opacity='0.48'/%3E%3Ccircle cx='168' cy='28' r='0.95' fill='%23c9a227' opacity='0.38'/%3E%3Ccircle cx='198' cy='14' r='0.55' fill='%23ffffff' opacity='0.5'/%3E%3Ccircle cx='32' cy='58' r='0.75' fill='%23c9a227' opacity='0.45'/%3E%3Ccircle cx='72' cy='48' r='0.5' fill='%23ffffff' opacity='0.42'/%3E%3Ccircle cx='112' cy='55' r='1.15' fill='%23c9a227' opacity='0.28'/%3E%3Ccircle cx='152' cy='62' r='0.7' fill='%23ffffff' opacity='0.52'/%3E%3Ccircle cx='188' cy='52' r='0.85' fill='%23c9a227' opacity='0.35'/%3E%3Ccircle cx='12' cy='88' r='0.6' fill='%23ffffff' opacity='0.45'/%3E%3Ccircle cx='48' cy='95' r='1' fill='%23c9a227' opacity='0.4'/%3E%3Ccircle cx='92' cy='85' r='0.55' fill='%23ffffff' opacity='0.38'/%3E%3Ccircle cx='135' cy='92' r='1.2' fill='%23c9a227' opacity='0.26'/%3E%3Ccircle cx='178' cy='88' r='0.65' fill='%23ffffff' opacity='0.48'/%3E%3Ccircle cx='208' cy='98' r='0.9' fill='%23c9a227' opacity='0.33'/%3E%3Ccircle cx='28' cy='128' r='0.7' fill='%23ffffff' opacity='0.44'/%3E%3Ccircle cx='68' cy='118' r='1.05' fill='%23c9a227' opacity='0.36'/%3E%3Ccircle cx='108' cy='125' r='0.5' fill='%23ffffff' opacity='0.55'/%3E%3Ccircle cx='148' cy='132' r='0.8' fill='%23c9a227' opacity='0.4'/%3E%3Ccircle cx='188' cy='122' r='0.58' fill='%23ffffff' opacity='0.4'/%3E%3Ccircle cx='8' cy='158' r='1.1' fill='%23c9a227' opacity='0.3'/%3E%3Ccircle cx='55' cy='168' r='0.62' fill='%23ffffff' opacity='0.5'/%3E%3Ccircle cx='98' cy='155' r='0.95' fill='%23c9a227' opacity='0.38'/%3E%3Ccircle cx='138' cy='165' r='0.52' fill='%23ffffff' opacity='0.46'/%3E%3Ccircle cx='178' cy='158' r='1.15' fill='%23c9a227' opacity='0.28'/%3E%3Ccircle cx='210' cy='172' r='0.68' fill='%23ffffff' opacity='0.42'/%3E%3Ccircle cx='38' cy='198' r='0.8' fill='%23c9a227' opacity='0.4'/%3E%3Ccircle cx='85' cy='190' r='0.55' fill='%23ffffff' opacity='0.5'/%3E%3Ccircle cx='125' cy='202' r='1' fill='%23c9a227' opacity='0.32'/%3E%3Ccircle cx='165' cy='195' r='0.65' fill='%23ffffff' opacity='0.44'/%3E%3Ccircle cx='200' cy='205' r='0.75' fill='%23c9a227' opacity='0.36'/%3E%3Cpath d='M110 8l1.2 3.6h3.8l-3 2.2 1.1 3.6-3.1-2.2-3.1 2.2 1.1-3.6-3-2.2h3.8z' fill='%23ffffff' opacity='0.22'/%3E%3Cpath d='M40 72l0.8 2.4h2.5l-2 1.5 0.7 2.4-2-1.4-2 1.4 0.7-2.4-2-1.5h2.5z' fill='%23c9a227' opacity='0.28'/%3E%3Cpath d='M175 110l0.7 2.1h2.2l-1.8 1.3 0.6 2.1-1.8-1.3-1.8 1.3 0.6-2.1-1.8-1.3h2.2z' fill='%23ffffff' opacity='0.2'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  background-position: 0 0;
}

.rips-pg-main__texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Crect fill='none' width='220' height='220'/%3E%3Ccircle cx='105' cy='40' r='0.55' fill='%23ffffff' opacity='0.5'/%3E%3Ccircle cx='160' cy='75' r='0.9' fill='%23c9a227' opacity='0.25'/%3E%3Ccircle cx='45' cy='140' r='0.7' fill='%23ffffff' opacity='0.42'/%3E%3Ccircle cx='190' cy='185' r='0.5' fill='%23c9a227' opacity='0.35'/%3E%3Ccircle cx='75' cy='200' r='1' fill='%23ffffff' opacity='0.28'/%3E%3Ccircle cx='15' cy='95' r='0.6' fill='%23c9a227' opacity='0.4'/%3E%3Cpath d='M140 165l0.6 1.8h1.9l-1.5 1.1 0.5 1.8-1.5-1.1-1.5 1.1 0.5-1.8-1.5-1.1h1.9z' fill='%23ffffff' opacity='0.18'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  background-position: 110px 55px;
  opacity: 0.7;
}

.rips-pg-main .container-xxl {
  z-index: 1;
}

.rips-pg-anchor {
  scroll-margin-top: calc(var(--rips-header-offset, 5.5rem) + 0.75rem);
}

.rips-pg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .rips-pg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.35rem;
  }

  .rips-pg-card--full {
    grid-column: 1 / -1;
  }
}

@keyframes rips-pg-card-rise {
  from {
    opacity: 0;
    transform: translateY(1.75rem) rotateX(8deg) scale(0.93);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

.rips-process-guidelines-page .rips-pg-main .rips-pg-grid {
  perspective: 1100px;
}

.rips-process-guidelines-page .rips-pg-main .rips-pg-grid > .rips-pg-card,
.rips-process-guidelines-page .rips-pg-main .rips-pg-grid > .rips-pg-callout {
  animation: rips-pg-card-rise 0.78s cubic-bezier(0.34, 1.15, 0.55, 1) both;
  transform-style: preserve-3d;
}

.rips-process-guidelines-page .rips-pg-main .rips-pg-grid > *:nth-child(1) {
  animation-delay: 0.05s;
}

.rips-process-guidelines-page .rips-pg-main .rips-pg-grid > *:nth-child(2) {
  animation-delay: 0.11s;
}

.rips-process-guidelines-page .rips-pg-main .rips-pg-grid > *:nth-child(3) {
  animation-delay: 0.17s;
}

.rips-process-guidelines-page .rips-pg-main .rips-pg-grid > *:nth-child(4) {
  animation-delay: 0.23s;
}

.rips-process-guidelines-page .rips-pg-main .rips-pg-grid > *:nth-child(5) {
  animation-delay: 0.29s;
}

.rips-process-guidelines-page .rips-pg-main .rips-pg-grid > *:nth-child(6) {
  animation-delay: 0.35s;
}

.rips-process-guidelines-page .rips-pg-main .rips-pg-grid > *:nth-child(7) {
  animation-delay: 0.41s;
}

.rips-process-guidelines-page .rips-pg-main .rips-pg-grid > *:nth-child(8) {
  animation-delay: 0.47s;
}

@media (prefers-reduced-motion: reduce) {
  .rips-process-guidelines-page .rips-pg-main .rips-pg-grid > * {
    animation: none !important;
  }
}

.rips-pg-callout.rips-pg-card--full {
  grid-column: 1 / -1;
}

.rips-pg-card {
  padding: clamp(1.1rem, 2.5vw, 1.35rem) clamp(1rem, 2.5vw, 1.4rem);
  border-radius: 1rem;
  background: linear-gradient(165deg, #ffffff 0%, #fafbfd 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 16px 40px -18px rgba(10, 38, 71, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.rips-pg-card::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-bottom: 0.65rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #c9a227, rgba(201, 162, 39, 0.25));
}

.rips-pg-card--fee {
  border-top: 3px solid rgba(201, 162, 39, 0.75);
}

.rips-pg-card--fee::before {
  display: none;
}

.rips-pg-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  font-weight: 700;
  color: var(--rips-navy);
  margin: 0 0 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(201, 162, 39, 0.38);
}

.rips-pg-card__lead {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin: 0 0 0.65rem;
}

.rips-pg-card__text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 0.65rem;
}

.rips-pg-card__text:last-child {
  margin-bottom: 0;
}

.rips-pg-callout {
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  border-left: 4px solid #c9a227;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.12), rgba(201, 162, 39, 0.03));
}

.rips-pg-callout__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a7b1a;
  margin-bottom: 0.35rem;
}

.rips-pg-callout__text {
  font-size: 0.84rem;
  line-height: 1.58;
  color: #1e293b;
}

.rips-pg-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #334155;
  font-size: 0.875rem;
  line-height: 1.65;
}

.rips-pg-list li {
  margin-bottom: 0.4rem;
}

.rips-pg-list li:last-child {
  margin-bottom: 0;
}

.rips-pg-table-wrap {
  margin-top: 0.85rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.rips-pg-table {
  margin-bottom: 0;
  font-size: 0.84rem;
  --bs-table-bg: transparent;
  --bs-table-accent-bg: rgba(10, 38, 71, 0.03);
}

.rips-pg-table thead th {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(15, 23, 42, 0.08);
  padding: 0.55rem 0.75rem;
}

.rips-pg-table tbody td {
  padding: 0.5rem 0.75rem;
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
  vertical-align: middle;
}

.rips-pg-table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.65);
}

/* ----- Public website forms (admission / career) ----- */
.rips-admission-enquiry-page .rips-main .rips-section.rips-pg-main,
.rips-career-opportunities-page .rips-main .rips-section.rips-pg-main,
.rips-contact-page .rips-main .rips-section.rips-pg-main {
  padding-block: 0;
}

/* Same hero photo treatment as Process Guidelines — facility image reads clearly */
.rips-admission-enquiry-page .rips-pg-hero .rips-page-hero__bg--photo,
.rips-career-opportunities-page .rips-pg-hero .rips-page-hero__bg--photo,
.rips-contact-page .rips-pg-hero .rips-page-hero__bg--photo {
  background-image:
    radial-gradient(ellipse 90% 60% at 15% 15%, rgba(201, 162, 39, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 45% at 90% 85%, rgba(255, 255, 255, 0.08), transparent 48%),
    linear-gradient(125deg, rgba(6, 22, 42, 0.92) 0%, rgba(10, 38, 71, 0.88) 38%, rgba(18, 58, 92, 0.82) 100%),
    var(--rips-hero-photo, none);
  background-size: cover;
  background-position: center;
}

/* Stronger star-field tile behind form cards (base was too close to white on some displays) */
.rips-admission-enquiry-page .rips-pg-main__texture,
.rips-career-opportunities-page .rips-pg-main__texture,
.rips-contact-page .rips-pg-main__texture {
  background-color: #c6d2e6;
}

.rips-admission-enquiry-page .rips-pg-main__texture::after,
.rips-career-opportunities-page .rips-pg-main__texture::after,
.rips-contact-page .rips-pg-main__texture::after {
  opacity: 0.95;
}

/* Slightly bolder paper hatch inside form panels on these pages */
.rips-admission-enquiry-page .rips-form-shell__inner,
.rips-career-opportunities-page .rips-form-shell__inner {
  background:
    repeating-linear-gradient(
      -18deg,
      rgba(10, 38, 71, 0.05) 0 1px,
      transparent 1px 14px
    ),
    repeating-linear-gradient(
      92deg,
      rgba(201, 162, 39, 0.07) 0 1px,
      transparent 1px 18px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 247, 240, 0.96) 100%);
}

.rips-form-page .rips-form-alert {
  border-radius: 0.65rem;
  border: 1px solid rgba(22, 101, 52, 0.35);
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(240, 253, 244, 0.88));
  color: #14532d;
  font-weight: 600;
}

.rips-form-shell {
  position: relative;
  max-width: 52rem;
  margin-inline: auto;
  padding: 2px;
  border-radius: 1rem;
  background: linear-gradient(
    135deg,
    rgba(201, 162, 39, 0.85) 0%,
    rgba(10, 38, 71, 0.35) 42%,
    rgba(201, 162, 39, 0.55) 100%
  );
  box-shadow:
    0 22px 56px rgba(10, 38, 71, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Fill large-side whitespace around admission/career forms on desktop. */
.rips-form-stage {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(0, 52rem) minmax(9rem, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.rips-form-sidefill {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.rips-form-sidefill__tile {
  margin: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #0f172a;
  box-shadow: 0 8px 20px rgba(10, 38, 71, 0.12);
}

.rips-form-sidefill__tile img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 5.9rem;
  object-fit: cover;
}

@media (max-width: 1199.98px) {
  .rips-form-stage {
    grid-template-columns: minmax(6rem, 0.7fr) minmax(0, 52rem) minmax(6rem, 0.7fr);
  }
}

@media (max-width: 991.98px) {
  .rips-form-stage {
    grid-template-columns: 1fr;
  }
  .rips-form-sidefill {
    display: none;
  }
}

.rips-form-shell--career {
  background: linear-gradient(
    145deg,
    rgba(10, 38, 71, 0.55) 0%,
    rgba(201, 162, 39, 0.65) 48%,
    rgba(10, 38, 71, 0.45) 100%
  );
}

.rips-form-shell__accent {
  pointer-events: none;
  position: absolute;
  inset: -40% -20% auto auto;
  width: min(52%, 22rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 62%);
  opacity: 0.45;
}

.rips-form-shell__inner {
  position: relative;
  border-radius: calc(1rem - 2px);
  padding: clamp(1.35rem, 3.5vw, 2rem);
  background:
    repeating-linear-gradient(
      -18deg,
      rgba(10, 38, 71, 0.02) 0 1px,
      transparent 1px 14px
    ),
    repeating-linear-gradient(
      92deg,
      rgba(201, 162, 39, 0.04) 0 1px,
      transparent 1px 18px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 247, 240, 0.96) 100%);
  border: 1px solid rgba(10, 38, 71, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rips-form-shell__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rips-gold);
  margin-bottom: 0.4rem;
}

.rips-form-shell__title {
  font-family: var(--rips-font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--rips-navy);
  margin: 0 0 0.35rem;
}

.rips-form-shell__lead {
  font-size: 0.92rem;
  color: var(--rips-muted);
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.rips-form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rips-navy);
}

.rips-form-control {
  border-radius: 0.55rem;
  border: 1px solid rgba(10, 38, 71, 0.14);
  background: rgba(255, 255, 255, 0.92);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.rips-form-control:focus {
  border-color: rgba(201, 162, 39, 0.65);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.18);
}

.rips-form-check .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.2);
}

.rips-form-check .form-check-input:checked {
  background-color: var(--rips-navy);
  border-color: var(--rips-navy);
}

.rips-form-file::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.22), rgba(201, 162, 39, 0.08));
  font-weight: 700;
  color: var(--rips-navy);
}

.rips-form-hint {
  font-size: 0.8rem;
  color: var(--rips-muted);
  margin-top: 0.35rem;
}

.rips-form button[type="submit"]:disabled,
.rips-form button[type="submit"][aria-disabled="true"] {
  cursor: not-allowed !important;
  opacity: 0.55;
  filter: grayscale(0.15);
  box-shadow: none;
}

/* ----- Contact page + 3D-style map ----- */
.rips-contact-page-section {
  position: relative;
}

.rips-contact-page-card {
  height: 100%;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--rips-radius-lg);
  border: 1px solid rgba(10, 38, 71, 0.1);
  background:
    repeating-linear-gradient(
      -14deg,
      rgba(10, 38, 71, 0.025) 0 1px,
      transparent 1px 12px
    ),
    linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 245, 238, 0.94) 100%);
  box-shadow:
    0 16px 42px rgba(10, 38, 71, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.rips-contact-page-card__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rips-gold);
  margin-bottom: 0.35rem;
}

.rips-contact-page-card__title {
  font-family: var(--rips-font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: var(--rips-navy);
  margin: 0 0 0.75rem;
}

.rips-contact-page-card__address {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.55;
  color: #1e293b;
}

.rips-contact-page-list__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.rips-contact-page-list__item:last-child {
  margin-bottom: 0;
}

.rips-contact-page-list__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.28), rgba(201, 162, 39, 0.1));
  color: var(--rips-navy);
}

.rips-contact-page-list__icon .rips-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.rips-contact-page-list__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rips-contact-page-list__body a {
  text-decoration: none;
  font-weight: 600;
  color: var(--rips-navy);
}

.rips-contact-page-list__body a:hover {
  color: var(--rips-gold-hover);
}

.rips-contact-page-list__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rips-muted);
}

.rips-map-3d-stage {
  position: relative;
  height: 100%;
  min-height: 18rem;
  perspective: 1400px;
  perspective-origin: 50% 42%;
}

.rips-map-3d-glow {
  position: absolute;
  inset: 8% 6% 12%;
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at 50% 30%, rgba(201, 162, 39, 0.35), transparent 58%);
  filter: blur(18px);
  opacity: 0.85;
  pointer-events: none;
}

.rips-map-3d-frame {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(7deg) rotateY(-5deg) translateZ(0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.rips-map-3d-stage:hover .rips-map-3d-frame {
  transform: rotateX(3deg) rotateY(-2deg) translateZ(0) scale(1.01);
}

.rips-map-3d-bezel {
  position: absolute;
  inset: -10px;
  border-radius: 1.15rem;
  background: linear-gradient(
    145deg,
    rgba(201, 162, 39, 0.55) 0%,
    rgba(10, 38, 71, 0.55) 38%,
    rgba(201, 162, 39, 0.45) 100%
  );
  box-shadow:
    0 28px 60px rgba(10, 38, 71, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  z-index: 0;
}

.rips-map-3d-screen {
  position: relative;
  z-index: 1;
  border-radius: 0.85rem;
  overflow: hidden;
  min-height: 18rem;
  background: linear-gradient(180deg, #dfe8f0 0%, #c9d6e2 100%);
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    inset 0 2px 12px rgba(10, 38, 71, 0.15),
    0 12px 28px rgba(0, 0, 0, 0.12);
}

.rips-map-3d-label {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  z-index: 2;
  margin: 0;
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, rgba(10, 38, 71, 0.92), rgba(10, 38, 71, 0.72));
  border-radius: 0.4rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.rips-map-3d-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  transform: translateZ(0);
}

.rips-map-3d-fallback {
  min-height: 18rem;
  background: rgba(255, 255, 255, 0.35);
}

.rips-map-3d-hint {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--rips-muted);
  font-weight: 500;
  padding-left: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .rips-map-3d-frame {
    transform: none;
    transition: none;
  }

  .rips-map-3d-stage:hover .rips-map-3d-frame {
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .rips-map-3d-frame {
    transform: rotateX(4deg) rotateY(-2deg);
  }
}

/* Unified hero treatment for all website pages except Home. */
body.rips-public:not(.rips-home-intro-pending) .rips-page-hero .rips-page-hero__bg--photo {
  background-image:
    radial-gradient(ellipse 72% 46% at 14% 20%, rgba(201, 162, 39, 0.16), transparent 58%),
    radial-gradient(ellipse 68% 48% at 88% 74%, rgba(255, 255, 255, 0.06), transparent 54%),
    linear-gradient(135deg, rgba(10, 38, 71, 0.72) 0%, rgba(7, 26, 46, 0.68) 44%, rgba(18, 58, 92, 0.74) 100%),
    var(--rips-hero-photo, url("../img/About/about6.webp")) !important;
  background-position: var(--rips-hero-photo-position, 50% 37%) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 991.98px) {
  body.rips-public:not(.rips-home-intro-pending) .rips-page-hero .rips-page-hero__bg--photo {
    background-position: var(--rips-hero-photo-position-mobile, var(--rips-hero-photo-position, 50% 37%)) !important;
  }
}

/* Uniform hero block size across all non-home pages (match About). */
body.rips-public:not(.rips-home-intro-pending) .rips-page-hero > .container-xxl.position-relative {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  min-height: clamp(12.5rem, 23vw, 15.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 991.98px) {
  body.rips-public:not(.rips-home-intro-pending) .rips-page-hero > .container-xxl.position-relative {
    padding-top: 1.15rem !important;
    padding-bottom: 1.15rem !important;
    min-height: 11rem;
  }
}

/* Rules page uses container-fluid + custom class; force same hero size as About. */
body.rips-public.rips-rules-page .rips-rules-hero-scrim .rips-rules-page-inner.position-relative {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  min-height: clamp(12.5rem, 23vw, 15.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 991.98px) {
  body.rips-public.rips-rules-page .rips-rules-hero-scrim .rips-rules-page-inner.position-relative {
    padding-top: 1.15rem !important;
    padding-bottom: 1.15rem !important;
    min-height: 11rem;
  }
}
