/* ==========================================================================
   TheMontreal.ai — Stylesheet
   1.  Tokens & reset            8.  Portfolio
   2.  Typography & layout       9.  Process
   3.  Buttons & chips          10.  AI solutions
   4.  Header & navigation      11.  Why us / stats
   5.  Hero                     12.  Testimonials / FAQ
   6.  Marquee                  13.  Contact & forms
   7.  Services & industries    14.  Footer / service pages / responsive
   ========================================================================== */

/* ==========================================================================
   1. TOKENS & RESET
   ========================================================================== */
:root {
  /* Brand — sampled from the logo */
  --brand:        #C75A25;
  --brand-deep:   #A5461A;
  --brand-lite:   #E07830;
  --brand-glow:   #F2944A;
  --sand:         #E8C098;
  --sand-soft:    #F4DEC5;
  --ink-brand:    #181820;

  /* Light theme (default) */
  --bg:           #FDFBF8;
  --bg-2:         #F7F1E9;
  --bg-3:         #F2EADF;
  --surface:      #FFFFFF;
  --surface-2:    #FBF7F2;
  --ink:          #16161C;
  --ink-2:        #4E4E5A;
  --ink-3:        #83838F;
  --line:         rgba(24, 24, 32, .11);
  --line-2:       rgba(24, 24, 32, .06);
  --band:         #14141A;
  --band-ink:     #F4F1EC;
  --band-ink-2:   #A9A9B6;
  --band-line:    rgba(255, 255, 255, .13);

  --shadow-s:     0 1px 2px rgba(20,16,12,.05), 0 2px 8px rgba(20,16,12,.04);
  --shadow-m:     0 2px 6px rgba(20,16,12,.06), 0 12px 30px rgba(20,16,12,.07);
  --shadow-l:     0 6px 18px rgba(20,16,12,.08), 0 30px 70px rgba(20,16,12,.11);
  --shadow-brand: 0 10px 34px rgba(199, 90, 37, .28);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  --container: 1280px;
  --gutter: clamp(18px, 4vw, 44px);
  --section: clamp(68px, 9vw, 132px);

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

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script:  "Caveat", "Segoe Script", cursive;

  --header-h: 80px;
}

[data-theme="dark"] {
  --bg:         #0D0E13;
  --bg-2:       #12141B;
  --bg-3:       #171A22;
  --surface:    #171922;
  --surface-2:  #1D2029;
  --ink:        #F3F0EA;
  --ink-2:      #ABABB8;
  --ink-3:      #82828F;
  --line:       rgba(255, 255, 255, .12);
  --line-2:     rgba(255, 255, 255, .07);
  --band:       #090A0E;
  --band-ink:   #F3F0EA;
  --band-ink-2: #9E9EAC;
  --band-line:  rgba(255, 255, 255, .11);

  --brand:      #E5813C;
  --brand-deep: #C75A25;
  --brand-lite: #F0964F;

  --shadow-s:   0 1px 2px rgba(0,0,0,.4);
  --shadow-m:   0 2px 8px rgba(0,0,0,.42), 0 14px 34px rgba(0,0,0,.4);
  --shadow-l:   0 8px 24px rgba(0,0,0,.45), 0 34px 80px rgba(0,0,0,.55);
  --shadow-brand: 0 10px 34px rgba(224, 120, 48, .3);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .45s var(--ease-soft), color .45s var(--ease-soft);
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

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

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

/* Scrollbar */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: var(--bg-2); }
  ::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 99px; border: 3px solid var(--bg-2); }
  ::-webkit-scrollbar-thumb:hover { background: var(--brand); }
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 2000;
  padding: 12px 20px; background: var(--brand); color: #fff;
  border-radius: var(--r-pill); font-weight: 600;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { 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;
}

/* ==========================================================================
   2. TYPOGRAPHY & LAYOUT
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.028em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); letter-spacing: -.02em; }
h4 { font-size: 1.1rem; letter-spacing: -.012em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 980px; }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(50px, 6vw, 84px); }

/* Alternating section grounds give each block its own feel */
.section--sand   { background: var(--bg-2); }
.section--sand-2 { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%); }
.section--band   { background: var(--band); color: var(--band-ink); }
.section--band h1, .section--band h2, .section--band h3, .section--band h4 { color: var(--band-ink); }

.lead { font-size: clamp(1.02rem, 1.55vw, 1.18rem); color: var(--ink-2); line-height: 1.68; }
.section--band .lead { color: var(--band-ink-2); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: .745rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.kicker::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
}
.section--band .kicker { color: var(--brand-lite); }

.sec-head { max-width: 760px; margin-bottom: clamp(38px, 5vw, 62px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .kicker::before { display: none; }
.sec-head--center .kicker { justify-content: center; }
.sec-head h2 { margin-bottom: .42em; }

.sec-head--split {
  display: grid; grid-template-columns: 1fr auto; gap: 30px;
  align-items: end; max-width: none;
}

/* Accent word inside headings */
.accent { color: var(--brand); }
.accent-mark {
  position: relative; display: inline-block; color: var(--brand); z-index: 0;
}
.accent-mark::after {
  content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .06em;
  height: .34em; border-radius: 4px; z-index: -1;
  background: linear-gradient(90deg, rgba(232,192,152,.55), rgba(232,192,152,.15));
  transform: scaleX(0); transform-origin: left;
  animation: underline-in 1s .7s var(--ease-out) forwards;
}
@keyframes underline-in { to { transform: scaleX(1); } }
[data-theme="dark"] .accent-mark::after {
  background: linear-gradient(90deg, rgba(224,120,48,.32), rgba(224,120,48,.06));
}

.script {
  font-family: var(--font-script);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-auto-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g-auto-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* --------------------------------------------------------------------------
   Scroll reveal — elements carry data-anim and get .in from main.js
   -------------------------------------------------------------------------- */
[data-anim] {
  opacity: 0;
  transition:
    opacity .85s var(--ease-out),
    transform .85s var(--ease-out),
    filter .85s var(--ease-out),
    clip-path 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-anim="up"]    { transform: translate3d(0, 34px, 0); }
[data-anim="down"]  { transform: translate3d(0, -28px, 0); }
[data-anim="left"]  { transform: translate3d(-40px, 0, 0); }
[data-anim="right"] { transform: translate3d(40px, 0, 0); }
[data-anim="zoom"]  { transform: scale(.92); }
[data-anim="pop"]   { transform: scale(.8) translate3d(0, 18px, 0); }
[data-anim="blur"]  { filter: blur(14px); transform: translate3d(0, 20px, 0); }
[data-anim="clip"]  { clip-path: inset(0 0 100% 0); transform: translate3d(0, 20px, 0); }
[data-anim="wipe"]  { clip-path: inset(0 100% 0 0); }
[data-anim="fade"]  { transform: none; }

[data-anim].in {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 0 0 0);
}

/* Per-character hero reveal */
.char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, .75em, 0) rotate(4deg);
  animation: char-in .85s var(--ease-out) forwards;
  animation-delay: var(--cd, 0ms);
}
@keyframes char-in { to { opacity: 1; transform: none; } }
.word { display: inline-block; white-space: nowrap; }

