/* ==========================================================================
   PulseHire HR — Freedom-inspired layout, premium execution
   Clean consulting structure + elevated type, motion, scroll
   ========================================================================== */

:root {
  /* Ink & Blue — deep ink-navy + royal blue on cool white.
     Ink #0F1428 · Blue #3059B5 · Soft White #F1F2F7 (ties to the logo navy).
     Legacy token names (--navy, --cyan*) retained so every existing
     rule inherits the new palette without rewrites. */
  --ink: #0f1428;         /* deep ink navy — text, headings, dark UI */
  --ink-soft: #1a2140;    /* lifted navy — dark section variation, hovers */
  --navy: #2a3c66;        /* mid navy */
  --navy-mid: #3a4a78;
  --cyan: #3059b5;        /* royal blue — primary accent */
  --cyan-deep: #22408a;   /* deep blue */
  --cyan-soft: #e6ebf7;   /* pale blue tint */
  --cyan-glow: rgba(48, 89, 181, 0.35);
  --paper: #f1f2f7;       /* cool soft-white base */
  --white: #ffffff;
  --mist: #e7eaf1;        /* cool grey section tint */
  --line: rgba(15, 20, 40, 0.08);
  --line-strong: rgba(15, 20, 40, 0.14);
  --muted: #5c6379;
  --muted-light: #8b90a3;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Jost", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 5.25rem;
  --container: 74rem;
  --gutter: clamp(1.25rem, 4vw, 2.25rem);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --shadow: 0 4px 24px rgba(15, 20, 40, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 20, 40, 0.12);
  --shadow-cyan: 0 14px 40px rgba(48, 89, 181, 0.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: auto; /* JS smooth scroll owns this */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent rare 100vw scrollbars from contributing to overflow */
  overflow-x: clip;
}
html.lenis, html.lenis body { height: auto; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: clip;
  /* Safe-area for notched devices (header/footer/float use tokens below) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}
/* No-JS: never leave the page at opacity:0 */
html:not(.js) body.page-enter {
  opacity: 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }
::selection { background: rgba(48, 89, 181, 0.35); color: var(--ink); }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  transform-origin: left;
  pointer-events: none;
}

/* Grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 150;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* Type */
.display {
  font-family: var(--font-display);
  font-weight: 600; /* Playfair Display — high-contrast luxury serif */
  letter-spacing: 0;
  line-height: 1.14;
  font-style: normal;
}
.display em, .display i {
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  background: color-mix(in srgb, currentColor 12%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  padding: 0.42rem 0.95rem 0.42rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  background-color: currentColor;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 14.5 9.5 22 12 14.5 14.5 12 22 9.5 14.5 2 12 9.5 9.5Z' fill='%23f1f2f7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.62rem 0.62rem;
  border-radius: 0.4rem;
}
h1.display { font-size: clamp(2.85rem, 6.5vw, 5rem); }
h2.display { font-size: clamp(2.15rem, 4.2vw, 3.5rem); }
h3.display { font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.25; font-weight: 600; letter-spacing: 0; }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 36rem;
  font-weight: 400;
}

/* Layout */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}
.section { padding: clamp(4.5rem, 11vw, 8rem) 0; }
.section-sm { padding: clamp(3rem, 7vw, 5rem) 0; }
.grid-2 { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-6 { display: grid; gap: 1.25rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

/* Buttons — Freedom pill CTAs, premium hover */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 1.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    background 0.35s,
    color 0.35s,
    border-color 0.35s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); background: var(--ink-soft); }
.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  color: var(--white);
  box-shadow: var(--shadow-cyan);
  font-weight: 700;
}
.btn-cyan:hover { box-shadow: 0 16px 48px rgba(34, 64, 138, 0.35); }

/* Focused interaction accents */
.underline-link {
  position: relative;
  text-decoration: none;
}
.underline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.underline-link:hover::after,
.underline-link:focus-visible::after {
  transform: scaleX(1);
}

