/* ==========================================================================
   MKD doo — Nova Pazova  •  Design System
   Servis kočionih sistema & kompjuterska dijagnostika
   --------------------------------------------------------------------------
   1.  Fonts
   2.  Tokens
   3.  Reset & base
   4.  Layout helpers
   5.  Typography
   6.  Buttons & links
   7.  Preloader
   8.  Header / Navigation
   9.  Hero
   10. Sections & components
   11. Footer
   12. Floating UI (AI assistant, back-to-top)
   13. Utilities, reveal animations
   14. Responsive
   ========================================================================== */

/* 1. FONTS — vidi assets/css/fonts.css (ugrađeni woff2 data URI) ---------- */

/* 2. TOKENS --------------------------------------------------------------- */
:root {
  /* Brand — derived strictly from the MKD logo (graphite + white) */
  --ink:        #2e2e2e;
  --ink-900:    #141414;
  --ink-800:    #1e1e1e;
  --ink-700:    #262626;
  --ink-600:    #3a3a3a;
  --ink-500:    #565656;
  --ink-400:    #757575;
  --ink-300:    #9b9b98;

  --paper:      #ffffff;
  --sand:       #f5f4f1;
  --sand-2:     #ebe9e4;
  --line:       #e3e1dc;
  --line-dark:  rgba(255,255,255,.14);

  --focus:      #2e2e2e;

  /* Typography */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --fs-hero: clamp(2.6rem, 7.2vw, 6.4rem);
  --fs-h1:   clamp(2.2rem, 5.2vw, 4.4rem);
  --fs-h2:   clamp(1.85rem, 3.7vw, 3.1rem);
  --fs-h3:   clamp(1.25rem, 2vw, 1.6rem);
  --fs-h4:   clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-body: clamp(1rem, 1.06vw, 1.0625rem);
  --fs-sm:   .9375rem;
  --fs-xs:   .8125rem;

  /* Space */
  --gap: clamp(1rem, 2vw, 1.75rem);
  --pad-x: clamp(1.25rem, 5vw, 5rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --maxw: 1440px;
  --maxw-narrow: 860px;

  --radius: 4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --header-h: 84px;
}

/* 3. RESET & BASE --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.68;
  font-weight: 400;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

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

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

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

::selection { background: var(--ink); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: #c9c7c1; border-radius: 20px; border: 3px solid var(--sand); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }

/* 4. LAYOUT --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.wrap--narrow { max-width: calc(var(--maxw-narrow) + var(--pad-x) * 2); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 5rem); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink-900); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }

.grid { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-900);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* 5. TYPOGRAPHY ----------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 0 0 .6em;
  color: var(--ink-900);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.18; letter-spacing: -.025em; }
h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -.02em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-600);
  letter-spacing: -.015em;
}
.muted { color: var(--ink-500); }
.section--dark .muted, .section--dark .lead { color: rgba(255,255,255,.68); }

/* Eyebrow / section label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.section--dark .eyebrow { color: rgba(255,255,255,.5); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section-head--wide { max-width: 940px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.05em;
}

/* 6. BUTTONS -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink-900);
  --btn-fg: #fff;
  --btn-bd: var(--ink-900);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 1.0rem 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover { color: var(--ink-900); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: scale(.98); }
.btn .btn-ico { transition: transform .4s var(--ease-out); }
.btn:hover .btn-ico { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-900);
  --btn-bd: var(--line);
}
.btn--ghost::after { background: var(--ink-900); }
.btn--ghost:hover { color: #fff; border-color: var(--ink-900); }

.btn--light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255,255,255,.35);
}
.btn--light::after { background: #fff; }
.btn--light:hover { color: var(--ink-900); border-color: #fff; }

.btn--solid-light {
  --btn-bg: #fff;
  --btn-fg: var(--ink-900);
  --btn-bd: #fff;
}
.btn--solid-light::after { background: var(--ink-900); }
.btn--solid-light:hover { color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Text link with animated underline */
.link-u {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding-bottom: .35rem;
}
.link-u::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform .45s var(--ease-out);
}
.link-u:hover::after { transform-origin: left; animation: linkSwipe .55s var(--ease-out); }
@keyframes linkSwipe {
  0% { transform: scaleX(1); transform-origin: right; }
  49% { transform: scaleX(0); transform-origin: right; }
  50% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* 7. PRELOADER ------------------------------------------------------------ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink-900);
  display: grid;
  place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pl-inner { display: grid; justify-items: center; gap: 1.5rem; }