/* ==========================================================================
   3. BUTTONS & CHIPS
   ========================================================================== */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .3s var(--ease), color .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--brand-lite), var(--brand-glow));
  opacity: 0; transition: opacity .45s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-brand); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(-1px); }
.btn svg { flex: none; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1.5px solid var(--line);
  background: var(--surface);
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); border-color: var(--ink); box-shadow: var(--shadow-m); }

.btn--line {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--line::before { background: var(--brand); }
.btn--line:hover { color: #fff; border-color: var(--brand); }

.btn--on-dark {
  --btn-fg: var(--band-ink);
  background: transparent;
  border: 1.5px solid var(--band-line);
}
.btn--on-dark::before { background: var(--band-ink); }
.btn--on-dark:hover { color: var(--band); border-color: var(--band-ink); }

.btn--white { --btn-bg: #fff; --btn-fg: var(--ink-brand); }
.btn--white::before { background: var(--sand-soft); }
.btn--white:hover { color: var(--ink-brand); }

.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--sm { padding: 11px 20px; font-size: .9rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Text link with animated arrow + underline */
.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--brand); position: relative; padding-bottom: 2px;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.tlink:hover::after { transform: scaleX(1); transform-origin: left; }
.tlink svg { transition: transform .4s var(--ease-out); }
.tlink:hover svg { transform: translateX(5px); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--bg-3); border: 1px solid var(--line-2);
  font-size: .775rem; font-weight: 600; color: var(--ink-2);
  letter-spacing: -.005em;
}
.section--band .chip { background: rgba(255,255,255,.06); border-color: var(--band-line); color: var(--band-ink-2); }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
  color: var(--brand); font-size: .8rem; font-weight: 650;
}
.badge__dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  animation: pulse-dot 2.4s var(--ease-soft) infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50%      { box-shadow: 0 0 0 5px transparent; opacity: .55; }
}

/* Icon tile */
.itile {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 15px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--acc, var(--brand)) 16%, transparent), color-mix(in srgb, var(--acc, var(--brand)) 5%, transparent));
  color: var(--acc, var(--brand));
  border: 1px solid color-mix(in srgb, var(--acc, var(--brand)) 20%, transparent);
  transition: transform .5s var(--ease-out), background-color .4s var(--ease);
}
.itile svg { width: 26px; height: 26px; }

/* Scroll progress bar */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1200;
  background: linear-gradient(90deg, var(--brand), var(--brand-glow), var(--sand));
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: height .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), transform .45s var(--ease);
}
.header.is-stuck {
  height: 68px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(20,16,12,.06);
}
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  display: flex; align-items: center; gap: 22px; width: 100%;
}

.brand { display: flex; align-items: center; flex: none; margin-right: auto; }
.brand__img {
  height: clamp(30px, 3.4vw, 40px); width: auto;
  transition: height .4s var(--ease), opacity .3s var(--ease);
}
.header.is-stuck .brand__img { height: clamp(27px, 3vw, 34px); }

.nav { display: flex; align-items: center; gap: 2px; flex: none; }

.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 13px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 550; font-size: .935rem;
  color: var(--ink-2); letter-spacing: -.012em; white-space: nowrap;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--ink); background: var(--bg-3); }
.nav__link.is-active { color: var(--brand); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--brand);
}
.nav__caret { width: 13px; height: 13px; transition: transform .35s var(--ease); opacity: .6; }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% - 8px); left: 50%;
  width: min(940px, calc(100vw - 40px));
  transform: translate(-50%, 12px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-l);
  padding: 22px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease), transform .4s var(--ease-out), visibility .35s;
}
.mega.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }

.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mega__item {
  display: flex; gap: 13px; padding: 14px; border-radius: var(--r);
  transition: background-color .3s var(--ease), transform .3s var(--ease-out);
}
.mega__item:hover { background: var(--bg-2); transform: translateX(3px); }
.mega__ico {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 12px;
  background: color-mix(in srgb, var(--acc, var(--brand)) 13%, transparent);
  color: var(--acc, var(--brand));
}
.mega__ico svg { width: 21px; height: 21px; }
.mega__t { font-family: var(--font-display); font-weight: 650; font-size: .95rem; color: var(--ink); margin-bottom: 2px; }
.mega__d { font-size: .82rem; color: var(--ink-3); line-height: 1.45; }
.mega__foot {
  margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.mega__note { font-size: .84rem; color: var(--ink-3); }

.nav-item { position: relative; }

/* Header controls */
.hctl { display: flex; align-items: center; gap: 8px; flex: none; }

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2);
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease-out), background-color .3s var(--ease);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; }

/* Theme toggle — sun/moon crossfade */
.theme-tgl { position: relative; overflow: hidden; }
.theme-tgl svg { position: absolute; transition: transform .55s var(--ease-out), opacity .4s var(--ease); }
.theme-tgl .ico-moon { transform: translateY(0) rotate(0); opacity: 1; }
.theme-tgl .ico-sun  { transform: translateY(130%) rotate(-70deg); opacity: 0; }
[data-theme="dark"] .theme-tgl .ico-moon { transform: translateY(-130%) rotate(70deg); opacity: 0; }
[data-theme="dark"] .theme-tgl .ico-sun  { transform: translateY(0) rotate(0); opacity: 1; }

/* Language switch */
.lang {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  position: relative;
}
.lang__btn {
  position: relative; z-index: 1;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 650; font-size: .82rem;
  color: var(--ink-3); transition: color .35s var(--ease);
}
.lang__btn.is-on { color: #fff; }
.lang__pill {
  position: absolute; top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px); border-radius: var(--r-pill);
  background: var(--brand);
  transition: transform .45s var(--ease-out);
}
.lang[data-lang="fr"] .lang__pill { transform: translateX(100%); }

/* Burger */
.burger { display: none; width: 44px; height: 40px; }
.burger__box { position: relative; width: 22px; height: 14px; margin-inline: auto; }
.burger__box span {
  position: absolute; left: 0; height: 2px; width: 100%; border-radius: 2px;
  background: var(--ink); transition: transform .45s var(--ease-out), opacity .3s var(--ease), width .35s var(--ease);
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 6px; width: 70%; }
.burger__box span:nth-child(3) { top: 12px; }
.burger.is-on .burger__box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-on .burger__box span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.burger.is-on .burger__box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 1090;
  background: var(--bg);
  padding: calc(var(--header-h) + 18px) var(--gutter) 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  clip-path: circle(0% at calc(100% - 46px) 40px);
  transition: clip-path .7s var(--ease-out), opacity .3s var(--ease), visibility .5s;
}
.drawer.is-open { opacity: 1; visibility: visible; clip-path: circle(150% at calc(100% - 46px) 40px); }

