/* ============================================================
   YONOV — Dental Practice · Interactive Experience
   Core design system: tokens, reset, layout, components, motion
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

/* ---------------------------------------------------------- */
/*  TOKENS                                                    */
/* ---------------------------------------------------------- */
:root {
  /* Light — warm paper world */
  --bg:          #F6F7FA;
  --bg-2:        #ECEFF7;
  --bg-3:        #E1E6F1;
  --surface:     #FFFFFF;
  --surface-2:   #FBFCFE;

  --ink:         #16130F;
  --ink-2:       #2C2620;
  --ink-3:       #4A4339;
  --muted:       #756C5E;
  --muted-2:     #9B9384;

  --line:        rgba(22,19,15,0.12);
  --line-soft:   rgba(22,19,15,0.07);
  --line-strong: rgba(22,19,15,0.24);

  /* Brand */
  --mint:        #0048CE;   /* primary — royal blue (light contexts) */
  --mint-deep:   #003FB8;
  --mint-dark:   #002D7F;
  --mint-soft:   #C3D2F2;
  --mint-wash:   #E8EEFA;
  --mint-bright: #5C8AEC;   /* lighter blue for use on dark backgrounds */

  --navy:        #0033A6;   /* a bit darker than the accent blue (replaces the old navy) */
  --navy-2:      #002A8E;

  --coral:       #FF6A43;   /* warm energy / CTA hover / game pop */
  --coral-deep:  #D74C2A;
  --gold:        #FFC65C;   /* sparkle / highlight */
  --gold-deep:   #C9912E;
  --sky:         #93D6EE;

  --success:     #2FA56E;
  --danger:      #C0533A;

  /* Dark — immersive "lab" world (games, footer) */
  --d-bg:        #0A1730;
  --d-bg-2:      #0F1F3E;
  --d-surface:   #15294C;
  --d-surface-2: #1C3258;
  --d-line:      rgba(255,255,255,0.13);
  --d-line-soft: rgba(255,255,255,0.07);
  --d-fg:        #EAF3F1;
  --d-fg-2:      #C2D2CF;
  --d-muted:     #7E9692;

  /* Type — single geometric humanist sans for everything, mono for labels */
  --sans:    'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif:   'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; /* legacy alias */
  --mono:    'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; /* unified — was JetBrains Mono */

  /* Fluid type scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   clamp(1.15rem, 1.4vw, 1.35rem);
  --fs-xl:   clamp(1.25rem, 1.8vw, 1.6rem);
  --fs-2xl:  clamp(1.5rem, 2.6vw, 2.2rem);
  --fs-3xl:  clamp(1.8rem, 3.7vw, 3.0rem);
  --fs-4xl:  clamp(2.1rem, 5.4vw, 4.0rem);
  --fs-mega: clamp(2.4rem, 6.4vw, 5rem);

  /* Spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --sp-11: 160px; --sp-12: 224px;

  /* Radii */
  --r-1: 6px; --r-2: 12px; --r-3: 20px; --r-4: 32px; --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(22,19,15,.06), 0 2px 8px rgba(22,19,15,.05);
  --sh-2: 0 2px 6px rgba(22,19,15,.06), 0 14px 32px rgba(22,19,15,.10);
  --sh-3: 0 8px 24px rgba(22,19,15,.10), 0 28px 70px rgba(22,19,15,.16);
  --sh-glow: 0 0 0 1px rgba(0,72,206,.35), 0 8px 40px rgba(0,72,206,.30);

  /* Motion */
  --ease:      cubic-bezier(.22,.61,.36,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-1: 140ms; --dur-2: 280ms; --dur-3: 480ms; --dur-4: 760ms; --dur-5: 1100ms;

  /* Layout */
  --maxw: 1660px;
  --maxw-narrow: 1000px;
  --gutter: clamp(18px, 4.5vw, 80px);
  --nav-h: 84px;
}

/* ---------------------------------------------------------- */
/*  RESET                                                     */
/* ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.62;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--mint); color: #FFFFFF; }

/* Custom scrollbar (subtle) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--mint-deep); border: 3px solid var(--bg-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--mint-dark); }

/* ---------------------------------------------------------- */
/*  TYPOGRAPHY                                                */
/* ---------------------------------------------------------- */
.serif { font-family: var(--display); }
.mono  { font-family: var(--mono); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; color: var(--ink); }
.display {
  font-family: var(--display); font-weight: 800;
  font-size: var(--fs-4xl); line-height: .94; letter-spacing: -.035em; color: var(--ink);
}
.h-mega { font-family: var(--display); font-size: var(--fs-mega); line-height: .88; letter-spacing: -.045em; font-weight: 800; }
.h1 { font-size: var(--fs-3xl); line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.h2 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.03em; }
.h3 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.025em; }
.h4 { font-size: var(--fs-lg); font-family: var(--sans); font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
/* "accent" word styling — no italics, use weight + colour instead */
em, .it { font-style: normal; font-weight: 500; color: var(--mint-deep); }
.bg-dark em, .bg-dark .it, em.on-dark { color: var(--mint-bright); }
.display em, .h1 em, .h2 em, .h3 em { font-family: inherit; font-weight: 500; }

.lead { font-size: 1.06rem; line-height: 1.6; color: var(--ink-3); font-weight: 400; }
@media (min-width: 720px){ .lead { font-size: var(--fs-lg); line-height: 1.55; } }
.body-lg { font-size: var(--fs-md); line-height: 1.65; }
.small { font-size: var(--fs-sm); line-height: 1.55; }
.tiny { font-size: var(--fs-xs); line-height: 1.4; }

.eyebrow {
  font-family: var(--mono);
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mint-deep); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { display: none; }
.eyebrow.no-rule::before { display: none; }
.eyebrow.on-dark { color: var(--mint-bright); }
.eyebrow.coral { color: var(--coral-deep); }

.muted { color: var(--muted); }
.kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }

/* Outline / stroke text effect for big statements */
.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.on-dark .text-outline, .text-outline.on-dark { -webkit-text-stroke-color: var(--d-fg); }

/* Highlighted word */
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content:""; position: absolute; left: -.06em; right: -.06em; bottom: .04em; height: .42em;
  background: var(--mint-soft); z-index: -1; border-radius: .1em;
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
.in-view .hl::after, .hl.lit::after { transform: scaleX(1); }
.hl.gold::after { background: rgba(255,198,92,.5); }
.hl.coral::after { background: rgba(255,106,67,.28); }

/* ---------------------------------------------------------- */
/*  LAYOUT                                                    */
/* ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--maxw-narrow); }
.section { padding-block: clamp(64px, 9vw, 150px); position: relative; }
.section.tight { padding-block: clamp(48px, 6vw, 90px); }
.section.flush-top { padding-top: 0; }
.section.flush-bottom { padding-bottom: 0; }
.bg-2  { background: var(--bg-2); }
.bg-3  { background: var(--bg-3); }
.bg-surface { background: var(--surface); }
.bg-mint-wash { background: var(--mint-wash); }
.bg-dark { background: var(--d-bg); color: var(--d-fg); }
.bg-dark h1,.bg-dark h2,.bg-dark h3,.bg-dark h4,.bg-dark .display { color: var(--d-fg); }
.bg-dark .lead,.bg-dark .body-lg { color: var(--d-fg-2); }
.bg-dark .muted { color: var(--d-muted); }
.bg-navy { background: var(--navy); color: var(--d-fg); }
.bg-navy h1,.bg-navy h2,.bg-navy h3,.bg-navy h4 { color: #fff; }

.grid { display: grid; gap: var(--sp-6); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .cols-2,.cols-3,.cols-4 { grid-template-columns: 1fr; } .cols-3.keep-2-tablet { grid-template-columns: 1fr 1fr; } }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.col { flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 24px; } .gap-6 { gap: 32px; }
.wrap-fl { flex-wrap: wrap; }
.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-5{margin-top:24px}.mt-6{margin-top:32px}.mt-7{margin-top:48px}.mt-8{margin-top:64px}
.mb-5{margin-bottom:24px}.mb-6{margin-bottom:32px}.mb-7{margin-bottom:48px}
.maxw-prose { max-width: 56ch; }
.maxw-prose-wide { max-width: 68ch; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
hr.rule.strong { border-top-color: var(--line-strong); }
.bg-dark hr.rule, hr.rule.on-dark { border-top-color: var(--d-line); }

/* Decorative dotted/blueprint backdrop */
.dotgrid {
  background-image: radial-gradient(currentColor .9px, transparent .9px);
  background-size: 26px 26px;
  color: rgba(22,19,15,.10);
}
.bg-dark .dotgrid, .dotgrid.on-dark { color: rgba(255,255,255,.10); }