.neon {
  --neon-color: #6fa3ff;
  border: 1px solid color-mix(in srgb, var(--neon-color) 88%, white);
  animation: neon-pulse 2.4s ease-in-out infinite;
}
@keyframes neon-pulse {
  0%, 100% {
    text-shadow: 0 0 4px color-mix(in srgb, var(--neon-color) 75%, transparent);
    box-shadow:
      0 0 7px -1px color-mix(in srgb, var(--neon-color) 80%, transparent),
      inset 0 0 7px -2px color-mix(in srgb, var(--neon-color) 75%, transparent);
  }
  50% {
    text-shadow:
      0 0 10px color-mix(in srgb, var(--neon-color) 85%, transparent),
      0 0 20px color-mix(in srgb, var(--neon-color) 55%, transparent);
    box-shadow:
      0 0 18px -1px color-mix(in srgb, var(--neon-color) 90%, transparent),
      inset 0 0 12px -2px color-mix(in srgb, var(--neon-color) 80%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .neon { animation: none; }
}
.btn-outline {
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-group { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  transition: gap 0.35s var(--ease), color 0.25s;
}
.btn-link:hover { gap: 0.7rem; color: var(--cyan-deep); }
.btn-link svg { width: 1rem; height: 1rem; transition: transform 0.35s var(--ease); }
.btn-link:hover svg { transform: translateX(3px); }

/* ========== Header (Freedom-style clean bar) ========== */
/* Always solid/frosted so nav stays readable over dark page-hero sections */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  top: 0;
  padding-top: var(--safe-top, env(safe-area-inset-top, 0px));
  z-index: 100;
  height: calc(var(--header-h) + var(--safe-top, env(safe-area-inset-top, 0px)));
  background: rgba(241, 242, 247, 0.94);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(15, 20, 40, 0.08);
  transition:
    background 0.5s var(--ease),
    box-shadow 0.5s,
    height 0.4s var(--ease),
    backdrop-filter 0.4s;
}
.site-header.is-scrolled {
  height: calc(4.5rem + var(--safe-top, env(safe-area-inset-top, 0px)));
  background: rgba(241, 242, 247, 0.97);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px rgba(15, 20, 40, 0.06);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  z-index: 110;
}
.logo img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}
.logo:hover img { transform: rotate(-6deg) scale(1.05); }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-text span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-top: 0.2rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-link {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft, #124e50);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.nav-link:hover { color: var(--ink); background: rgba(10, 22, 40, 0.05); }
.nav-link.is-active {
  color: var(--ink);
  background: var(--cyan-soft);
}
/* Dropdown triggers share .nav-link — force visible ink on light header */
button.nav-link,
.nav-trigger.nav-link {
  color: var(--ink-soft, #124e50);
}
button.nav-link:hover,
.nav-trigger.nav-link:hover,
button.nav-link.is-active,
.nav-item--has-dropdown.is-open .nav-trigger {
  color: var(--ink);
}
.header-cta {
  flex-shrink: 0;
  padding: 0.8rem 1.4rem;
  font-size: 0.85rem;
  /* Ensure CTA never blends into dark heroes behind transparent chrome */
  position: relative;
  z-index: 2;
}

/* Magnetic button — JS sets translate(x,y) on pointermove; this just
   governs how quickly it eases (faster than the default .btn transition
   so it tracks the cursor, and snaps back the same way on mouseleave). */
.magnet-btn {
  transition: transform 0.15s ease-out, box-shadow 0.45s var(--ease), background 0.35s, color 0.35s, border-color 0.35s;
}
.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 1.4rem;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
  .header-cta { display: none; }
  /* Mobile browsers can treat a backdrop-filtered fixed header as the
     containing block for fixed descendants. Remove the filter here so the
     navigation drawer reliably fills the entire viewport. */
  .site-header,
  .site-header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(241, 242, 247, 0.98);
  }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.35rem;
    padding:
      calc(var(--header-h) + var(--safe-top, env(safe-area-inset-top, 0px)) + 1rem)
      1.25rem
      max(2rem, env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transition: opacity 0.45s var(--ease), visibility 0.45s;
    z-index: 105;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav-link {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 6vw, 2rem);
    padding: 0.75rem 1.25rem;
    min-height: 2.75rem;
    color: var(--ink);
    text-align: center;
  }
  /* Short landscape: keep menu usable */
  @media (max-height: 500px) {
    .nav {
      justify-content: flex-start;
      padding-top: calc(var(--header-h) + 0.5rem);
    }
    .nav-link {
      font-size: 1.25rem;
      padding: 0.45rem 1rem;
      min-height: 2.5rem;
    }
  }
}

/* ========== Hero — Freedom split headline ========== */
.hero-fhr {
  position: relative;
  min-height: 100vh; /* fallback */
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + var(--safe-top, 0px) + 2rem) 0 4rem;
  overflow: hidden;
  background: var(--white);
}
.hero-fhr::before {
  content: "";
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-soft) 0%, transparent 68%);
  top: -15%;
  right: -18%;
  pointer-events: none;
  animation: float-orb 12s ease-in-out infinite;
}
.hero-fhr::after {
  content: "";
  position: absolute;
  width: 30vmax;
  height: 30vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 20, 40, 0.06) 0%, transparent 70%);
  bottom: -10%;
  left: -10%;
  pointer-events: none;
}
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3%, 4%) scale(1.05); }
}
.hero-fhr-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-fhr-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; }
}
.hero-fhr h1 {
  margin: 1.1rem 0 1.5rem;
}
.hero-fhr h1 .line {
  display: block;
}
.hero-fhr h1 .line-accent {
  display: inline;
  position: relative;
  font-style: italic;        /* Playfair italic — luxury editorial accent */
  font-weight: 500;
  color: var(--navy);        /* Ocean Steel */
  padding: 0;
}
.hero-fhr h1 .line-accent::before {
  content: "";
  position: absolute;
  left: -0.02em;
  right: -0.02em;
  bottom: 0.04em;
  height: 1px;
  background: color-mix(in srgb, var(--navy) 55%, transparent);
}
.hero-fhr h1 .line-accent.underline-link::before { display: none; }
.hero-fhr .lead { margin-bottom: 2rem; max-width: 32rem; }
.hero-visual {
  position: relative;
}
.hero-visual-frame {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  aspect-ratio: 4/5;
  max-height: min(70vh, 36rem);
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  will-change: transform;
}
.hero-visual-frame img,
.hero-visual-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}
.hero-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(15, 20, 40, 0.35) 100%);
}
.hero-float-card {
  position: absolute;
  bottom: 1.5rem;
  left: -1rem;
  right: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 1.1rem 1.35rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  max-width: 14rem;
  z-index: 2;
  animation: float-card 5s ease-in-out infinite;
}
@media (min-width: 960px) {
  .hero-float-card { left: -1.5rem; bottom: 2rem; }
}
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink);
  line-height: 1;
}
.hero-float-card span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.hero-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Typed headline band (Freedom “Seamless HR Solutions”) */
.typed-band {
  background: var(--ink);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.typed-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 100% at 20% 50%, rgba(48, 89, 181, 0.15), transparent),
    radial-gradient(ellipse 40% 80% at 80% 50%, rgba(48, 89, 181, 0.08), transparent);
}
.typed-band .container { position: relative; z-index: 1; }
.typed-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  min-height: 1.2em;
}
.typed-band h2 .cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--cyan);
  margin-left: 4px;
  vertical-align: -0.05em;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.typed-band .sub {
  margin-top: 1rem;
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
}
.typed-band .btn-group {
  justify-content: center;
  margin-top: 1.75rem;
}