.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list > li { border-bottom: 1px solid var(--line-2); }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 2px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink);
  opacity: 0; transform: translateY(18px);
}
.drawer.is-open .drawer__link { animation: drawer-in .6s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes drawer-in { to { opacity: 1; transform: none; } }
.drawer__link .num {
  font-size: .72rem; font-weight: 600; color: var(--brand);
  font-family: var(--font-body); letter-spacing: .1em;
}
.drawer__sub { list-style: none; margin: 0 0 16px; padding: 0 0 0 2px; display: grid; gap: 2px; }
.drawer__sub a {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  color: var(--ink-2); font-size: .98rem; font-weight: 500;
}
.drawer__sub a:hover { color: var(--brand); }
.drawer__foot { margin-top: 30px; display: grid; gap: 14px; }
.drawer__meta { display: grid; gap: 6px; font-size: .9rem; color: var(--ink-3); margin-top: 8px; }
.drawer__meta a { color: var(--ink-2); font-weight: 550; }

/* ==========================================================================
   5. HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(30px, 5vw, 62px));
  padding-bottom: clamp(40px, 6vw, 90px);
  overflow: hidden;
  isolation: isolate;
}

/* Layered animated background */
.hero__bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__aurora {
  position: absolute; border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
}
.hero__aurora--1 {
  width: 46vw; height: 46vw; min-width: 420px; min-height: 420px;
  background: radial-gradient(circle at 30% 30%, rgba(224,120,48,.55), transparent 65%);
  top: -14vw; right: -8vw;
  animation: drift-a 22s var(--ease-soft) infinite alternate;
}
.hero__aurora--2 {
  width: 38vw; height: 38vw; min-width: 340px; min-height: 340px;
  background: radial-gradient(circle at 60% 40%, rgba(232,192,152,.6), transparent 66%);
  bottom: -14vw; left: -6vw;
  animation: drift-b 26s var(--ease-soft) infinite alternate;
}
.hero__aurora--3 {
  width: 30vw; height: 30vw; min-width: 260px; min-height: 260px;
  background: radial-gradient(circle at 50% 50%, rgba(199,90,37,.3), transparent 68%);
  top: 34%; left: 40%;
  animation: drift-c 19s var(--ease-soft) infinite alternate;
}
[data-theme="dark"] .hero__aurora { opacity: .4; }
@keyframes drift-a { to { transform: translate3d(-7vw, 6vw, 0) scale(1.14); } }
@keyframes drift-b { to { transform: translate3d(6vw, -5vw, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(-4vw, -7vw, 0) scale(.88); } }

/* Faint technical grid */
.hero__grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, var(--line-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
  animation: grid-pan 34s linear infinite;
}
@keyframes grid-pan { to { background-position: 64px 64px; } }

/* Skyline silhouette */
.hero__skyline {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  height: clamp(130px, 20vw, 250px);
  color: var(--ink);
  opacity: .055;
  pointer-events: none;
}
[data-theme="dark"] .hero__skyline { opacity: .1; }
.hero__skyline svg { width: 100%; height: 100%; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.hero__kicker {
  font-size: .76rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero__kicker::before {
  content: ""; width: 30px; height: 1.5px; background: var(--brand); flex: none;
}

.hero h1 { margin-bottom: .34em; }

/* Rotating promise line */
.hero__rotate {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.1vw, 1.38rem);
  font-weight: 600; letter-spacing: -.02em;
  color: var(--ink-2); margin-bottom: 18px;
  min-height: 1.6em;
}
.hero__rotate b {
  color: var(--brand); font-weight: 700;
  position: relative;
}
.hero__rotate b::after {
  content: ""; display: inline-block;
  width: 2px; height: 1em; margin-left: 3px;
  background: var(--brand); vertical-align: -.14em;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.hero__lead { max-width: 56ch; margin-bottom: 30px; }

.hero__cta { margin-bottom: 34px; }

/* Trust pills under the CTA */
.hero__pills {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.hero__pill {
  display: flex; align-items: flex-start; gap: 11px;
  padding-right: 24px; margin-right: 24px;
  border-right: 1px solid var(--line);
}
.hero__pill:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__pill svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 2px; }
.hero__pill b { display: block; font-family: var(--font-display); font-size: .89rem; font-weight: 650; color: var(--ink); line-height: 1.3; }
.hero__pill span { display: block; font-size: .8rem; color: var(--ink-3); line-height: 1.4; }

/* ---- Hero visual: script mark + floating glass cards ---- */
.hero__visual { position: relative; min-height: clamp(400px, 46vw, 560px); }

.hero__script {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; text-align: center; z-index: 1; pointer-events: none;
}
.hero__script .script {
  display: block;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  color: var(--ink);
  opacity: 0;
  animation: script-in 1.4s 1.1s var(--ease-out) forwards;
}
.hero__script small {
  display: block; margin-top: 4px;
  font-size: clamp(.6rem, 1vw, .74rem); font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase; color: var(--ink-3);
  opacity: 0;
  animation: fade-up .9s 1.7s var(--ease-out) forwards;
}
@keyframes script-in {
  from { opacity: 0; transform: translateY(14px) rotate(-3deg); }
  to   { opacity: .9; transform: none; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Orbiting ring behind the cards */
.hero__orbit {
  position: absolute; top: 50%; left: 50%;
  width: min(430px, 88%); aspect-ratio: 1;
  transform: translate(-50%, -38%);
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--brand) 28%, transparent);
  animation: spin 46s linear infinite;
}
.hero__orbit::before, .hero__orbit::after {
  content: ""; position: absolute; border-radius: 50%;
  background: var(--brand);
}
.hero__orbit::before { width: 9px; height: 9px; top: -5px; left: 50%; box-shadow: 0 0 16px 3px var(--brand); }
.hero__orbit::after  { width: 6px; height: 6px; bottom: 6%; right: 10%; background: var(--sand); }
.hero__orbit--2 {
  width: min(320px, 68%);
  border-color: color-mix(in srgb, var(--sand) 46%, transparent);
  animation-duration: 32s; animation-direction: reverse;
}
@keyframes spin { to { transform: translate(-50%, -38%) rotate(360deg); } }

/* Glass metric cards */
.gcard {
  position: absolute; z-index: 2;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-l);
  padding: 15px 17px;
  opacity: 0;
  animation: card-in .9s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
.gcard--float { animation: card-in .9s var(--ease-out) forwards, bob 7s var(--ease-soft) infinite; }
@keyframes card-in { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -13px; } }

.gcard__row { display: flex; align-items: center; gap: 11px; }
.gcard__ico {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; flex: none;
  background: color-mix(in srgb, var(--acc, var(--brand)) 15%, transparent);
  color: var(--acc, var(--brand));
}
.gcard__ico svg { width: 17px; height: 17px; }
.gcard__k { font-size: .7rem; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.gcard__v { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }

.gcard--a { top: 24%; right: -3%; --d: 1300ms; }
.gcard--b { top: 48%; left: -7%; --d: 1500ms; animation-delay: 1500ms, 1s; }
.gcard--c { bottom: 15%; right: 1%; --d: 1700ms; animation-delay: 1700ms, 2.2s; }
.gcard--d { bottom: -3%; left: 1%; --d: 1900ms; width: min(258px, 76%); }

/* Mini sparkline */
.spark { width: 68px; height: 26px; overflow: visible; }
.spark path {
  fill: none; stroke: var(--acc, var(--brand)); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 160; stroke-dashoffset: 160;
  animation: draw 2s 1.9s var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Chat bubble card */
.gcard__bot { display: flex; gap: 10px; align-items: flex-start; }
.gcard__avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--brand), var(--sand));
  display: grid; place-items: center; color: #fff;
}
.gcard__avatar svg { width: 16px; height: 16px; }
.gcard__msg { font-size: .8rem; color: var(--ink-2); line-height: 1.45; }
.gcard__name { font-size: .7rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.typing { display: inline-flex; gap: 3px; margin-left: 2px; vertical-align: middle; }
.typing i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--brand);
  animation: typing 1.3s var(--ease-soft) infinite;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Scroll cue */
.scroll-cue {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: clamp(26px, 4vw, 48px);
  font-size: .76rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.scroll-cue__line {
  width: 40px; height: 1.5px; background: var(--line); position: relative; overflow: hidden;
}
.scroll-cue__line::after {
  content: ""; position: absolute; inset: 0; width: 45%;
  background: var(--brand); animation: cue 2.1s var(--ease-soft) infinite;
}
@keyframes cue { 0% { transform: translateX(-100%); } 100% { transform: translateX(240%); } }

/* ==========================================================================
   6. MARQUEE / TRUST STRIP
   ========================================================================== */
.marquee {
  position: relative; overflow: hidden;
  padding-block: 20px;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee__item {
  display: inline-flex; align-items: center; gap: 11px;
  padding-inline: 26px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--ink-2); white-space: nowrap;
}
.marquee__item svg { width: 22px; height: 22px; color: var(--brand); opacity: .85; }
.marquee__sep { color: var(--line); }

.trust-label {
  text-align: center; font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
  padding-top: 26px;
}

/* ==========================================================================
   7. SERVICES & INDUSTRIES
   ========================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--band-line); border: 1px solid var(--band-line); border-radius: var(--r-lg); overflow: hidden; }

.svc {
  position: relative; isolation: isolate;
  background: var(--band);
  padding: clamp(26px, 3vw, 38px);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 268px;
  transition: background-color .5s var(--ease);
  overflow: hidden;
}
/* Cursor spotlight */
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--acc) 17%, transparent), transparent 62%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.svc:hover::before { opacity: 1; }
.svc::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--acc), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.svc:hover::after { transform: scaleX(1); }