.pl-logo { width: 78px; animation: plPulse 1.6s var(--ease) infinite; }
@keyframes plPulse { 0%,100% { opacity: .45; transform: scale(.96);} 50% { opacity: 1; transform: scale(1);} }
.pl-bar { width: 160px; height: 2px; background: rgba(255,255,255,.16); overflow: hidden; }
.pl-bar span { display: block; height: 100%; width: 0; background: #fff; transition: width .3s linear; }

/* 8. HEADER --------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .45s var(--ease), height .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}
.site-header.is-solid {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  height: 70px;
}
.site-header.is-hidden { transform: translateY(-102%); }
.site-header { transition: background .45s var(--ease), height .45s var(--ease), transform .5s var(--ease), border-color .45s var(--ease); }

.brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.brand-mark { position: relative; display: block; width: 46px; flex-shrink: 0; transition: width .4s var(--ease); }
.brand-mark img { width: 100%; height: auto; transition: opacity .35s var(--ease); }
.brand-mark .lg-light { position: absolute; inset: 0; opacity: 0; }
.site-header.is-solid .brand-mark { width: 40px; }
/* over dark hero or with the mobile drawer open -> use the light logo */
.site-header:not(.is-solid).on-dark .brand-mark .lg-dark,
body.is-locked .site-header .brand-mark .lg-dark { opacity: 0; }
.site-header:not(.is-solid).on-dark .brand-mark .lg-light,
body.is-locked .site-header .brand-mark .lg-light { opacity: 1; }
.brand-txt { display: grid; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .02em;
}
.brand-sub {
  font-size: .625rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ink-400);
  font-weight: 500;
}

/* over-hero (transparent) state */
.site-header:not(.is-solid).on-dark { color: #fff; }
.site-header:not(.is-solid).on-dark .brand-sub { color: rgba(255,255,255,.6); }
.site-header:not(.is-solid).on-dark .nav-link { color: rgba(255,255,255,.86); }
.site-header:not(.is-solid).on-dark .nav-link:hover,
.site-header:not(.is-solid).on-dark .nav-link.is-active { color: #fff; }
.site-header:not(.is-solid).on-dark .burger span { background: #fff; }
.site-header:not(.is-solid).on-dark .burger { border-color: rgba(255,255,255,.28); }
.site-header:not(.is-solid).on-dark .head-cta { color: #fff; border-color: rgba(255,255,255,.35); }
.site-header:not(.is-solid).on-dark .head-cta::after { background: #fff; }
.site-header:not(.is-solid).on-dark .head-cta:hover { color: var(--ink-900); }

.main-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.3rem); margin-left: auto; }
.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-600);
  padding: .4rem 0;
  transition: color .3s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover { color: var(--ink-900); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--ink-900); }

.head-actions { display: flex; align-items: center; gap: .9rem; }
.head-cta { padding: .72rem 1.35rem; font-size: .75rem; }
.head-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .01em;
  white-space: nowrap;
}