/* Services section (Freedom “Services We Offer”) */
.services-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  align-items: end;
}
@media (min-width: 800px) {
  .services-head { grid-template-columns: 1fr 1fr; }
}
.services-head h2 .soft {
  display: block;
  color: var(--muted-light);
  font-style: italic;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.4s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  background: var(--cyan-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  transition: transform 0.5s var(--spring), background 0.35s;
}
.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--cyan);
  color: var(--ink);
}
.service-card h3 { margin: 0; }
.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
  line-height: 1.65;
}
.service-card .btn-link { margin-top: 0.25rem; }

/* Help / director section */
.help-section {
  background: var(--mist);
  position: relative;
  overflow: hidden;
}
.help-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .help-grid { grid-template-columns: 0.95fr 1.05fr; gap: 4rem; }
}
.help-portrait,
.partnership-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5/6;
  max-height: 32rem;
  box-shadow: var(--shadow-lg);
  background: var(--mist);
}
.help-portrait img,
.help-portrait-video,
.partnership-media__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
}
/* Fill the card frame (same as previous still image) */
.help-portrait-video,
.partnership-media__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: var(--mist);
  /* Ensure poster/first-frame paint while decoding */
  opacity: 1;
  visibility: visible;
}
.help-portrait-video.is-playing,
.partnership-media__video.is-playing {
  /* Drop any residual poster flash once playback starts */
  background: #0b1220;
}
.help-portrait-tag,
.partnership-media__information {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  padding: 1rem 1.2rem;
  border-radius: 0.85rem;
}
.help-portrait-tag strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.help-portrait-tag span {
  font-size: 0.85rem;
  color: var(--muted);
}
.help-section h2 { margin: 0.85rem 0 1.25rem; }
.help-section .quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--cyan);
}

