/* ==========================================================================
   Equalen Pty Ltd — Modern Editorial Design System
   Palette: Deep Maroon (#830606), Vibrant Accent (#fa4c06), Paper (#fafafa)
   Typography: Outfit (Display) + Figtree (Body)
   ========================================================================== */

:root {
  --brand: #830606;
  --brand-hover: #9c0b0b;
  --brand-soft: rgba(131, 6, 6, 0.08);
  --brand-tint: #fdf2f2;
  --accent: #fa4c06;
  --paper: #fafafa;
  --white: #ffffff;
  --warm-grey: #f0f0f0;
  --dark: #222222;
  --dark-surface: #313131;
  --ink: #121212;
  --muted: #5c5c5c;
  --line: #dcdcdc;
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
  --shell-max: 1280px;
  --section-py: clamp(4rem, 2.2rem + 6.5vw, 7.5rem);

  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 8px 24px -12px rgba(18, 18, 18, 0.14);
  --shadow-md: 0 20px 44px -20px rgba(18, 18, 18, 0.24);
  --shadow-lg: 0 36px 70px -30px rgba(18, 18, 18, 0.42);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--brand);
  color: var(--white);
}

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

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

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

/* Accessibility */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

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

/* Layout Utilities */
.shell {
  width: 100%;
  max-width: calc(var(--shell-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-py);
}

.section--paper {
  background-color: var(--paper);
}

.section--white {
  background-color: var(--white);
  border-block: 1px solid var(--line);
}

.section--brand {
  background-color: var(--brand);
  color: var(--white);
}

.section--dark {
  background-color: var(--dark);
  color: var(--white);
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 1rem;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.78);
}

.h1, h1.display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.35rem + 4.4vw, 4.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

.h2-muted {
  color: var(--muted);
  display: block;
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin: 0;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.muted {
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 46px;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out),
              color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out),
              transform 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
  white-space: nowrap;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background-color: var(--brand);
  color: var(--white);
}
.btn--primary:hover {
  background-color: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(131, 6, 6, 0.5);
}

.btn--white {
  background-color: var(--white);
  color: var(--ink);
}
.btn--white:hover {
  background-color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.35);
}

.btn--glass {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--glass:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--outline:hover {
  border-color: var(--ink);
  background-color: var(--white);
  transform: translateY(-1px);
}

.btn--sm {
  min-height: 40px;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   Floating Pill Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-inline: var(--gutter);
  pointer-events: none;
}

.header-pill {
  pointer-events: auto;
  max-width: 60rem;
  height: 3.75rem;
  margin-inline: auto;
  padding: 0.375rem 0.5rem 0.375rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(220, 220, 220, 0.85);
  box-shadow: 0 10px 30px -15px rgba(18, 18, 18, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
}

.site-header.is-scrolled .header-pill {
  box-shadow: 0 16px 40px -16px rgba(18, 18, 18, 0.24);
  border-color: rgba(200, 200, 200, 0.95);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.brand-logo img {
  height: 2.15rem;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease, background-color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--brand);
  background-color: var(--brand-soft);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 19.5rem;
  padding: 0.65rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
}

/* Invisible hover bridge eliminating the gap between button and dropdown panel */
.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: -1rem;
  right: -1rem;
  height: 1.25rem;
  background: transparent;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--paper);
}

.dropdown-item-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}

.dropdown-item:hover .dropdown-item-title {
  color: var(--brand);
}

.dropdown-item-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.header-client-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.header-client-link:hover {
  color: var(--ink);
  background: var(--warm-grey);
}

/* Mobile Toggle */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.75px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.4px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.4px) rotate(-45deg);
}

@media (min-width: 960px) {
  .nav-desktop,
  .header-actions {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--white);
  padding: 6rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), visibility 0.28s;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.mobile-nav-item {
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
}

.mobile-nav-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--ink);
}

.mobile-nav-num {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--brand);
  font-weight: 600;
}

.mobile-sublinks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin-top: 0.85rem;
}

.mobile-sublinks a {
  font-size: 0.9375rem;
  color: var(--muted);
  padding-block: 0.25rem;
}

.mobile-sublinks a:hover {
  color: var(--brand);
}

