/* ============================================
   Lumina Dental — Design System
   Clinical luxury · mint / ice / deep ocean
   ============================================ */

:root {
  --ice: #F4FBFA;
  --pearl: #EAF7F5;
  --mint: #7EDDD3;
  --mint-deep: #2BB3A8;
  --aqua: #4EC4C0;
  --teal: #0E8F8A;
  --ocean: #0B2B33;
  --ocean-soft: #163A44;
  --navy: #071A22;
  --slate: #3D5A63;
  --mist: #B7D4D1;
  --white: #FFFFFF;
  --gold: #D4C4A8;
  --danger: #E07A7A;

  --font-display: 'Fraunces', Georgia, serif;
  --font-italic-display: 'Instrument Serif', 'Fraunces', Georgia, serif;
  --font-body: 'Sora', system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-height: 80px;
  --section-padding: clamp(80px, 12vw, 140px);
  --container: min(1280px, 92vw);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 20px 60px rgba(7, 26, 34, 0.08);
  --shadow-glow: 0 0 40px rgba(126, 221, 211, 0.35);
}

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

html {
  scroll-behavior: auto;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ocean);
  background: var(--ice);
  overflow-x: hidden;
  cursor: none;
  transition: background-color 0.6s ease;
}

body.menu-open {
  overflow: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: none;
}
ul[role="list"] { list-style: none; }

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ============================================
   Custom Cursor — phase 1 simple (pre-scroll) / phase 2 full (after first scroll)
   Position via left/top in JS — never animate position (avoids 1fps lag until scroll)
   ============================================ */

.cursor {
  position: fixed;
  inset: 0;
  /* Above booking overlay (12000), cookie bar, and chat so the custom cursor always shows */
  z-index: 14000;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: difference;
}

/* Booking shell is light — difference-blend can vanish on pale UI; solid cursor while open */
body.bk-open .cursor {
  mix-blend-mode: normal;
}
body.bk-open .cursor-dot {
  background: var(--ocean);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}
body.bk-open .cursor-ring {
  border-color: rgba(11, 43, 51, 0.75);
  box-shadow: 0 0 16px rgba(126, 221, 211, 0.35);
}
body.bk-open .cursor.is-hovering .cursor-ring {
  border-color: var(--mint-deep);
  background: rgba(126, 221, 211, 0.12);
}

.cursor.cursor--boot {
  opacity: 0;
}

.cursor.cursor--live {
  opacity: 1;
}

.cursor-dot,
.cursor-ring,
.cursor-label {
  position: fixed;
  top: 0;
  left: 0;
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  /* Only size transitions — never position (position via left/top in JS) */
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo);
}

.cursor-ring {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), border-color 0.3s, opacity 0.3s;
}

/* Pre-scroll: smaller/lighter ring, 1:1 tracking in JS (no rAF trail) */
.cursor.cursor--simple .cursor-ring {
  width: 28px;
  height: 28px;
  opacity: 0.75;
}

/* After first scroll: full ring + trail polish */
.cursor.cursor--full .cursor-ring {
  width: 42px;
  height: 42px;
  opacity: 1;
  box-shadow: 0 0 18px rgba(126, 221, 211, 0.2);
}

.cursor-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--mint);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-pill);
  opacity: 0;
  mix-blend-mode: normal;
  white-space: nowrap;
  transition: opacity 0.3s, transform 0.35s var(--ease-out-expo);
  transform: translate(-50%, -50%) scale(0.6);
}

.cursor.is-hovering .cursor-dot {
  width: 0;
  height: 0;
}

.cursor.is-hovering .cursor-ring {
  width: 64px;
  height: 64px;
}

.cursor.is-view .cursor-label {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cursor.is-view .cursor-ring {
  width: 72px;
  height: 72px;
  border-color: var(--mint);
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor { display: none; }
  button { cursor: pointer; }
}

/* ============================================
   Page Loader
   ============================================ */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  transition: opacity 0.9s var(--ease-out-expo), visibility 0.9s;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  color: var(--ice);
}

.loader-tooth {
  width: 64px;
  height: 80px;
  margin: 0 auto 1.5rem;
  color: var(--mint);
}

.loader-tooth-path {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: toothDraw 1.6s var(--ease-in-out) 0.2s forwards;
}

@keyframes toothDraw {
  to { stroke-dashoffset: 0; }
}

.loader-line {
  width: 140px;
  height: 1px;
  background: rgba(244, 251, 250, 0.15);
  margin: 0 auto 1.25rem;
  overflow: hidden;
}

.loader-line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--aqua));
  transform: scaleX(0);
  transform-origin: left;
  animation: loaderProgress 1.8s var(--ease-in-out) 0.4s forwards;
}

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

.loader-text {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0;
  animation: loaderFadeIn 0.8s var(--ease-out-expo) 0.9s forwards;
}

@keyframes loaderFadeIn {
  to { opacity: 1; }
}

/* ============================================
   Progress + Canvas
   ============================================ */

#sparkle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1001;
  pointer-events: none;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mint-deep), var(--mint), var(--gold));
  box-shadow: 0 0 12px rgba(126, 221, 211, 0.6);
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background 0.5s, backdrop-filter 0.5s, transform 0.5s var(--ease-out-expo), border-color 0.5s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(244, 251, 250, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(11, 43, 51, 0.06);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: clamp(1.25rem, 4vw, 2.75rem);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-mark {
  width: 38px;
  height: 38px;
  color: var(--mint-deep);
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease-spring), color 0.3s;
}