/* Values pillars (Freedom style) */
.values-section {
  background: var(--white);
}
.values-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(5, 1fr); } }
.value-pillar {
  text-align: center;
  padding: 1.75rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 0.45s var(--ease), border-color 0.35s, box-shadow 0.45s;
}
.value-pillar:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: var(--shadow);
}
.value-pillar .vp-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--cyan-soft);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  transition: background 0.35s, transform 0.45s var(--spring);
}
.value-pillar:hover .vp-icon {
  background: var(--cyan);
  transform: scale(1.1);
}
.value-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.value-pillar p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}
.value-pillar p strong {
  color: var(--navy);
  font-weight: 700;
}

/* Health check / CTA band */
.health-cta {
  position: relative;
  border-radius: calc(var(--radius) + 0.25rem);
  overflow: hidden;
  padding: clamp(2.75rem, 7vw, 4.5rem);
  text-align: center;
  color: var(--white);
  background: var(--ink);
}
.health-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(48, 89, 181, 0.25), transparent 60%),
    url("../assets/images/photo-1579684288452-b334934f845f.jpg") center/cover;
  opacity: 0.35;
}
.health-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 40,0.88), rgba(15, 20, 40,0.94));
}
.health-cta > * { position: relative; z-index: 1; }
.health-cta h2 { margin: 0.75rem 0 1rem; }
.health-cta p {
  color: rgba(255,255,255,0.72);
  max-width: 32rem;
  margin: 0 auto 1.75rem;
}

/* Contact strip (Freedom style form section) */
.contact-strip {
  background: var(--mist);
}
.contact-strip-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .contact-strip-grid { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: start; }
}
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 600px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
  /* ≥16px avoids iOS focus-zoom */
  font-size: max(1rem, 16px);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.18);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-glow);
  background: var(--white);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--muted-light); margin-top: 1rem; }

/* Stats row */
.stats-row {
  display: grid;
  gap: 1.5rem;
  text-align: center;
  padding: 2.5rem 0;
}
@media (min-width: 640px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}
.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-item span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* Contact info grid (About) */
.info-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .info-grid { grid-template-columns: repeat(4, 1fr); } }
.info-item {
  padding: 1.75rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.info-item .info-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 0.6rem;
}
.info-item p { color: var(--ink); font-weight: 500; }
.info-item .chip-row { margin-top: 0.75rem; }

/* Page hero (inner) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 4.5rem) 0 4rem;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(48, 89, 181, 0.2), transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(51, 60, 92, 0.4), transparent 50%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin: 1rem 0 1.15rem; max-width: 16ch; }
.page-hero .lead { color: rgba(255,255,255,0.68); }
.page-hero .eyebrow { color: var(--cyan); }
.page-hero .eyebrow::before { background-color: var(--cyan); }

/* Cards / misc reused */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p { color: var(--muted); font-size: 0.95rem; }
.band-ink { background: var(--ink); color: var(--white); }
.band-mist { background: var(--mist); }
.band-white { background: var(--white); }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.chip {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--cyan-soft);
  color: var(--navy);
  border: 1px solid rgba(48, 89, 181, 0.35);
}

/* Jobs */
.job-list { display: grid; gap: 0.75rem; }
.job-item {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  padding: 1.2rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, box-shadow 0.35s, transform 0.35s var(--ease);
}
.job-item:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
@media (min-width: 768px) {
  .job-item { grid-template-columns: 1fr auto auto; gap: 1.25rem; }
}
.job-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cyan);
}

/* Rich job cards (Jobs page) */
.jobs-count {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.jobs-count strong { color: var(--ink); }
.job-grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .job-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .job-grid { grid-template-columns: repeat(3, 1fr); } }
.job-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.job-card .spec {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}
.job-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.job-card .job-desc { color: var(--muted); font-size: 0.9rem; flex: 1; }
.job-facts {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.job-fact-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 0.15rem;
}
.job-fact-value { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.job-fact-value.salary { color: var(--cyan-deep); }
.job-card .btn { margin-top: auto; width: 100%; }

/* Hospitals / blog cards */
.hospital-card, .blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hospital-card:hover, .blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.hospital-card-img, .blog-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--ink);
}
.hospital-card-img img, .blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.hospital-card:hover img, .blog-card:hover img { transform: scale(1.06); }
.hospital-card-body, .blog-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}
.hospital-card-body .loc, .blog-card-body .date {
  font-size: 0.78rem;
  color: var(--cyan-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hospital-card-body p, .blog-card-body p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}
.hosp-beds { flex: none !important; font-size: 0.85rem; color: var(--muted); }
.hosp-beds strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin-right: 0.35rem;
}