/* header state while the mobile drawer is open */
body.is-locked .site-header {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transform: none !important;
}
body.is-locked .site-header .brand-name { color: #fff; }
body.is-locked .site-header .brand-sub { color: rgba(255,255,255,.5); }
body.is-locked .burger { border-color: rgba(255,255,255,.28); }
body.is-locked .burger span { background: #fff; }

/* Burger */
.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.burger span {
  position: absolute;
  left: 50%;
  width: 18px; height: 1.5px;
  background: var(--ink-900);
  transform: translateX(-50%);
  transition: transform .4s var(--ease-out), opacity .25s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }
.burger.is-open span:nth-child(1) { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 890;
  background: var(--ink-900);
  color: #fff;
  padding: calc(var(--header-h) + 2rem) var(--pad-x) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-out);
  overflow-y: auto;
}
.mobile-nav.is-open { clip-path: inset(0 0 0 0); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.035em;
  transform: translateY(110%);
  transition: transform .6s var(--ease-out), color .3s;
  color: rgba(255,255,255,.9);
}
.mobile-nav a:hover { color: #fff; }
.mobile-nav.is-open a { transform: translateY(0); }
.mobile-nav li:nth-child(1) a { transition-delay: .12s; }
.mobile-nav li:nth-child(2) a { transition-delay: .18s; }
.mobile-nav li:nth-child(3) a { transition-delay: .24s; }
.mobile-nav li:nth-child(4) a { transition-delay: .30s; }
.mobile-nav li:nth-child(5) a { transition-delay: .36s; }
.mn-idx {
  font-size: .6875rem;
  letter-spacing: .18em;
  color: rgba(255,255,255,.4);
  font-weight: 500;
}
.mn-foot { margin-top: 2.5rem; display: grid; gap: .35rem; font-size: .9rem; color: rgba(255,255,255,.62); }
.mn-foot a:hover { color: #fff; }

/* 9. HERO ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--ink-900);
  color: #fff;
  overflow: hidden;
  padding-block: calc(var(--header-h) + 3rem) clamp(3rem, 7vw, 6.5rem);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .42;
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
  filter: grayscale(.35) contrast(1.05);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,20,.82) 0%, rgba(20,20,20,.34) 38%, rgba(20,20,20,.92) 100%),
    radial-gradient(120% 70% at 15% 100%, rgba(20,20,20,.7), transparent 60%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .13;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem 1rem .5rem .7rem;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.55);
  animation: pulseDot 2.2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); }
  70% { box-shadow: 0 0 0 11px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .96;
  color: #fff;
  margin: 0 0 1.4rem;
  max-width: 15ch;
}
.hero h1 .thin { font-weight: 400; color: rgba(255,255,255,.62); }

.hero-bottom {
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.hero-sub { max-width: 46ch; color: rgba(255,255,255,.72); font-size: 1.03rem; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hero-meta div span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff;
}
.hero-meta div small {
  display: block;
  margin-top: .45rem;
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.scroll-cue {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(2.5rem, 5vw, 4.5rem);
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: .7rem;
  font-size: .625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  writing-mode: vertical-rl;
}
.scroll-cue i {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: cueRun 2.2s var(--ease) infinite;
}
@keyframes cueRun { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  background: var(--ink-900);
  color: #fff;
  padding-block: calc(var(--header-h) + clamp(4rem, 9vw, 8rem)) clamp(3.5rem, 7vw, 6.5rem);
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .3; filter: grayscale(.4); }
.page-hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,.85), rgba(20,20,20,.6) 50%, rgba(20,20,20,.95));
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: var(--fs-h1); margin-bottom: .5rem; }
.page-hero .lead { color: rgba(255,255,255,.68); max-width: 58ch; }
.crumbs {
  display: flex;
  gap: .6rem;
  align-items: center;
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
}
.crumbs a:hover { color: #fff; }

/* 10. COMPONENTS ---------------------------------------------------------- */

/* Marquee */
.marquee {
  --dur: 34s;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding-block: 1.15rem;
  display: flex;
  user-select: none;
}
.marquee--dark { background: var(--ink-900); border-color: rgba(255,255,255,.1); color: #fff; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 3.2rem;
  flex-shrink: 0;
  min-width: 100%;
  animation: marq var(--dur) linear infinite;
  padding-right: 3.2rem;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-100%); } }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 3.2rem;
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-500);
}
.marquee--dark .marquee-item { color: rgba(255,255,255,.72); }
.marquee-item::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
}