.nav-logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.08);
  color: var(--teal);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ocean);
}

.logo-text span {
  font-weight: 300;
  opacity: 0.7;
  margin-left: 0.2em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding: 0.3rem 0;
  color: var(--slate);
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--mint-deep), var(--aqua));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out-expo);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ocean);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.85rem 1.4rem;
  background: var(--ocean);
  color: var(--ice);
  border-radius: var(--radius-pill);
  transition: background 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-out-expo);
}

.nav-cta:hover {
  background: var(--teal);
  box-shadow: var(--shadow-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 32px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ocean);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
}

.nav-toggle.is-active span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle.is-active span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: linear-gradient(160deg, var(--navy), var(--ocean));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 3rem);
  color: var(--ice);
  opacity: 0;
  transform: translateY(24px);
}

.mobile-menu a:hover {
  color: var(--mint);
}

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-pill);
  transition: all 0.45s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-sm {
  padding: 0.8rem 1.3rem;
  font-size: 0.7rem;
}

.btn-primary {
  background: var(--ocean);
  color: var(--ice);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--mint-deep), var(--aqua));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
  z-index: 0;
}

.btn-primary:hover::before {
  transform: scaleX(1);
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  color: var(--navy);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  color: var(--ice);
  border: 1px solid rgba(244, 251, 250, 0.35);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--mint);
  color: var(--mint);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn:active {
  transform: scale(0.97);
}

/* Soft interactive sheen on primary buttons */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-out-expo);
  z-index: 2;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 120%;
}

/* ============================================
   Section utilities
   ============================================ */

.section {
  padding-block: var(--section-padding);
  position: relative;
  z-index: 2;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 500;
}

.section-eyebrow--light {
  color: var(--mint);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ocean);
  letter-spacing: -0.02em;
}

.section-title--light {
  color: var(--ice);
}

.section-title em,
.section-title .em-safe {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--mint-deep), var(--aqua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Extra trailing space so italic glyphs aren't clipped on the right */
  padding-right: 0.18em;
  margin-right: 0.02em;
  display: inline-block;
}

.section-title--light em,
.section-title--light .em-safe {
  background: linear-gradient(120deg, var(--mint), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-cta {
  margin-top: 1.75rem;
}

.section-cta--center {
  display: flex;
  justify-content: center;
}

.section-header .section-cta {
  margin-top: 1.5rem;
}

.section-text {
  color: var(--slate);
  font-size: 1.02rem;
  max-width: 48ch;
  margin-top: 1.25rem;
  font-weight: 300;
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-text {
  margin-inline: auto;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  /* Slightly taller so scroll cue sits a bit lower in the first view */
  min-height: 108vh;
  min-height: 108dvh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: calc(var(--header-height) + 1rem) clamp(1.25rem, 4vw, 3rem) 4.5rem;
  overflow: hidden;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(126, 221, 211, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(78, 196, 192, 0.15), transparent 50%),
    linear-gradient(165deg, #071A22 0%, #0B2B33 45%, #0E3A40 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb--1 {
  width: 420px;
  height: 420px;
  background: rgba(126, 221, 211, 0.35);
  top: -10%;
  left: -5%;
}

.hero-orb--2 {
  width: 320px;
  height: 320px;
  background: rgba(78, 196, 192, 0.25);
  bottom: 10%;
  right: 5%;
  animation-delay: -4s;
}

.hero-orb--3 {
  width: 200px;
  height: 200px;
  background: rgba(212, 196, 168, 0.2);
  top: 40%;
  left: 45%;
  animation-delay: -7s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.08); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
  color: var(--ice);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 251, 250, 0.75);
  border: 1px solid rgba(126, 221, 211, 0.3);
  background: rgba(126, 221, 211, 0.08);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(126, 221, 211, 0.6);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(126, 221, 211, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(126, 221, 211, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 221, 211, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title .title-line {
  display: block;
  overflow: hidden;
  /* Extra vertical room so descenders (y, g, p) aren't clipped */
  padding-bottom: 0.12em;
  margin-bottom: 0.08em;
}

.hero-title .title-line.title-italic {
  /* Allow italic overhang + letter-spacing; still clip vertical for char rise */
  overflow: visible;
  padding-bottom: 0.18em;
  margin-top: 0.06em;
  margin-bottom: 0.1em;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
}

.hero-title .title-italic {
  /* Instrument Serif italic — wider metrics so letters aren't cramped/cut */
  font-family: var(--font-italic-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--mint);
  /* Trailing room for italic overhang */
  padding-right: 0.22em;
  overflow: visible;
}

/* Gradient on each char so split animation stays visible */
.hero-title .title-italic .char {
  background: linear-gradient(180deg, #F7FFFE 10%, var(--mint) 55%, var(--gold) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.045em;
  padding-right: 0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(244, 251, 250, 0.72);
  max-width: 44ch;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.25rem;
  max-width: 120px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ice);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--mint);
}

.stat-label {
  width: 100%;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 251, 250, 0.5);
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
}

.smile-stage {
  position: relative;
  width: min(380px, 70vw);
  height: min(380px, 70vw);
  display: grid;
  place-items: center;
}

.smile-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(126, 221, 211, 0.25);
}

.smile-ring--outer {
  inset: 0;
  animation: ringSpin 28s linear infinite;
  border-style: dashed;
}

.smile-ring--mid {
  inset: 12%;
  border-color: rgba(212, 196, 168, 0.25);
  animation: ringSpin 18s linear infinite reverse;
}

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

.smile-core {
  width: 55%;
  animation: toothFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(126, 221, 211, 0.35));
}

@keyframes toothFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.tooth-hero {
  width: 100%;
  height: auto;
}

.scan-line {
  position: absolute;
  left: 18%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  box-shadow: 0 0 20px var(--mint);
  top: 20%;
  animation: scanMove 3.5s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes scanMove {
  0%, 100% { top: 22%; opacity: 0.3; }
  50% { top: 72%; opacity: 1; }
}

.hero-visual {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

/* Float cards orbit inside the tooth column — never over left CTAs */
.hero-float-ui {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  color: var(--ice);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  /* No continuous will-change — only used on hover/pointer (set by GSAP) */
  transition: border-color 0.35s, box-shadow 0.35s;
  pointer-events: auto;
}

.float-card:hover {
  border-color: rgba(126, 221, 211, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), 0 0 24px rgba(126, 221, 211, 0.12);
}

/* Even triangle around the tooth: top-right, bottom-right, mid-left */
.float-card--scan {
  top: 4%;
  right: 0;
  left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 150px;
}

.float-card--comfort {
  bottom: 6%;
  right: 2%;
  left: auto;
  top: auto;
  min-width: 160px;
}

.float-card--appt {
  top: 38%;
  left: -4%;
  right: auto;
  bottom: auto;
  min-width: 170px;
}

.float-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(126, 221, 211, 0.15);
  color: var(--mint);
  display: grid;
  place-items: center;
}

.float-card-icon svg { width: 18px; height: 18px; }

.float-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 251, 250, 0.55);
  margin-bottom: 0.15rem;
}