/* Country cards */
.country-card {
  position: relative;
  border-radius: var(--radius);
  padding: 1.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
  height: 100%;
}
.country-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.country-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--navy));
}
.country-flag { font-size: 1.75rem; margin-bottom: 0.85rem; }
.country-card .authority {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan-deep);
  margin: 0.35rem 0 0.75rem;
  letter-spacing: 0.03em;
}
.country-card p { color: var(--muted); font-size: 0.92rem; }

/* Reviews */
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  height: 100%;
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review-card .stars { color: var(--cyan-deep); letter-spacing: 0.12em; }
.review-card blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink-soft);
  flex: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.review-author .avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--ink));
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.review-author strong { display: block; font-size: 0.95rem; }
.review-author span { font-size: 0.8rem; color: var(--muted); }

/* Timeline */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(var(--cyan), transparent);
}
.timeline-item {
  position: relative;
  padding: 0 0 1.75rem 1.5rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.22rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-soft);
}
.timeline-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.timeline-item p { color: var(--muted); }

/* Service detail items */
.service-detail { display: grid; gap: 1rem; }
.service-detail-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid var(--line);
  transition: border-color 0.3s, box-shadow 0.35s;
}
.service-detail-item:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow);
}
.service-detail-item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.service-detail-item .authority {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 0.55rem;
}
.service-detail-item p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.75rem; }
.req-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.req-list li {
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  background: var(--mist);
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Contact page bits */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; }
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--cyan-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-info-item strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.contact-info-item a, .contact-info-item span { color: var(--muted); font-size: 0.92rem; }
.contact-info-item a:hover { color: var(--cyan-deep); }

/* Split */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse > :first-child { order: 2; }
}
.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.55rem 1.15rem;
  min-height: 2.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--muted);
  transition: all 0.3s;
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* ===== Services: hero image, competencies, feature list, registration index ===== */
.page-hero--image .page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  z-index: 0;
}
.page-hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(15, 20, 40, 0.5) 0%, rgba(15, 20, 40, 0.82) 100%);
}
.page-hero--image .btn-group { margin-top: 1.75rem; }

/* Core competency cards — image + body + CTA */
.competency-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.competency-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.competency-media { aspect-ratio: 16 / 10; overflow: hidden; }
.competency-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.competency-card:hover .competency-media img { transform: scale(1.05); }
.competency-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}
.competency-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.competency-body .btn-link { margin-top: 0.25rem; }

/* Feature bullet list (UAE / International blocks) */
.feature-list { display: grid; gap: 0.9rem; margin-top: 1.35rem; }
.feature-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--cyan-soft);
  border: 1.5px solid var(--cyan);
}
.feature-list li::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.42em;
  width: 0.38rem;
  height: 0.2rem;
  border-left: 1.5px solid var(--cyan-deep);
  border-bottom: 1.5px solid var(--cyan-deep);
  transform: rotate(-45deg);
}

/* Registration index grid */
.reg-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .reg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .reg-grid { grid-template-columns: repeat(3, 1fr); } }
.reg-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.reg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.reg-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.reg-card-media img { width: 100%; height: 100%; object-fit: cover; }
.reg-loc-badge {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(15, 20, 40, 0.72);
  backdrop-filter: blur(6px);
}
.reg-card-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}
.reg-card-body h3 { margin-top: 0.1rem; }
.reg-desc { color: var(--muted); font-size: 0.9rem; }
.reg-line { height: 1px; background: var(--line); margin: 0.15rem 0; }
.reg-meta-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 0.3rem;
}
.reg-timeline { display: flex; align-items: baseline; gap: 0.5rem; }
.reg-timeline strong { font-size: 1.05rem; color: var(--ink); }
.reg-support { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.check-list { display: grid; gap: 0.45rem; }
.check-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
}
.doc-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.doc-tags span {
  padding: 0.32rem 0.7rem;
  border-radius: 0.5rem;
  background: var(--mist);
  border: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--ink-soft);
}
.reg-apply { margin-top: auto; width: 100%; }

/* Footer — Freedom clean */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-brand .logo { margin-bottom: 1.15rem; }
.footer-brand .logo-text strong { color: var(--white); }
.footer-brand p { font-size: 0.92rem; max-width: 22rem; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1.1rem;
  font-weight: 400;
}
.footer-col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  transition: color 0.25s, transform 0.25s;
}
.footer-col a:hover { color: var(--cyan); transform: translateX(3px); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
}
.socials { display: flex; gap: 0.6rem; }
.socials a {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--spring);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}
.socials a:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  transform: translateY(-3px);
}