/* Feature cards (01/02/03) */
.feat {
  position: relative;
  padding: clamp(1.75rem, 2.4vw, 2.4rem) 0 0;
  border-top: 1px solid var(--line);
}
.section--dark .feat { border-color: var(--line-dark); }
.feat-idx {
  font-family: var(--font-display);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--ink-300);
  margin-bottom: 1.4rem;
  display: block;
}
.feat h3 { margin-bottom: .7rem; }
.feat p { color: var(--ink-500); font-size: var(--fs-sm); }
.section--dark .feat p { color: rgba(255,255,255,.6); }

/* Service tiles */
.svc {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-900);
  color: #fff;
  min-height: clamp(300px, 34vw, 430px);
  border-radius: var(--radius-lg);
  isolation: isolate;
}
.svc img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .48;
  filter: grayscale(.5);
  transform: scale(1.02);
  transition: transform 1.1s var(--ease-out), opacity .6s, filter .6s;
  z-index: -2;
}
.svc::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20,20,20,.2) 0%, rgba(20,20,20,.55) 55%, rgba(20,20,20,.94) 100%);
}
.svc:hover img { transform: scale(1.09); opacity: .58; filter: grayscale(0); }
.svc-inner {
  position: relative;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 2.4vw, 2.2rem);
}
.svc-idx {
  position: absolute;
  top: clamp(1.5rem, 2.4vw, 2.2rem);
  left: clamp(1.5rem, 2.4vw, 2.2rem);
  font-family: var(--font-display);
  font-size: .6875rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.6);
  font-weight: 600;
}
.svc h3 { color: #fff; margin-bottom: .55rem; }
.svc p { color: rgba(255,255,255,.7); font-size: var(--fs-sm); margin-bottom: 1.2rem; max-width: 40ch; }
.svc-go {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.svc-go svg { transition: transform .45s var(--ease-out); }
.svc:hover .svc-go svg { transform: translateX(5px); }

/* Split image + text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); }
.split-media .img-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.img-frame img { transition: transform 1.2s var(--ease-out); }
.img-frame:hover img { transform: scale(1.05); }

.badge-float {
  position: absolute;
  right: -12px; bottom: -18px;
  background: var(--ink-900);
  color: #fff;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-lg);
  display: grid;
  gap: .2rem;
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.45);
}
.badge-float b {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -.04em;
  line-height: 1;
  font-weight: 600;
}
.badge-float span { font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.section--dark .stats { border-color: var(--line-dark); }
.stat {
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1rem, 2vw, 2rem) 0 0;
  border-right: 1px solid var(--line);
}
.section--dark .stat { border-color: var(--line-dark); }
.stat:last-child { border-right: 0; }
.stat span { display: block; }
.stat small {
  display: block;
  margin-top: .7rem;
  font-size: .6875rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-400);
  font-family: var(--font-display);
  font-weight: 500;
}
.section--dark .stat small { color: rgba(255,255,255,.5); }

/* Accordion */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.2rem, 2.2vw, 1.75rem) 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.acc-head h3 { margin: 0; transition: transform .4s var(--ease-out); }
.acc-item:hover .acc-head h3 { transform: translateX(6px); }
.acc-num {
  font-family: var(--font-display);
  font-size: .6875rem;
  letter-spacing: .18em;
  color: var(--ink-300);
  font-weight: 600;
  min-width: 34px;
}
.acc-head > div { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.acc-ico {
  position: relative;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background .4s var(--ease), border-color .4s;
}
.acc-ico::before, .acc-ico::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--ink-900);
  transition: transform .4s var(--ease-out), background .4s;
}
.acc-ico::before { width: 13px; height: 1.5px; transform: translate(-50%,-50%); }
.acc-ico::after { width: 1.5px; height: 13px; transform: translate(-50%,-50%); }
.acc-item.is-open .acc-ico { background: var(--ink-900); border-color: var(--ink-900); }
.acc-item.is-open .acc-ico::before,
.acc-item.is-open .acc-ico::after { background: #fff; }
.acc-item.is-open .acc-ico::after { transform: translate(-50%,-50%) rotate(90deg); }
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease-out);
}
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-content { padding: 0 0 clamp(1.5rem, 3vw, 2.25rem); }
.acc-content .lead { margin-bottom: 1.4rem; }