.mobile-drawer-footer {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-drawer-footer .btn {
  width: 100%;
}

.mobile-drawer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ==========================================================================
   Hero Section (Full-Bleed Editorial)
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: flex;
  align-items: center;
  background-color: var(--dark);
  color: var(--white);
  overflow: hidden;
  padding-top: 6.5rem;
  padding-bottom: 4.5rem;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(18, 18, 18, 0.45) 0%, rgba(18, 18, 18, 0.78) 100%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.55) 0%, rgba(18, 18, 18, 0.35) 45%, rgba(18, 18, 18, 0.84) 100%);
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(46rem, 65vw);
  height: auto;
  opacity: 0.22;
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 54rem;
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.75rem;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 0.95rem + 0.55vw, 1.35rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  max-width: 38rem;
  margin: 1.5rem auto 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.76);
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta-item strong {
  color: var(--white);
  font-weight: 500;
}

/* ==========================================================================
   Accreditations & Services Marquee
   ========================================================================== */
.marquee-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
  overflow: hidden;
  position: relative;
}

.marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 2.25rem;
  animation: marquee 48s linear infinite;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.marquee-item img {
  height: 1.75rem;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.tpb-badge-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1b222c;
  padding: 0.25rem 0.55rem;
  border-radius: 0.4rem;
}

.tpb-badge-dark img {
  height: 1.55rem;
  width: auto;
}

.marquee-sep {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
}

.marquee-sep span {
  display: block;
  height: 2.5px;
  background: var(--brand);
  border-radius: 2px;
}

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

/* ==========================================================================
   Split Grid Layouts
   ========================================================================== */
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 4vw, 5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .split-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
  .split-grid--even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Why Choose Equalen — Circular Adviser Visual + Floating Cards */
.why-visual {
  position: relative;
  max-width: 28rem;
  margin-inline: auto;
  padding: 2rem 1rem;
}

.why-circle-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
  background: var(--warm-grey);
}

.why-circle-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-ring {
  position: absolute;
  inset: 0.75rem;
  border-radius: 50%;
  border: 1px dashed rgba(131, 6, 6, 0.28);
  pointer-events: none;
}

.floating-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  background: var(--white);
  border: 1px solid rgba(220, 220, 220, 0.85);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  z-index: 2;
  transition: transform 0.35s var(--ease-out);
}

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

.eq-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
  flex-shrink: 0;
}

.eq-bars span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--brand);
}

.floating-pill--tl { top: 8%; left: -4%; }
.floating-pill--tr { top: 18%; right: -4%; }
.floating-pill--bl { bottom: 18%; left: -2%; }
.floating-pill--br { bottom: 6%; right: 0%; }

@media (max-width: 520px) {
  .floating-pill {
    font-size: 0.75rem;
    padding: 0.45rem 0.75rem;
  }
  .floating-pill--tl { left: 0; }
  .floating-pill--tr { right: 0; }
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

@media (min-width: 560px) {
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.check-badge {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.check-badge svg {
  width: 0.9rem;
  height: 0.9rem;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.pillar-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   Services Brand Band (Full-Bleed #830606)
   ========================================================================== */
.section-header-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 3rem;
}

@media (min-width: 900px) {
  .section-header-split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

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

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .services-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  min-height: 19rem;
  transition: background-color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out),
              transform 0.3s var(--ease-out);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-4px);
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.75rem;
}

.service-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.service-card:hover .service-arrow {
  background: var(--white);
  color: var(--brand);
  border-color: var(--white);
  transform: translateX(3px);
}

/* ==========================================================================
   How We Help — Interactive iPhone Mockup + 3 Steps
   ========================================================================== */
.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-bezel {
  width: min(19rem, 100%);
  padding: 0.75rem;
  border-radius: 2.75rem;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone-notch {
  width: 5.5rem;
  height: 1.35rem;
  background: var(--ink);
  border-radius: var(--radius-full);
  margin: 0.25rem auto 0.65rem;
}

.phone-screen {
  background: var(--paper);
  border-radius: 2.125rem;
  padding: 0.75rem 1rem 1.25rem;
  color: var(--ink);
  overflow: hidden;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-inline: 0.25rem;
}

.phone-brand {
  height: 1.5rem;
  width: auto;
  margin-bottom: 0.85rem;
  mix-blend-mode: multiply;
}

.phone-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-weight: 600;
  margin: 0;
}

.phone-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0.2rem 0 1rem;
}

.phone-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.phone-step {
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.phone-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}

.phone-step-sub {
  font-size: 0.75rem;
  margin-top: 0.2rem;
  color: var(--muted);
  line-height: 1.4;
}

.phone-step.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  transform: scale(1.02);
}

.phone-step.is-active .phone-step-sub {
  color: rgba(255, 255, 255, 0.85);
}

.phone-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0 2.25rem;
}