.svc__num {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 800;
  color: var(--band-ink); opacity: .07; line-height: 1;
  transition: opacity .5s var(--ease), transform .6s var(--ease-out);
}
.svc:hover .svc__num { opacity: .16; transform: translateY(-4px); }

.svc__ico {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; color: var(--acc);
  background: color-mix(in srgb, var(--acc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--acc) 22%, transparent);
  transition: transform .55s var(--ease-out), background-color .4s var(--ease);
}
.svc__ico svg { width: 25px; height: 25px; }
.svc:hover .svc__ico { transform: translateY(-4px) rotate(-6deg) scale(1.06); background: color-mix(in srgb, var(--acc) 22%, transparent); }

.svc h3 { color: var(--band-ink); margin: 0; font-size: 1.24rem; }
.svc p { color: var(--band-ink-2); font-size: .92rem; line-height: 1.6; margin: 0; flex: 1; }
.svc .tlink { color: var(--acc); margin-top: 4px; }

/* Industries */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 20px); }

.ind {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s var(--ease);
}
.ind::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 9%, transparent), transparent 58%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.ind:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: color-mix(in srgb, var(--brand) 34%, transparent); }
.ind:hover::before { opacity: 1; }
.ind > * { position: relative; }
.ind__ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--bg-3); color: var(--brand); margin-bottom: 14px;
  transition: transform .5s var(--ease-out), background-color .4s var(--ease), color .4s var(--ease);
}
.ind__ico svg { width: 23px; height: 23px; }
.ind:hover .ind__ico { background: var(--brand); color: #fff; transform: rotate(-8deg) scale(1.07); }
.ind h3 { font-size: 1.04rem; margin-bottom: 7px; }
.ind p { font-size: .845rem; color: var(--ink-3); line-height: 1.55; margin: 0; }

/* ==========================================================================
   8. PORTFOLIO
   ========================================================================== */
.pf__bar {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}

/* View switcher */
.pf__views {
  display: inline-flex; gap: 3px; padding: 4px;
  background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: var(--r-pill); position: relative;
}
.pf__view {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 17px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .86rem;
  color: var(--ink-3); transition: color .35s var(--ease);
}
.pf__view svg { width: 15px; height: 15px; }
.pf__view.is-on { color: #fff; }
.pf__slider {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  border-radius: var(--r-pill); background: var(--brand);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
  box-shadow: var(--shadow-brand);
}

/* Filter chips */
.pf__filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf__flabel {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-right: 4px;
}
.pf__chip {
  padding: 8px 15px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  font-size: .84rem; font-weight: 600; color: var(--ink-2);
  transition: all .35s var(--ease);
}
.pf__chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.pf__chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pf__count { font-size: .84rem; color: var(--ink-3); font-weight: 550; }

/* --- View A: grid --- */
.pf__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }

.wcard {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), opacity .45s var(--ease);
}
.wcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-l); }
.wcard.is-hidden { display: none; }

.wcard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.wcard__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out), filter .6s var(--ease);
}
.wcard:hover .wcard__media img { transform: scale(1.07); }
.wcard__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10,8,6,.72));
  opacity: .85; transition: opacity .5s var(--ease);
}
.wcard__tags {
  position: absolute; left: 14px; bottom: 13px; right: 14px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.wcard__tag {
  padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.16); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-size: .7rem; font-weight: 600; white-space: nowrap;
}
.wcard__year {
  position: absolute; top: 13px; right: 14px; z-index: 2;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(10,8,6,.5); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
}

