/* ==========================================================================
   Desmok AI — shared layer: tokens, base, header, side menu, quote popup,
   Ask Desmok AI pill, footer, buttons, reveal utilities.
   Page-specific rules live in assets/css/pages/<page>.css.
   ========================================================================== */

@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans/DMSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans/DMSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans/DMSans-SemiBold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #000;
  --bg-2: #0b0d10;
  --card: #15181d;
  --card-2: #1b1f26;
  --line: #2a313c;
  --accent: #3567db;
  --accent-2: #2559d3;
  --accent-grad: linear-gradient(90deg, #3567db, rgba(66, 52, 219, .65));
  --text: #fff;
  --text-2: #dddddd;
  --muted: #999999;
  --muted-2: #7c7c7c;
  --container: 1320px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #000; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The skip link stays hidden until keyboard focus lands on it. */
a.visually-hidden:focus {
  top: 12px; left: 12px; z-index: 3000;
  width: auto; height: auto; clip: auto;
  padding: 10px 16px; border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 500;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--white { color: #fff; font-weight: 600; }
.section-title { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.15; color: #fff; }
.text-cyan { color: var(--accent); }
.text-muted { color: var(--muted); }
.blue-head {
  background: linear-gradient(to top, #3567db 2.54%, rgba(66, 52, 219, .65) 101.34%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 800px;
  color: #fff;
  font-size: 16px;
  background: transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn-outline:hover { border-color: var(--accent); background: rgba(53, 103, 219, .08); }
.btn-outline .chev { transition: transform .3s var(--ease); }
.btn-outline:hover .chev { transform: translateX(4px); }
.btn-solid {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 800px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.btn-solid:hover { background: #2559d2; }
.chev, .arrow { width: 1em; height: 1em; flex: 0 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 99;
  background: #000;
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.site-header__brand img { width: 135px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 40px); }
.site-nav a {
  position: relative;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
@media (max-width: 1199px) {
  .site-header__inner { gap: 16px; }
  .site-header__brand img { width: 116px; }
  .site-nav a { font-size: 14px; }
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav a.is-active { color: #5b87e3; }
/* Services dropdown: opens on hover, keyboard focus or the chevron button. */
.site-nav__dd { position: relative; display: flex; align-items: center; gap: 4px; }
.site-nav__dd-btn { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; color: #fff; }
.site-nav__dd-btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.site-nav__dd.is-open .site-nav__dd-btn svg { transform: rotate(180deg); }
.site-nav ul.site-nav__menu {
  position: absolute; top: calc(100% + 14px); left: -18px; z-index: 5;
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  min-width: 240px; padding: 10px; border-radius: 14px;
  background: #0b0d10; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .25s var(--ease-out), visibility 0s linear .2s;
}
.site-nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.site-nav__dd:hover .site-nav__menu, .site-nav__dd:focus-within .site-nav__menu, .site-nav__dd.is-open .site-nav__menu {
  opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .25s var(--ease-out);
}
.site-nav__dd.is-closed .site-nav__menu { opacity: 0; visibility: hidden; }
.site-nav__menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 15px; }
.site-nav__menu a::after { display: none; }
.site-nav__menu a:hover, .site-nav__menu a:focus-visible { background: rgba(53, 103, 219, .14); }
.site-nav__menu .site-nav__all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: #5b87e3; }
.get-quote {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 20px;
  background: var(--accent-2);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color .3s var(--ease);
}
.get-quote:hover { background: #2252c1; }
.get-quote .arrow { transition: transform .3s cubic-bezier(.25, .1, .25, 1); }
.get-quote:hover .arrow { transform: translateX(6px); }
.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 3px;
  width: 36px; height: 36px; margin-left: 6px;
}
.menu-toggle span { display: block; width: 20px; height: 3px; background: #ddd; transition: transform .35s var(--ease), opacity .25s; }
.menu-toggle:hover span:nth-child(2) { transform: translateX(-4px); }

/* ---------- Side menu (full-screen overlay) ---------- */
.side-menu {
  position: fixed; inset: 0; z-index: 1000;
  background: #000;
  padding: clamp(40px, 7vw, 90px);
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.side-menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.side-menu__close {
  position: absolute; top: 48px; right: clamp(24px, 6vw, 100px);
  width: 44px; height: 44px; display: grid; place-items: center;
}
.side-menu__close span { position: absolute; width: 26px; height: 3px; background: #fff; transition: transform .45s var(--ease-out); }
.side-menu__close span:first-child { transform: rotate(45deg); }
.side-menu__close span:last-child { transform: rotate(-45deg); }
.side-menu:not(.is-open) .side-menu__close span { transform: rotate(0); }
@media (hover: hover) {
  .side-menu__close:hover span:first-child { transform: rotate(225deg); }
  .side-menu__close:hover span:last-child { transform: rotate(135deg); }
}
.side-menu__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: start; margin-top: 40px; }
.side-menu__left { display: flex; flex-direction: column; align-items: flex-start; gap: 50px; }
.side-menu__left img { max-width: min(560px, 100%); height: auto; }
.side-menu__services .side-menu__title { font-size: 2.4rem; font-weight: 700; line-height: 1.2; color: var(--text-2); letter-spacing: 1px; margin-bottom: 30px; padding-bottom: 15px; }
.side-menu__services a {
  display: flex; justify-content: space-between; align-items: baseline;
  width: 300px; max-width: 100%;
  padding: 20px 0; font-size: 22px; color: var(--text-2);
  transition: font-size .3s var(--ease), color .3s var(--ease);
}
.side-menu__services a:hover { font-size: 24px; color: #fff; }
.side-menu__services a .chev { transition: transform .3s var(--ease); }
.side-menu__services a:hover .chev { transform: scale(1.2); }
.side-menu__social { display: flex; gap: 15px; }
.side-menu__social a { padding: 10px; border-radius: 5px; color: var(--text-2); transition: background-color .25s; }
.side-menu__social a:hover { background: rgba(121, 121, 121, .74); }
.side-menu__social svg { width: 20px; height: 20px; }
.side-menu .side-menu__left, .side-menu .side-menu__services li, .side-menu .side-menu__social {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.side-menu.is-open .side-menu__left, .side-menu.is-open .side-menu__services li, .side-menu.is-open .side-menu__social { opacity: 1; transform: none; }
.side-menu.is-open .side-menu__services li:nth-child(1) { transition-delay: .12s; }
.side-menu.is-open .side-menu__services li:nth-child(2) { transition-delay: .18s; }
.side-menu.is-open .side-menu__services li:nth-child(3) { transition-delay: .24s; }
.side-menu.is-open .side-menu__services li:nth-child(4) { transition-delay: .30s; }
.side-menu.is-open .side-menu__services li:nth-child(5) { transition-delay: .33s; }
.side-menu.is-open .side-menu__social { transition-delay: .36s; }

/* ---------- Quote popup ---------- */
.quote-popup {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.quote-popup.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.quote-popup__box {
  position: relative; width: 92%; max-width: 560px;
  /* Scrolls inside itself when the screen is shorter than the form (phones in landscape). */
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 30px 25px; border-radius: 14px; background: #000; color: #fff;
  transform: translateY(16px) scale(.98); transition: transform .35s var(--ease-out);
}
.quote-popup.is-open .quote-popup__box { transform: none; }
.quote-popup__title, .sent-popup h2 { font-size: 20px; font-weight: 500; text-align: center; margin-bottom: 10px; padding-inline: 32px; }
.quote-popup__box > p { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 20px; }
.quote-popup__close {
  position: absolute; top: 15px; right: 15px; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 50%;
  background: #0d0d0d; border: 1px solid #265bd8; font-size: 20px; line-height: 1;
}
.quote-popup__close:hover { background: #222; }
.form-field {
  width: 100%; margin-bottom: 15px; padding: 12px;
  background: #111; border: 1px solid #444; border-radius: 6px;
  color: #ddd; font: 500 14px var(--font);
}
.form-field::placeholder { color: var(--muted); }
.form-field:focus { outline: none; border-color: var(--accent); }
.form-field.is-invalid { border-color: #e5484d; }
.phone-group { display: flex; gap: 10px; }
.phone-group select { flex: 0 0 104px; appearance: none; -webkit-appearance: none; }

/* Shared quote/contact form (quote popup, Contact page, Engagement models page) */
.dm-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.dm-field { display: flex; flex-direction: column; margin-bottom: 14px; min-width: 0; }
.dm-field--full { grid-column: 1 / -1; }
.dm-field label { margin-bottom: 6px; font-size: 13.5px; font-weight: 500; color: #dfe5ee; text-align: left; }
.dm-field .form-field { margin-bottom: 0; }
.dm-field textarea { resize: vertical; min-height: 96px; }
.dm-req { color: #ff8a8a; }
.dm-opt { font-weight: 400; color: #a7b1bf; }
.dm-err { margin-top: 5px; font-size: 13px; color: #ff8a8a; text-align: left; }
.dm-consent { margin-top: 12px; font-size: 13px; line-height: 1.5; color: #a7b1bf; text-align: center; }
.dm-consent a { color: #8fb0f0; text-decoration: underline; }
.form-status a { text-decoration: underline; }
@media (max-width: 599px) { .dm-form__grid { grid-template-columns: 1fr; } }
.submit-btn {
  width: 100%; padding: 12px; border-radius: 8px;
  background: linear-gradient(90deg, #3567db, rgba(66, 52, 219, .65));
  color: #fff; font-weight: 700; font-size: 15px;
}
.form-status { min-height: 20px; margin-top: 12px; font-size: 14px; text-align: center; color: #8fb0f0; }
.form-status.is-error { color: #ff8a8a; }

/* "Message sent" confirmation (built by site.js; reuses the quote popup shell) */
.sent-popup { z-index: 10001; }
.sent-popup__box { display: flex; flex-direction: column; align-items: center; padding: 44px 28px 28px; border: 1px solid rgba(53, 103, 219, .35); }
.sent-popup__icon {
  width: 64px; height: 64px; margin-bottom: 18px;
  display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: linear-gradient(150deg, var(--accent), #4234db);
  box-shadow: 0 0 0 8px rgba(53, 103, 219, .14), 0 12px 30px -8px rgba(53, 103, 219, .8);
}
.sent-popup__icon svg { width: 30px; height: 30px; }
.sent-popup h2 { font-size: 22px; }
.sent-popup p { font-size: 15px; line-height: 23px; color: #c7cfdc; }
.sent-popup__ok { margin-top: 4px; }

/* ---------- Ask Desmok AI pill ---------- */
.assistant {
  position: fixed; left: 50%; bottom: 22px; z-index: 9000;
  width: 420px; max-width: calc(100vw - 28px);
  transform: translateX(-50%);
  font-family: var(--font);
}
.assistant__glow {
  position: absolute; inset: -14px -22px; z-index: -1; pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(110, 146, 229, .45), rgba(83, 126, 225, .14) 55%, transparent 78%);
  filter: blur(22px); opacity: .55;
  animation: assistant-breathe 4.5s ease-in-out infinite;
}
@keyframes assistant-breathe { 50% { opacity: .9; transform: scale(1.04); } }
.assistant__bar {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 5px;
  border-radius: 999px; background: #fff; color: #1f2937;
  box-shadow: 0 0 0 3px #000, 0 10px 28px rgba(15, 23, 42, .16);
}
.assistant__btn {
  flex: 0 0 auto; width: 54px; height: 42px; border-radius: 999px;
  display: grid; place-items: center;
  background: #0d1525; color: #fff;
  transition: transform .25s var(--ease), background-color .25s;
}
.assistant__btn:hover { transform: scale(1.05); background: #13203a; }
.assistant__btn svg { width: 18px; height: 18px; }
.assistant__btn.is-listening { background: var(--accent); animation: assistant-pulse 1.2s ease-in-out infinite; }
@keyframes assistant-pulse { 50% { box-shadow: 0 0 0 6px rgba(53, 103, 219, .25); } }
.assistant__input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 14px var(--font); color: #1f2937; text-align: center;
}
.assistant__input::placeholder { color: #8a94a6; }
.assistant__panel {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 12px);
  max-height: min(420px, 60vh); max-height: min(420px, 60dvh); overflow-y: auto;
  padding: 16px; border-radius: 18px;
  background: #0d1525; border: 1px solid rgba(110, 146, 229, .18);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .35s var(--ease-out), visibility 0s linear .3s;
}
.assistant.is-open .assistant__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease-out); }
.assistant__head { display: flex; justify-content: space-between; align-items: center; color: #f1f5f9; font-size: 14px; font-weight: 500; }
.assistant__note { margin-top: 2px; font-size: 12.5px; color: #94a3b8; text-align: center; }
.assistant__note a { color: #8fb0f0; text-decoration: underline; }
/* Teaser above the closed pill (desktop only, so it never covers content on phones). */
.assistant__teaser {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(13, 21, 37, .92); border: 1px solid rgba(110, 146, 229, .35);
  font-size: 13px; color: #dbe5f7; transition: opacity .25s var(--ease);
}
.assistant__teaser:hover { color: #fff; border-color: #5b87e3; }
.assistant.is-open .assistant__teaser, .assistant.is-dismissed .assistant__teaser { opacity: 0; visibility: hidden; }
@media (max-width: 991px), (max-height: 640px) { .assistant__teaser { display: none; } }
.assistant__head button { color: #94a3b8; font-size: 18px; line-height: 1; }
.assistant__msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.assistant__msg--bot { align-self: flex-start; background: #1a2436; color: #e2e8f0; border-bottom-left-radius: 4px; }
.assistant__msg--user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.assistant__msg a { color: #8fb0f0; text-decoration: underline; }
.assistant__msg p + p, .assistant__msg p + ul, .assistant__msg ul + p { margin-top: 6px; }
.assistant__msg ul { margin: 4px 0 0; padding-left: 18px; list-style: disc; }
.assistant__msg li + li { margin-top: 3px; }
.assistant__msg b { font-weight: 600; }
.assistant__typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: #94a3b8; animation: assistant-dot 1s infinite; }
.assistant__typing span:nth-child(2) { animation-delay: .15s; }
.assistant__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes assistant-dot { 50% { transform: translateY(-4px); opacity: .5; } }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 860px; padding: 100px 0 40px;
  background: url("../images/brand/footer-bg.webp") no-repeat top center / 100% auto, #050812;
}
.site-footer__wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); min-height: 720px; display: flex; flex-direction: column; }
.site-footer__cols { display: flex; justify-content: space-between; gap: 40px; }
.site-footer__brand { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.site-footer__logo { width: 196px; height: auto; }
.site-footer__about { font-size: 15px; line-height: 23px; color: #cce0f2; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: rgba(26, 31, 40, .29); border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .18s ease, background-color .18s ease;
}
.site-footer__social svg { width: 18px; height: 18px; color: #d6e0f2; }
.site-footer__social a:hover { border-color: var(--accent); background: rgba(53, 103, 219, .12); }
.site-footer__navs { display: flex; gap: 80px; }
.site-footer__nav { display: flex; flex-direction: column; gap: 12px; min-width: 150px; }
.site-footer__nav h2 { font-size: 15px; line-height: 23px; color: #5b87e3; }
.site-footer__rule { height: 1px; background: rgba(255, 255, 255, .14); }
.site-footer__list { padding-top: 14px; display: flex; flex-direction: column; gap: 15px; }
.site-footer__list a { font-size: 15px; line-height: 23px; color: #d6e0f2; transition: color .18s ease; }
.site-footer__list a:hover { color: var(--accent); }
.site-footer__contact { padding-top: 14px; display: flex; flex-direction: column; gap: 15px; }
.site-footer address { font-style: normal; display: flex; flex-direction: column; gap: 13px; }
.site-footer__label { font-size: 13.5px; font-weight: 500; line-height: 18px; letter-spacing: .02em; color: #f4f7fa; }
.site-footer__addr { font-size: 15px; line-height: 23px; color: #a7b1bf; max-width: 260px; }
.site-footer__pair { display: flex; align-items: center; gap: 8px; }
.site-footer__mail { font-size: 15px; line-height: 23px; color: #5b87e3; white-space: nowrap; }
.site-footer__mail:hover { text-decoration: underline; }
.site-footer__base { margin-top: auto; display: flex; flex-direction: column; gap: 37px; }
.site-footer__base-rule { height: 1px; background: rgba(255, 255, 255, .2); }
.site-footer__base-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 15px; color: #f4f7fa; }
.site-footer__legal { display: flex; gap: 40px; }
.site-footer__legal a { display: inline-block; padding: 10px 0; }
.site-footer__legal a:hover { color: #5b87e3; }

/* Visible keyboard focus everywhere */
:focus-visible { outline: 2px solid #8fb0f0; outline-offset: 3px; border-radius: 4px; }
.form-field:focus-visible { outline: none; }

/* ---------- Reveal utilities (driven by site.js) ----------
   The hidden start state applies only when <html class="js"> (set by an inline script in
   every <head>), so no-JS visitors and crawlers see the content as-is. */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-50px); }
.js [data-reveal="right"] { transform: translateX(50px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Cursor-follow glow used on dark cards (.glow-card > .glow-card__light) */
.glow-card { position: relative; overflow: hidden; }
.glow-card__light {
  position: absolute; z-index: 0; width: 220px; height: 220px; pointer-events: none;
  background: radial-gradient(circle, #3567db 0%, transparent 60%);
  filter: blur(80px); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .25s;
}
.glow-card:hover .glow-card__light { opacity: .55; }
.glow-card > :not(.glow-card__light) { position: relative; z-index: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  /* Leave room under the copyright row for the fixed Ask Desmok AI bar. */
  .site-footer { padding-bottom: 104px; }
}
@media (max-width: 1199px) {
  .site-footer { min-height: 0; }
  .site-footer__wrap { min-height: 0; gap: 64px; }
  .site-footer__cols { flex-wrap: wrap; gap: 56px 40px; }
  .site-footer__brand { width: 100%; }
  .site-footer__navs { flex: 1 0 100%; justify-content: space-between; gap: 40px; }
}
.side-menu__mobile-nav { display: none; flex-direction: column; gap: 14px; }
.side-menu__mobile-nav a { font-size: 22px; color: var(--text-2); }
.side-menu__mobile-nav a.is-active { color: #5b87e3; }
@media (max-width: 1199px) {
  .site-nav { display: none; }
  .site-header .get-quote--desk { margin-left: auto; }
  /* 44px touch target; the negative margin keeps the bars flush with the content edge. */
  .menu-toggle { width: 44px; height: 44px; margin: 0 -12px 0 0; align-items: center; }
  .side-menu__mobile-nav { display: flex; }
}
@media (max-width: 599px) {
  .site-header .get-quote--desk { display: none; }
  .menu-toggle { margin-left: auto; }
}
@media (max-width: 991px) {
  .side-menu { justify-content: flex-start; gap: 40px; overflow-y: auto; padding: 40px 28px 120px; }
  .side-menu__close { top: 20px; right: 16px; }
  .side-menu__grid { grid-template-columns: 1fr; gap: 30px; margin-top: 30px; }
  .side-menu__left { gap: 28px; }
  .side-menu__left img { display: none; }
  .side-menu__services .side-menu__title { font-size: 1.6rem; margin-bottom: 10px; }
  .side-menu__services a { padding: 12px 0; font-size: 18px; }
  .side-menu__services a:hover { font-size: 18px; }
}
@media (max-width: 767px) {
  .site-footer { padding: 64px 0 180px; }
  .site-footer__navs { flex-wrap: wrap; gap: 48px 40px; }
  .site-footer__nav { flex: 1 1 240px; }
  .site-footer__base { gap: 24px; }
  .site-footer__base-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-footer__legal { gap: 24px; }
  /* 44px touch targets for the icon-only social links */
  .site-footer__social a { width: 44px; height: 44px; }
  .side-menu__social a { padding: 12px; }
  .assistant { bottom: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}
/* Touch screens: 16px fields stop iOS Safari zooming the page when a field is focused. */
@media (pointer: coarse), (max-width: 767px) {
  .form-field, .assistant__input { font-size: 16px; }
}
/* Phones in landscape: a slimmer sticky header leaves more of the short screen for content. */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 60px; }
}
/* Short screens (phones in landscape): a tighter quote popup. */
@media (max-height: 560px) {
  .quote-popup__box { padding: 22px 20px 16px; }
  .quote-popup__title { margin-bottom: 6px; }
  .quote-popup__box > p { margin-bottom: 14px; }
  .dm-field { margin-bottom: 10px; }
  .quote-popup .form-field { padding: 10px 12px; }
  .side-menu__close { top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   LIGHT THEME — active when <html class="theme-light">. Removing that class
   from the eight pages restores the original all-dark site.
   Everything is light: header, side menu, footer and hero bands included.
   Only an element marked data-hero-band="dark" (a video/photo band that needs a
   dark veil) keeps the dark tokens. Hero bands are tagged [data-hero-band].
   ========================================================================== */
.theme-light {
  --bg: #f5f7fb;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-2: #eef2f8;
  --line: #e1e6ef;
  --text: #0e1525;
  --text-2: #2b3445;
  --muted: #5b6577;
  --muted-2: #8a93a3;
  color-scheme: light;
}
/* Dark islands (opt-in): restore the dark tokens so anything reading var(--text) stays light-on-dark. */
.theme-light [data-hero-band="dark"] {
  --bg: #000; --bg-2: #0b0d10; --card: #15181d; --card-2: #1b1f26; --line: #2a313c;
  --text: #fff; --text-2: #dddddd; --muted: #999999; --muted-2: #7c7c7c;
  color-scheme: dark;
  color: var(--text);
}
.theme-light ::selection { color: #fff; }

.theme-light .section-title { color: var(--text); }
.theme-light .eyebrow--white { color: var(--text); }
.theme-light .btn-outline { border-color: rgba(14, 21, 37, .28); color: var(--text); }
.theme-light .btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(53, 103, 219, .06); }
.theme-light [data-hero-band="dark"] .btn-outline { border-color: rgba(255, 255, 255, .55); color: #fff; }

/* Header: white bar, dark nav, dark-text logo */
.theme-light .site-header { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--line); }
.theme-light .site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(14, 21, 37, .25); }
.theme-light .site-header__brand img,
.theme-light .site-footer__logo { content: url("../images/brand/desmok-logo-dark.png"); }
.theme-light .site-nav a { color: var(--text); }
.theme-light .site-nav a:hover { color: var(--accent); }
.theme-light .menu-toggle span { background: var(--text); }

/* Side menu: white overlay */
.theme-light .side-menu { background: #fff; }
.theme-light .side-menu__close span { background: var(--text); }
.theme-light .side-menu__services h5,
.theme-light .side-menu__services a,
.theme-light .side-menu__mobile-nav a,
.theme-light .side-menu__social a { color: var(--text); }
.theme-light .side-menu__services a:hover { color: var(--accent); }
.theme-light .side-menu__social a:hover { background: #eef2f8; }

/* Footer: light art with a pale "Desmok" watermark */
.theme-light .site-footer { background: url("../images/brand/footer-bg-light.webp") no-repeat top center / 100% auto, #ecf1fa; border-top: 1px solid var(--line); }
.theme-light .site-footer__about { color: var(--text-2); }
.theme-light .site-footer__social a { background: #fff; border-color: var(--line); }
.theme-light .site-footer__social svg { color: var(--text); }
.theme-light .site-footer__social a:hover { border-color: var(--accent); background: #eef2fb; }
.theme-light .site-footer__rule, .theme-light .site-footer__base-rule { background: #d6dce7; }
.theme-light .site-footer__list a, .theme-light .site-footer__label { color: var(--text); }
.theme-light .site-footer__list a:hover { color: var(--accent); }
.theme-light .site-footer__addr { color: var(--muted); }
.theme-light .site-footer__base-row, .theme-light .site-footer__legal a { color: var(--text); }

/* Popups become white cards */
.theme-light .quote-popup { background: rgba(14, 21, 37, .45); }
.theme-light .quote-popup__box { background: #fff; color: var(--text); box-shadow: 0 30px 70px -20px rgba(14, 21, 37, .35); }
.theme-light .quote-popup__title, .theme-light .sent-popup h2 { color: var(--text); }
.theme-light .quote-popup__box > p, .theme-light .dm-consent, .theme-light .dm-opt { color: var(--muted); }
.theme-light .dm-field label { color: var(--text); }
.theme-light .dm-consent a, .theme-light .form-status { color: var(--accent); }
.theme-light .dm-err, .theme-light .dm-req { color: #d93636; }
.theme-light .quote-popup__close { background: #f1f4f9; color: var(--text); }
.theme-light .quote-popup__close:hover { background: #e4e9f2; }
.theme-light .sent-popup p { color: var(--text-2); }
.theme-light .form-field { background: #f6f8fc; border-color: #d6dce7; color: var(--text); }
.theme-light .form-field::placeholder { color: #8a93a3; }
.theme-light .form-field:focus { background: #fff; border-color: var(--accent); }
.theme-light .form-status.is-error { color: #d93636; }

/* Ask Desmok AI pill: white bar with a blue ring on the light page */
.theme-light .assistant__bar { background: #fff; color: var(--text); box-shadow: 0 0 0 1.5px rgba(53, 103, 219, .45), 0 14px 34px rgba(14, 21, 37, .18); }
.theme-light .assistant__input { color: var(--text); }
.theme-light .assistant__input::placeholder { color: #6b7588; }
.theme-light .assistant__btn { background: var(--accent); }
.theme-light .assistant__btn:hover { background: #2559d2; }
.theme-light .assistant__panel { background: #fff; border-color: #e1e6ef; box-shadow: 0 24px 56px rgba(14, 21, 37, .2); }
.theme-light .assistant__head { color: var(--text); }
.theme-light .assistant__head button { color: var(--muted); }
.theme-light .assistant__msg--bot { background: #eef2f8; color: var(--text); }
.theme-light .assistant__note { color: var(--muted); }
.theme-light .assistant__note a, .theme-light .assistant__msg a { color: var(--accent); }
.theme-light .assistant__teaser { background: #fff; color: var(--text); border-color: #d6dce7; }

/* Services dropdown on the white header */
.theme-light .site-nav ul.site-nav__menu { background: #fff; border-color: var(--line); box-shadow: 0 18px 40px rgba(14, 21, 37, .16); }
.theme-light .site-nav__dd-btn { color: var(--text); }
.theme-light .site-nav__menu .site-nav__all { color: var(--accent); }

/* Cursor glow on light cards: softer */
.theme-light .glow-card:hover .glow-card__light { opacity: .22; }