.float-card strong {
  font-weight: 500;
  font-size: 0.95rem;
}

.float-card em {
  display: block;
  font-style: normal;
  font-size: 0.65rem;
  color: var(--mint);
  margin-top: 0.15rem;
}

.float-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  margin-left: auto;
  animation: pulseDot 2s infinite;
}

.comfort-meter {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  margin: 0.4rem 0;
  overflow: hidden;
}

.comfort-meter span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mint-deep), var(--mint));
  border-radius: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(244, 251, 250, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.scroll-line span {
  display: block;
  width: 100%;
  height: 40%;
  background: var(--mint);
  animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 5rem;
  }
  .hero-content {
    margin-inline: auto;
  }
  .hero-subtitle { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { min-height: 280px; order: -1; margin-top: 0.5rem; }
  .float-card--scan { top: 2%; right: 0; left: auto; transform: scale(0.92); }
  .float-card--comfort { bottom: 2%; right: 0; left: auto; top: auto; transform: scale(0.92); }
  .float-card--appt { display: none; }
}

/* ============================================
   Marquee
   ============================================ */

.marquee-section {
  position: relative;
  z-index: 2;
  background: var(--ocean);
  color: var(--mint);
  padding: 1rem 0;
  overflow: hidden;
  border-block: 1px solid rgba(126, 221, 211, 0.15);
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
}

.marquee-dot {
  color: var(--gold);
  opacity: 0.7;
}

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

/* ============================================
   About
   ============================================ */

.about {
  background: var(--ice);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-sticky {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.about-title span {
  display: block;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.pill {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(14, 143, 138, 0.25);
  background: rgba(126, 221, 211, 0.12);
  color: var(--teal);
  transition: transform 0.35s var(--ease-spring), background 0.3s, box-shadow 0.3s;
}

.pill:hover {
  transform: translateY(-3px);
  background: rgba(126, 221, 211, 0.22);
  box-shadow: 0 8px 20px rgba(14, 143, 138, 0.12);
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-card {
  background: var(--white);
  border: 1px solid rgba(11, 43, 51, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(126, 221, 211, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(7, 26, 34, 0.1);
  border-color: rgba(126, 221, 211, 0.35);
}

.about-card:hover::before {
  opacity: 1;
}

.about-card-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--mint-deep);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--ocean);
}

.about-card p {
  color: var(--slate);
  font-size: 0.95rem;
  max-width: 42ch;
}

.about-card-visual {
  margin-top: 1.25rem;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pearl), rgba(126, 221, 211, 0.2));
  position: relative;
  overflow: hidden;
}

.av-trust {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.75rem;
}

.av-bar {
  flex: 1;
  height: var(--p);
  background: linear-gradient(180deg, var(--mint), var(--mint-deep));
  border-radius: 6px 6px 2px 2px;
  transform-origin: bottom;
  animation: barGrow 2s var(--ease-out-expo) infinite alternate;
}

.av-bar:nth-child(2) { animation-delay: 0.2s; }
.av-bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes barGrow {
  from { transform: scaleY(0.55); opacity: 0.7; }
  to { transform: scaleY(1); opacity: 1; }
}

.av-wave {
  position: absolute;
  inset: 20% 10%;
  border-radius: 50%;
  border: 2px solid rgba(14, 143, 138, 0.35);
  animation: wavePulse 2.5s ease-out infinite;
}

.av-wave::before,
.av-wave::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(14, 143, 138, 0.2);
  animation: wavePulse 2.5s ease-out infinite 0.4s;
}

@keyframes wavePulse {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

.av-convert {
  display: grid;
  place-items: center;
}

.av-ring {
  width: 40px;
  height: 40px;
  border: 2px solid var(--mint-deep);
  border-radius: 50%;
  border-top-color: transparent;
  animation: ringSpin 1.2s linear infinite;
}

.av-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--mint-deep);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--mint);
}

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-sticky { position: relative; top: 0; }
}