.wcard__body { padding: 20px 21px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.wcard__client { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.wcard__body h3 { font-size: 1.1rem; margin: 0; line-height: 1.28; }
.wcard__body p { font-size: .875rem; color: var(--ink-3); line-height: 1.58; margin: 0; flex: 1; }

.wcard__metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding-top: 15px; margin-top: 3px; border-top: 1px solid var(--line-2);
}
.wcard__metric b {
  display: block; font-family: var(--font-display); font-size: 1.12rem;
  font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.2;
}
.wcard__metric span { display: block; font-size: .68rem; color: var(--ink-3); line-height: 1.32; margin-top: 2px; }

/* --- View B: showcase --- */
.pf__show { position: relative; }
.pf__stage {
  display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-l); min-height: 440px;
}
.pf__stage-media { position: relative; overflow: hidden; background: var(--bg-3); }
.pf__stage-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity .8s var(--ease), transform 1.2s var(--ease-out);
}
.pf__stage-media img.is-on { opacity: 1; transform: none; }

.pf__stage-body {
  padding: clamp(28px, 3.4vw, 46px);
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.pf__stage-body .wcard__client { font-size: .78rem; }
.pf__stage-body h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin: 0; }
.pf__stage-body p { color: var(--ink-2); margin: 0; }
.pf__stage-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.pf__stage-metrics b { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 750; letter-spacing: -.03em; color: var(--brand); }
.pf__stage-metrics span { font-size: .74rem; color: var(--ink-3); line-height: 1.35; display: block; margin-top: 3px; }

.pf__nav { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.pf__dots { display: flex; gap: 7px; flex: 1; flex-wrap: wrap; }
.pf__dot {
  width: 26px; height: 5px; border-radius: 99px; background: var(--line);
  transition: background-color .4s var(--ease), width .4s var(--ease-out);
}
.pf__dot.is-on { background: var(--brand); width: 44px; }
.pf__arrows { display: flex; gap: 8px; }

/* --- View C: index list --- */
.pf__list { border-top: 1px solid var(--line); }
.pf-row {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr auto auto;
  gap: 20px; align-items: center;
  padding: 22px 12px;
  border-bottom: 1px solid var(--line);
  transition: background-color .4s var(--ease), padding-left .4s var(--ease-out);
  overflow: hidden;
}
.pf-row:hover { background: var(--bg-2); padding-left: 22px; }
.pf-row.is-hidden { display: none; }
.pf-row__n { font-family: var(--font-display); font-size: .82rem; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; }
.pf-row__main h3 { font-size: 1.14rem; margin: 0 0 3px; transition: color .35s var(--ease); }
.pf-row:hover .pf-row__main h3 { color: var(--brand); }
.pf-row__main span { font-size: .84rem; color: var(--ink-3); }
.pf-row__tags { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; max-width: 300px; }
.pf-row__year { font-size: .82rem; font-weight: 650; color: var(--ink-3); min-width: 42px; text-align: right; }
.pf-row__peek {
  position: absolute; right: 120px; top: 50%; translate: 0 -50%;
  width: 150px; height: 96px; border-radius: 12px; overflow: hidden;
  opacity: 0; transform: scale(.85) rotate(-4deg); pointer-events: none;
  box-shadow: var(--shadow-l);
  transition: opacity .4s var(--ease), transform .55s var(--ease-out);
}
.pf-row:hover .pf-row__peek { opacity: 1; transform: scale(1) rotate(-2deg); }
.pf-row__peek img { width: 100%; height: 100%; object-fit: cover; }

.pf__empty {
  text-align: center; padding: 60px 20px; color: var(--ink-3);
  border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.pf__panel[hidden] { display: none; }
.pf__panel { animation: panel-in .55s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   9. PROCESS TIMELINE
   ========================================================================== */
.proc { position: relative; }
.proc__track {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.2vw, 30px);
  position: relative;
}
/* The connecting line draws itself as the section scrolls into view */
.proc__line {
  position: absolute; top: 34px; left: 8%; right: 8%; height: 2px;
  background: var(--line);
  overflow: hidden;
}
.proc__line::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--brand), var(--sand));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.6s .25s var(--ease-out);
}
.proc.in .proc__line::after { transform: scaleX(1); }

.step { position: relative; text-align: center; }
.step__dot {
  position: relative; z-index: 2;
  width: 68px; height: 68px; margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--brand);
  transition: transform .55s var(--ease-out), border-color .5s var(--ease), background-color .5s var(--ease), color .5s var(--ease);
}
.step__dot svg { width: 27px; height: 27px; }
.step:hover .step__dot { transform: translateY(-6px) scale(1.06); border-color: var(--brand); background: var(--brand); color: #fff; }
.step__n {
  position: absolute; top: -6px; right: -4px;
  width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-family: var(--font-display); font-size: .82rem; font-weight: 700;
  border: 3px solid var(--bg);
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .875rem; color: var(--ink-3); line-height: 1.6; margin: 0; }

/* ==========================================================================
   10. AI SOLUTIONS — tilt cards on sand
   ========================================================================== */
.ai-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.6vw, 20px); }

.aic {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px 24px;
  transform-style: preserve-3d;
  transition: transform .45s var(--ease-out), box-shadow .5s var(--ease-out);
}
.aic:hover { box-shadow: var(--shadow-l); }
.aic__ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 18%, transparent), color-mix(in srgb, var(--sand) 26%, transparent));
  color: var(--brand); margin-bottom: 16px;
  transform: translateZ(28px);
  transition: transform .5s var(--ease-out);
}
.aic__ico svg { width: 23px; height: 23px; }
.aic:hover .aic__ico { transform: translateZ(40px) scale(1.06); }
.aic h3 { font-size: 1rem; margin-bottom: 8px; transform: translateZ(18px); }
.aic p { font-size: .845rem; color: var(--ink-3); line-height: 1.56; margin: 0 0 14px; transform: translateZ(10px); }
.aic .tlink { font-size: .86rem; }