/* Checklist */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: .1rem 2.5rem;
}
.check-list li {
  position: relative;
  padding: .6rem 0 .6rem 1.9rem;
  font-size: var(--fs-sm);
  color: var(--ink-600);
  border-bottom: 1px solid var(--line);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 1px; top: 1.05rem;
  width: 6px; height: 10px;
  border-right: 1.6px solid var(--ink-900);
  border-bottom: 1.6px solid var(--ink-900);
  transform: rotate(42deg);
}
.section--dark .check-list li { color: rgba(255,255,255,.72); border-color: var(--line-dark); }
.section--dark .check-list li::before { border-color: #fff; }

/* Partner logo grid */
.partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.partner {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease);
}
.partner:hover { background: var(--sand); }
.partner img {
  max-height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .4s, opacity .4s, transform .4s var(--ease-out);
}
.partner:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.05); }
.partner-fallback {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  color: var(--ink-400);
  text-align: center;
}

/* Timeline */
.timeline { border-top: 1px solid var(--line); }
.tl-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.75rem, 3vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
}
.tl-year {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink-900);
}
.tl-item h3 { margin-bottom: .5rem; }
.tl-item p { color: var(--ink-500); margin: 0; font-size: var(--fs-sm); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: zoom-in;
  background: var(--sand);
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.gal-item:hover img { transform: scale(1.06); }
.gal-item::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(20,20,20,.0);
  transition: background .4s;
}
.gal-item:hover::after { background: rgba(20,20,20,.12); }
.g-a { grid-column: span 7; height: clamp(260px, 30vw, 430px); }
.g-b { grid-column: span 5; height: clamp(260px, 30vw, 430px); }
.g-c { grid-column: span 4; aspect-ratio: 4/3; }

/* Certificates */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.cert {
  position: relative;
  display: block;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), border-color .4s;
}
.cert:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(0,0,0,.35); border-color: #cfcdc7; }
.cert-img { aspect-ratio: 707 / 1000; overflow: hidden; background: #fff; }
.cert-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease-out); }
.cert:hover .cert-img img { transform: scale(1.03); }
.cert-cap {
  padding: .9rem 1.05rem;
  border-top: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  min-height: 58px;
}
.cert-cap span { text-align: right; line-height: 1.35; }
.cert-cap b {
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: -.005em;
}
.cert-cap span { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-300); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(12,12,12,.96);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-stage { position: relative; max-width: 100%; max-height: 100%; display: grid; place-items: center; }
.lb-stage img {
  max-width: min(100%, 1100px);
  max-height: 84svh;
  object-fit: contain;
  border-radius: var(--radius);
  transform: scale(.96);
  opacity: 0;
  transition: transform .5s var(--ease-out), opacity .4s;
}
.lightbox.is-open .lb-stage img { transform: scale(1); opacity: 1; }
.lb-cap {
  margin-top: 1rem;
  text-align: center;
  color: rgba(255,255,255,.72);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .3s, transform .3s;
  z-index: 3;
}
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-prev { left: clamp(.5rem, 2vw, 2rem); }
.lb-next { right: clamp(.5rem, 2vw, 2rem); }
.lb-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 4;
  transition: background .3s, transform .4s var(--ease-out);
}
.lb-close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }
.lb-count {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-family: var(--font-display);
  font-size: .75rem;
  letter-spacing: .16em;
  z-index: 4;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.info-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.15rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.info-ico {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-900);
}
.info-item h4 {
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 0 0 .35rem;
  font-weight: 600;
}
.info-item p, .info-item a {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.5;
  color: var(--ink-900);
  display: block;
}
.info-item a { transition: opacity .3s; }
.info-item a:hover { opacity: .58; }