/* ============================================
   Services — locked scroll
   ============================================ */

.services {
  position: relative;
  z-index: 2;
}

.services-pin {
  height: 100vh;
  background: linear-gradient(160deg, var(--navy) 0%, var(--ocean) 50%, #0A3A40 100%);
  color: var(--ice);
  overflow: hidden;
  position: relative;
}

.services-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  right: -10%;
  top: 20%;
  background: radial-gradient(circle, rgba(126, 221, 211, 0.18), transparent 65%);
  pointer-events: none;
}

.services-pin-inner {
  height: 100%;
  max-height: 100%;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  padding-block: 2rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-sizing: border-box;
}

.services-hint {
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 251, 250, 0.45);
}

.services-progress {
  margin-top: 2.5rem;
}

.services-progress-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.services-progress-track span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mint-deep), var(--mint));
  box-shadow: 0 0 12px rgba(126, 221, 211, 0.5);
}

.services-progress-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.services-progress-labels button {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.15rem;
  min-height: 44px;
  border-radius: var(--radius-pill);
  color: rgba(244, 251, 250, 0.55);
  border: 1px solid rgba(126, 221, 211, 0.22);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.35s var(--ease-out-expo);
  cursor: pointer;
  line-height: 1.2;
}

.services-progress-labels button:hover {
  color: var(--ice);
  border-color: rgba(126, 221, 211, 0.45);
  background: rgba(126, 221, 211, 0.1);
  transform: translateY(-1px);
}

.services-progress-labels button.is-active {
  color: var(--navy);
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 8px 22px rgba(126, 221, 211, 0.25);
}

/* Stage height = active panel content only (no fixed absolute frame). */
.services-stage {
  position: relative;
  width: 100%;
  min-height: 0;
  max-height: min(72vh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 221, 211, 0.35) transparent;
}

.services-stage::-webkit-scrollbar {
  width: 6px;
}

.services-stage::-webkit-scrollbar-thumb {
  background: rgba(126, 221, 211, 0.35);
  border-radius: 99px;
}

.service-panel {
  /* Only the active panel is in layout → height tracks its content */
  display: none;
  position: relative;
  width: 100%;
  height: auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(126, 221, 211, 0.18);
  border-radius: 28px;
  /* Consistent frame padding for short and long care copy */
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  backdrop-filter: blur(12px);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  box-sizing: border-box;
  animation: servicePanelIn 0.45s var(--ease-out-expo) both;
}

.service-panel.is-active {
  display: flex;
}

@keyframes servicePanelIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-panel-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--mint);
  margin-bottom: 0.85rem;
}

.service-panel-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  color: var(--mint);
  margin-bottom: 0.85rem;
  transition: transform 0.6s var(--ease-spring);
}

.service-panel.is-active .service-panel-icon {
  animation: iconPop 0.7s var(--ease-spring);
}

@keyframes iconPop {
  0% { transform: scale(0.6) rotate(-10deg); }
  100% { transform: scale(1) rotate(0); }
}

.service-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.service-panel p {
  color: rgba(244, 251, 250, 0.7);
  max-width: 44ch;
  margin-bottom: 1.15rem;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 1.35rem;
}

.service-meta li {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(126, 221, 211, 0.12);
  border: 1px solid rgba(126, 221, 211, 0.25);
  color: var(--mint);
}

.service-panel .btn-primary {
  align-self: flex-start;
  background: var(--mint);
  color: var(--navy);
  /* Match / exceed care-path chips on the left (min-height 44px) */
  min-height: 52px;
  padding: 1.05rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-top: 0.15rem;
  /* Panel padding provides frame spacing — no negative flush against border */
  margin-bottom: 0;
  flex-shrink: 0;
}

.service-panel .btn-primary::before {
  background: var(--ice);
}

@media (max-width: 900px) {
  .services-pin-inner {
    grid-template-columns: 1fr;
    align-content: center;
    overflow-y: auto;
  }
  .services-left .section-title { font-size: 2rem; }
  .services-stage {
    max-height: min(52vh, 480px);
  }
  .services-progress-labels { display: none; }
  .service-panel {
    padding: 1.5rem 1.35rem;
  }
}

/* ============================================
   Smile transform — locked scrub
   ============================================ */

.smile-section {
  position: relative;
  z-index: 2;
  background: var(--ice);
}

.smile-pin {
  height: 100vh;
  display: flex;
  align-items: center;
  /* Match other sections: horizontal padding so content doesn't edge-to-edge */
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  box-sizing: border-box;
}

.smile-pin-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.smile-copy .section-cta {
  margin-top: 1.5rem;
}

.smile-case {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(11, 43, 51, 0.06);
  box-shadow: var(--shadow-soft);
}