/* ==========================================================================
   11. WHY US / COMPARE / STATS
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); }

.whyc {
  position: relative; overflow: hidden;
  padding: 28px 26px 30px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.whyc::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--sand));
  transform: scaleX(0); transform-origin: left;
  transition: transform .65s var(--ease-out);
}
.whyc:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.whyc:hover::after { transform: scaleX(1); }
.whyc__ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-3); color: var(--brand); margin-bottom: 16px;
  transition: transform .5s var(--ease-out);
}
.whyc__ico svg { width: 24px; height: 24px; }
.whyc:hover .whyc__ico { transform: rotate(-7deg) scale(1.07); }
.whyc h3 { font-size: 1.06rem; margin-bottom: 9px; line-height: 1.3; }
.whyc p { font-size: .87rem; color: var(--ink-3); line-height: 1.62; margin: 0; }

/* Comparison table */
.cmp {
  margin-top: clamp(40px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.cmp__head, .cmp__row { display: grid; grid-template-columns: 1fr 1fr; }
.cmp__head > div {
  padding: 18px 24px;
  font-family: var(--font-display); font-weight: 700; font-size: .96rem;
  letter-spacing: -.01em;
}
.cmp__head > div:first-child { background: var(--bg-3); color: var(--ink-3); }
.cmp__head > div:last-child {
  background: linear-gradient(120deg, var(--brand), var(--brand-lite));
  color: #fff;
  display: flex; align-items: center; gap: 9px;
}
.cmp__row > div {
  padding: 16px 24px;
  font-size: .9rem; line-height: 1.5;
  border-top: 1px solid var(--line-2);
  display: flex; align-items: flex-start; gap: 10px;
  opacity: 0; transform: translateX(var(--from, -20px));
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.cmp__row > div:first-child { color: var(--ink-3); }
.cmp__row > div:last-child { --from: 20px; color: var(--ink); font-weight: 550; background: color-mix(in srgb, var(--brand) 5%, transparent); }
.cmp.in .cmp__row > div { opacity: 1; transform: none; }
.cmp__x, .cmp__v { flex: none; width: 17px; height: 17px; margin-top: 3px; }
.cmp__x { color: var(--ink-3); opacity: .6; }
.cmp__v { color: var(--brand); }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.5vw, 36px); }
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: calc(var(--gutter) * -.5); top: 14%; bottom: 14%;
  width: 1px; background: var(--band-line);
}
.stat__v {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  font-weight: 750; letter-spacing: -.045em; line-height: 1;
  background: linear-gradient(120deg, var(--brand-lite), var(--sand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 9px;
}
.stat__l { font-size: .85rem; color: var(--band-ink-2); letter-spacing: .01em; }

/* ==========================================================================
   12. TESTIMONIALS & FAQ
   ========================================================================== */
.tst-wrap {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 20px);
  height: clamp(520px, 62vw, 640px);
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 11%, #000 89%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 11%, #000 89%, transparent);
}
.tst-col { display: grid; gap: clamp(14px, 1.8vw, 20px); align-content: start; animation: tst-scroll 46s linear infinite; }
.tst-col--b { animation-duration: 58s; animation-direction: reverse; }
.tst-col--c { animation-duration: 52s; }
.tst-wrap:hover .tst-col { animation-play-state: paused; }
@keyframes tst-scroll { to { transform: translateY(-50%); } }

.tst {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 24px 22px;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .4s var(--ease);
}
.tst:hover { transform: translateY(-4px) scale(1.012); box-shadow: var(--shadow-l); border-color: color-mix(in srgb, var(--brand) 32%, transparent); }
.tst__stars { display: flex; gap: 2px; margin-bottom: 14px; color: var(--brand); }
.tst__stars svg { width: 15px; height: 15px; }
.tst__quote { font-size: .91rem; line-height: 1.66; color: var(--ink-2); margin-bottom: 18px; }
.tst__quote::before { content: "\201C"; font-family: var(--font-display); font-size: 1.4em; line-height: 0; vertical-align: -.22em; color: var(--brand); margin-right: 2px; }
.tst__who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.tst__av {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--sand));
  letter-spacing: -.02em;
}
.tst__name { font-family: var(--font-display); font-weight: 650; font-size: .92rem; color: var(--ink); line-height: 1.3; }
.tst__role { font-size: .78rem; color: var(--ink-3); line-height: 1.4; }
.tst__co { color: var(--brand); font-weight: 600; }

/* Single-row testimonial variant used on service pages */
.tst-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(14px, 2vw, 22px); }

/* FAQ */
.faq { max-width: 880px; margin-inline: auto; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.faq__item.is-open { border-color: color-mix(in srgb, var(--brand) 42%, transparent); box-shadow: var(--shadow-m); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--ink); letter-spacing: -.012em;
  transition: color .3s var(--ease);
}
.faq__q:hover { color: var(--brand); }
.faq__item.is-open .faq__q { color: var(--brand); }
.faq__sign {
  position: relative; flex: none; width: 22px; height: 22px;
  border-radius: 50%; border: 1.5px solid var(--line);
  transition: transform .5s var(--ease-out), border-color .4s var(--ease), background-color .4s var(--ease);
}
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  background: currentColor; border-radius: 2px;
  transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.faq__sign::before { width: 9px; height: 1.6px; }
.faq__sign::after  { width: 1.6px; height: 9px; }
.faq__item.is-open .faq__sign { transform: rotate(180deg); border-color: var(--brand); }
.faq__item.is-open .faq__sign::after { opacity: 0; transform: translate(-50%, -50%) scaleY(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 24px 22px; margin: 0;
  font-size: .93rem; line-height: 1.7; color: var(--ink-2);
  max-width: 68ch;
}

/* ==========================================================================
   13. CTA BAND, CONTACT & FORMS
   ========================================================================== */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, var(--brand-deep), var(--brand) 42%, var(--brand-lite));
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 3vw, 44px);
  align-items: center;
  isolation: isolate;
}
.cta-band::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.22), transparent 42%),
    radial-gradient(circle at 78% 72%, rgba(255,255,255,.14), transparent 46%);
  animation: drift-a 20s var(--ease-soft) infinite alternate;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 72%);
}
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 56ch; margin: 0; }
.cta-band__note { display: block; margin-top: 14px; font-size: .82rem; color: rgba(255,255,255,.72); }

/* Contact layout */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(26px, 3.4vw, 52px); align-items: start; }

.ct-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-m);
}

/* Delivery notice — tells people exactly where the message goes */
.ct-note {
  display: flex; gap: 14px;
  padding: 18px 20px; margin-bottom: 26px;
  border-radius: var(--r);
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}
.ct-note__ico {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
}
.ct-note__ico svg { width: 19px; height: 19px; }
.ct-note b { display: block; font-family: var(--font-display); font-size: .94rem; color: var(--ink); margin-bottom: 4px; }
.ct-note p { font-size: .855rem; color: var(--ink-2); line-height: 1.6; margin: 0; }
.ct-note a { color: var(--brand); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }

/* Form */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.field--full { grid-column: 1 / -1; }

.label {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-size: .845rem; font-weight: 600;
  color: var(--ink); letter-spacing: -.008em;
}
.label small { font-weight: 500; color: var(--ink-3); font-size: .76rem; }
.label .req { color: var(--brand); }

.input, .select, .textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: .94rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: .75; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}
.textarea { resize: vertical; min-height: 138px; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2383838F' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  padding-right: 40px;
  cursor: pointer;
}

.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #D8453A; }
.err {
  font-size: .78rem; color: #D8453A; font-weight: 550;
  display: none; align-items: center; gap: 5px;
}
.field.has-error .err,
.check.has-error .err { display: flex; }
.check .err { flex-basis: 100%; margin-top: 4px; }

/* Segmented service picker */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg label {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--bg);
  font-size: .85rem; font-weight: 600; color: var(--ink-2);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.seg label:hover { border-color: var(--brand); color: var(--brand); }