/* the 6-games strip: a light section; each game stage carries its own subtle faded photo (reuses the index .sec-bg-img treatment, one per stage) */
.games-zone { position: relative; background: var(--bg-2); }
.games-zone > .aurora { z-index: 0; }
.games-zone .game-stage { position: relative; }
.games-zone .game-stage > .wrap, .games-zone .section > .wrap { position: relative; z-index: 1; }

/* ---------------------------------------------------------- */
/*  BUTTONS                                                   */
/* ---------------------------------------------------------- */
.btn {
  --bg-c: var(--ink); --fg-c: #fff;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px; border-radius: var(--r-pill);
  background: var(--bg-c); color: var(--fg-c);
  font-family: var(--sans); font-weight: 500; font-size: .95rem; letter-spacing: -.01em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
  will-change: transform;
}
.btn .lbl { position: relative; z-index: 2; transition: color var(--dur-2) var(--ease); }
.btn::before {
  content:""; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: var(--coral); transform: translateY(101%); transition: transform var(--dur-3) var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: var(--sh-2); }
.btn:active { transform: scale(.97); }
.btn .arr { position: relative; z-index: 2; width: 1.05em; height: 1.05em; transition: transform var(--dur-2) var(--ease); }
.btn:hover .arr { transform: translateX(4px) rotate(-2deg); }