/* Form */
.form-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.75rem);
}
.field { position: relative; margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: .6875rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-400);
  font-weight: 600;
  margin-bottom: .5rem;
  font-family: var(--font-display);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: .95rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--ink-900);
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink-900);
  box-shadow: 0 0 0 3px rgba(46,46,46,.08);
}
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.field-err {
  display: none;
  margin-top: .4rem;
  font-size: .75rem;
  color: #b3261e;
}
.field.has-error .field-err { display: block; }
.form-note { font-size: .8125rem; color: var(--ink-400); margin-top: 1rem; }
.form-status {
  display: none;
  margin-top: 1.1rem;
  padding: .95rem 1.1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  font-size: .875rem;
}
.form-status.is-visible { display: block; }

/* Map */
.map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--sand);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.map-wrap:hover iframe { filter: grayscale(0); }

/* CTA band */
.cta-band {
  position: relative;
  background: var(--ink-900);
  color: #fff;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 5rem);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 15%, rgba(255,255,255,.09), transparent 45%);
}
.cta-band .wrap-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr auto; gap: 2.5rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .7rem; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.66); max-width: 50ch; margin: 0; }
.cta-ghost-type {
  position: absolute;
  right: -2%;
  bottom: -30%;
  font-family: var(--font-display);
  font-size: clamp(9rem, 22vw, 20rem);
  font-weight: 700;
  letter-spacing: -.06em;
  color: rgba(255,255,255,.035);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Quote / statement */
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.035em;
  max-width: 20ch;
}

/* Value cards */
.vcard {
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease);
  height: 100%;
}
.vcard:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -28px rgba(0,0,0,.28); }
.vcard .v-ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  margin-bottom: 1.3rem;
}
.vcard h4 { margin-bottom: .5rem; }
.vcard p { font-size: var(--fs-sm); color: var(--ink-500); margin: 0; }