.seg input:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.seg input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Checkbox */
.check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  flex: none; width: 21px; height: 21px; margin-top: 1px;
  border-radius: 6px; border: 1.5px solid var(--line);
  background: var(--bg);
  display: grid; place-items: center;
  transition: all .3s var(--ease);
}
.check__box svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(.4); transition: all .3s var(--ease-out); }
.check input:checked + .check__box { background: var(--brand); border-color: var(--brand); }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 3px solid var(--brand); outline-offset: 3px; }
.check span { font-size: .855rem; color: var(--ink-2); line-height: 1.55; }
.check.has-error .check__box { border-color: #D8453A; }

.form-foot { margin-top: 24px; display: grid; gap: 16px; }
.form-privacy { font-size: .79rem; color: var(--ink-3); line-height: 1.6; }

/* Submit states */
.form-status { display: none; }
.form-status.is-on { display: block; animation: panel-in .5s var(--ease-out); }
.status-card {
  display: flex; gap: 16px; padding: 24px;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--bg-2);
}
.status-card--ok { border-color: color-mix(in srgb, #2FA36B 40%, transparent); background: color-mix(in srgb, #2FA36B 8%, transparent); }
.status-card--err { border-color: color-mix(in srgb, #D8453A 40%, transparent); background: color-mix(in srgb, #D8453A 7%, transparent); }
.status-card__ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.status-card--ok .status-card__ico { background: #2FA36B; }
.status-card--err .status-card__ico { background: #D8453A; }
.status-card__ico svg { width: 23px; height: 23px; }
.status-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.status-card p { font-size: .9rem; color: var(--ink-2); margin: 0 0 12px; line-height: 1.6; }

.btn.is-loading { pointer-events: none; opacity: .75; }
.btn__spin {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin360 .75s linear infinite;
}
@keyframes spin360 { to { transform: rotate(360deg); } }

/* Contact info side panel */
.ct-info { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.ct-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 24px;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .4s var(--ease);
}
.ct-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.ct-card__row { display: flex; gap: 14px; align-items: flex-start; }
.ct-card__ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-3); color: var(--brand);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .45s var(--ease-out);
}
.ct-card:hover .ct-card__ico { background: var(--brand); color: #fff; transform: rotate(-6deg); }
.ct-card__ico svg { width: 20px; height: 20px; }
.ct-card__k { font-size: .73rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.ct-card__v { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); line-height: 1.4; word-break: break-word; }
.ct-card__v a:hover { color: var(--brand); }
.ct-card__s { font-size: .82rem; color: var(--ink-3); margin-top: 5px; line-height: 1.5; }

.ct-map {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  position: relative; aspect-ratio: 16 / 10; background: var(--bg-3);
}
.ct-map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.9); }
[data-theme="dark"] .ct-map iframe { filter: invert(.92) hue-rotate(180deg) saturate(.7); }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.footer {
  position: relative; overflow: hidden;
  background: var(--band); color: var(--band-ink-2);
  padding-top: clamp(50px, 6vw, 80px);
}
.footer__sky {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: clamp(90px, 13vw, 170px); color: #fff; opacity: .045; pointer-events: none;
}
.footer__sky svg { width: 100%; height: 100%; }
.footer__top {
  display: grid; grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(140px, 1fr));
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(34px, 4vw, 52px);
  position: relative;
}
.footer__brand { max-width: 320px; }
.footer__brand img { height: 36px; width: auto; margin-bottom: 18px; }
.footer__blurb { font-size: .88rem; line-height: 1.65; color: var(--band-ink-2); margin-bottom: 20px; }

.footer h4 {
  color: var(--band-ink); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { font-size: .885rem; color: var(--band-ink-2); transition: color .3s var(--ease), transform .3s var(--ease-out); display: inline-block; }
.footer a:hover { color: var(--brand-lite); transform: translateX(3px); }

.footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .885rem; line-height: 1.55; }
.footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--brand-lite); }

.social { display: flex; gap: 9px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--band-line); color: var(--band-ink-2);
  transition: all .35s var(--ease);
}
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }
.social svg { width: 17px; height: 17px; }

.footer__bot {
  border-top: 1px solid var(--band-line);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  font-size: .82rem;
  position: relative;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.to-top {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: var(--band-ink-2);
}
.to-top:hover { color: var(--brand-lite); }
.to-top svg { width: 15px; height: 15px; transition: transform .4s var(--ease-out); }
.to-top:hover svg { transform: translateY(-3px); }

/* ==========================================================================
   15. SERVICE PAGES
   ========================================================================== */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--band-ink-2); margin-bottom: 22px;
}
.crumbs a:hover { color: var(--brand-lite); }
.crumbs svg { width: 13px; height: 13px; opacity: .5; }
.crumbs [aria-current] { color: var(--brand-lite); font-weight: 600; }

.shero {
  position: relative; overflow: hidden;
  background: var(--band); color: var(--band-ink);
  padding-top: calc(var(--header-h) + clamp(34px, 5vw, 60px));
  padding-bottom: clamp(46px, 6vw, 82px);
  isolation: isolate;
}
.shero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--shot, none);
  background-size: cover; background-position: center;
  opacity: .16; filter: grayscale(.4);
  transform: scale(1.06);
  animation: slow-zoom 22s var(--ease-soft) infinite alternate;
}
@keyframes slow-zoom { to { transform: scale(1.14) translateY(-1.5%); } }
.shero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, var(--band) 30%, color-mix(in srgb, var(--band) 62%, transparent) 62%, transparent),
    radial-gradient(circle at 78% 34%, color-mix(in srgb, var(--acc, var(--brand)) 40%, transparent), transparent 52%);
}
.shero h1 { color: var(--band-ink); font-size: clamp(2.3rem, 5.4vw, 3.9rem); margin-bottom: .2em; }
.shero__sub {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.05rem, 2.1vw, 1.45rem); letter-spacing: -.02em;
  color: var(--band-ink); opacity: .9; margin-bottom: 18px; max-width: 30ch;
}
.shero__lead { color: var(--band-ink-2); max-width: 58ch; margin-bottom: 28px; }
.shero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 52px); align-items: center; }

.shero__badge {
  justify-self: end; text-align: right;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.5rem); line-height: 1.28;
  letter-spacing: -.028em; color: var(--band-ink);
  max-width: 14ch;
}
.shero__badge span { display: block; color: var(--acc, var(--brand-lite)); }

/* Capability strip */
.capstrip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: calc(clamp(46px, 6vw, 82px) * -.5);
  position: relative; z-index: 3;
  box-shadow: var(--shadow-l);
}
.cap {
  padding: 26px 18px; text-align: center;
  border-right: 1px solid var(--line-2);
  transition: background-color .4s var(--ease), transform .45s var(--ease-out);
}
.cap:last-child { border-right: 0; }
.cap:hover { background: var(--bg-2); transform: translateY(-3px); }
.cap__ico {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 13px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--acc, var(--brand)) 12%, transparent);
  color: var(--acc, var(--brand));
  transition: transform .5s var(--ease-out);
}
.cap:hover .cap__ico { transform: rotate(-8deg) scale(1.08); }
.cap__ico svg { width: 22px; height: 22px; }
.cap span { display: block; font-family: var(--font-display); font-size: .87rem; font-weight: 600; color: var(--ink); line-height: 1.4; }