.btn--mint { --bg-c: var(--mint); --fg-c: #FFFFFF; }
.btn--mint::before { background: var(--ink); }
.btn--mint:hover .lbl { color: #fff; }
.btn--mint:hover .arr { color:#fff; }
.btn--coral { --bg-c: var(--coral); --fg-c: #fff; }
.btn--coral::before { background: var(--ink); }
.btn--outline { --bg-c: transparent; --fg-c: var(--ink); border: 1px solid var(--line-strong); }
.btn--outline::before { background: var(--ink); }
.btn--outline:hover { --fg-c: #fff; color:#fff; }
.btn--outline:hover .lbl { color:#fff; }
.btn--ghost-dark { --bg-c: transparent; --fg-c: var(--d-fg); border: 1px solid var(--d-line); }
.btn--ghost-dark::before { background: var(--mint-bright); }
.btn--ghost-dark:hover { color:#0a1730; }
.btn--ghost-dark:hover .lbl { color:#0a1730; }
.btn--white { --bg-c: #FFFFFF; --fg-c: var(--mint-deep); }
.btn--white::before { background: var(--mint-deep); }
.btn--white:hover { color:#fff; }
.btn--white:hover .lbl, .btn--white:hover .arr { color:#fff; }
.btn--lg { padding: 19px 34px; font-size: 1.05rem; }
.btn--sm { padding: 9px 15px; font-size: .8rem; }
.nav .btn--sm { padding: 11px 18px; font-size: .85rem; }
.nav .btn--sm .arr { width: .9em; height: .9em; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* Text link with animated underline */
.link {
  position: relative; font-weight: 500; display: inline-flex; align-items: center; gap: 7px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1.5px; color: var(--mint-deep); }
.link.on-dark:hover { color: var(--mint-bright); }
.link .arr { width: 1em; height: 1em; transition: transform var(--dur-2) var(--ease); }
.link:hover .arr { transform: translateX(3px); }

/* magnetic helper (JS adds .is-magnetic) */
.is-magnetic { transition: transform var(--dur-2) var(--ease-out); }

/* ---------------------------------------------------------- */
/*  PILL / TAG / BADGE                                        */
/* ---------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%); border: 1px solid rgba(255,255,255,.7); box-shadow: var(--sh-1);
  font-size: .78rem; font-weight: 500; letter-spacing: .01em; color: var(--ink-3);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.pill .dot.live { box-shadow: 0 0 0 0 rgba(0,72,206,.5); animation: ping 1.8s var(--ease-out) infinite; }
.pill.on-dark { background: rgba(255,255,255,.07); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-color: rgba(255,255,255,.16); color: var(--d-fg-2); box-shadow: none; }
.tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.num-badge {
  font-family: var(--display); font-weight: 800; font-size: 1rem; line-height: 1;
  display: inline-grid; place-items: center; min-width: 2.4em; height: 2.4em; padding: 0 .4em;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--ink);
}

/* ---------------------------------------------------------- */
/*  CARDS                                                     */
/* ---------------------------------------------------------- */
.card {
  background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.72); border-radius: var(--r-3);
  padding: clamp(24px, 3vw, 40px); box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.card.hoverable:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: rgba(255,255,255,.9); background: rgba(255,255,255,.78); }
.card.flat { box-shadow: none; background: rgba(255,255,255,.5); border-color: rgba(255,255,255,.6); }
.card.on-dark { background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); border-color: rgba(255,255,255,.14); }
.card.on-dark.hoverable:hover { border-color: var(--mint-bright); }
.card-icon {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: var(--r-2);
  background: rgba(0,72,206,.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--mint-deep); margin-bottom: 20px; border: 1px solid rgba(0,72,206,.22);
}
.card.on-dark .card-icon { background: rgba(92,138,236,.16); color: var(--mint-bright); }

/* Stat */
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem,5vw,4.4rem); line-height: .9; color: var(--mint-deep); letter-spacing: -.04em; }
.bg-dark .stat-num { color: var(--mint-bright); }
.stat-lbl { font-size: .82rem; color: var(--muted); margin-top: 10px; max-width: 22ch; }
.bg-dark .stat-lbl { color: var(--d-muted); }

/* ---------------------------------------------------------- */
/*  IMAGE FRAMES                                              */
/* ---------------------------------------------------------- */
.imgframe { position: relative; overflow: hidden; border-radius: var(--r-3); background: var(--bg-3); }
.imgframe img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.imgframe.zoomable:hover img { transform: scale(1.05); }
.imgframe .cap {
  position: absolute; left: 0; bottom: 0; padding: 10px 14px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: rgba(10,18,34,.5); backdrop-filter: blur(8px); border-top-right-radius: var(--r-1);
}
.ar-3-4 { aspect-ratio: 3/4; }
.ar-4-3 { aspect-ratio: 4/3; }
.ar-1-1 { aspect-ratio: 1/1; }
.ar-16-9 { aspect-ratio: 16/9; }
.ar-3-2 { aspect-ratio: 3/2; }
/* corner ticks */
.ticks::before, .ticks::after, .ticks > .tk1, .ticks > .tk2 {
  content:""; position:absolute; width: 16px; height: 16px; border: 1.5px solid rgba(255,255,255,.7); z-index: 3;
}
.ticks::before { top: 14px; left: 14px; border-right:0; border-bottom:0; }
.ticks::after { top: 14px; right: 14px; border-left:0; border-bottom:0; }
.ticks > .tk1 { bottom: 14px; left: 14px; border-right:0; border-top:0; }
.ticks > .tk2 { bottom: 14px; right: 14px; border-left:0; border-top:0; }

/* ---------------------------------------------------------- */
/*  NAV                                                       */
/* ---------------------------------------------------------- */
.topbar {
  position: relative; z-index: 101;
  background: #FFFFFF;
  color: var(--muted);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 12px; }
.topbar .grp { display: flex; align-items: center; gap: 0; }
.topbar .grp > * { display: inline-flex; align-items: center; padding-inline: 16px; position: relative; }
.topbar .grp > *:first-child { padding-left: 0; }
.topbar .grp > *:last-child { padding-right: 0; }
.topbar .grp > * + *::before { content:""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 13px; background: rgba(22,19,15,.16); }
.topbar a { transition: color var(--dur-2) var(--ease); }
.topbar a:hover { color: var(--mint-deep); }
.topbar a.tb-tel { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.topbar a.tb-tel svg { width: 14px; height: 14px; color: var(--mint-deep); }
.topbar .blink { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); display: inline-block; margin-right: 10px; box-shadow: 0 0 0 0 rgba(0,72,206,.45); animation: ping 2.4s var(--ease-out) infinite; }
@media (max-width: 820px){ .topbar .grp.secondary { display: none; } .topbar .wrap { justify-content: center; } }
@media (max-width: 480px){ .topbar { font-size: .62rem; letter-spacing: .1em; } }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.nav.scrolled { background: #FFFFFF; border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(22,19,15,.07); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand .mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand .word { font-family: var(--display); font-size: 1.18rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; color: var(--ink); white-space: nowrap; }
.brand .word .sub { display:block; font-family: var(--mono); font-size: .52rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-top: 3px; }
@media (max-width:560px){ .brand .word .sub { display:none; } }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; font-size: .92rem; font-weight: 500; color: var(--ink-3); border-radius: var(--r-pill);
  transition: color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.nav-links a .nav-ic { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; color: var(--mint-deep); opacity: .72; transition: opacity var(--dur-2) var(--ease); flex-shrink: 0; }
.nav-links a .nav-ic svg { width: 100%; height: 100%; }
.nav-links a:hover .nav-ic, .nav-links a.active .nav-ic { opacity: 1; }
.nav-links a:hover { color: var(--ink); background: rgba(22,19,15,.05); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content:""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; background: var(--mint); border-radius: 2px; }
.nav-end { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-tel { display: inline-flex; align-items: center; gap: 7px; font-size: .98rem; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.nav-tel svg { width: 16px; height: 16px; color: var(--mint-deep); flex-shrink: 0; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line); align-items:center; justify-content:center; flex-direction: column; gap: 5px; }
.nav-burger span { display:block; width: 19px; height: 1.6px; background: var(--ink); transition: transform var(--dur-2) var(--ease), opacity var(--dur-1) var(--ease); }
body.menu-open .nav-burger span:nth-child(1){ transform: translateY(6.6px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2){ opacity: 0; }
body.menu-open .nav-burger span:nth-child(3){ transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 1000px){
  .nav-links, .nav-tel { display: none; }
  .nav-burger { display: flex; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%);
  transform: translateY(-100%); transition: transform var(--dur-3) var(--ease-out);
  display: flex; flex-direction: column; padding: calc(var(--nav-h) + 30px) var(--gutter) 40px;
  overflow-y: auto;
}
body.menu-open .mobile-menu { transform: translateY(0); }
.mobile-menu a.m-link {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 7vw, 2.6rem); line-height: 1.1; letter-spacing: -.03em; color: var(--ink);
  padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline;
  opacity: 0; transform: translateY(20px);
}
body.menu-open .mobile-menu a.m-link { opacity: 1; transform: translateY(0); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
body.menu-open .mobile-menu a.m-link:nth-child(1){ transition-delay: .08s; }
body.menu-open .mobile-menu a.m-link:nth-child(2){ transition-delay: .14s; }
body.menu-open .mobile-menu a.m-link:nth-child(3){ transition-delay: .20s; }
body.menu-open .mobile-menu a.m-link:nth-child(4){ transition-delay: .26s; }
body.menu-open .mobile-menu a.m-link:nth-child(5){ transition-delay: .32s; }
.mobile-menu a.m-link .m-ic { width: 28px; height: 28px; color: var(--mint-deep); opacity: .6; align-self: center; flex-shrink: 0; }
.mobile-menu a.m-link .m-ic svg { width: 100%; height: 100%; }
.mobile-menu .m-foot { margin-top: auto; padding-top: 30px; display: flex; flex-direction: column; gap: 14px; }

/* ---------------------------------------------------------- */
/*  MARQUEE                                                   */
/* ---------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px; background: var(--surface-2); }
.marquee.on-dark { background: var(--d-bg-2); border-color: var(--d-line); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span.it-m {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -.02em; color: var(--ink);
  padding-inline: 28px; display: inline-flex; align-items: center; gap: 28px; white-space: nowrap;
}
.marquee.on-dark .marquee-track span.it-m { color: var(--d-fg); }
.marquee-track .sep { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); flex-shrink: 0; }
.marquee.reverse .marquee-track { animation-direction: reverse; }

/* ---------------------------------------------------------- */
/*  SECTION HEADERS                                           */
/* ---------------------------------------------------------- */
.shead { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: clamp(32px, 4.5vw, 60px); align-items: end; }
@media (min-width: 880px){ .shead.split { grid-template-columns: 1fr 1.1fr; } .shead.split.flip { grid-template-columns: 1.1fr 1fr; } }
.shead .sh-meta { display: flex; flex-direction: column; gap: 16px; }
.shead .sh-meta p { color: var(--muted); max-width: 40ch; }
.shead h2 { font-size: var(--fs-2xl); }
.shead.center { text-align: center; justify-items: center; }
.shead.center .sh-meta { align-items: center; }

/* ---------------------------------------------------------- */
/*  REVEAL ANIMATIONS                                         */
/* ---------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); will-change: opacity, transform; }
[data-reveal].in-view { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="clip"] { opacity: 1; clip-path: inset(0 100% 0 0); transform: none; transition: clip-path 1s var(--ease-out); }
[data-reveal="clip"].in-view { clip-path: inset(0 0 0 0); }
[data-reveal-delay="1"]{ transition-delay: .09s; } [data-reveal-delay="2"]{ transition-delay: .18s; }
[data-reveal-delay="3"]{ transition-delay: .27s; } [data-reveal-delay="4"]{ transition-delay: .36s; }
[data-reveal-delay="5"]{ transition-delay: .45s; } [data-reveal-delay="6"]{ transition-delay: .54s; }

/* Line-by-line headline reveal: spans get .line wrappers from JS */
.split-lines .line { display: block; overflow: hidden; }
.split-lines .line > span { display: block; transform: translateY(105%); transition: transform var(--dur-5) var(--ease-out); }
.split-lines.in-view .line > span { transform: translateY(0); }
.split-lines.in-view .line:nth-child(2) > span { transition-delay: .08s; }
.split-lines.in-view .line:nth-child(3) > span { transition-delay: .16s; }
.split-lines.in-view .line:nth-child(4) > span { transition-delay: .24s; }

/* counter target style */
.counter { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- */
/*  HERO (home)                                               */
/* ---------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(40px, 7vw, 90px); padding-bottom: clamp(40px, 6vw, 80px); overflow: clip; }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px){ .hero-grid { grid-template-columns: 1.18fr .82fr; align-items: center; } }
.hero-display { font-family: var(--display); font-weight: 800; font-size: var(--fs-4xl); line-height: .94; letter-spacing: -.025em; color: var(--ink); }
.hero-display .soft { color: var(--muted-2); }
.hero-display em { font-weight: 500; }
.hero-tooth-badge { display:inline-grid; place-items:center; width:.92em; height:.92em; vertical-align:-.06em; margin-inline:.08em; }
.hero-side { display: flex; flex-direction: column; gap: 22px; }
.hero-meta-row { display: flex; gap: 14px; align-items: baseline; font-size: .9rem; padding-block: 11px; border-bottom: 1px solid var(--line); }
.hero-meta-row .k { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); min-width: 4.5em; }
.hero-meta-row .v { color: var(--ink-3); }
.hero-stage { position: relative; }
.hero-portrait { position: relative; border-radius: var(--r-4); overflow: hidden; box-shadow: var(--sh-3); }
.hero-portrait img { width: 100%; aspect-ratio: 4/4.6; object-fit: cover; }
.hero-float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2);
  padding: 14px 18px; box-shadow: var(--sh-2); display: flex; align-items: center; gap: 14px;
}
.hero-float-card .ic { width: 40px; height: 40px; flex-shrink: 0; }
.hero-float-card .t { font-weight: 600; font-size: .9rem; color: var(--ink); }
.hero-float-card .s { font-size: .74rem; color: var(--muted); }
.hero-float-card.fc-1 { left: -22px; top: 18%; animation: floaty 6s ease-in-out infinite; }
.hero-float-card.fc-2 { right: -26px; bottom: 16%; animation: floaty 7.5s ease-in-out infinite reverse; }
@media (max-width: 980px){ .hero-float-card.fc-1{ left: 8px; } .hero-float-card.fc-2{ right: 8px; } }
@media (max-width: 540px){ .hero-float-card{ display: none; } }
.hero-scroll-cue { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 36px; }
.hero-scroll-cue .ln { width: 40px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero-scroll-cue .ln::after { content:""; position:absolute; inset:0; width: 14px; background: var(--mint-deep); animation: scrollcue 1.8s var(--ease-in-out) infinite; }

/* big background word */
.bgword { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-family: var(--display); font-weight: 800; font-size: clamp(8rem, 30vw, 28rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(22,19,15,.07); white-space: nowrap; pointer-events: none; z-index: 0; user-select: none; }
.bg-dark .bgword { -webkit-text-stroke-color: rgba(255,255,255,.06); }

/* ---------------------------------------------------------- */
/*  SERVICE / GAME TEASER GRID (home)                         */
/* ---------------------------------------------------------- */
.svc-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; }
@media (min-width: 720px){ .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px){ .svc-grid { grid-template-columns: 1fr 1fr 1fr; } }
.svc-cell {
  background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); padding: clamp(26px, 3vw, 40px); position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px; min-height: 270px;
  transition: background var(--dur-2) var(--ease);
}
.svc-cell::after { content:""; position: absolute; inset: 0; background: radial-gradient(420px 280px at var(--mx,50%) var(--my,0%), rgba(0,72,206,.10), transparent 70%); opacity: 0; transition: opacity var(--dur-2) var(--ease); pointer-events: none; }
.svc-cell:hover { background: rgba(255,255,255,.78); }
.svc-cell:hover::after { opacity: 1; }
.svc-cell .svc-n { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--muted-2); }
.svc-cell .svc-ic { width: 52px; height: 52px; color: var(--mint-deep); }
.svc-cell h3 { font-size: 1.6rem; line-height: 1.05; }
.svc-cell .svc-desc { font-size: .9rem; color: var(--muted); flex: 1; }
.svc-cell .svc-play { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .85rem; color: var(--ink); }
.svc-cell .svc-play .pico { width: 26px; height: 26px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: #FFFFFF; transition: transform var(--dur-2) var(--ease-spring); }
.svc-cell:hover .svc-play .pico { transform: scale(1.15) rotate(8deg); }

/* ---------------------------------------------------------- */
/*  GAME SECTION (uslugi)                                     */
/* ---------------------------------------------------------- */
.game-stage { position: relative; padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line-soft); }
.game-stage:first-of-type { border-top: 0; }
.game-layout { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1000px){
  .game-layout { grid-template-columns: .82fr 1.18fr; }
  .game-layout.flip { grid-template-columns: 1.18fr .82fr; }
  .game-layout.flip .game-info { order: 2; }
}
.game-info { display: flex; flex-direction: column; gap: 20px; max-width: 46ch; }
.game-info .g-num { display: inline-flex; align-items: center; justify-content: center; width: clamp(54px, 5.6vw, 66px); height: clamp(54px, 5.6vw, 66px); border-radius: 16px; background: var(--mint-deep); color: #fff; box-shadow: 0 10px 26px rgba(0,40,130,.18); overflow: hidden; }
.game-info .g-num > svg { width: 100%; height: 100%; display: block; filter: brightness(0) invert(1); }   /* force the lottie/fallback icon to render white */
.game-info h2 { font-size: var(--fs-2xl); color: var(--ink); }
.game-info .g-when { background: var(--mint); border: 1px solid var(--mint); border-radius: var(--r-2); padding: 16px 18px; font-size: .9rem; color: rgba(255,255,255,.9); display: flex; gap: 12px; box-shadow: 0 14px 30px rgba(0,72,206,.18); }
.game-info .g-when b { color: #fff; }
.game-info .g-when .gw-ic { color: #fff; flex-shrink: 0; width: 22px; height: 22px; }
.game-info .g-meta { display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.game-info .g-meta b { display:block; color: var(--ink); font-family: var(--sans); font-size: .92rem; letter-spacing: 0; text-transform: none; font-weight: 600; margin-top: 4px; }

/* The interactive canvas wrapper */
.game-box {
  position: relative; border-radius: var(--r-4); overflow: hidden;
  background: radial-gradient(125% 130% at 50% -8%, #3a5ec6 0%, #1f44a0 48%, #0b2c86 100%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 26px 60px rgba(0,36,116,.24), 0 4px 14px rgba(0,36,116,.14), inset 0 1px 0 rgba(255,255,255,.10);
  aspect-ratio: 4/3; touch-action: none; user-select: none;
}
@media (max-width: 560px){ .game-box { aspect-ratio: 1/1; } }
.game-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: none; }
.game-box.no-cursor canvas { cursor: none; }

/* HUD */
.game-hud { position: absolute; inset: 0; pointer-events: none; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; }
.game-hud .hud-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.game-hud .hud-tag { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--d-muted); }
.game-hud .hud-step { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-bright); display:flex; align-items:center; gap:8px; }
.game-hud .hud-step .sd { width: 6px; height: 6px; border-radius: 50%; background: var(--mint-bright); box-shadow: 0 0 12px var(--mint-bright); }
.game-progress-wrap { display: flex; align-items: center; gap: 12px; }
.game-progress { flex: 1; height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.game-progress .bar { height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, var(--mint-bright), #9DBAF4); transition: width .3s var(--ease); box-shadow: 0 0 14px rgba(92,138,236,.6); }
.game-progress-num { font-family: var(--mono); font-size: .72rem; color: var(--d-fg-2); min-width: 3.4em; text-align: right; }
.game-hint {
  align-self: center; pointer-events: none; background: rgba(10,18,34,.5); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--d-line); border-radius: var(--r-pill); padding: 9px 16px;
  font-size: .82rem; color: var(--d-fg); display: inline-flex; gap: 9px; align-items: center;
  transition: opacity var(--dur-2) var(--ease); margin-bottom: 6px;
}
.game-hint .hk { width: 16px; height: 16px; color: var(--mint-bright); }
.game-hint.hide { opacity: 0; }

/* Tool tray (for assemble games) */
.game-tray {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: auto;
  display: flex; gap: 10px; justify-content: center; padding: 12px;
  background: linear-gradient(0deg, rgba(7,14,30,.7), transparent);
}
/* (most tray content is drawn on canvas; this is a fallback container) */

/* Replay / overlay */
.game-overlay {
  position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center;
  background: radial-gradient(60% 60% at 50% 45%, rgba(0,72,206,.18), transparent 70%);
  opacity: 0; transition: opacity var(--dur-3) var(--ease);
}
.game-overlay.show { opacity: 1; pointer-events: auto; }
.game-overlay .ov-card {
  text-align: center; transform: translateY(14px) scale(.96); transition: transform var(--dur-3) var(--ease-spring);
  padding: clamp(26px, 4vw, 44px) clamp(28px, 5vw, 56px);
  border-radius: var(--r-4);
  background: rgba(11, 23, 46, .42);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .12);
  max-width: min(92%, 440px);
}
.game-overlay.show .ov-card { transform: none; }
.game-overlay .ov-ic { width: 64px; height: 64px; margin: 0 auto 14px; }
.game-overlay .ov-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem,4vw,2.6rem); color: #fff; line-height: 1.05; letter-spacing: -.03em; }
.game-overlay .ov-sub { color: var(--d-fg-2); font-size: .92rem; margin-top: 8px; max-width: 32ch; margin-inline: auto; }
.game-overlay .ov-actions { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.game-replay {
  position: absolute; right: 14px; bottom: 14px; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-pill);
  background: rgba(10,18,34,.55); backdrop-filter: blur(8px); border: 1px solid var(--d-line);
  font-size: .78rem; color: var(--d-fg); opacity: 0; transition: opacity var(--dur-2) var(--ease);
}
.game-box.dirty .game-replay { opacity: 1; pointer-events: auto; }
.game-replay:hover { background: var(--mint-bright); color: #0a1730; border-color: transparent; }
.game-replay svg { width: 14px; height: 14px; }
body.over-game .cursor-dot, body.over-game .cursor-ring { opacity: 0 !important; }

/* "Start" tap-to-begin scrim */
.game-start {
  position: absolute; inset: 0; pointer-events: auto; display: grid; place-items: center;
  background: rgba(7,13,28,.55); backdrop-filter: blur(3px); transition: opacity var(--dur-2) var(--ease);
}
.game-start.gone { opacity: 0; pointer-events: none; }
.game-start .gs-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: var(--r-pill);
  background: var(--mint-bright); color: #0a1730; font-weight: 700; font-size: .95rem; box-shadow: 0 0 0 1px rgba(92,138,236,.4), 0 8px 40px rgba(92,138,236,.35);
  transition: transform var(--dur-2) var(--ease-spring);
}
.game-start .gs-btn:hover { transform: scale(1.05); }
.game-start .gs-btn svg { width: 18px; height: 18px; }

/* progress dots across all 6 games (sticky rail) */
.game-rail {
  position: fixed; right: clamp(10px, 2vw, 26px); top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 14px; pointer-events: auto;
}
@media (max-width: 900px){ .game-rail { display: none; } }
.game-rail a { display: flex; align-items: center; gap: 10px; justify-content: flex-end; color: var(--muted-2); font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }
.game-rail a .gr-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; transition: all var(--dur-2) var(--ease); }
.game-rail a .gr-lbl { opacity: 0; transform: translateX(8px); transition: all var(--dur-2) var(--ease); white-space: nowrap; }
.game-rail a:hover .gr-lbl, .game-rail a.active .gr-lbl { opacity: 1; transform: none; }
.game-rail a:hover { color: var(--ink-3); }
.game-rail a.active { color: var(--mint-deep); }
.game-rail a.active .gr-dot { background: var(--mint-deep); box-shadow: 0 0 12px rgba(0,72,206,.4); border-color: var(--mint-deep); }
.game-rail a.done .gr-dot { background: var(--mint); border-color: var(--mint); }

/* ---------------------------------------------------------- */
/*  DOCTOR PROFILE                                            */
/* ---------------------------------------------------------- */
.doctor { display: grid; gap: clamp(28px,4vw,56px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px){ .doctor { grid-template-columns: .9fr 1.1fr; } .doctor.flip { grid-template-columns: 1.1fr .9fr; } .doctor.flip .doc-media { order: 2; } }
.doc-media { position: relative; }
.doc-media .imgframe { box-shadow: var(--sh-3); }
.doc-sig { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); letter-spacing: -.025em; line-height: 1.4; }
.doc-credlist { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.doc-credlist li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.doc-credlist li:last-child { border-bottom: 1px solid var(--line); }
.doc-credlist li .yr { font-family: var(--mono); font-size: .74rem; color: var(--mint-deep); min-width: 4.5em; }
.doc-credlist li .tx { color: var(--ink-3); font-size: .96rem; }
.doc-quote-block { border-left: 2px solid var(--mint); padding-left: 22px; }

/* ---------------------------------------------------------- */
/*  EQUIPMENT LIST                                            */
/* ---------------------------------------------------------- */
.equip-list { display: flex; flex-direction: column; }
.equip-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--line); cursor: default; position: relative;
  transition: background var(--dur-2) var(--ease);
}
.equip-row:last-child { border-bottom: 1px solid var(--line); }
.equip-row .eq-ix { font-family: var(--mono); font-size: .8rem; color: var(--muted-2); }
.equip-row .eq-body { }
.equip-row .eq-name { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem,2.4vw,1.9rem); color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.equip-row .eq-name .brand-x { color: var(--mint-deep); }
.equip-row .eq-desc { color: var(--muted); font-size: .92rem; margin-top: 8px; max-width: 64ch; }
.equip-row .eq-tag { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 12px; white-space: nowrap; }
.equip-row:hover { background: var(--surface-2); }
.equip-row:hover .eq-name { color: var(--mint-deep); }
@media (max-width: 680px){ .equip-row { grid-template-columns: 1fr; gap: 10px; } .equip-row .eq-tag { justify-self: start; } }

/* ---------------------------------------------------------- */
/*  TESTIMONIALS                                              */
/* ---------------------------------------------------------- */
.tquote { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 880px){ .tquote { grid-template-columns: .25fr 1fr; align-items: start; } }
.tquote .tq-meta { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.tquote .tq-meta .nm { font-weight: 600; color: var(--ink); font-size: 1rem; }
.tquote blockquote { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.18; color: var(--ink); letter-spacing: -.03em; }
.tquote blockquote em { color: var(--mint-deep); }
.tquote-nav { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.tquote-nav .tq-ix { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.tquote-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all var(--dur-2) var(--ease); }
.tquote-nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.tquote-nav button svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------- */
/*  FORM                                                      */
/* ---------------------------------------------------------- */
.form-grid { display: grid; gap: 22px 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px){ .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-1);
  padding: 13px 15px; font-size: .96rem; color: var(--ink); transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(0,72,206,.14); }
.field textarea { resize: vertical; min-height: 80px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface);
  font-size: .84rem; font-weight: 500; color: var(--ink-3); transition: all var(--dur-2) var(--ease);
}
.chip:hover { border-color: var(--mint); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* on-dark form */
.on-dark .field input, .on-dark .field select, .on-dark .field textarea { background: var(--d-surface); border-color: var(--d-line); color: var(--d-fg); }
.on-dark .field label { color: var(--d-muted); }
.on-dark .chip { background: var(--d-surface); border-color: var(--d-line); color: var(--d-fg-2); }
.on-dark .chip.on { background: var(--mint-bright); color: #0a1730; border-color: var(--mint-bright); }

/* ---------------------------------------------------------- */
/*  CTA BANNER                                                */
/* ---------------------------------------------------------- */
.cta-banner {
  position: relative; overflow: hidden; border-radius: var(--r-4);
  background: radial-gradient(120% 140% at 80% 0%, var(--navy-2), var(--d-bg) 60%);
  color: var(--d-fg); padding: clamp(40px, 6vw, 90px);
}
.cta-banner .cta-bgword { position: absolute; right: -3vw; bottom: -8vw; font-family: var(--display); font-weight: 800; font-size: clamp(8rem, 22vw, 22rem); color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.08); pointer-events: none; line-height: 1; }
.cta-banner h2 { color: #fff; font-size: var(--fs-2xl); position: relative; }
.cta-banner p { color: var(--d-fg-2); max-width: 44ch; position: relative; }

/* ---------------------------------------------------------- */
/*  FOOTER                                                    */
/* ---------------------------------------------------------- */
.footer { background: linear-gradient(170deg, #0050E2 0%, #003BB0 100%); color: rgba(255,255,255,.78); padding-top: clamp(56px, 8vw, 110px); position: relative; overflow: hidden; }
.footer .f-display { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 6.5vw, 5.2rem); line-height: .95; color: #fff; letter-spacing: -.04em; display: flex; align-items: baseline; gap: .05em; flex-wrap: wrap; }
.footer .f-tagline { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: 14px; }
.footer .f-display em { color: #FFC65C; }
.footer .f-top { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: end; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.18); }
@media (min-width: 900px){ .footer .f-top { grid-template-columns: 1.4fr 1fr; } }
.footer .f-contact { display: flex; gap: 48px; flex-wrap: wrap; }
.footer .f-contact .fc-blk .k { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.footer .f-contact .fc-blk .v { color: #fff; font-size: .96rem; line-height: 1.5; }
.footer .f-contact .fc-blk .v a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer .f-cols { display: grid; gap: 40px; grid-template-columns: repeat(2, 1fr); padding-block: 56px; }
@media (min-width: 720px){ .footer .f-cols { grid-template-columns: repeat(4, 1fr); } }
.footer .f-cols h5 { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 18px; font-weight: 500; }
.footer .f-cols ul li { padding: 5px 0; }
.footer .f-cols ul li a { color: rgba(255,255,255,.74); font-size: .92rem; transition: color var(--dur-2) var(--ease), padding var(--dur-2) var(--ease); }
.footer .f-cols ul li a:hover { color: #fff; padding-left: 6px; }
.footer .f-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-block: 28px; border-top: 1px solid rgba(255,255,255,.18); font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.footer .f-bot a:hover { color: #fff; }

/* ---------------------------------------------------------- */
/*  PAGE INTRO (sub-pages hero)                               */
/* ---------------------------------------------------------- */
.page-intro { position: relative; padding-top: clamp(48px,7vw,90px); padding-bottom: clamp(40px,5vw,70px); overflow: hidden; }
.pi-eyebrow { margin-bottom: 22px; }
.hero-page .hero-full-inner h1 { font-size: var(--fs-3xl); line-height: 1; font-weight: 800; letter-spacing: -.035em; max-width: 18ch; color: var(--ink); }
.pi-lead { margin-top: 22px; max-width: 54ch; color: var(--ink-3); }
.pi-meta { margin-top: clamp(24px,3vw,38px); display: flex; gap: clamp(24px,3vw,44px); flex-wrap: wrap; }
.pi-meta .pm { display: flex; flex-direction: column; gap: 5px; }
.pi-meta .pm .k { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.pi-meta .pm .v { font-size: 1rem; color: var(--ink); font-weight: 600; }
.breadcrumb { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); display: flex; gap: 10px; align-items: center; margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--mint-deep); }
.breadcrumb .sl { opacity: .5; }

/* ---------------------------------------------------------- */
/*  PROCESS / STEPS                                           */
/* ---------------------------------------------------------- */
.steps { display: grid; gap: 1px; background: rgba(22,19,15,.08); border-radius: var(--r-3); overflow: hidden; border: 1px solid rgba(255,255,255,.5); }
@media (min-width: 720px){ .steps.s4 { grid-template-columns: repeat(4,1fr); } .steps.s3 { grid-template-columns: repeat(3,1fr); } }
.step { background: rgba(255,255,255,.5); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); padding: clamp(24px,3vw,38px); display: flex; flex-direction: column; gap: 14px; transition: background var(--dur-2) var(--ease); }
.step:hover { background: rgba(255,255,255,.72); }
.step .st-n { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--mint-deep); line-height: .9; letter-spacing: -.04em; }
.step h4 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.step p { font-size: .9rem; color: var(--muted); }
.bg-dark .step { background: var(--d-surface); }
.bg-dark .step:hover { background: var(--d-surface-2); }
.bg-dark .step h4 { color: var(--d-fg); }
.bg-dark .step .st-n { color: var(--mint-bright); }

/* ---------------------------------------------------------- */
/*  CURSOR (custom dot)                                       */
/* ---------------------------------------------------------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; mix-blend-mode: difference; }
.cursor-dot { width: 7px; height: 7px; background: #fff; transform: translate(-50%,-50%); transition: width .2s var(--ease), height .2s var(--ease); }
.cursor-ring { width: 34px; height: 34px; border: 1.5px solid #fff; transform: translate(-50%,-50%); transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease); }
body.cursor-hover .cursor-ring { width: 54px; height: 54px; }
body.cursor-hover .cursor-dot { width: 0; height: 0; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none !important; } }
@media (max-width: 1040px) { .cursor-dot, .cursor-ring { display: none !important; } }

/* ---------------------------------------------------------- */
/*  LOADER (page enter)                                       */
/* ---------------------------------------------------------- */
.loader { position: fixed; inset: 0; z-index: 10000; background: var(--ink); display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s; }
.loader.gone { opacity: 0; visibility: hidden; }
.loader .ld-inner { text-align: center; }
.loader .ld-mark { width: 64px; height: 64px; margin: 0 auto 18px; }
.loader .ld-bar { width: 180px; height: 2px; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; margin: 0 auto; }
.loader .ld-bar i { display: block; height: 100%; width: 0%; background: var(--mint); transition: width .3s linear; }
.loader .ld-txt { font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--d-muted); margin-top: 14px; }

/* ---------------------------------------------------------- */
/*  SCROLL PROGRESS BAR                                       */
/* ---------------------------------------------------------- */
.scroll-prog { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--mint), var(--coral)); z-index: 200; width: 0%; transition: width .12s linear; }

/* ---------------------------------------------------------- */
/*  KEYFRAMES                                                 */
/* ---------------------------------------------------------- */
@keyframes ping { 0%{ box-shadow: 0 0 0 0 rgba(0,72,206,.55);} 70%{ box-shadow: 0 0 0 9px rgba(0,72,206,0);} 100%{ box-shadow: 0 0 0 0 rgba(0,72,206,0);} }
@keyframes marquee { from{ transform: translateX(0);} to{ transform: translateX(-50%);} }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }
@keyframes scrollcue { 0%{ transform: translateX(-100%);} 100%{ transform: translateX(280%);} }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop-in { 0%{ transform: scale(.6); opacity: 0;} 60%{ transform: scale(1.08);} 100%{ transform: scale(1); opacity: 1;} }
@keyframes wiggle { 0%,100%{ transform: rotate(0);} 25%{ transform: rotate(-6deg);} 75%{ transform: rotate(6deg);} }
.spin { animation: spin 1s linear infinite; }

/* ---------------------------------------------------------- */
/*  UTILITIES                                                 */
/* ---------------------------------------------------------- */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.nowrap { white-space: nowrap; }
.rel { position: relative; }
.z1 { position: relative; z-index: 1; }
.full-w { width: 100%; }
.hide-mobile { } @media (max-width: 720px){ .hide-mobile { display: none !important; } }
.show-mobile { display: none; } @media (max-width: 720px){ .show-mobile { display: block; } }
.pad-block-sm { padding-block: clamp(36px,5vw,64px); }
.divider-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); display: inline-block; }

/* lottie holder sizing */
.lottie { display: block; }
.lottie.ic-24 { width: 24px; height: 24px; }
.lottie.ic-40 { width: 40px; height: 40px; }
.lottie.ic-56 { width: 56px; height: 56px; }
.lottie.ic-64 { width: 64px; height: 64px; }

/* ============================================================
   IMMERSIVE — full-bleed media, parallax, filmstrips, grain
   ============================================================ */

/* film grain overlay (sits above everything, very subtle) */
body::after {
  content:""; position: fixed; inset: 0; z-index: 2000; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px; mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* ---- full-bleed media section ---- */
.media-sec { position: relative; overflow: clip; isolation: isolate; color: var(--d-fg); }
.media-sec h1,.media-sec h2,.media-sec h3,.media-sec h4 { color: #fff; }
.media-sec .lead,.media-sec .body-lg { color: var(--d-fg-2); }
.media-sec .muted { color: var(--d-muted); }
.media-bg { position: absolute; inset: -8% -2%; z-index: -2; will-change: transform; }
.media-bg img { width: 100%; height: 100%; object-fit: cover; }
.media-scrim { position: absolute; inset: 0; z-index: -1; }
.media-scrim.left { background: linear-gradient(100deg, rgba(8,16,18,.92) 0%, rgba(8,16,18,.74) 32%, rgba(8,16,18,.30) 62%, rgba(8,16,18,.55) 100%); }
.media-scrim.bottom { background: linear-gradient(to top, rgba(8,16,18,.94) 0%, rgba(8,16,18,.55) 38%, rgba(8,16,18,.20) 62%, rgba(8,16,18,.45) 100%); }
.media-scrim.full { background: linear-gradient(135deg, rgba(8,16,18,.88), rgba(8,16,18,.62) 55%, rgba(8,16,18,.82)); }
.media-scrim.vignette { box-shadow: inset 0 0 240px 60px rgba(0,0,0,.6); }

/* ---- HERO full ---- */
.hero-full { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: clip; isolation: isolate; color: var(--ink); padding-bottom: clamp(40px, 6vw, 90px); padding-top: clamp(24px,5vw,60px); }
.hero-full .media-bg { inset: -10% -4% -4%; }
.hero-full h1 { color: var(--ink); }
.hero-eyebrow-top { position: absolute; left: var(--gutter); top: clamp(28px, 7vh, 64px); z-index: 3; }
.hero-full-inner { position: relative; z-index: 3; width: 100%; }
.hero-full-display { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5.5vw, 4.6rem); line-height: 1.3; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.hero-full-display .out { color: transparent; -webkit-text-stroke: 1.6px var(--ink); }
.hero-full-display em { color: var(--mint-deep); }
.hero-full .sub { color: var(--muted); font-size: clamp(1rem,1.5vw,1.32rem); max-width: 46ch; }
.hero-side-thumbs { position: absolute; right: var(--gutter); bottom: clamp(40px,7vw,90px); z-index: 3; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 1100px){ .hero-side-thumbs { display: none; } }
.hero-side-thumbs a { width: 96px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--d-line); position: relative; opacity: .55; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), width var(--dur-2) var(--ease); }
.hero-side-thumbs a img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); }
.hero-side-thumbs a:hover { opacity: 1; width: 132px; transform: translateX(-8px); }
.hero-side-thumbs a:hover img { filter: none; }
.hero-side-thumbs a .tlab { position: absolute; left: 6px; bottom: 4px; font-family: var(--mono); font-size: .5rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.hero-meta-strip { display: flex; gap: clamp(20px,3vw,48px); flex-wrap: wrap; margin-top: clamp(24px,3vw,40px); padding-top: 20px; border-top: 1px solid var(--line); }
.hero-meta-strip .hm { display: flex; flex-direction: column; gap: 5px; }
.hero-meta-strip .hm .k { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.hero-meta-strip .hm .v { color: var(--ink); font-size: .98rem; font-weight: 600; }

/* glass panel over media */
.glasspanel { background: rgba(10,20,22,.55); backdrop-filter: blur(16px) saturate(140%); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-3); }
.glasspanel.light { background: rgba(255,255,255,.7); border-color: rgba(255,255,255,.6); backdrop-filter: blur(18px) saturate(150%); }

/* ---- FILMSTRIP (draggable photo gallery) ---- */
.filmstrip { position: relative; overflow: hidden; }
.filmstrip-track { display: flex; gap: clamp(14px,1.6vw,26px); width: max-content; will-change: transform; cursor: grab; padding-block: 4px; }
.filmstrip-track.dragging { cursor: grabbing; }
.filmstrip-track:not(.dragging) { animation: filmscroll 60s linear infinite; }
.filmstrip:hover .filmstrip-track:not(.dragging) { animation-play-state: paused; }
.filmstrip.no-auto .filmstrip-track { animation: none; }
@keyframes filmscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.film-card { position: relative; flex: 0 0 auto; width: clamp(240px, 30vw, 440px); aspect-ratio: 3/2; border-radius: var(--r-2); overflow: hidden; background: var(--bg-3); }
.film-card.tall { aspect-ratio: 3/4; width: clamp(200px, 22vw, 320px); }
.film-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .5s var(--ease); filter: grayscale(.15) brightness(.96); pointer-events: none; }
.film-card:hover img { transform: scale(1.06); filter: none; }
.film-card .fc-tag { position: absolute; left: 12px; bottom: 12px; font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(8,16,18,.5); backdrop-filter: blur(6px); padding: 6px 10px; border-radius: 6px; }
.film-card .fc-n { position: absolute; right: 12px; top: 12px; font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; color: rgba(255,255,255,.7); }
.filmstrip-grab-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-family: var(--mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); display: flex; align-items: center; gap: 8px; pointer-events: none; opacity: .7; }
.filmstrip.on-dark .filmstrip-grab-hint { color: var(--d-muted); }

/* ---- TILT image ---- */
[data-tilt] { transform-style: preserve-3d; transition: transform var(--dur-2) var(--ease); will-change: transform; }
[data-tilt] .tilt-inner { transform: translateZ(40px); }

/* ---- photo stack (overlapping) ---- */
.photo-stack { position: relative; }
.photo-stack .ps-main { position: relative; border-radius: var(--r-3); overflow: hidden; box-shadow: var(--sh-3); }
.photo-stack .ps-main img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack .ps-inset { position: absolute; right: -7%; bottom: -9%; width: 42%; border-radius: var(--r-2); overflow: hidden; box-shadow: var(--sh-3); border: 4px solid var(--bg); transition: transform var(--dur-3) var(--ease); }
.photo-stack .ps-inset img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.photo-stack:hover .ps-inset { transform: translate(-10px,-10px) rotate(-2deg); }
.photo-stack .ps-badge { position: absolute; left: -6%; top: 8%; background: var(--mint); color: #FFFFFF; border-radius: var(--r-2); padding: 12px 16px; box-shadow: var(--sh-2); transform: rotate(-3deg); font-weight: 700; font-size: .85rem; }
@media (max-width: 600px){ .photo-stack .ps-inset { right: 4%; width: 40%; } .photo-stack .ps-badge { left: 2%; } }

/* ---- service cells with photo bg ---- */
.svc-cell .svc-photo { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity var(--dur-3) var(--ease); }
.svc-cell .svc-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5) brightness(.55) saturate(.8); transform: scale(1.08); transition: transform 1.4s var(--ease-out); }
.svc-cell .svc-photo::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.0), var(--surface) 88%); }
.svc-cell > * { position: relative; z-index: 1; }
.svc-cell:hover .svc-photo { opacity: .9; }
.svc-cell:hover .svc-photo img { transform: scale(1); }
.svc-cell:hover h3, .svc-cell:hover .svc-n, .svc-cell:hover .svc-desc { /* keep readable: gradient handles it */ }

/* numbered editorial list (replaces generic feature cards) */
.numlist { display: flex; flex-direction: column; }
.numlist > li { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px,2vw,28px); padding: clamp(20px,2.6vw,30px) 0; border-top: 1px solid var(--line); align-items: start; transition: padding var(--dur-2) var(--ease); }
.numlist > li:last-child { border-bottom: 1px solid var(--line); }
.numlist > li:hover { padding-left: 8px; }
.numlist > li .nl-n { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; background: var(--mint-wash); color: var(--mint-deep); flex-shrink: 0; }
.numlist > li .nl-n svg { width: 21px; height: 21px; }
.numlist > li .nl-t { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem,1.8vw,1.6rem); letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.numlist > li .nl-b { color: var(--muted); font-size: .95rem; margin-top: 8px; max-width: 56ch; }
.media-sec .numlist > li { border-top-color: var(--d-line); }
.media-sec .numlist > li:last-child { border-bottom-color: var(--d-line); }
.media-sec .numlist > li .nl-n { background: rgba(255,255,255,.10); color: var(--mint-bright); }
.media-sec .numlist > li .nl-t { color: #fff; }
.media-sec .numlist > li .nl-b { color: var(--d-fg-2); }

/* big stat band */
.statband { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); }
@media (max-width: 720px){ .statband { grid-template-columns: 1fr; } }
.statband .sb { background: var(--bg); padding: clamp(24px,3vw,40px); }
.media-sec .statband { background: var(--d-line); border-color: var(--d-line); }
.media-sec .statband .sb { background: transparent; }
.statband .sb .sb-n { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem,5vw,4.4rem); line-height: .9; letter-spacing: -.04em; color: var(--ink); }
.media-sec .statband .sb .sb-n { color: #fff; }
.statband .sb .sb-n .u { color: var(--mint-deep); }
.media-sec .statband .sb .sb-n .u { color: var(--mint); }
.statband .sb .sb-l { font-size: .85rem; color: var(--muted); margin-top: 10px; max-width: 24ch; }
.media-sec .statband .sb .sb-l { color: var(--d-muted); }

/* tall imgframe variants for the "big images" requirement */
.ar-9-16 { aspect-ratio: 9/16; }
.ar-2-3 { aspect-ratio: 2/3; }
.imgframe.huge { border-radius: var(--r-4); }
.imgframe .corner-meta { position: absolute; right: 0; top: 0; padding: 10px 14px; font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(8,16,18,.45); backdrop-filter: blur(6px); border-bottom-left-radius: var(--r-1); }

/* drag cursor utility */
.grabbable { cursor: grab; } .grabbable:active { cursor: grabbing; }

/* hide native cursor where we hint a drag (keeps custom cursor) */

/* ============================================================
   AURORA — drifting blue → white radial gradients
   ============================================================ */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora b { position: absolute; border-radius: 50%; will-change: transform; mix-blend-mode: normal; }
.aurora b.b1 { width: 52vw; height: 52vw; left: -16%; top: -26%;
  background: radial-gradient(circle at 50% 50%, rgba(147,214,238,.30), rgba(147,214,238,.10) 40%, transparent 68%);
  animation: drift-a 42s var(--ease) infinite alternate; }
.aurora b.b2 { width: 46vw; height: 46vw; right: -14%; bottom: -24%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.5), rgba(255,255,255,.18) 38%, transparent 66%);
  animation: drift-b 52s var(--ease) infinite alternate; }