/* 11. FOOTER -------------------------------------------------------------- */
.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,.7);
  padding-top: clamp(3.5rem, 7vw, 6rem);
}
.foot-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.foot-brand { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.4rem; }
.foot-brand img { width: 52px; }
.foot-brand .brand-name { color: #fff; font-size: 1.15rem; }
.foot-brand .brand-sub { color: rgba(255,255,255,.45); }
.site-footer p { font-size: var(--fs-sm); max-width: 34ch; }
.foot-col h5 {
  font-family: var(--font-display);
  font-size: .6875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  margin: 0 0 1.2rem;
  font-weight: 600;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.foot-col a { font-size: var(--fs-sm); transition: color .3s, padding-left .3s var(--ease-out); }
.foot-col a:hover { color: #fff; padding-left: 5px; }
.foot-contact { display: grid; gap: 1rem; }
.foot-contact div span {
  display: block;
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: .3rem;
}
.foot-contact a, .foot-contact p {
  display: block;
  font-family: var(--font-display);
  font-size: .9375rem;
  color: #fff;
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
}
.foot-contact a:hover { opacity: .7; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
}
.foot-bottom a:hover { color: #fff; }
.foot-social { display: flex; gap: .6rem; }
.foot-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .35s, border-color .35s, transform .35s var(--ease-out);
}
.foot-social a:hover { background: #fff; color: var(--ink-900); border-color: #fff; transform: translateY(-3px); }

/* 12. FLOATING UI --------------------------------------------------------- */
/* Back to top (right) */
.to-top {
  position: fixed;
  right: clamp(1rem, 2.2vw, 1.9rem);
  bottom: clamp(1rem, 2.2vw, 1.9rem);
  z-index: 800;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: opacity .45s var(--ease), transform .45s var(--ease-out), visibility .45s, background .3s;
  box-shadow: 0 14px 32px -12px rgba(0,0,0,.45);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--ink-700); }
.to-top svg.arrow { position: relative; z-index: 2; transition: transform .4s var(--ease-out); }
.to-top:hover svg.arrow { transform: translateY(-3px); }
.to-top .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke-width: 2; }
.to-top .ring .bg { stroke: rgba(255,255,255,.16); }
.to-top .ring .fg { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }

/* AI Assistant (left) */
.ai-launcher {
  position: fixed;
  left: clamp(1rem, 2.2vw, 1.9rem);
  bottom: clamp(1rem, 2.2vw, 1.9rem);
  z-index: 810;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .5rem;
  background: var(--ink-900);
  color: #fff;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 14px 32px -12px rgba(0,0,0,.45);
  transition: transform .4s var(--ease-out), box-shadow .4s, padding .4s var(--ease);
}
.ai-launcher:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -14px rgba(0,0,0,.55); }
.ai-launcher .ai-av {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ai-launcher .ai-av img { width: 26px; }
.ai-launcher .ai-txt {
  display: grid;
  text-align: left;
  padding-right: .85rem;
  line-height: 1.2;
}
.ai-launcher .ai-txt b {
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.ai-launcher .ai-txt small { font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ai-launcher .ai-live {
  position: absolute;
  right: -1px; bottom: -1px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #35c26a;
  border: 2px solid var(--ink-900);
}
.ai-launcher.is-hidden { opacity: 0; visibility: hidden; transform: translateY(14px) scale(.92); }

.ai-panel {
  position: fixed;
  left: clamp(1rem, 2.2vw, 1.9rem);
  bottom: clamp(1rem, 2.2vw, 1.9rem);
  z-index: 815;
  width: min(390px, calc(100vw - 2rem));
  height: min(600px, calc(100svh - 3rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.96);
  transform-origin: left bottom;
  transition: opacity .4s var(--ease), transform .45s var(--ease-out), visibility .4s;
}
.ai-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.ai-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.1rem;
  background: var(--ink-900);
  color: #fff;
  flex-shrink: 0;
}
.ai-head .ai-av { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; position: relative; flex-shrink: 0; }
.ai-head .ai-av img { width: 24px; }
.ai-head-txt { display: grid; line-height: 1.25; flex: 1; }
.ai-head-txt b { font-family: var(--font-display); font-size: .9375rem; font-weight: 600; }
.ai-head-txt small { font-size: .6875rem; color: rgba(255,255,255,.58); display: flex; align-items: center; gap: .35rem; }
.ai-head-txt small i { width: 6px; height: 6px; border-radius: 50%; background: #35c26a; display: inline-block; }
.ai-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 0;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .3s, transform .4s var(--ease-out);
}
.ai-close:hover { background: rgba(255,255,255,.22); transform: rotate(90deg); }

.ai-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  background: var(--sand);
  display: flex;
  flex-direction: column;
  gap: .8rem;
  scroll-behavior: smooth;
}
.ai-msg { display: flex; gap: .6rem; max-width: 88%; animation: msgIn .4s var(--ease-out) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.ai-msg.bot { align-self: flex-start; }
.ai-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.ai-bubble {
  padding: .8rem 1rem;
  border-radius: 14px;
  font-size: .875rem;
  line-height: 1.6;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-700);
}
.ai-msg.user .ai-bubble { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.ai-bubble strong { font-weight: 600; color: var(--ink-900); }
.ai-msg.user .ai-bubble strong { color: #fff; }
.ai-bubble a { text-decoration: underline; text-underline-offset: 2px; }
.ai-bubble ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.ai-bubble li { margin-bottom: .3rem; }
.ai-mini-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink-900);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  align-self: flex-end;
}
.ai-mini-av img { width: 17px; }
.ai-msg.user .ai-mini-av { background: var(--sand-2); color: var(--ink-600); font-size: .7rem; font-weight: 600; font-family: var(--font-display); }

.ai-typing { display: flex; gap: 4px; padding: .95rem 1rem; }
.ai-typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-300);
  animation: typing 1.2s infinite;
}
.ai-typing i:nth-child(2) { animation-delay: .18s; }
.ai-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

.ai-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem 1.1rem 0; background: var(--sand); }
.ai-chip {
  padding: .5rem .85rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 100px;
  font-size: .75rem;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, transform .3s;
  white-space: nowrap;
  font-family: var(--font-body);
}
.ai-chip:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); transform: translateY(-2px); }