.case-tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.smile-case strong {
  display: block;
  font-weight: 500;
  color: var(--ocean);
  margin-bottom: 0.35rem;
}

.smile-case p {
  font-size: 0.9rem;
  color: var(--slate);
}

.smile-compare {
  width: 100%;
}

.compare-frame {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(7, 26, 34, 0.15);
  border: 1px solid rgba(11, 43, 51, 0.08);
  background: #dce8e6;
}

.compare-before,
.compare-after {
  position: absolute;
  inset: 0;
}

.compare-after {
  clip-path: inset(0 100% 0 0);
}

.compare-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.face-silhouette {
  width: 48%;
  height: 68%;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(180deg, #e8c4b0 0%, #d4a090 100%);
  position: relative;
  box-shadow: inset 0 -20px 40px rgba(0,0,0,0.08);
}

.face-silhouette--glow {
  background: linear-gradient(180deg, #f0d0be 0%, #e0b09c 100%);
  filter: saturate(1.05) brightness(1.05);
}

.teeth {
  position: absolute;
  width: 22%;
  height: 8%;
  top: 54%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 40px 40px;
  display: flex;
  overflow: hidden;
}

.teeth--before {
  background: linear-gradient(180deg, #e8e0c8, #d4c8a8);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.teeth--after {
  background: linear-gradient(180deg, #ffffff, #f0fffc);
  box-shadow: 0 0 20px rgba(255,255,255,0.8), inset 0 1px 2px rgba(0,0,0,0.05);
}

.teeth::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 12%, rgba(0,0,0,0.06) 12%, rgba(0,0,0,0.06) 13%);
}

.sparkle-burst {
  position: absolute;
  inset: 30% 25%;
  background:
    radial-gradient(circle at 20% 40%, rgba(255,255,255,0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 30%, rgba(126,221,211,0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 55% 70%, rgba(255,255,255,0.8) 0 1.5px, transparent 2.5px);
  opacity: 0.7;
  animation: sparkleTwinkle 2s ease-in-out infinite;
}

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

.compare-label {
  position: absolute;
  bottom: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(7, 26, 34, 0.55);
  color: var(--ice);
  backdrop-filter: blur(8px);
}

.compare-before .compare-label { left: 1rem; }
.compare-after .compare-label { right: 1rem; }

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0%;
  width: 2px;
  background: var(--ice);
  box-shadow: 0 0 20px rgba(126, 221, 211, 0.6);
  z-index: 3;
  pointer-events: none;
}

.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ocean);
  border: 2px solid var(--mint);
  box-shadow: 0 8px 24px rgba(7, 26, 34, 0.3);
}

.compare-handle span::before,
.compare-handle span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--mint);
  border-right: 1.5px solid var(--mint);
}

.compare-handle span::before {
  left: 12px;
  transform: translateY(-50%) rotate(-135deg);
}

.compare-handle span::after {
  right: 12px;
  transform: translateY(-50%) rotate(45deg);
}

.compare-meter {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

.compare-meter-bar {
  flex: 1;
  height: 4px;
  background: rgba(11, 43, 51, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.compare-meter-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mist), var(--mint-deep));
  border-radius: 4px;
}

@media (max-width: 900px) {
  .smile-pin-inner { grid-template-columns: 1fr; }
  .smile-copy .section-title { font-size: 2rem; }
}

/* ============================================
   Technology — horizontal lock
   ============================================ */

.tech-section {
  position: relative;
  z-index: 2;
  background: var(--navy);
  color: var(--ice);
}

.tech-pin {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 2rem;
}

.tech-heading {
  width: var(--container);
  margin-inline: auto;
  margin-bottom: 2rem;
  padding-inline: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.tech-heading .section-eyebrow {
  width: 100%;
  margin-bottom: 0.35rem;
}

.tech-heading-cta {
  flex-shrink: 0;
  background: var(--mint);
  color: var(--navy);
}

.tech-heading-cta::before {
  background: var(--ice);
}

.tech-track {
  display: flex;
  gap: 1.5rem;
  padding-left: max(4vw, calc((100vw - min(1280px, 92vw)) / 2));
  padding-right: 10vw;
  width: max-content;
  will-change: transform;
}

.tech-card {
  width: min(360px, 78vw);
  min-height: 420px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(126, 221, 211, 0.16);
  border-radius: 28px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-out-expo), border-color 0.35s, box-shadow 0.45s;
}

.tech-card:hover {
  transform: translateY(-10px);
  border-color: rgba(126, 221, 211, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25), var(--shadow-glow);
}

.tech-card-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  top: -40px;
  right: -40px;
  background: radial-gradient(circle, rgba(126, 221, 211, 0.2), transparent 70%);
  pointer-events: none;
}

.tech-icon {
  width: 52px;
  height: 52px;
  color: var(--mint);
  margin-bottom: 1.25rem;
}