.aurora b.b3 { width: 38vw; height: 38vw; left: 38%; top: 30%;
  background: radial-gradient(circle at 50% 50%, rgba(0,72,206,.16), rgba(0,72,206,.05) 40%, transparent 68%);
  animation: drift-c 60s var(--ease) infinite alternate; }
.aurora.soft b.b1 { background: radial-gradient(circle, rgba(147,214,238,.20), transparent 68%); }
.aurora.soft b.b2 { background: radial-gradient(circle, rgba(255,255,255,.4), transparent 66%); }
.aurora.soft b.b3 { background: radial-gradient(circle, rgba(0,72,206,.12), transparent 68%); }
/* dark-section variant: cool blue glows on near-black */
.aurora.on-dark b.b1 { background: radial-gradient(circle, rgba(58,148,178,.40), transparent 66%); }
.aurora.on-dark b.b2 { background: radial-gradient(circle, rgba(120,200,222,.22), transparent 64%); }
.aurora.on-dark b.b3 { background: radial-gradient(circle, rgba(0,72,206,.26), transparent 66%); }
@media (prefers-reduced-motion: reduce) { .aurora b { animation: none !important; } }
@keyframes drift-a { 0%{ transform: translate3d(0,0,0) scale(1); } 50%{ transform: translate3d(7vw,4vh,0) scale(1.08); } 100%{ transform: translate3d(3vw,-3vh,0) scale(.96); } }
@keyframes drift-b { 0%{ transform: translate3d(0,0,0) scale(1); } 50%{ transform: translate3d(-6vw,-5vh,0) scale(1.1); } 100%{ transform: translate3d(-2vw,4vh,0) scale(.98); } }
@keyframes drift-c { 0%{ transform: translate3d(0,0,0) scale(.95); } 50%{ transform: translate3d(-8vw,6vh,0) scale(1.12); } 100%{ transform: translate3d(5vw,2vh,0) scale(1.02); } }