.process-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.process-item.is-active,
.process-item:hover {
  background: var(--white);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.process-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.process-item p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   About Equalen & Stats
   ========================================================================== */
.editorial-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--warm-grey);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}

.editorial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ==========================================================================
   Industries 4x2 Grid
   ========================================================================== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 900px) {
  .industries-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.industry-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.65rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.28s var(--ease-out), border-color 0.28s ease, box-shadow 0.28s ease;
}

.industry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(131, 6, 6, 0.35);
  box-shadow: var(--shadow-sm);
}

.industry-icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.industry-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.industry-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

/* ==========================================================================
   Watch Video Showcase
   ========================================================================== */
.video-frame {
  position: relative;
  max-width: 58rem;
  margin: 2.5rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay-btn {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(18, 18, 18, 0.38);
  border: none;
  cursor: pointer;
  color: var(--white);
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.video-overlay-btn:hover {
  background: rgba(18, 18, 18, 0.24);
}

.video-overlay-btn.is-playing {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px -10px rgba(131, 6, 6, 0.7);
  transition: transform 0.25s var(--ease-out);
}

.video-overlay-btn:hover .play-circle {
  transform: scale(1.08);
}

.video-caption-pill {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(8px);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ==========================================================================
   Insights / News Article Grid
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .articles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(131, 6, 6, 0.28);
}

.article-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--warm-grey);
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.article-card:hover .article-thumb img {
  transform: scale(1.05);
}

.article-body {
  padding: 1.4rem 1.5rem 1.65rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  margin-bottom: 0.65rem;
}

.article-cat {
  color: var(--brand);
  font-weight: 600;
}

.article-date {
  color: var(--muted);
}

.article-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.28;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.article-excerpt {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 1.25rem;
  flex: 1;
}

.article-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

.article-more svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s ease;
}

.article-card:hover .article-more svg {
  transform: translateX(4px);
}

/* Filter Pills (News Page) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

/* ==========================================================================
   Dark CTA Banner with Concentric Rings
   ========================================================================== */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--dark-surface);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4.75rem);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .cta-banner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  }
}

.cta-banner-content {
  position: relative;
  z-index: 2;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.78);
  margin: 1rem 0 2rem;
  max-width: 34rem;
}

.cta-rings {
  position: absolute;
  right: -6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28rem;
  height: 28rem;
  pointer-events: none;
  opacity: 0.9;
}

.cta-rings circle {
  transform-origin: center;
  animation: drift 12s ease-in-out infinite alternate;
}

.cta-rings circle:nth-child(2) { animation-delay: -3s; }
.cta-rings circle:nth-child(3) { animation-delay: -6s; }

@keyframes drift {
  from { transform: scale(0.96) rotate(0deg); }
  to { transform: scale(1.04) rotate(8deg); }
}

/* ==========================================================================
   Contact Section & Clean Underline Form
   ========================================================================== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.contact-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.975rem;
}

.contact-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.contact-value a:hover {
  color: var(--brand);
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 560px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--brand);
}

.select-wrap {
  position: relative;
}

.select-wrap select,
.field select {
  background: transparent;
  padding-right: 1.5rem;
  cursor: pointer;
}

.form-status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
  color: #067647;
}

.form-status--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Subpage Banners, Breadcrumbs, Accordions & Prose
   ========================================================================== */
.page-banner {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(5.35rem, 5.8vw, 5.85rem);
  padding-bottom: clamp(1.25rem, 1.9vw, 1.65rem);
}

.page-banner .eyebrow {
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}