/* Benefits split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); align-items: center; }
.split--rev .split__media { order: -1; }

.split__media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-l); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__quote {
  position: absolute; right: 18px; bottom: 18px; left: 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r); padding: 15px 17px;
  font-size: .85rem; color: var(--ink-2); line-height: 1.55;
}
.split__quote b { display: block; font-size: .76rem; color: var(--brand); margin-top: 6px; font-weight: 650; }

.blist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.blist li { display: flex; gap: 14px; align-items: flex-start; }
.blist__tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 2px;
  background: color-mix(in srgb, var(--acc, var(--brand)) 14%, transparent);
  color: var(--acc, var(--brand));
}
.blist__tick svg { width: 14px; height: 14px; }
.blist b { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 650; color: var(--ink); margin-bottom: 3px; }
.blist span { font-size: .885rem; color: var(--ink-3); line-height: 1.6; }

/* Deliverables grid */
.dlv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.dlv {
  background: var(--surface); padding: 28px 26px;
  transition: background-color .4s var(--ease), transform .45s var(--ease-out);
  position: relative;
}
.dlv:hover { background: var(--bg-2); }
.dlv__n {
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  color: var(--acc, var(--brand)); letter-spacing: .1em; margin-bottom: 12px; display: block;
}
.dlv h3 { font-size: 1.04rem; margin-bottom: 8px; }
.dlv p { font-size: .87rem; color: var(--ink-3); line-height: 1.6; margin: 0; }

/* Outcome tiles */
.out-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.8vw, 20px); }
.out {
  text-align: center; padding: 28px 18px;
  border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.out:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.out b {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 750;
  letter-spacing: -.04em; line-height: 1;
  color: var(--acc, var(--brand)); margin-bottom: 9px;
}
.out span { font-size: .83rem; color: var(--ink-3); line-height: 1.45; }

/* Other-services strip */
.oth-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.4vw, 16px); }
.oth {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .4s var(--ease);
}
.oth:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: color-mix(in srgb, var(--acc, var(--brand)) 40%, transparent); }
.oth__ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--acc, var(--brand)) 12%, transparent); color: var(--acc, var(--brand)); }
.oth__ico svg { width: 19px; height: 19px; }
.oth b { font-family: var(--font-display); font-size: .93rem; font-weight: 650; line-height: 1.3; }
.oth span { font-size: .78rem; color: var(--ink-3); line-height: 1.45; }

/* Page hero for simple pages (contact, portfolio) */
.phero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(34px, 5vw, 64px));
  padding-bottom: clamp(30px, 4vw, 52px);
  background: linear-gradient(170deg, var(--bg-2), var(--bg));
}
.phero::before {
  content: ""; position: absolute; top: -30%; right: -10%;
  width: 42vw; height: 42vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,120,48,.2), transparent 66%);
  filter: blur(60px);
  animation: drift-a 24s var(--ease-soft) infinite alternate;
}
.phero__inner { position: relative; max-width: 780px; }

/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .svc-grid, .pf__grid, .dlv-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .ai-grid  { grid-template-columns: repeat(3, 1fr); }
  .oth-grid { grid-template-columns: repeat(3, 1fr); }
  .capstrip { grid-template-columns: repeat(3, 1fr); }
  .cap:nth-child(3) { border-right: 0; }
  .tst-wrap { grid-template-columns: repeat(2, 1fr); }
  .tst-col--c { display: none; }
}

/* Between these widths the nav fits only if it is a little tighter. */
@media (min-width: 1181px) and (max-width: 1320px) {
  .nav__link { padding-inline: 10px; font-size: .9rem; }
  .header__inner { gap: 14px; }
}

@media (max-width: 1180px) {
  :root { --header-h: 72px; }
  .nav, .hctl .lang { display: none; }
  .brand__img { height: clamp(26px, 6.4vw, 34px); }
  .burger { display: grid; place-items: center; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 420px; order: 2; margin-top: 10px; }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; max-width: 460px; }
  .proc__track { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .proc__line { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .stat:nth-child(2)::after { display: none; }
  .ct-grid { grid-template-columns: 1fr; }
  .ct-info { position: static; }
  .pf__stage { grid-template-columns: 1fr; }
  .pf__stage-media { min-height: 280px; }
  .shero__inner { grid-template-columns: 1fr; }
  .shero__badge { justify-self: start; text-align: left; max-width: 24ch; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .out-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .sec-head--split { grid-template-columns: 1fr; align-items: start; }
  .pf-row { grid-template-columns: 40px 1fr auto; }
  .pf-row__tags { display: none; }
  .pf-row__peek { display: none; }
  .hero__pill { border-right: 0; padding-right: 0; margin-right: 0; width: 100%; margin-bottom: 14px; }
  .hero__pills { gap: 0; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  /* the pilot CTA lives in the drawer at this size, so the burger always fits */
  .hctl > .btn { display: none; }
  .svc-grid, .pf__grid, .ind-grid, .ai-grid, .dlv-grid, .why-grid, .oth-grid, .capstrip { grid-template-columns: 1fr; }
  .cap { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .cap:last-child { border-bottom: 0; }
  .capstrip { margin-top: 0; }
  .tst-wrap { grid-template-columns: 1fr; height: 520px; }
  .tst-col--b { display: none; }
  .out-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .wcard__metrics, .pf__stage-metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cmp__head > div, .cmp__row > div { padding: 14px 16px; font-size: .855rem; }
  .btn { padding: 14px 22px; font-size: .93rem; }
  .btn--lg { padding: 16px 28px; font-size: 1rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .gcard--a { top: 22%; right: -1%; }
  .gcard--b { top: 46%; left: -1%; }
  .gcard--c { bottom: 16%; right: 0; }
  .gcard--d { left: 0; bottom: 0; }
  .gcard--d { width: min(240px, 84%); }
  .hero__script .script { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .out-grid, .stats { grid-template-columns: 1fr; }
  .stat::after { display: none !important; }
  .pf__views { width: 100%; }
  .pf__view { flex: 1; justify-content: center; padding-inline: 8px; }
}

/* ==========================================================================
   17. MOTION & PRINT PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim], .char, .gcard, .hero__script .script, .hero__script small {
    opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important;
  }
  .marquee__track, .tst-col { animation: none !important; }
  .tst-wrap { height: auto; mask-image: none; -webkit-mask-image: none; }
}

@media print {
  .header, .drawer, .progress, .cta-band, .marquee, .scroll-cue, .footer__sky { display: none !important; }
  body { background: #fff; color: #000; }
  [data-anim] { opacity: 1 !important; transform: none !important; }
  .section { padding-block: 24px; page-break-inside: avoid; }
}