.ai-foot {
  display: flex;
  gap: .5rem;
  padding: .85rem 1.1rem 1.1rem;
  background: var(--sand);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.ai-foot input {
  flex: 1;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--ink-900);
}
.ai-foot input:focus { outline: none; border-color: var(--ink-900); }
.ai-send {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .3s var(--ease-out), background .3s;
}
.ai-send:hover { transform: scale(1.06); }
.ai-disclaimer {
  font-size: .625rem;
  color: var(--ink-300);
  text-align: center;
  padding: 0 1.1rem .6rem;
  background: var(--sand);
}

/* 13. UTILITIES / REVEAL -------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .09s; }
[data-reveal][data-delay="2"] { transition-delay: .18s; }
[data-reveal][data-delay="3"] { transition-delay: .27s; }
[data-reveal][data-delay="4"] { transition-delay: .36s; }
[data-reveal][data-delay="5"] { transition-delay: .45s; }

.reveal-line { overflow: hidden; display: block; padding-bottom: .12em; margin-bottom: -.12em; }
.reveal-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}
.is-in .reveal-line > span, .reveal-line.is-in > span { transform: none; }

.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;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* 14. RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  :root { --header-h: 74px; }
  .main-nav, .head-phone { display: none; }
  .burger { display: block; }
  .hero-bottom { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band .wrap-inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
  .section--dark .stat { border-color: var(--line-dark); }
  .stat:nth-child(2n) { border-right: 0; }
  .head-cta { display: none; }
}
@media (max-width: 860px) {
  .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev .split-media { order: 0; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .g-a, .g-b, .g-c { grid-column: span 12; }
  .tl-item { grid-template-columns: 1fr; gap: .6rem; }
  .scroll-cue { display: none; }
  .hero-meta { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .foot-top { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ai-panel { height: min(560px, calc(100svh - 2rem)); left: 1rem; right: 1rem; width: auto; }
  .ai-launcher .ai-txt { display: none; }
  .ai-launcher { padding: .45rem; }
  .badge-float { right: 0; bottom: -14px; padding: .85rem 1.05rem; }
}
@media (max-width: 560px) {
  .cols-2 { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .check-list { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .lb-btn { width: 44px; height: 44px; }
  .hero-meta { grid-template-columns: 1fr; gap: 1rem; }
  .hero-meta div { display: flex; align-items: baseline; gap: .75rem; }
  .hero-meta div small { margin-top: 0; }
}

@media (max-width: 640px) {
  .hero-top .hero-tag + .hero-tag { display: none; }
  .hero { padding-block: calc(var(--header-h) + 1.25rem) 2.25rem; }
  .btn { padding: .9rem 1.5rem; }
  .hero h1 { margin-bottom: 1rem; }
  .hero-bottom { margin-top: 1.25rem; padding-top: 1.25rem; }
}

/* Print */
@media print {
  .site-header, .mobile-nav, .to-top, .ai-launcher, .ai-panel, #preloader, .scroll-cue { display: none !important; }
  body { color: #000; }
}