.page-banner .h1 {
  font-size: clamp(1.65rem, 1.25rem + 1.35vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-banner .lead {
  font-size: clamp(0.95rem, 0.92rem + 0.16vw, 1.03rem);
  line-height: 1.5;
  margin-top: 0.55rem;
}

.page-banner .article-meta {
  margin-bottom: 0.45rem;
}

.page-banner .split-grid {
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.page-banner .editorial-photo {
  width: 100%;
  height: clamp(185px, 21vw, 230px);
  max-height: 230px;
  aspect-ratio: auto !important;
}

.page-banner .editorial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner + .section {
  padding-top: clamp(1.5rem, 2.2vw, 2rem);
}

.page-banner + .section .filter-bar {
  margin-bottom: 1.5rem;
}

.page-banner + .section .shell > div:has(+ article.prose) {
  height: clamp(200px, 27vw, 310px);
  max-height: 310px;
  aspect-ratio: auto !important;
  margin-bottom: 1.75rem !important;
}

.page-banner--dark {
  background: var(--dark);
  color: var(--white);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.page-banner--dark .breadcrumb,
.page-banner--dark .lead {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.075rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
  background: var(--brand);
  color: var(--white);
}

.faq-content {
  padding: 0 1.5rem 1.35rem;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

/* Long-form Article & Legal Prose */
.prose {
  max-width: 48rem;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #262626;
}

.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.prose h2 { font-size: 1.65rem; }
.prose h3 { font-size: 1.35rem; }

.prose p {
  margin: 0 0 1.15rem;
}

.prose ul, .prose ol {
  margin: 0 0 1.35rem;
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.35rem;
  border-left: 3px solid var(--brand);
  background: var(--brand-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.prose img {
  border-radius: var(--radius-md);
  margin: 1.75rem 0;
  width: 100%;
  height: auto;
}

.prose-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.prose thead th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--paper);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.prose tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #ececec;
  color: #2b2b2b;
  vertical-align: top;
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

.prose-note {
  margin: 2rem 0;
  padding: 1.35rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
}

.prose-note-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.prose-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2.25rem;
}

@media (min-width: 680px) {
  .prose-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.prose-summary-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
}

.prose-summary-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.prose-summary-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.prose-summary-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Service Detail Cards & Checklists */
.feature-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .feature-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .feature-cards-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

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

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .check-list--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.975rem;
}

/* Map Frame */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 24rem;
  box-shadow: var(--shadow-sm);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark-surface);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 4.5rem;
  padding-bottom: 2.25rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}

@media (min-width: 860px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  }
}

.footer-logo {
  height: 2.4rem;
  width: auto;
  margin-bottom: 1.15rem;
}

.footer-desc {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 22rem;
  margin: 0 0 1.5rem;
}

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

.footer-badge-pill {
  background: var(--white);
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
}

.footer-badge-pill img {
  max-height: 1.85rem;
  width: auto;
  object-fit: contain;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.925rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.58);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-legal a:hover {
  color: var(--white);
}

/* ==========================================================================
   Floating Overview Video Launcher & Full-Screen Overlay Modal
   ========================================================================== */
.floating-video-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.05rem 0.5rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 18, 18, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--white);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 20px 44px -16px rgba(18, 18, 18, 0.62);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.18s ease,
              box-shadow 0.18s ease,
              opacity 0.2s ease;
}

.floating-video-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 76, 6, 0.58);
  box-shadow: 0 24px 48px -14px rgba(18, 18, 18, 0.72);
}

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

.floating-video-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.floating-video-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.floating-video-thumb {
  position: relative;
  width: 3.75rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--dark);
  display: block;
}

.floating-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.76);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-video-btn:hover .floating-video-thumb img {
  transform: scale(1.06);
}

.floating-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(131, 6, 6, 0.65);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease;
}

.floating-video-play svg {
  margin-left: 1px;
}

.floating-video-btn:hover .floating-video-play {
  transform: scale(1.1);
  background: var(--accent);
}

.floating-video-copy {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.floating-video-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  white-space: nowrap;
}

.floating-video-meta {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .floating-video-btn {
    right: 0.875rem;
    bottom: 0.875rem;
    padding: 0.4rem 0.85rem 0.4rem 0.4rem;
    gap: 0.6rem;
    min-height: 2.85rem;
  }

  .floating-video-thumb {
    width: 3rem;
    height: 2.05rem;
  }

  .floating-video-play {
    width: 1.4rem;
    height: 1.4rem;
  }

  .floating-video-title {
    font-size: 0.84rem;
  }

  .floating-video-meta {
    font-size: 0.7rem;
  }
}

/* Full-Screen Video Overlay Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 64rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: scale(0.97) translateY(10px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.is-open .video-modal-dialog {
  transform: scale(1) translateY(0);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.video-modal-heading {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.video-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}

.video-modal-subtitle {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.68);
}

.video-modal-close {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.36);
  transform: scale(1.04);
}

.video-modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.video-modal-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #090909;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 36px 90px -24px rgba(0, 0, 0, 0.85);
}

.video-modal-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #090909;
}

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

.video-modal-caption {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.74);
  max-width: 38rem;
}

.video-modal-cta {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .video-modal-stage {
    border-radius: var(--radius-md);
  }

  .video-modal-caption {
    font-size: 0.825rem;
  }
}

/* ==========================================================================
   Subtle Reveal Animation (Progressive Enhancement)
   ========================================================================== */
.reveal {
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.js-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