.tech-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.tech-card p {
  color: rgba(244, 251, 250, 0.65);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.tech-ui-demo {
  height: 120px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.scan-slice {
  position: absolute;
  left: 15%;
  right: 15%;
  height: 18px;
  top: calc(28% + var(--d) * 22px);
  background: linear-gradient(90deg, transparent, rgba(126, 221, 211, 0.5), transparent);
  border-radius: 4px;
  animation: slicePulse 2s ease-in-out infinite;
  animation-delay: calc(var(--d) * 0.2s);
}

@keyframes slicePulse {
  0%, 100% { opacity: 0.4; transform: scaleX(0.9); }
  50% { opacity: 1; transform: scaleX(1); }
}

.dsd-grid {
  position: absolute;
  inset: 12%;
  background-image:
    linear-gradient(rgba(126,221,211,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,221,211,0.15) 1px, transparent 1px);
  background-size: 16px 16px;
}

.dsd-curve {
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 28%;
  height: 30px;
  border: 2px solid var(--mint);
  border-top: none;
  border-radius: 0 0 40px 40px;
  animation: curveGlow 2.5s ease-in-out infinite;
}

@keyframes curveGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(126,221,211,0); }
  50% { box-shadow: 0 8px 20px rgba(126,221,211,0.4); }
}

.scanner-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  left: 10%;
  background: linear-gradient(180deg, transparent, var(--mint), transparent);
  box-shadow: 0 0 16px var(--mint);
  animation: beamSweep 2.8s ease-in-out infinite;
}

@keyframes beamSweep {
  0%, 100% { left: 12%; opacity: 0.4; }
  50% { left: 85%; opacity: 1; }
}

.laser-line {
  position: absolute;
  left: 15%;
  right: 15%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7ef9f0, transparent);
  box-shadow: 0 0 20px #7ef9f0;
  animation: laserFlash 1.5s ease-in-out infinite;
}

@keyframes laserFlash {
  0%, 100% { opacity: 0.3; transform: scaleX(0.6); }
  50% { opacity: 1; transform: scaleX(1); }
}

.breath-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border-radius: 50%;
  border: 2px solid var(--mint);
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(0.75); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* ============================================
   Journey
   ============================================ */

.journey {
  background: var(--pearl);
  overflow: hidden;
}

.journey-pin {
  min-height: 70vh;
  display: flex;
  align-items: center;
  /* Match other sections: keep the locked frame off the screen edges */
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  padding-bottom: 2rem;
  box-sizing: border-box;
}

.journey-inner {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  box-sizing: border-box;
}

.journey-rail {
  position: relative;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.journey-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(11, 43, 51, 0.1);
  left: 50%;
  transform: translateX(-50%);
}

.journey-line span {
  display: block;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--mint-deep), var(--aqua));
  transition: height 0.5s var(--ease-out-expo);
}

.journey-dot {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(14, 143, 138, 0.3);
  background: var(--ice);
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 0.85rem;
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
}

.journey-dot.is-active {
  background: var(--ocean);
  color: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 0 0 6px rgba(126, 221, 211, 0.2), var(--shadow-glow);
  transform: scale(1.1);
}

.journey-panels {
  position: relative;
  min-height: 340px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.journey-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity 0.5s, transform 0.55s var(--ease-out-expo), visibility 0.5s;
  background: var(--white);
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid rgba(11, 43, 51, 0.06);
  box-shadow: var(--shadow-soft);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.journey-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.jp-visual {
  height: 200px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--ocean), var(--ocean-soft));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: var(--mint);
}

.jp-orbit {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px dashed rgba(126, 221, 211, 0.4);
  border-radius: 50%;
  animation: ringSpin 10s linear infinite;
}

.jp-core {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.jp-cards {
  display: flex;
  gap: 0.5rem;
}

.jp-cards span {
  width: 36px;
  height: 80px;
  border-radius: 8px;
  background: rgba(126, 221, 211, 0.25);
  border: 1px solid rgba(126, 221, 211, 0.4);
  animation: cardBob 2s ease-in-out infinite;
}

.jp-cards span:nth-child(2) { height: 100px; animation-delay: 0.15s; background: rgba(126, 221, 211, 0.4); }
.jp-cards span:nth-child(3) { height: 60px; animation-delay: 0.3s; }

@keyframes cardBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.jp-waveforms {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
}

.jp-waveforms i {
  width: 6px;
  height: 20px;
  background: var(--mint);
  border-radius: 4px;
  animation: waveBar 1s ease-in-out infinite;
}

.jp-waveforms i:nth-child(2) { animation-delay: 0.1s; height: 40px; }
.jp-waveforms i:nth-child(3) { animation-delay: 0.2s; height: 55px; }
.jp-waveforms i:nth-child(4) { animation-delay: 0.3s; height: 30px; }

@keyframes waveBar {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.jp-spark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mint), transparent 70%);
  animation: sparkPulse 2s ease-in-out infinite;
}

@keyframes sparkPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.jp-copy h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ocean);
  margin-bottom: 0.75rem;
}

.jp-copy p {
  color: var(--slate);
  max-width: 40ch;
}

@media (max-width: 800px) {
  .journey-inner { grid-template-columns: 1fr; }
  .journey-rail {
    flex-direction: row;
    height: auto;
    width: 100%;
  }
  .journey-line {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
    transform: translateY(-50%);
  }
  .journey-line span {
    height: 100%;
    width: 0%;
    transition: width 0.5s var(--ease-out-expo);
  }
  .journey-panel {
    grid-template-columns: 1fr;
    position: relative;
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
    transform: none;
  }
  .journey-panel.is-active {
    height: auto;
    padding: 1.5rem;
    opacity: 1;
  }
  .jp-visual { height: 140px; }
}

/* ============================================
   Team
   ============================================ */