/* WhatsApp */
.wa-float {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 3.6rem;
  height: 3.6rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.4s var(--spring);
}
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { transform: scale(1.1); }
}
.wa-float svg { width: 1.65rem; height: 1.65rem; fill: currentColor; }

/* Click-to-open progress ring — fills once, then opens WhatsApp */
.wa-float .hold-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: rotate(-90deg);
}
.wa-float .hold-ring .ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.28);
}
.wa-float .hold-ring .prog {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-dasharray: 163.36;
  stroke-dashoffset: 163.36;
  transition: none;
}
.wa-float.holding .hold-ring .prog {
  animation: wa-ring-fill 1.2s linear forwards;
}
@keyframes wa-ring-fill {
  from { stroke-dashoffset: 163.36; }
  to { stroke-dashoffset: 0; }
}
.wa-float.done {
  box-shadow:
    0 8px 28px rgba(37, 211, 102, 0.4),
    0 0 0 4px rgba(255, 255, 255, 0.28),
    0 0 24px rgba(37, 211, 102, 0.55);
}

/* ========== Animations / reveals ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-left.is-visible { opacity: 1; transform: none; }
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-right.is-visible { opacity: 1; transform: none; }
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-scale.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

/* Hero text entrance */
.hero-enter .eyebrow,
.hero-enter h1,
.hero-enter .lead,
.hero-enter .btn-group {
  opacity: 0;
  transform: translateY(28px);
  animation: hero-in 1s var(--ease-out) forwards;
}
.hero-enter h1 { animation-delay: 0.12s; }
.hero-enter .lead { animation-delay: 0.24s; }
.hero-enter .btn-group { animation-delay: 0.36s; }
.hero-enter .eyebrow { animation-delay: 0s; }
.hero-enter .hero-visual {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  animation: hero-in 1.1s var(--ease-out) 0.2s forwards;
}
@keyframes hero-in {
  to { opacity: 1; transform: none; }
}