/* Ken Burns slow drift for hero/background photos */
.kenburns { animation: kenburns 40s var(--ease) infinite alternate; transform-origin: 60% 40%; }
@media (prefers-reduced-motion: reduce){ .kenburns { animation: none; } }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.07); } }

/* ensure section content sits above aurora */
.section > .wrap, .section > .filmstrip, .media-sec > .wrap, .hero-full > .wrap { position: relative; z-index: 1; }

/* ---- contact map ---- */
.map-frame { position: relative; border-radius: var(--r-4); overflow: hidden; box-shadow: var(--sh-3); aspect-ratio: 16/8; background: var(--bg-3); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card { position: absolute; left: clamp(16px,2.5vw,30px); bottom: clamp(16px,2.5vw,30px); max-width: 340px; padding: 20px 22px; }
.map-card .h4 { color: var(--ink); }
@media (max-width: 620px){ .map-frame { aspect-ratio: 3/4; } .map-card { left: 12px; right: 12px; bottom: 12px; max-width: none; } }


/* ============================================================
   NAV — transparent over a dark hero (body.has-dark-top)
   ============================================================ */
.has-dark-top .nav { background: transparent; backdrop-filter: none; border-bottom-color: transparent; box-shadow: none; }
.has-dark-top .nav .brand .word { color: #fff; }
.has-dark-top .nav .brand .word .sub { color: rgba(255,255,255,.55); }
.has-dark-top .nav .nav-links a { color: rgba(255,255,255,.82); }
.has-dark-top .nav .nav-links a .ix { color: rgba(255,255,255,.45); }
.has-dark-top .nav .nav-links a:hover { color: #fff; background: rgba(255,255,255,.12); }
.has-dark-top .nav .nav-links a.active { color: #fff; }
.has-dark-top .nav .nav-links a.active::after { background: var(--mint); }
.has-dark-top .nav .nav-tel { color: rgba(255,255,255,.7); }
.has-dark-top .nav .nav-burger { border-color: rgba(255,255,255,.28); }
.has-dark-top .nav .nav-burger span { background: #fff; }
.has-dark-top .nav:not(.scrolled) .btn--sm { --bg-c: #fff; --fg-c: var(--ink); }
.has-dark-top .nav:not(.scrolled) .btn--sm::before { background: var(--mint); }
.has-dark-top .nav:not(.scrolled) .btn--sm:hover { color: #FFFFFF; }
.has-dark-top .nav:not(.scrolled) .btn--sm:hover .lbl { color: #FFFFFF; }
/* once scrolled, fall back to the standard light frosted bar */
.has-dark-top .nav.scrolled { background: rgba(244,241,234,.95); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(22,19,15,.06); }
.has-dark-top .nav.scrolled .brand .word { color: var(--ink); }
.has-dark-top .nav.scrolled .brand .word .sub { color: var(--muted-2); }
.has-dark-top .nav.scrolled .nav-links a { color: var(--ink-3); }
.has-dark-top .nav.scrolled .nav-links a .ix { color: var(--muted-2); }
.has-dark-top .nav.scrolled .nav-links a:hover { color: var(--ink); background: rgba(22,19,15,.05); }
.has-dark-top .nav.scrolled .nav-links a.active { color: var(--ink); }
.has-dark-top .nav.scrolled .nav-tel { color: var(--ink-3); }
.has-dark-top .nav.scrolled .nav-burger { border-color: var(--line); }
.has-dark-top .nav.scrolled .nav-burger span { background: var(--ink); }
.has-dark-top .nav .brand, .has-dark-top .nav .nav-links a, .has-dark-top .nav .nav-tel { transition: color var(--dur-2) var(--ease); }
/* nudge the hero eyebrow below the (now overlapping) nav */
.has-dark-top .hero-eyebrow-top { top: clamp(8px, 4vh, 30px); }

/* readability scrim behind the transparent hero nav */
.has-dark-top .nav { position: sticky; }
.has-dark-top .nav::before { content:""; position: absolute; left: 0; right: 0; top: 0; bottom: -28px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(8,16,18,.5), rgba(8,16,18,.15) 60%, transparent); transition: opacity var(--dur-2) var(--ease); }
.has-dark-top .nav.scrolled::before { opacity: 0; }


/* light hero scrim (photo fades into the page on the left) */
.media-scrim.fade-bottom-light { background: linear-gradient(to top, var(--bg) 0%, rgba(246,247,250,.86) 22%, rgba(246,247,250,.34) 42%, rgba(246,247,250,.06) 56%, transparent 66%); }
.media-scrim.fade-left-soft { background: linear-gradient(100deg, rgba(246,247,250,.48) 0%, rgba(246,247,250,.14) 22%, transparent 42%); }
.hero-full .media-bg img { filter: brightness(1.06) saturate(.98); }
.hero-side-thumbs a { box-shadow: 0 8px 24px rgba(22,19,15,.18); }
.hero-side-thumbs a .tlab { text-shadow: 0 1px 6px rgba(0,0,0,.8); }

/* ============================================================
   HOMEPAGE — nav blends (white -> transparent) into the hero photo
   (body.hero-blend)
   ============================================================ */
.hero-blend .hero-full { margin-top: calc(-1 * var(--nav-h)); padding-top: calc(var(--nav-h) + clamp(20px,5vw,52px)); }
.hero-blend .hero-eyebrow-top { top: calc(var(--nav-h) + clamp(10px,3.5vh,26px)); }
.hero-blend .nav { background: rgba(255,255,255,.08); -webkit-backdrop-filter: blur(10px) saturate(130%); backdrop-filter: blur(10px) saturate(130%); border-bottom: 0; box-shadow: none; transition: background var(--dur-3) var(--ease), backdrop-filter var(--dur-3) var(--ease), box-shadow var(--dur-2) var(--ease); }
.hero-blend .nav::before {
  content:""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--nav-h) + 130px); z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,.62) 0%, rgba(255,255,255,.54) 26%, rgba(255,255,255,.34) 46%, rgba(255,255,255,.12) 72%, rgba(255,255,255,0) 100%);
  transition: opacity var(--dur-3) var(--ease);
}
.hero-blend .nav.scrolled { background: #FFFFFF; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 8px 30px rgba(22,19,15,.09); }
.hero-blend .nav.scrolled::before { opacity: 0; }

/* faded photo background for a section (sits behind aurora + content) */
.sec-bg-img { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.sec-bg-img img { width: 100%; height: 100%; object-fit: cover; opacity: .14; filter: grayscale(.55) brightness(1.06); }
.sec-bg-img::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg-2) 0%, rgba(236,239,247,.35) 22%, rgba(236,239,247,0) 42%, rgba(236,239,247,0) 62%, rgba(236,239,247,.4) 80%, var(--bg-2) 100%); }


/* sub-page photo hero — shorter than the home hero */
.hero-page { min-height: 64vh; min-height: 64svh; align-items: flex-end; }
.hero-page .breadcrumb { color: var(--muted); margin-bottom: clamp(18px,2.5vw,26px); }
@media (max-width: 700px){ .hero-page { min-height: 58vh; } }
