/* Layout: one pinned full-viewport hero; a deep blue card rises over the headline, opens to full bleed with a phone mockup, then pulls back to reveal the download CTAs. */
  :root {
    --color-background: #FFFFFF;
    --color-foreground: #0A1020;
    --color-muted-foreground: #566075;
    --card-top: #162C6D;
    --card-bottom: #0A101D;
    --space-1: .5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --radius-card: 1.5rem;
    --shadow-soft: 0 18px 45px -32px rgba(20,36,72,.36);
    --transition-ui: 180ms ease;
    --gallery-surface: #f4f7fb;
    --gallery-border: rgba(10, 16, 32, .1);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --color-background: #FFFFFF;
      --color-foreground: #0A1020;
      --color-muted-foreground: #566075;
      color-scheme: light;
    }
  }
  :root[data-theme="dark"] {
    --color-background: #FFFFFF;
    --color-foreground: #0A1020;
    --color-muted-foreground: #566075;
    color-scheme: light;
  }
  html, body { margin: 0; }
  html { scroll-behavior: smooth; }
  html, body { min-height: 100%; }
  body { min-width: 320px; }
  @supports (height: 100svh) { .h-screen { height: 100svh; min-height: 100svh; } }
  @supports (height: 100dvh) { .h-screen { height: 100dvh; min-height: 100dvh; } }
  #hero.hero-scene { position: relative; width: 100%; height: 100vh; min-height: 100vh; }
  @supports (height: 100svh) { #hero.hero-scene { height: 100svh; min-height: 100svh; } }
  @supports (height: 100dvh) { #hero.hero-scene { height: 100dvh; min-height: 100dvh; } }
  main { display: block; }
  .skip-link {
      position: fixed; z-index: 20000; top: .75rem; left: .75rem;
      padding: .75rem 1rem; transform: translateY(-180%); border-radius: .5rem;
      background: #fff; color: #172554; box-shadow: 0 4px 18px rgba(15,23,42,.2);
  }
  .skip-link:focus { transform: translateY(0); }
  :where(a, button, input, select, textarea, [tabindex]):focus-visible {
      outline: 3px solid #2563eb; outline-offset: 3px;
  }
  .hero-scene { perspective: 1500px; scroll-margin-top: 90px; }
  .hero-card-layer { perspective: 1500px; }
  .mockup-scene { perspective: 1000px; }
  #services { scroll-margin-top: 24px; }
  body {
    background: var(--color-background);
    color: var(--color-foreground);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  #app { width: 100%; overflow-x: clip; }

  .photo-gallery-section { padding: clamp(4rem, 9vw, 7rem) max(1rem, calc((100% - 1184px) / 2)); background: var(--color-background); scroll-margin-top: 24px; }
  .photo-gallery-shell { width: min(100%, 1184px); margin-inline: auto; }
  .photo-gallery-section.services-animations-ready [data-services-reveal] { opacity: 0; transition: opacity 700ms ease-out, transform 700ms ease-out; will-change: opacity, transform; }
  .photo-gallery-section.services-animations-ready [data-services-reveal="left"] { transform: translateX(-50px); }
  .photo-gallery-section.services-animations-ready [data-services-reveal="right"] { transform: translateX(50px); }
  .photo-gallery-section.services-animations-ready [data-services-reveal="bottom"] { transform: translateY(25px); }
  .photo-gallery-section.services-animations-ready [data-services-reveal="fade"] { transform: none; }
  .photo-gallery-section.services-animations-ready [data-services-reveal].is-services-visible { opacity: 1; transform: none; will-change: auto; }
  .photo-gallery-section.services-animations-ready [data-services-stagger="1"] { transition-delay: 100ms; }
  .photo-gallery-section.services-animations-ready [data-services-stagger="2"] { transition-delay: 200ms; }
  .clinic-footer.services-animations-ready [data-services-reveal] { opacity: 0; transition: opacity 700ms ease-out, transform 700ms ease-out; will-change: opacity, transform; }
  .clinic-footer.services-animations-ready [data-services-reveal="left"] { transform: translateX(-50px); }
  .clinic-footer.services-animations-ready [data-services-reveal="right"] { transform: translateX(50px); }
  .clinic-footer.services-animations-ready [data-services-reveal="bottom"] { transform: translateY(25px); }
  .clinic-footer.services-animations-ready [data-services-reveal="fade"] { transform: none; }
  .clinic-footer.services-animations-ready [data-services-reveal].is-services-visible { opacity: 1; transform: none; will-change: auto; }
  .clinic-footer.services-animations-ready [data-services-stagger="1"] { transition-delay: 100ms; }
  .clinic-footer.services-animations-ready [data-services-stagger="2"] { transition-delay: 200ms; }
  .photo-gallery-heading { max-width: 42rem; margin: 0 auto 2rem; text-align: center; }
  .photo-gallery-eyebrow { color: #3157a5; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .photo-gallery-heading h2 { margin: .6rem 0 .65rem; color: var(--color-foreground); font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.1; }
  .photo-gallery-heading p { margin: 0; color: var(--color-muted-foreground); line-height: 1.7; }
  .photo-gallery { position: relative; min-height: 290px; padding: 1rem 1rem 4.5rem; border: 1px solid var(--gallery-border); border-radius: 1.5rem; background: var(--gallery-surface); }
  .photo-gallery-stack { position: relative; width: min(100%, 680px); height: 260px; margin: 0 auto; }
  .photo-gallery-stack .photo-gallery-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 4px solid white; border-radius: 1.1rem; box-shadow: 0 14px 34px rgba(10, 16, 32, .14); transition: transform 360ms cubic-bezier(.2,.8,.2,1), box-shadow 360ms ease; }
  .photo-gallery-stack .photo-gallery-image:nth-child(1) { transform: rotate(-5deg) scale(.89); }
  .photo-gallery-stack .photo-gallery-image:nth-child(2) { transform: rotate(4deg) scale(.94); }
  .photo-gallery-stack .photo-gallery-image:nth-child(3) { transform: rotate(-1deg); }
  .photo-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
  .photo-gallery-grid[hidden], .photo-gallery-back[hidden] { display: none; }
  .photo-gallery-grid figure { min-width: 0; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--gallery-border); border-radius: .9rem; background: white; }
  .photo-gallery-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
  .photo-gallery-stack .photo-gallery-image:hover { z-index: 5; box-shadow: 0 22px 38px rgba(10, 16, 32, .22); }
  .photo-gallery-stack .photo-gallery-image:nth-child(1):hover { transform: translateY(-7px) rotate(-5deg) scale(.91); }
  .photo-gallery-stack .photo-gallery-image:nth-child(2):hover { transform: translateY(-7px) rotate(4deg) scale(.96); }
  .photo-gallery-stack .photo-gallery-image:nth-child(3):hover { transform: translateY(-7px) rotate(-1deg) scale(1.02); }
  .photo-gallery-grid figure:hover img { transform: scale(1.04); }
  .photo-gallery-toggle, .photo-gallery-back { position: absolute; right: 1rem; bottom: 1rem; min-height: 44px; padding: .7rem 1.1rem; border: 0; border-radius: 999px; background: #162c6d; color: white; font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer; }
  .photo-gallery-back { right: auto; left: 1rem; }
  .photo-gallery-toggle:hover, .photo-gallery-back:hover { background: #234496; }
  @media (max-width: 640px) {
    .photo-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
    .photo-gallery { padding-inline: .7rem; }
  }
  @media (prefers-reduced-motion: reduce) { .photo-gallery-stack .photo-gallery-image, .photo-gallery-grid img { transition: none; } .photo-gallery-stack .photo-gallery-image:hover { transform: none; } }

  .clinic-footer { --footer-blue: #162c6d; --footer-ink: #0a1020; width: 100%; margin-top: 4rem; border-top: 1px solid rgba(10, 16, 32, .1); background: #f7f9fc; color: var(--footer-ink); }
  .clinic-footer-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr) minmax(320px, .95fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); width: min(100% - 3rem, 1520px); margin-inline: auto; padding-block: clamp(2.75rem, 4vw, 4rem); }
  .clinic-footer-intro { max-width: 480px; padding-top: clamp(1rem, 2.5vw, 2.5rem); }
  .clinic-footer-logo { display: inline-flex; align-items: center; gap: .9rem; color: inherit; text-decoration: none; }
  .clinic-footer-logo img { display: block; width: 48px; height: 48px; object-fit: contain; }
  .clinic-footer-logo span { display: grid; gap: .2rem; }
  .clinic-footer-logo strong { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
  .clinic-footer-logo small { color: #566075; font-size: .8rem; }
  .clinic-footer-intro > p { margin: 1.1rem 0 0; color: #566075; font-size: .9rem; line-height: 1.7; }
  .clinic-footer-nav, .clinic-footer-contact { display: grid; align-content: start; justify-items: start; gap: .8rem; }
  .clinic-footer-nav h2, .clinic-footer-contact h2 { margin: .2rem 0 .35rem; color: #0a1020; font-size: .9rem; font-weight: 700; }
  .clinic-footer-nav a, .clinic-footer-address, .clinic-footer-email { color: #566075; font-size: .875rem; line-height: 1.65; text-decoration: none; }
  .clinic-footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .clinic-footer-nav a:hover, .clinic-footer-address:hover span, .clinic-footer-email:hover span, .clinic-footer-top-link:hover { color: #162c6d; text-decoration: underline; text-underline-offset: 3px; }
  .clinic-footer-address, .clinic-footer-email { display: flex; align-items: flex-start; gap: .7rem; }
  .clinic-footer-address { min-height: 44px; }
  .clinic-footer-address svg, .clinic-footer-email svg { flex: none; width: 19px; height: 19px; margin-top: .12rem; fill: none; stroke: #3157a5; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .clinic-footer-contact-note { margin: 0; color: #566075; font-size: .875rem; line-height: 1.6; }
  .clinic-footer-map-frame { position: relative; isolation: isolate; width: 100%; min-height: 276px; overflow: hidden; border: 1px solid rgba(10, 16, 32, .12); border-radius: 1.15rem; background: linear-gradient(145deg, #eaf2f9, #dce8f2); box-shadow: 0 12px 32px rgba(20, 36, 72, .1); }
  .clinic-footer-map { display: block; width: 100%; height: 276px; border: 0; }
  .clinic-footer-map-open { position: absolute; z-index: 2; top: .65rem; left: .65rem; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; border: 1px solid rgba(10,16,32,.1); border-radius: .4rem; background: white; color: #1769d2; font-size: .9rem; font-weight: 550; text-decoration: none; box-shadow: 0 2px 8px rgba(10,16,32,.14); }
  .clinic-footer-map-open:hover { background: #f8fbff; }
  .clinic-footer-map-open:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
  .clinic-footer-map-pin { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; width: 34px; height: 34px; place-items: center; border: 3px solid white; border-radius: 50% 50% 50% 0; background: #3157a5; box-shadow: 0 4px 14px rgba(10, 16, 32, .28); opacity: 0; transform: translate(-50%, -110%) rotate(-45deg) scale(.25); pointer-events: none; }
  .clinic-footer-map-pin > span { width: 10px; height: 10px; border-radius: 50%; background: white; }
  .clinic-footer-map-pin::after { position: absolute; z-index: -1; inset: -8px; border: 2px solid rgba(49, 87, 165, .45); border-radius: 50%; content: ""; opacity: 0; transform: scale(.35); }
  .clinic-footer.is-scroll-visible .clinic-footer-map-pin { animation: clinic-map-pin-drop 720ms cubic-bezier(.2,.8,.25,1.25) 220ms both; }
  .clinic-footer.is-scroll-visible .clinic-footer-map-frame.is-map-pin-settled .clinic-footer-map-pin { animation: none; opacity: 1; transform: translate(-50%, -100%) rotate(-45deg); }
  .clinic-footer.is-scroll-visible .clinic-footer-map-pin::after { animation: clinic-map-pin-pulse 1.8s ease-out 900ms 2; }
  @keyframes clinic-map-pin-drop { 0% { opacity: 0; transform: translate(-50%, -180%) rotate(-45deg) scale(.35); } 72% { opacity: 1; transform: translate(-50%, -88%) rotate(-45deg) scale(1.08); } 100% { opacity: 1; transform: translate(-50%, -100%) rotate(-45deg) scale(1); } }
  @keyframes clinic-map-pin-pulse { 0% { opacity: .65; transform: scale(.35); } 100% { opacity: 0; transform: scale(1.8); } }
  .clinic-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; width: min(100% - 3rem, 1520px); min-height: 62px; margin-inline: auto; padding-block: .75rem; border-top: 1px solid rgba(10, 16, 32, .1); color: #566075; font-size: .78rem; }
  .clinic-footer-bottom .clinic-footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; }
  .clinic-footer-bottom .clinic-footer-nav h2 { margin: 0 .25rem 0 0; }
  .clinic-footer-bottom .clinic-footer-nav a { min-height: 44px; }
  .clinic-footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .25rem 1.25rem; }
  @media (min-width: 681px) {
    .clinic-footer-map-frame, .clinic-footer-map { height: clamp(260px, 16vw, 300px); }
    .clinic-footer-map-frame { min-height: clamp(260px, 16vw, 300px); }
  }
  .clinic-footer-top-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: #566075; text-decoration: none; }
  .clinic-footer-top-link span { color: #3157a5; font-size: 1rem; }
  .clinic-footer-nav a:focus-visible, .clinic-footer-address:focus-visible, .clinic-footer-top-link:focus-visible { border-radius: .25rem; }
  @media (max-width: 680px) {
    .clinic-footer-main { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; width: min(100% - 2rem, 520px); }
    .clinic-footer-intro { max-width: 480px; padding-top: 0; }
    .clinic-footer-contact { max-width: none; }
    .clinic-footer-map-frame, .clinic-footer-map { min-height: 240px; height: 240px; }
    .clinic-footer-bottom { align-items: flex-start; flex-direction: column; width: min(100% - 2rem, 520px); font-size: .75rem; }
    .clinic-footer-bottom .clinic-footer-nav { align-items: flex-start; gap: .15rem .9rem; }
    .clinic-footer-bottom .clinic-footer-nav h2 { flex-basis: 100%; margin-bottom: .2rem; }
    .clinic-footer-meta { justify-content: flex-start; }
  }
  @media (min-width: 681px) and (max-width: 900px) {
    .clinic-footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .clinic-footer-intro { max-width: none; }
    .clinic-footer-contact { max-width: none; }
    .clinic-footer-map-frame { grid-column: 1 / -1; }
  }
  @media (max-width: 380px) {
    .clinic-footer-main { grid-template-columns: 1fr; gap: 1.75rem; }
    .clinic-footer-intro { grid-column: auto; }
    .clinic-footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: .25rem; padding-block: .75rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    .clinic-footer-map-pin, .clinic-footer-map-pin::after { animation: none !important; }
    .clinic-footer-map-pin { opacity: 1; transform: translate(-50%, -100%) rotate(-45deg); }
  }
  @media (prefers-reduced-motion: reduce) {
    .photo-gallery-section.services-animations-ready [data-services-reveal],
    .clinic-footer.services-animations-ready [data-services-reveal] { opacity: 1; transform: none; transition: none; will-change: auto; }
  }
  }

  .hero-video-layer {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      min-width: 100%;
      min-height: 100%;
      z-index: 0;
      overflow: hidden;
      background: #f8fafc;
      pointer-events: none;
      transition: opacity 700ms ease;
  }
  .hero-video-layer::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.7) 48%, rgba(255,255,255,.82) 100%);
  }
  .hero-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      min-width: 100%;
      min-height: 100%;
      display: block;
      object-fit: cover;
      object-position: center;
  }
  /* Center on the two headings: offset by half the logo height and its bottom gap. */
  #hero { --headline-offset: calc(2.17rem + .45rem); }
  @media (min-width: 640px) {
      #hero { --headline-offset: calc(2.79rem + clamp(.5rem, 1vw, .75rem)); }
  }
  @media (min-width: 768px) {
      #hero { --headline-offset: calc(3.4rem + clamp(.5rem, 1vw, .75rem)); }
  }
  #hero::after {
      content: "";
      position: absolute;
      z-index: 2;
      inset: 0;
      border-radius: inherit;
      pointer-events: none;
      -webkit-backdrop-filter: blur(100px);
      backdrop-filter: blur(100px);
      --focus-mask: radial-gradient(circle at 50% calc(50% + var(--headline-offset)), transparent 30vmin, rgba(0, 0, 0, .7) 42vmin);
      -webkit-mask-image: var(--focus-mask);
      mask-image: var(--focus-mask);
      background: rgba(248, 250, 252, .18);
  }
  .hero-text-wrapper {
      width: min(100% - 2rem, 1360px);
      padding: clamp(1rem, 2vw, 1.75rem) 0;
  }
  .hero-text-wrapper .text-days { font-size: clamp(2.25rem, 8vw, 6rem); }
  .hero-text-wrapper .hero-logo { margin-bottom: clamp(1rem, 2vw, 1.5rem); }
  .hero-text-wrapper .text-track,
  .hero-text-wrapper .text-days {
      max-width: 100%;
      text-wrap: balance;
      line-height: 1.05;
  }
  .hero-text-wrapper .text-track {
      color: #0a1020;
      text-shadow: 0 2px 18px rgba(255,255,255,.9), 0 1px 2px rgba(255,255,255,.8);
  }
  .hero-text-wrapper .text-days {
      width: min(100%, 1100px);
      margin-inline: auto;
      color: #172554;
      -webkit-text-fill-color: #172554;
      letter-spacing: -.045em;
      filter: none;
      text-shadow: 0 1px 2px rgba(255,255,255,.65);
      -webkit-text-stroke: 0;
  }
  @media (max-width: 640px) {
      .hero-text-wrapper {
          width: calc(100% - 1.5rem);
          padding: 1rem 0;
      }
      .hero-text-wrapper .hero-logo { margin-bottom: .9rem; }
      .hero-text-wrapper .text-track,
      .hero-text-wrapper .text-days { letter-spacing: -.045em; }
      .hero-text-wrapper .text-days { width: 100%; }
  }
  .hero-video-control {
      position: absolute;
      z-index: 60;
      right: max(20px, env(safe-area-inset-right));
      bottom: max(20px, env(safe-area-inset-bottom));
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 44px;
      padding: 0 13px;
      border: 1px solid rgba(15, 23, 42, .12);
      border-radius: 999px;
      background: rgba(255,255,255,.82);
      color: #172554;
      font: inherit;
      font-size: 13px;
      font-weight: 600;
      box-shadow: 0 4px 16px rgba(15,23,42,.1);
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
      cursor: pointer;
      pointer-events: auto;
      transition: background .2s ease, transform .2s ease;
  }
  .hero-video-control[hidden] { display: none; }
  .cta-wrapper {
      min-height: 100%;
      background-color: var(--color-background);
  }
  .cta-wrapper > .flex { align-items: center; }
  @media (max-width: 640px) {
      .cta-wrapper { justify-content: center; gap: clamp(.5rem, 2vh, 1rem); padding: 5rem 1rem 5.75rem; }
      .cta-wrapper > h2 { margin-bottom: .5rem; font-size: clamp(1.85rem, 7vw, 2.5rem); line-height: 1.08; }
      .cta-wrapper > p { margin-bottom: .75rem; font-size: clamp(.875rem, 3.8vw, 1rem); line-height: 1.5; }
      .cta-wrapper > .flex { width: 100%; max-width: 22rem; flex-direction: column; gap: .75rem; }
      .cta-wrapper > .flex > button { width: 100%; min-height: 3.5rem; padding-block: .75rem; }
      .cta-wrapper > .flex > button span { white-space: normal; }
  }
  @media (max-height: 740px) and (max-width: 640px) {
      .cta-wrapper { padding: 3.75rem 1rem 4.5rem; }
      .cta-wrapper > h2 { font-size: clamp(1.65rem, 6.5vw, 2.25rem); }
      .cta-wrapper > p { margin-bottom: .35rem; font-size: .875rem; line-height: 1.4; }
  }
  @media (max-width: 380px) {
      .cta-wrapper > h2 { font-size: clamp(1.7rem, 7vw, 2.1rem); }
      .cta-wrapper > p { font-size: .8125rem; line-height: 1.4; }
      .cta-wrapper > .flex > button { gap: .6rem; padding-inline: 1rem; }
      .cta-wrapper > .flex > button span { font-size: 1.125rem; }
  }
  .hero-video-control:hover { background: #fff; transform: translateY(-1px); }
  .hero-video-control:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
  .hero-video-control svg { width: 16px; height: 16px; fill: currentColor; }
  @media (max-width: 640px) {
      .hero-video-control { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  }
  @media (prefers-reduced-motion: reduce) {
      .hero-video-control, .hero-video-layer { transition: none; }
  }

  /* Fixed main navigation; placed outside #app so the hero's pin/overflow
     containers cannot clip it or create a lower stacking context. */
  .main-nav-wrap {
      position: fixed;
      top: max(18px, env(safe-area-inset-top));
      right: max(20px, env(safe-area-inset-right));
      z-index: 10000;
      isolation: isolate;
      pointer-events: none;
  }
  .main-glass-nav {
      --nav-bg: rgba(255, 255, 255, 0.76);
      --nav-text: #475569;
      --nav-active: #172554;
      pointer-events: auto;
      position: relative;
      width: max-content;
      max-width: calc(100vw - 32px);
      padding: 6px;
      border: 1px solid rgba(255, 255, 255, 0.82);
      border-radius: 999px;
      background: var(--nav-bg);
      -webkit-backdrop-filter: blur(20px) saturate(170%);
      backdrop-filter: blur(20px) saturate(170%);
      box-shadow: 0 10px 32px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255,255,255,.9);
      opacity: 1;
  }
  .main-nav-list {
      position: relative;
      display: flex;
      align-items: center;
      gap: 3px;
      margin: 0;
      padding: 0;
      list-style: none;
  }
  .main-nav-indicator {
      position: absolute;
      z-index: 0;
      top: 0;
      left: 0;
      height: 100%;
      width: 0;
      border: 1px solid rgba(37, 99, 235, 0.24);
      border-radius: 999px;
      background: linear-gradient(180deg, #fff 0%, #eaf0ff 100%);
      box-shadow: 0 3px 12px rgba(37, 99, 235, 0.14), inset 0 1px 0 #fff;
      pointer-events: none;
      transition: transform 380ms cubic-bezier(.22, 1, .36, 1), width 380ms cubic-bezier(.22, 1, .36, 1), height 380ms cubic-bezier(.22, 1, .36, 1);
      will-change: transform, width;
  }
  .main-nav-link {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 44px;
      padding: 0 15px;
      border-radius: 999px;
      color: var(--nav-text);
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      white-space: nowrap;
      transform: scale(.96);
      opacity: .56;
      transition: color .25s ease, opacity .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
  }
  .main-nav-link:hover,
  .main-nav-link[aria-current="page"] {
      color: var(--nav-active);
  }
  .main-nav-link[aria-current="page"] {
      transform: scale(1.04);
      opacity: 1;
  }
  .main-nav-link:hover:not([aria-current="page"]) {
      opacity: .82;
      transform: scale(1);
  }
  .main-nav-link:focus-visible,
  .main-nav-toggle:focus-visible {
      outline: 2px solid #2563eb;
      outline-offset: 3px;
  }
  .main-nav-link svg,
  .main-nav-toggle svg {
      width: 18px;
      height: 18px;
      flex: none;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.7;
      stroke-linecap: round;
      stroke-linejoin: round;
  }
  .main-nav-toggle {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 44px;
      padding: 0 14px;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: var(--nav-active);
      font: inherit;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
  }
  @media (max-width: 640px) {
      .main-nav-wrap { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
      .main-glass-nav { padding: 4px; }
      .main-nav-toggle { display: flex; }
      .main-nav-list {
          display: none;
          position: absolute;
          top: calc(100% + 8px);
          right: 0;
          min-width: 190px;
          padding: 6px;
          flex-direction: column;
          align-items: stretch;
          border: 1px solid rgba(255,255,255,.82);
          border-radius: 20px;
          background: rgba(255,255,255,.9);
          -webkit-backdrop-filter: blur(20px) saturate(170%);
          backdrop-filter: blur(20px) saturate(170%);
          box-shadow: 0 10px 32px rgba(15,23,42,.16);
      }
      .main-glass-nav.is-open .main-nav-list { display: flex; }
      .main-nav-link { width: 100%; min-height: 44px; }
      .main-nav-indicator { height: 0; }
  }
  @media (max-width: 360px) {
      .main-nav-wrap { right: max(8px, env(safe-area-inset-right)); left: max(8px, env(safe-area-inset-left)); }
      .main-glass-nav { max-width: 100%; }
      .main-nav-toggle { padding-inline: 10px; }
      .hero-video-control { right: max(8px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); }
      .services-section { padding-inline: 1rem; }
  }
  @media (max-width: 767px) {
      .main-nav-wrap { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
      .main-glass-nav { padding: 4px; }
      .main-nav-toggle { display: flex; }
      .main-nav-list {
          display: none;
          position: absolute;
          top: calc(100% + 8px);
          right: 0;
          min-width: 190px;
          padding: 6px;
          flex-direction: column;
          align-items: stretch;
          border: 1px solid rgba(255,255,255,.82);
          border-radius: 20px;
          background: rgba(255,255,255,.9);
          -webkit-backdrop-filter: blur(20px) saturate(170%);
          backdrop-filter: blur(20px) saturate(170%);
          box-shadow: 0 10px 32px rgba(15,23,42,.16);
      }
      .main-glass-nav.is-open .main-nav-list { display: flex; }
      .main-nav-link { width: 100%; min-height: 44px; }
      .main-nav-indicator { height: 0; }
  }
  @media (max-height: 680px) and (min-width: 641px) {
      .hero-text-wrapper { transform: scale(.82); }
  }
  @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .main-nav-link, .main-nav-indicator { transition: none; }
      .hero-video-layer, .btn-modern-light, .btn-modern-dark,
      .hero-video-control, .service-card, .services-arrow, .services-dot { transition: none; }
      .hero-video-layer { animation: none; }
      .gsap-enabled .gsap-reveal { visibility: visible !important; }
  }

  .gsap-reveal { visibility: visible; }
  .gsap-enabled .gsap-reveal { visibility: hidden; }

  /* Environment Overlays */
  .film-grain {
      position: absolute; inset: 0; width: 100%; height: 100%;
      pointer-events: none; z-index: 50; opacity: 0.05; mix-blend-mode: overlay;
      background: none;
  }

  .bg-grid-theme {
      background-size: 60px 60px;
      background-image: none;
      mask-image: none;
      -webkit-mask-image: none;
  }

  /* Physical skeuomorphic materials */
  .text-3d-matte {
      color: var(--color-foreground);
      text-shadow:
          0 10px 30px color-mix(in srgb, var(--color-foreground) 20%, transparent),
          0 2px 4px color-mix(in srgb, var(--color-foreground) 10%, transparent);
  }

  .text-silver-matte {
      background: linear-gradient(180deg, #172554 0%, #334155 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }

  .text-card-silver-matte {
      background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      transform: translateZ(0);
      filter:
          drop-shadow(0px 12px 24px rgba(0,0,0,0.8))
          drop-shadow(0px 4px 8px rgba(0,0,0,0.6));
  }

  .premium-depth-card {
      background: linear-gradient(145deg, var(--card-top) 0%, var(--card-bottom) 100%);
      box-shadow:
          0 40px 100px -20px rgba(0, 0, 0, 0.9),
          0 20px 40px -20px rgba(0, 0, 0, 0.8),
          inset 0 1px 2px rgba(255, 255, 255, 0.2),
          inset 0 -2px 4px rgba(0, 0, 0, 0.8);
      border: 1px solid rgba(255, 255, 255, 0.04);
      position: relative;
  }

  .card-sheen {
      position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 50;
      background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06) 0%, transparent 40%);
      mix-blend-mode: screen; transition: opacity 0.3s ease;
  }

  .iphone-bezel {
      background-color: #111;
      box-shadow:
          inset 0 0 0 2px #52525B,
          inset 0 0 0 7px #000,
          0 40px 80px -15px rgba(0,0,0,0.9),
          0 15px 25px -5px rgba(0,0,0,0.7);
      transform-style: preserve-3d;
  }

  .hardware-btn {
      background: linear-gradient(90deg, #404040 0%, #171717 100%);
      box-shadow:
          -2px 0 5px rgba(0,0,0,0.8),
          inset -1px 0 1px rgba(255,255,255,0.15),
          inset 1px 0 2px rgba(0,0,0,0.8);
      border-left: 1px solid rgba(255,255,255,0.05);
  }

  .screen-glare {
      background: linear-gradient(110deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 45%);
  }

  .widget-depth {
      background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
      box-shadow:
          0 10px 20px rgba(0,0,0,0.3),
          inset 0 1px 1px rgba(255,255,255,0.05),
          inset 0 -1px 1px rgba(0,0,0,0.5);
      border: 1px solid rgba(255,255,255,0.03);
  }

  .floating-ui-badge {
      position: relative;
      isolation: isolate;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      box-shadow:
          0 0 0 1px rgba(255, 255, 255, 0.1),
          0 25px 50px -12px rgba(0, 0, 0, 0.8),
          inset 0 1px 1px rgba(255,255,255,0.2),
          inset 0 -1px 1px rgba(0,0,0,0.5);
  }
  .floating-ui-badge::before {
      content: "";
      position: absolute;
      z-index: -1;
      inset: -1px;
      border-radius: inherit;
      background: linear-gradient(115deg, rgba(96, 165, 250, .28), rgba(59, 130, 246, .08) 48%, rgba(129, 140, 248, .24));
      filter: blur(14px);
      opacity: .7;
      pointer-events: none;
      animation: badge-glow 4s ease-in-out infinite alternate;
  }
  @keyframes badge-glow {
      from { opacity: .42; filter: blur(12px); }
      to { opacity: .82; filter: blur(17px); }
  }
  @media (prefers-reduced-motion: reduce) {
      .floating-ui-badge::before { animation: none; }
  }

  /* Physical tactile buttons */
  .btn-modern-light, .btn-modern-dark {
      transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .btn-modern-light {
      background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
      color: #172B52;
      border: 2px solid #172B52;
      box-shadow: 0 14px 24px -10px rgba(15,23,42,0.4), inset 0 1px 1px #FFFFFF;
  }
  .btn-modern-light:hover {
      transform: translateY(-3px);
      background: #F1F5F9;
      box-shadow: 0 18px 30px -10px rgba(15,23,42,0.42), inset 0 1px 1px #FFFFFF;
  }
  .btn-modern-light:active {
      transform: translateY(1px);
      background: #E2E8F0;
      box-shadow: 0 4px 8px rgba(15,23,42,0.2), inset 0 2px 4px rgba(15,23,42,0.08);
  }
  .btn-modern-dark {
      background: linear-gradient(145deg, #203B70 0%, #142448 100%);
      color: #FFFFFF;
      border: 2px solid #172B52;
      box-shadow: 0 14px 24px -10px rgba(15,23,42,0.6), inset 0 1px 1px rgba(255,255,255,0.2);
  }
  .btn-modern-dark:hover {
      transform: translateY(-3px);
      background: linear-gradient(145deg, #294A86 0%, #1A315C 100%);
      box-shadow: 0 18px 30px -10px rgba(15,23,42,0.65), inset 0 1px 1px rgba(255,255,255,0.22);
  }
  .btn-modern-dark:active {
      transform: translateY(1px);
      background: #142448;
      box-shadow: 0 4px 8px rgba(15,23,42,0.4), inset 0 2px 5px rgba(0,0,0,0.25);
  }

  .coming-soon-dialog {
      width: min( calc(100% - 2rem), 28rem);
      max-width: none;
      max-height: calc(100% - 2rem);
      padding: 0;
      border: 0;
      overflow: auto;
      overscroll-behavior: contain;
      color: #172B52;
      background: transparent;
  }
  .coming-soon-dialog::backdrop {
      background: rgba(10, 16, 32, 0.3);
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
  }
  .coming-soon-panel {
      position: relative;
      padding: 2.5rem 2rem 2rem;
      border: 1px solid rgba(255,255,255,0.75);
      border-radius: 1.75rem;
      background: linear-gradient(145deg, rgba(255,255,255,0.88), rgba(239,246,255,0.72));
      box-shadow: 0 28px 80px rgba(15,23,42,0.22), inset 0 1px 0 rgba(255,255,255,0.9);
      -webkit-backdrop-filter: blur(24px);
      backdrop-filter: blur(24px);
      text-align: center;
  }
  .coming-soon-close {
      position: absolute;
      top: 0.85rem;
      right: 0.85rem;
      display: grid;
      width: 2.75rem;
      height: 2.75rem;
      place-items: center;
      border: 1px solid rgba(23,43,82,0.1);
      border-radius: 9999px;
      background: rgba(255,255,255,0.72);
      color: #172B52;
      cursor: pointer;
      transition: background 180ms ease, transform 180ms ease;
  }
  .coming-soon-close:hover { background: #FFFFFF; transform: rotate(90deg); }
  @media (prefers-reduced-motion: reduce) {
      .coming-soon-close { transition: none; }
  }

  .progress-ring {
      transform: rotate(-90deg);
      transform-origin: center;
      stroke-dasharray: 402;
      stroke-dashoffset: 402;
      stroke-linecap: round;
  }
  .transform-style-3d { transform-style: preserve-3d; }

  /* Services carousel */
  .services-section {
      padding: clamp(5rem, 10vw, 9rem) 1.25rem;
      background: linear-gradient(180deg, #fff 0%, #f5f8fc 100%);
      color: #0A1020;
  }
  .services-shell { width: min(100%, 74rem); margin: 0 auto; }
  @media (min-width: 1200px) { .services-shell { width: min(100%, 1184px); } }
  .services-eyebrow {
      display: inline-flex; align-items: center; gap: .55rem;
      color: #355487; font-size: .72rem; font-weight: 800;
      letter-spacing: .18em; text-transform: uppercase;
  }
  .services-eyebrow::before {
      width: 1.5rem; height: 2px; border-radius: 999px;
      background: #4b8cf5; content: "";
  }
  .services-track {
      --track-gutter: .5rem;
      display: flex; gap: 1rem; overflow-x: auto;
      margin-inline: calc(-1 * var(--track-gutter));
      padding: .5rem var(--track-gutter) 1.5rem;
      scroll-padding-inline: var(--track-gutter);
      scroll-snap-type: x mandatory; scroll-behavior: smooth;
      scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .services-track::-webkit-scrollbar { display: none; }
  .service-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
  .service-slide:nth-child(1) { --card-photo: url("../assets/images/service-card.webp"); }
  .service-slide:nth-child(2) { --card-photo: url("../assets/images/image1 (2).jpeg"); }
  .service-slide:nth-child(3) { --card-photo: url("../assets/images/image1 (3).jpeg"); }
  .service-slide:nth-child(4) { --card-photo: url("../assets/images/image1 (4).jpeg"); }
  .service-slide:nth-child(5) { --card-photo: url("../assets/images/image1 (6).jpeg"); }
  .service-slide:nth-child(6) { --card-photo: url("../assets/images/image1 (7).jpeg"); }
  .service-card {
      position: relative; display: flex; min-height: 19rem; height: 100%; flex-direction: column;
      justify-content: space-between; overflow: hidden; padding: clamp(1.5rem, 3vw, 2rem);
      border: 1px solid rgba(23,43,82,.09); border-radius: 1.5rem;
      background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(241,246,253,.94)),
                  var(--card-photo, none) center / cover no-repeat, #fff;
      box-shadow: 0 18px 45px -32px rgba(20,36,72,.36), inset 0 1px rgba(255,255,255,.95);
      transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
  }
  .service-card::after {
      position: absolute; right: -3rem; top: -4rem; width: 12rem; height: 12rem;
      border-radius: 50%; background: radial-gradient(circle, rgba(91,151,242,.12), transparent 70%);
      content: ""; pointer-events: none;
  }
  .service-card:hover {
      transform: translateY(-5px); border-color: rgba(53,84,135,.24);
      box-shadow: 0 28px 55px -34px rgba(20,36,72,.48), inset 0 1px rgba(255,255,255,.95);
  }
  .service-icon {
      display: grid; width: 3.5rem; height: 3.5rem; place-items: center;
      border: 1px solid rgba(74,129,211,.15); border-radius: 1.1rem;
      background: linear-gradient(145deg, #eff6ff, #e2edff); color: #234777;
      box-shadow: inset 0 1px rgba(255,255,255,.9), 0 8px 20px -14px rgba(35,71,119,.6);
  }
  .service-icon service-icon, .service-icon service-icon svg { display: block; width: 26px; height: 26px; }
  .service-index { color: #70809a; font-size: .72rem; font-weight: 700; letter-spacing: .14em; }
  .service-card h3 { margin: 2.25rem 0 .65rem; color: #172B52; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 750; letter-spacing: -.035em; }
  .service-card h3, .service-card p { overflow-wrap: anywhere; }
  .service-card p { max-width: 32rem; margin: 0; color: #48566b; font-size: .95rem; line-height: 1.75; }
  .services-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .services-dots { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
  @media (max-width: 420px) { .services-controls { flex-wrap: wrap; } .services-dots { flex: 1 1 100%; justify-content: center; } .services-arrows { margin-inline: auto; } }
  .services-dot {
      display: grid; flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 999px;
      place-items: center; background: transparent; cursor: pointer; transition: background 200ms ease;
  }
  .services-dot::before { display: block; width: .55rem; height: .55rem; margin: auto; border-radius: 999px; background: #cbd5e1; content: ""; }
  .services-dot[aria-current="true"]::before { width: 1.75rem; background: #203B70; }
  .services-dot:hover::before { background: #70809a; }
  .services-dot[aria-current="true"]:hover::before { background: #203B70; }
  .services-dot:focus-visible { background: #eff6ff; }
  .services-arrows { display: flex; gap: .65rem; }
  .services-arrow {
      display: grid; width: 2.85rem; height: 2.85rem; place-items: center;
      border: 1px solid rgba(23,43,82,.14); border-radius: 999px;
      background: rgba(255,255,255,.9); color: #172B52;
      box-shadow: 0 5px 16px -10px rgba(15,23,42,.35); cursor: pointer;
      transition: background 180ms ease, transform 180ms ease, opacity 180ms ease;
  }
  .services-arrow:hover:not(:disabled) { transform: translateY(-2px); background: #eff6ff; }
  .services-arrow:disabled { opacity: .42; cursor: not-allowed; }
  .services-arrow:focus-visible, .services-dot:focus-visible, .services-track:focus-visible {
      outline: 3px solid #4b8cf5; outline-offset: 4px;
  }
  .services-note { margin: .75rem 0 0; color: #64748b; font-size: .78rem; }
  .services-section { overflow-x: clip; }
  .services-section.services-animations-ready [data-services-reveal] {
      opacity: 0;
      transition: opacity 700ms ease-out, transform 700ms ease-out;
      will-change: opacity, transform;
  }
  .services-section.services-animations-ready [data-services-reveal="left"] { transform: translateX(-50px); }
  .services-section.services-animations-ready [data-services-reveal="right"] { transform: translateX(50px); }
  .services-section.services-animations-ready [data-services-reveal="bottom"] { transform: translateY(25px); }
  .services-section.services-animations-ready [data-services-reveal].is-services-visible {
      opacity: 1;
      transform: none;
      will-change: auto;
  }
  .services-section.services-animations-ready [data-services-stagger="1"] { transition-delay: 100ms; }
  .services-section.services-animations-ready [data-services-stagger="2"] { transition-delay: 200ms; }
  @media (prefers-reduced-motion: reduce) {
      .services-section.services-animations-ready [data-services-reveal] {
          opacity: 1;
          transform: none;
          transition: none;
          will-change: auto;
      }
  }
  @media (min-width: 640px) { .services-track { gap: 1.25rem; } .service-slide { flex-basis: calc((100% - 1.25rem) / 2); } }
  @media (min-width: 1024px) { .service-slide { flex-basis: calc((100% - 2.5rem) / 3); } }
  @media (prefers-reduced-motion: reduce) {
      .services-track { scroll-behavior: auto; }
      .service-card, .services-dot, .services-arrow { transition: none; }
      .service-card:hover, .services-arrow:hover:not(:disabled) { transform: none; }
  }