/* Horizontal logo marquee */
.marquee-wrap {
  overflow: hidden;
  padding: 1.25rem 0;
  border-block: 1px solid var(--line);
  background: var(--white);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .hero-enter .eyebrow, .hero-enter h1, .hero-enter .lead,
  .hero-enter .btn-group, .hero-enter .hero-visual,
  .stagger > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

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

/* ========== Compatibility for inner pages ========== */
.btn-outline-dark {
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-outline-dark:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.band-navy {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.band-navy .lead { color: rgba(255,255,255,0.68); }
.band-navy .eyebrow { color: var(--cyan); }
.band-navy .eyebrow::before { background-color: var(--cyan); }
.value-item {
  padding: 1.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.value-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.value-item p { color: rgba(255,255,255,0.72); font-size: 0.95rem; }
.value-grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }

/* Legacy full-bleed hero (hospitals etc.) */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 20, 40,0.5) 0%, rgba(15, 20, 40,0.35) 40%, rgba(15, 20, 40,0.88) 100%),
    linear-gradient(90deg, rgba(15, 20, 40,0.5) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}
.hero .eyebrow { color: var(--cyan); }
.hero .eyebrow::before { background-color: var(--cyan); }
.hero h1 { margin: 1.1rem 0 1.35rem; color: var(--white); }
.hero .lead { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: var(--cyan-soft);
  color: var(--navy);
  margin-bottom: 1.15rem;
  font-size: 1.2rem;
}
.cta-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  text-align: center;
  background: var(--ink);
}
.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 20, 40,0.92), rgba(15, 20, 40,0.88));
}
.cta-band-inner { position: relative; z-index: 1; max-width: 36rem; margin-inline: auto; }
.cta-band h2 { margin: 0.75rem 0 1rem; }
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 1.75rem; }
.section-head {
  max-width: 38rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { margin: 0.85rem 0 1rem; }
.section-head .lead { margin-inline: auto; }
.trust-strip {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
}
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.trust-item span { font-size: 0.85rem; color: var(--muted); font-weight: 500; }

/* ========== Page transitions ========== */
body.page-enter {
  opacity: 0;
}
body.page-ready {
  opacity: 1;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
body.page-leave {
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 1, 1);
  pointer-events: none;
}
body.page-ready main {
  animation: page-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes page-rise {
  from {
    opacity: 0.4;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nav-link.is-related {
  color: var(--ink);
  background: rgba(48, 89, 181, 0.12);
}

/* Smooth scroll: prevent native rubber-band conflict on html when hijacking wheel */
html.has-smooth-scroll {
  scroll-behavior: auto;
}
html.has-smooth-scroll body {
  overscroll-behavior-y: none;
}

/* View-transition-ish wipe on leave */
body.page-leave::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--ink);
  opacity: 0;
  animation: leave-veil 0.38s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}
@keyframes leave-veil {
  to { opacity: 0.12; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-enter,
  body.page-ready,
  body.page-leave,
  body.page-ready main {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  body.page-leave::before { display: none; }
}

/* Nav dropdown trigger (liquid-glass progressive enhancement) */
button.nav-link,
.nav-trigger.nav-link {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft, #124e50);
}
.nav .nav-item--has-dropdown {
  display: flex;
  align-items: center;
}

/* Logo wordmark always dark on frosted header (readable over dark heroes) */
.site-header .logo-text strong {
  color: var(--ink);
}
.site-header .logo-text span {
  color: var(--cyan-deep);
}

/* ==========================================================================
   Medical pulse-line cursor trail (desktop / fine pointer only)
   Exact path from pulse-line-svgrepo-com.svg. Outer .trail-dot owns translate3d.
   Click: ECG blue→red signal sweep + soft lub-dub on .pulse-trail-visual.
   ========================================================================== */
.medical-trail-area {
  /* Brand blue resting; brief clinical red only at QRS peak on click */
  --pulse-color: var(--cyan, #3059b5);
  --pulse-red: #c93a4a;

  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
}

/* Hide OS cursor while trail is active */
html.has-medical-cursor,
html.has-medical-cursor * {
  cursor: none !important;
}

.trail-dot {
  --pulse-width: 30px;

  position: absolute;
  top: 0;
  left: 0;
  width: var(--pulse-width);
  aspect-ratio: 1;
  height: auto;

  pointer-events: none;
  will-change: transform, opacity;

  margin-left: calc(var(--pulse-width) / -2);
  margin-top: calc(var(--pulse-width) / -2);

  opacity: 1;
  transition: opacity 0.35s ease;
}

.pulse-trail-visual {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
}

.pulse-trail-icon {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--pulse-color);
  pointer-events: none;
}

.pulse-trail-icon.is-pulsing {
  filter: drop-shadow(0 0 2px color-mix(in srgb, var(--pulse-color) 30%, transparent));
}

/* Faint full shape so the trail stays readable between clicks */
.pulse-trail-ghost {
  fill: currentColor;
  opacity: 0.28;
}

/* Live layer: clip-path draws L→R on click */
.pulse-trail-live {
  will-change: clip-path;
}

/* Wave layer: scaleY pumps the spike up/down */
.pulse-trail-wave {
  transform-box: fill-box;
  transform-origin: center 62%;
  will-change: transform;
}

.pulse-trail-base {
  fill: currentColor;
}

/* Slightly smaller trail — still readable at ≥16px */
.trail-dot:nth-child(1) {
  --pulse-width: 30px;
  opacity: 0.95;
  filter: drop-shadow(0 0 2px color-mix(in srgb, var(--pulse-color) 20%, transparent));
}

.trail-dot:nth-child(2) {
  --pulse-width: 26px;
  opacity: 0.76;
}

.trail-dot:nth-child(3) {
  --pulse-width: 22px;
  opacity: 0.58;
}

.trail-dot:nth-child(4) {
  --pulse-width: 19px;
  opacity: 0.42;
}

.trail-dot:nth-child(5) {
  --pulse-width: 17px;
  opacity: 0.28;
}

.trail-dot:nth-child(6) {
  --pulse-width: 16px;
  opacity: 0.16;
}

/* Fade when pointer leaves */
.medical-trail-area:not(.is-pointer-inside) .trail-dot {
  opacity: 0;
}

/* Touch — restore normal cursor */
@media (hover: none), (pointer: coarse) {
  .medical-trail-area {
    display: none !important;
  }
  html.has-medical-cursor,
  html.has-medical-cursor * {
    cursor: auto !important;
  }
}

/* Reduced motion — no trail, native cursor */
@media (prefers-reduced-motion: reduce) {
  .medical-trail-area {
    display: none !important;
  }
  html.has-medical-cursor,
  html.has-medical-cursor * {
    cursor: auto !important;
  }
}

/* ==========================================================================
   Production readiness — capability-aware polish (preserves desktop design)
   ========================================================================== */

/* Skip link */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 400;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Focus visibility for keyboard users */
:focus-visible {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 3px;
}
.btn:focus-visible,
.nav-link:focus-visible,
.filter-btn:focus-visible {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 3px;
}

/* No-JS / before-enhance: reveals must remain readable */
html:not(.js) .reveal,
html:not(.js) .reveal-left,
html:not(.js) .reveal-right,
html:not(.js) .reveal-scale,
html:not(.js) .stagger > *,
html:not(.js) .hero-enter .eyebrow,
html:not(.js) .hero-enter h1,
html:not(.js) .hero-enter .lead,
html:not(.js) .hero-enter .btn-group,
html:not(.js) .hero-enter .hero-visual {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Touch / coarse: smaller reveal travel (less horizontal overflow risk) */
@media (hover: none), (pointer: coarse) {
  .reveal {
    transform: translateY(18px);
  }
  .reveal-left {
    transform: translateY(16px); /* vertical only — no off-screen X */
  }
  .reveal-right {
    transform: translateY(16px);
  }
  .stagger > * {
    transform: translateY(14px);
  }
  /* Disable magnetic / lift hover that can feel laggy */
  .btn:hover {
    transform: none;
  }
  .btn:active {
    transform: scale(0.98);
  }
  /* Instant WhatsApp (no hold ring expectation) */
  .hold-btn--instant .hold-ring,
  .hold-btn:not(.holding) .hold-ring {
    opacity: 0.35;
  }
  /* Parallax stays static */
  [data-parallax] {
    transform: none !important;
  }
  /* Hero media crop keeps subject centre */
  .hero-visual-frame video,
  .hero-visual-frame img {
    object-position: center 20%;
  }
  .help-portrait-video,
  .partnership-media__video {
    object-position: center 18%;
  }
}

/* Hover-capable fine pointers only: decorative hover sheen */
@media (hover: none) {
  .btn::after {
    display: none;
  }
  .service-card:hover {
    transform: none;
  }
}

/* Prefer reduced data / save-data-ish: keep posters (handled in JS for reduce motion) */
video.is-static-poster {
  object-fit: cover;
}

/* Short viewports: shrink float interference */
@media (max-height: 480px) {
  .wa-float {
    width: 3rem;
    height: 3rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }
  .hero-float-card {
    display: none;
  }
}

/* Fluid type floor for very small phones */
@media (max-width: 380px) {
  h1.display {
    font-size: clamp(2.1rem, 11vw, 2.85rem);
  }
  h2.display {
    font-size: clamp(1.75rem, 8vw, 2.15rem);
  }
  .btn {
    padding: 0.9rem 1.35rem;
    white-space: normal;
    text-align: center;
  }
  .logo-text strong {
    font-size: 1.15rem;
  }
}

/* Prefer more contrast */
@media (prefers-contrast: more) {
  .nav-link,
  .btn-outline,
  .field input,
  .field select,
  .field textarea {
    border-color: var(--ink);
  }
  .eyebrow {
    border-width: 2px;
  }
  .site-header {
    background: #f1f2f7;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .wa-float {
    outline: 2px solid #0f1428;
  }
}

/* Footer / main bottom padding so float doesn't cover CTAs */
main {
  padding-bottom: 0.5rem;
}
.site-footer {
  padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
}
body.nav-open .wa-float {
  visibility: hidden;
  pointer-events: none;
}

/* Page-hero padding under fixed header */
.page-hero,
.hero {
  padding-top: calc(var(--header-h) + var(--safe-top, 0px) + 2rem);
}

/* Legacy hero min-height with modern units */
.hero {
  min-height: 85vh;
  min-height: 85svh;
}

/* Prevent 100vw overflow patterns on nested full-bleed */
.marquee-wrap,
.hero-fhr,
.page-hero,
.band-navy {
  max-width: 100%;
}

/* Images & media never force horizontal scroll */
img,
video,
svg {
  max-width: 100%;
}

/* Keyboard: don't hide focus under grain overlay */
.skip-link,
:focus-visible {
  z-index: 400;
}

/* Desktop hover polish preserved under capability query */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-3px);
  }
  .btn:active {
    transform: translateY(-1px);
  }
}

/* Reduced motion: marquee freeze, hero orbs stop (global rule already shortens animations) */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
    transform: none;
  }
  .hero-fhr::before {
    animation: none;
  }
  video[autoplay] {
    /* JS also pauses; CSS hint for older agents */
  }
}

/* Ensure main can receive programmatic focus after skip */
main:focus {
  outline: none;
}
main:focus-visible {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 4px;
}