.team {
  background: var(--ice);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.team-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(11, 43, 51, 0.06);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(40px);
  transition: box-shadow 0.4s, border-color 0.3s;
  transform-style: preserve-3d;
  perspective: 800px;
}

.team-card:hover {
  box-shadow: 0 28px 60px rgba(7, 26, 34, 0.12);
  border-color: rgba(126, 221, 211, 0.35);
}

.team-photo {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 30%, hsla(var(--hue), 50%, 70%, 0.5), transparent 50%),
    linear-gradient(160deg, hsla(var(--hue), 40%, 40%, 1), hsla(calc(var(--hue) + 20), 35%, 25%, 1));
}

.team-photo-inner {
  position: absolute;
  inset: 15% 18% 0;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.25), transparent 40%),
    linear-gradient(180deg, hsla(var(--hue), 30%, 75%, 0.5), transparent);
}

.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,26,34,0.35), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
}

.team-card:hover .team-photo::after {
  opacity: 1;
}

.team-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: var(--ice);
  border: 1px solid rgba(255,255,255,0.2);
}

.team-info {
  padding: 1.25rem 1.35rem 1.5rem;
}

.team-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ocean);
  margin-bottom: 0.25rem;
}

.team-info p {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 0.85rem;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.team-tags span {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(126, 221, 211, 0.15);
  color: var(--teal);
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
}

/* ============================================
   Stories
   ============================================ */

.stories {
  background: linear-gradient(180deg, var(--pearl), var(--ice));
}

.stories-slider {
  max-width: 760px;
  margin-inline: auto;
  position: relative;
}

.stories-track {
  position: relative;
  min-height: 280px;
}

.story-card {
  position: absolute;
  inset: 0;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.55s, transform 0.55s var(--ease-out-expo), visibility 0.55s;
  background: var(--white);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(11, 43, 51, 0.06);
  box-shadow: var(--shadow-soft);
}

.story-card.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  position: relative;
}

.story-stars {
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.story-card p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.45;
  color: var(--ocean);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.story-card cite {
  font-style: normal;
  font-weight: 500;
  display: block;
  color: var(--ocean);
}

.story-card footer span {
  font-size: 0.8rem;
  color: var(--slate);
}

.stories-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.story-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(11, 43, 51, 0.12);
  display: grid;
  place-items: center;
  color: var(--ocean);
  transition: all 0.35s var(--ease-out-expo);
  cursor: pointer;
}

.story-btn:hover {
  background: var(--ocean);
  color: var(--mint);
  border-color: var(--ocean);
  transform: scale(1.06);
}

.story-dots {
  display: flex;
  gap: 0.5rem;
}

.story-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(11, 43, 51, 0.15);
  transition: all 0.35s;
  cursor: pointer;
  border: none;
  padding: 0;
}

.story-dot.is-active {
  width: 28px;
  border-radius: 8px;
  background: var(--mint-deep);
}

/* ============================================
   FAQ
   ============================================ */

.faq {
  background: var(--ice);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq-item {
  border-bottom: 1px solid rgba(11, 43, 51, 0.08);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ocean);
  cursor: pointer;
  transition: color 0.3s;
}

.faq-q:hover {
  color: var(--teal);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(14, 143, 138, 0.3);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out-expo), background 0.3s, border-color 0.3s;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--teal);
  transition: transform 0.35s;
}

.faq-icon::before {
  width: 12px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1.5px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-icon {
  background: var(--ocean);
  border-color: var(--ocean);
  transform: rotate(135deg);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background: var(--mint);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out-expo);
}

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

.faq-a p {
  overflow: hidden;
  color: var(--slate);
  padding-bottom: 0;
  max-width: 56ch;
}

.faq-item.is-open .faq-a p {
  padding-bottom: 1.25rem;
}

@media (max-width: 800px) {
  .faq-layout { grid-template-columns: 1fr; }
}

/* ============================================
   Contact
   ============================================ */

.contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--navy), var(--ocean) 60%, #0A353C);
  color: var(--ice);
}

.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-orb {
  position: absolute;
  width: 50vw;
  height: 50vw;
  right: -15%;
  bottom: -20%;
  background: radial-gradient(circle, rgba(126, 221, 211, 0.2), transparent 65%);
}

.contact .section-title {
  color: var(--ice);
}

.contact .section-text {
  color: rgba(244, 251, 250, 0.7);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.35s, border-color 0.35s, transform 0.35s;
}

a.contact-detail:hover {
  background: rgba(126, 221, 211, 0.1);
  border-color: rgba(126, 221, 211, 0.3);
  transform: translateX(4px);
}

.detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(126, 221, 211, 0.12);
  color: var(--mint);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.detail-icon svg { width: 18px; height: 18px; }

.detail-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 251, 250, 0.45);
  margin-bottom: 0.15rem;
}

.detail-value {
  font-size: 0.95rem;
  color: var(--ice);
  font-weight: 400;
}

.contact-demo-note {
  font-size: 0.8rem;
  color: rgba(244, 251, 250, 0.4);
  margin-top: 0.5rem;
}

.contact-form {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(126, 221, 211, 0.18);
  border-radius: 28px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.form-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  top: -60px;
  right: -40px;
  background: radial-gradient(circle, rgba(126, 221, 211, 0.2), transparent 70%);
  pointer-events: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-row {
  margin-bottom: 1rem;
}

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

.form-group label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 251, 250, 0.55);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: var(--ice);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  cursor: text;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237EDDD3' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(244, 251, 250, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(126, 221, 211, 0.55);
  box-shadow: 0 0 0 3px rgba(126, 221, 211, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.form-group select option {
  background: var(--ocean);
  color: var(--ice);
}

.contact-form .btn-primary {
  margin-top: 0.5rem;
  background: var(--mint);
  color: var(--navy);
}

.contact-form .btn-primary::before {
  background: var(--ice);
}

.form-success,
.form-error {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.form-success {
  color: var(--mint);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s, max-height 0.4s;
}

.form-success.is-visible {
  opacity: 1;
  max-height: 80px;
}

.form-error {
  color: var(--danger);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row--2 { grid-template-columns: 1fr; }
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--navy);
  color: rgba(244, 251, 250, 0.7);
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(126, 221, 211, 0.1);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-brand .logo-text {
  color: var(--ice);
  display: block;
  margin-bottom: 0.35rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(244, 251, 250, 0.4);
}

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

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: var(--ice);
  transition: all 0.35s var(--ease-out-expo);
}

.footer-social a:hover {
  background: var(--mint);
  color: var(--navy);
  border-color: var(--mint);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

.footer-agency-link {
  color: var(--mint);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.footer-agency-link:hover {
  border-bottom-color: var(--mint);
}

.footer-cookie-link {
  font: inherit;
  font-size: inherit;
  color: rgba(244, 251, 250, 0.45);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s;
}

.footer-cookie-link:hover {
  color: var(--mint);
}

@media (pointer: fine) {
  .footer-cookie-link {
    cursor: none;
  }
}

/* ============================================
   Responsive fine-tune
   ============================================ */

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }
  .hero-title {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }
  .hero-visual {
    min-height: 240px;
  }
  .float-card--scan {
    transform: scale(0.9);
  }
  .float-card--comfort {
    transform: scale(0.9);
  }
  .services-pin,
  .smile-pin,
  .tech-pin {
    /* Keep pin sections usable on phones */
    min-height: 100svh;
  }
  .service-panel {
    padding: 1.5rem 1.35rem;
  }
  .service-panel h3 {
    font-size: 1.55rem;
  }
  .compare-frame {
    border-radius: 20px;
  }
  .tech-card {
    min-height: 360px;
  }
}

/*
  Mobile / live-host pre-scroll lag fix (mirrors desktop cursor gate):
  Browsers throttle compositing & rAF until the first user scroll/touch.
  Continuous CSS animations stutter hard on mobile until then — freeze them
  until html.boot-anim-live is set (main.js on first wheel/touch/scroll).
  Loader animations are excluded so the boot sequence stays smooth.
*/
html:not(.boot-anim-live) .hero-orb,
html:not(.boot-anim-live) .badge-dot,
html:not(.boot-anim-live) .smile-ring--outer,
html:not(.boot-anim-live) .smile-ring--mid,
html:not(.boot-anim-live) .smile-core,
html:not(.boot-anim-live) .scan-line,
html:not(.boot-anim-live) .float-pulse,
html:not(.boot-anim-live) .scroll-line span,
html:not(.boot-anim-live) .marquee-track,
html:not(.boot-anim-live) .av-bar,
html:not(.boot-anim-live) .av-wave,
html:not(.boot-anim-live) .av-wave::before,
html:not(.boot-anim-live) .av-wave::after,
html:not(.boot-anim-live) .av-ring,
html:not(.boot-anim-live) .sparkle-burst,
html:not(.boot-anim-live) .scan-slice,
html:not(.boot-anim-live) .dsd-curve,
html:not(.boot-anim-live) .scanner-beam,
html:not(.boot-anim-live) .laser-line,
html:not(.boot-anim-live) .breath-circle,
html:not(.boot-anim-live) .jp-orbit,
html:not(.boot-anim-live) .jp-cards span,
html:not(.boot-anim-live) .jp-waveforms i,
html:not(.boot-anim-live) .jp-spark,
html:not(.boot-anim-live) .contact-orb {
  animation-play-state: paused !important;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track {
    animation: none;
  }
  #sparkle-canvas {
    display: none;
  }
}

/* ============================================
   Cookie notice (minimal, agency-style)
   ============================================ */

.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cookie-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-notice__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  width: 100%;
  padding: 0.7rem clamp(1rem, 4vw, 2rem);
  padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(126, 221, 211, 0.15);
  background: rgba(7, 26, 34, 0.96);
  font-family: var(--font-body);
}

.cookie-notice__text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(244, 251, 250, 0.72);
  text-align: center;
}

.cookie-notice__text a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-notice__text a:hover {
  color: var(--ice);
}

/* Keep custom cursor over cookie bar */
.cookie-notice,
.cookie-notice * {
  cursor: none;
}

.cookie-notice__btn {
  appearance: none;
  flex-shrink: 0;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.05rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--mint);
  cursor: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cookie-notice__btn:hover {
  background: var(--aqua);
  transform: translateY(-1px);
}

.cookie-notice__btn:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .cookie-notice,
  .cookie-notice * {
    cursor: auto;
  }
  .cookie-notice__btn {
    cursor: pointer;
  }
  .cookie-notice__inner {
    padding-bottom: max(5rem, calc(env(safe-area-inset-bottom) + 4.25rem));
  }
}
