/* ============================================================
   Catalyst Webtrendz — Design System
   Palette drawn from the brand mark: catalyst orange + charcoal ink.
   Type: Fraunces (display) · Plus Jakarta Sans (body) · JetBrains Mono (labels)
   ============================================================ */

:root {
  --ink: #0b0d11;
  --ink-2: #10131a;
  --card: #151923;
  --card-2: #1a1f2b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eceef3;
  --muted: #a2abbb;
  --faint: #6d7686;
  --accent: #f4581f;
  --accent-bright: #ff7a2f;
  --accent-deep: #d63c0a;
  --accent-soft: rgba(244, 88, 31, 0.13);
  --grad-accent: linear-gradient(120deg, #ff8a3d 0%, #f4581f 45%, #e03c0c 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1180px;
  --header-h: 86px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography helpers ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--grad-accent);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; }

.display-xl { font-size: clamp(42px, 6vw, 76px); }
.display-lg { font-size: clamp(34px, 4.6vw, 56px); }
.display-md { font-size: clamp(28px, 3.4vw, 40px); }

.accent-word {
  font-style: italic;
  color: var(--accent-bright);
  background: linear-gradient(100deg, #ffb37a 0%, #f4581f 30%, #ff8a3d 55%, #ffd0a8 80%, #f4581f 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cw-shimmer 5s linear infinite;
}
@keyframes cw-shimmer { to { background-position: 220% center; } }

.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(32px);
  filter: blur(7px);
  animation: cw-word-in 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-word:nth-child(1) { animation-delay: 0.05s; }
.hero-word:nth-child(2) { animation-delay: 0.24s; }
.hero-word:nth-child(3) { animation-delay: 0.43s; }
.hero-word:nth-child(4) { animation-delay: 0.62s; }
@keyframes cw-word-in { to { opacity: 1; transform: none; filter: none; } }

.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 62ch; }

.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); display: grid; gap: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.tinted { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700; font-size: 15.5px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn i { font-size: 13px; transition: transform 0.18s ease; }
.btn:hover i { transform: translateX(4px); }

.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(244, 88, 31, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -10px rgba(244, 88, 31, 0.65); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(11, 13, 17, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(11, 13, 17, 0.9); }

.header-inner {
  height: var(--header-h);
  width: 100%;
  padding: 0 clamp(20px, 3vw, 44px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 58px; width: auto; }
@media (max-width: 640px) { .brand img { height: 48px; } }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { position: relative; }
.main-nav > li > a,
.main-nav > li > button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  font-size: 15px; font-weight: 600; color: var(--muted);
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav > li > a:hover, .main-nav > li > button:hover,
.main-nav > li > a[aria-current="page"],
.main-nav > li.open > button { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.main-nav > li > a[aria-current="page"] { color: var(--accent-bright); }
.main-nav i.fa-chevron-down { font-size: 10px; transition: transform 0.2s ease; }
.main-nav li.open i.fa-chevron-down { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  /* invisible bridge over the 12px gap so hover isn't lost en route */
}
.dropdown::before {
  content: ""; position: absolute; top: -16px; left: -12px; right: -12px; height: 16px;
}
.dropdown {
  min-width: 300px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.main-nav li.open .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }

.dropdown a {
  display: block; padding: 10px 14px; border-radius: 9px;
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: background 0.13s ease, color 0.13s ease;
}
.dropdown a:hover { background: var(--accent-soft); color: var(--text); }
.dropdown a.hub-link {
  font-weight: 700; color: var(--text);
  border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; margin-bottom: 6px; padding-bottom: 12px;
}
.dropdown a.hub-link i { color: var(--accent-bright); margin-right: 8px; width: 18px; text-align: center; }
.dropdown a.hub-link:hover { background: var(--accent-soft); }

.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 11px 22px; font-size: 14.5px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); font-size: 17px; }

/* Mobile nav */
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { display: none; }
  .main-nav {
    /* the header's backdrop-filter creates a containing block, so fixed
       positioning would collapse to the header box — use absolute + height */
    position: absolute; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 20px 24px 48px;
    overflow-y: auto;
    display: none;
    border-top: 1px solid var(--line);
  }
  body.nav-open .main-nav { display: flex; }
  body.nav-open { overflow: hidden; }
  .main-nav > li > a, .main-nav > li > button { width: 100%; justify-content: space-between; padding: 15px 10px; font-size: 17px; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: hidden; pointer-events: auto;
    min-width: 0; box-shadow: none; border: 0; border-left: 2px solid var(--line-strong);
    border-radius: 0; margin: 0 0 8px 12px; padding: 2px 0 2px 6px;
    display: none;
  }
  .main-nav li.open .dropdown { display: block; visibility: visible; transform: none; }
  .main-nav .nav-cta-mobile { margin-top: 18px; }
  .main-nav .nav-cta-mobile .btn { width: 100%; justify-content: center; }
}
@media (min-width: 1021px) { .nav-cta-mobile { display: none; } }

/* ---------- Hero (homepage, full-bleed cinematic) ---------- */

.wrap-wide { max-width: 1400px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; width: 100%; }

.hero-cine {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: clamp(20px, 3.5vh, 40px);
  padding: calc(var(--header-h) + clamp(28px, 5vh, 56px)) 0 clamp(36px, 6vh, 64px);
  overflow: hidden;
}
.hero-cine .hero-bg { position: absolute; inset: 0; }
.hero-cine .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-cine .hero-bg .hero-layer {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 6s ease;
}
.hero-cine .hero-bg .hero-layer.active { opacity: 1; transform: scale(1); }
.hero-cine .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 60% at 78% 30%, rgba(244, 88, 31, 0.14), transparent 70%),
    linear-gradient(78deg, rgba(11, 13, 17, 0.93) 0%, rgba(11, 13, 17, 0.6) 48%, rgba(11, 13, 17, 0.28) 100%),
    linear-gradient(180deg, rgba(11, 13, 17, 0.62) 0%, rgba(11, 13, 17, 0.12) 42%, rgba(11, 13, 17, 0.92) 100%);
}

.hero-topline { display: grid; grid-template-columns: 1fr minmax(280px, 400px); gap: 28px; align-items: start; margin-bottom: auto; }
.hero-side { color: #c9cfda; font-size: 15.5px; line-height: 1.7; }
.hero-side strong { color: #fff; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(52px, 9.4vw, 138px);
  line-height: 1.01;
  letter-spacing: -0.022em;
  margin: 0;
}
.hero-title .hero-word:nth-child(5) { animation-delay: 0.62s; }

/* Hero intro video (plays once, then fades into the hero) */
.hero-intro {
  position: absolute; inset: 0; z-index: 6;
  background: #000;
  transition: opacity 0.9s ease;
}
.hero-intro video { width: 100%; height: 100%; object-fit: cover; }
.hero-intro.done { opacity: 0; pointer-events: none; }
.hero-intro-skip {
  position: absolute; bottom: 30px; left: 30px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 11, 15, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: 13.5px; font-weight: 700;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hero-intro-skip:hover { border-color: var(--accent-bright); background: rgba(10, 11, 15, 0.75); }
.hero-intro-skip i { font-size: 11px; }

/* Hero eyebrow: five clickable divisions */
.hero-divisions { flex-wrap: wrap; row-gap: 8px; line-height: 1.7; }
.hero-divisions a { transition: color 0.15s ease; }
.hero-divisions a:hover { color: #fff; }
.hero-divisions .hb { color: var(--accent-bright); }

/* Option-1 tagline: category strip + giant promise line */
.hero-cats {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px;
  font-size: clamp(24px, 3vw, 46px);
  font-weight: 500; letter-spacing: -0.01em;
  color: #f2f4f8;
  margin-bottom: clamp(10px, 1.6vh, 22px);
}
.hero-cats .hb { color: var(--accent-bright); font-size: 0.5em; }
.hero-cats a { position: relative; transition: color 0.2s ease; }
.hero-cats a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px; height: 3px;
  background: var(--grad-accent); border-radius: 999px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-cats a:hover { color: #fff; }
.hero-cats a:hover::after { transform: scaleX(1); }

.hero-promise {
  display: block;
  font-size: clamp(42px, 6.6vw, 100px);
  line-height: 1.05;
}

/* Headline words double as discipline hotspots */
.pillar-word { position: relative; color: inherit; cursor: pointer; }
.pillar-word::after {
  content: "";
  position: absolute; left: 2%; right: 5%; bottom: 0.02em; height: 0.055em;
  background: var(--grad-accent);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pillar-word.active::after, .pillar-word:hover::after { transform: scaleX(1); }
.hero-title .pillar-word:not(.accent-word) { transition: color 0.4s ease, opacity 0.4s ease; }
.hero-cine.has-active .hero-title .pillar-word:not(.active) { opacity: 0.5; }
.hero-cine.has-active .hero-title .pillar-word.active:not(.accent-word) { color: #fff; }

/* Discipline index strip */
.pillar-index { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pillar-index a {
  display: grid; gap: 7px; align-content: start;
  padding: 16px 18px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(12, 14, 19, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.pillar-index .pi-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--faint); transition: color 0.3s ease; }
.pillar-index .pi-name { font-weight: 800; font-size: 15.5px; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pillar-index .pi-name i { font-size: 11px; color: var(--accent-bright); opacity: 0; transform: translateX(-5px); transition: opacity 0.3s ease, transform 0.3s ease; }
.pillar-index .pi-blurb { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pillar-index a.active, .pillar-index a:hover {
  border-color: rgba(244, 88, 31, 0.55);
  background: rgba(244, 88, 31, 0.1);
  transform: translateY(-4px);
}
.pillar-index a.active .pi-num { color: var(--accent-bright); }
.pillar-index a.active .pi-name i, .pillar-index a:hover .pi-name i { opacity: 1; transform: none; }
@media (max-width: 900px) { .pillar-index { grid-template-columns: repeat(2, 1fr); } }

.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;
}

/* Hero headline carousel (giant text slides, phenyl-style glide) */
.hero-carousel { overflow: hidden; }
.hero-carousel-track {
  display: flex; align-items: center;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.18, 1);
}
.hero-slide { flex: 0 0 100%; min-width: 100%; }
.hero-slide-link { display: block; }
.slide-kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 16px;
}
.slide-kicker i {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(244, 88, 31, 0.3);
  display: grid; place-items: center; font-size: 14px;
}
.hero-service {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 6.6vw, 100px);
  line-height: 1.06; letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.2s ease;
}
.hero-service .dot { color: var(--accent-bright); }
.hero-slide-link:hover .hero-service { color: var(--accent-bright); }
.hero-slide-link:hover .hero-service .dot { color: #fff; }

/* Hero rotating service line */
.hero-rotator { min-height: 44px; display: flex; align-items: center; overflow: hidden; }
.rotator-swap {
  display: flex; align-items: center; gap: 14px;
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.rotator-swap.out { opacity: 0; transform: translateX(-30px); }
.rotator-swap.enter { transition: none; opacity: 0; transform: translateX(30px); }
.rotator-icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--accent-soft);
  border: 1px solid rgba(244, 88, 31, 0.3);
  display: grid; place-items: center;
  color: var(--accent-bright); font-size: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rotator-text {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700; letter-spacing: 0.01em;
  color: #e8ebf2; white-space: nowrap;
}
@media (max-width: 640px) { .rotator-text { white-space: normal; font-size: 15px; } }

/* Hero services ticker */
.hero-ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 14, 19, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 13px 0;
  position: relative; z-index: 2;
}
.ticker-track { gap: 34px; animation-duration: 55s; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 34px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted); white-space: nowrap;
}
.ticker-item .tick-dia { color: var(--accent-bright); font-size: 8px; }

.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero-cta-block { display: grid; gap: 16px; }

.stat-cards { display: flex; gap: 14px; flex-wrap: wrap; }
.stat-card {
  background: #f3efe7; color: #17181b;
  border-radius: 18px;
  padding: 20px 24px;
  min-width: 178px; max-width: 230px;
  display: grid; gap: 6px; align-content: start;
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.6);
}
.stat-card .big { font-family: var(--font-display); font-size: clamp(30px, 3vw, 44px); font-weight: 600; line-height: 1; }
.stat-card .big em { color: var(--accent-deep); font-style: normal; }
.stat-card .cap { font-size: 12.5px; color: #4e5158; font-weight: 600; line-height: 1.45; }

@media (max-width: 860px) {
  .hero-topline { grid-template-columns: 1fr; }
  .hero-side { max-width: 46ch; }
  .hero-foot { align-items: flex-start; }
}

/* ---------- Hero (homepage) ---------- */

.hero-home {
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(64px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.hero-home::before {
  content: "";
  position: absolute; inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(46% 42% at 72% 30%, rgba(244, 88, 31, 0.16), transparent 70%),
    radial-gradient(40% 40% at 18% 16%, rgba(64, 96, 176, 0.14), transparent 70%);
  pointer-events: none;
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.32; pointer-events: none; }
.hero-orb.a { width: 440px; height: 440px; background: #f4581f; top: -140px; right: 6%; animation: orb-drift 14s ease-in-out infinite alternate; }
.hero-orb.b { width: 380px; height: 380px; background: #2c4a8a; bottom: -160px; left: -90px; animation: orb-drift 18s ease-in-out infinite alternate-reverse; }
@keyframes orb-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, 45px) scale(1.18); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 80px); align-items: center; position: relative; z-index: 2; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy .lede { max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { font-size: 14px; color: var(--faint); display: flex; align-items: center; gap: 9px; }
.hero-note i { color: var(--accent-bright); }

.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.hero-collage figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  position: relative;
  box-shadow: var(--shadow);
}
.hero-collage figure::after {
  content: attr(data-label);
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(9, 10, 14, 0.72); color: var(--text);
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
}
.hero-collage img { height: 100%; width: 100%; object-fit: cover; aspect-ratio: 1 / 1; transition: transform 0.5s ease; }
.hero-collage figure:hover img { transform: scale(1.045); }
.hero-collage figure { transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform 0.25s ease-out; }
.hero-collage figure:nth-child(1) { transform: translate(var(--px, 0px), calc(var(--py, 0px) + 22px)); }
.hero-collage figure:nth-child(4) { transform: translate(var(--px, 0px), calc(var(--py, 0px) - 22px)); }

.float-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 17px; border-radius: 999px;
  background: rgba(12, 14, 19, 0.8);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: var(--shadow);
  animation: chip-float 5.5s ease-in-out infinite;
}
.float-chip i { color: var(--accent-bright); font-size: 13px; }
.float-chip.c1 { top: -14px; left: -20px; animation-delay: 0s; }
.float-chip.c2 { top: 29%; right: -16px; animation-delay: 1.4s; }
.float-chip.c3 { bottom: -36px; left: 31%; animation-delay: 2.8s; }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage figure:nth-child(1), .hero-collage figure:nth-child(4) { transform: none; }
  .float-chip.c1 { left: 0; }
  .float-chip.c2 { right: 0; }
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(56px, 7vw, 84px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.22;
  filter: saturate(0.85);
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 17, 0.4) 0%, rgba(11, 13, 17, 0.86) 78%, var(--ink) 100%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero-copy { max-width: 820px; display: grid; gap: 22px; justify-items: start; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; font-family: var(--font-mono); color: var(--faint); }
.breadcrumbs a { color: var(--muted); transition: color 0.15s ease; }
.breadcrumbs a:hover { color: var(--accent-bright); }
.breadcrumbs .sep { opacity: 0.5; }

/* ---------- Logo / trust strip ---------- */

.trust-strip { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); overflow: hidden; }
.trust-label { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 30s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-item {
  font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--faint); white-space: nowrap; display: flex; align-items: center; gap: 10px;
  transition: color 0.2s ease;
}
.logo-item:hover { color: var(--text); }
.logo-item i { font-size: 20px; }

/* ---------- Card grids ---------- */

.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: grid; gap: 14px; align-content: start;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  position: relative;
}
a.card:hover, .card.lift:hover { transform: translateY(-6px); border-color: rgba(244, 88, 31, 0.45); background: var(--card-2); }

.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-size: 21px;
  border: 1px solid rgba(244, 88, 31, 0.28);
}
.card h3 { font-size: 20px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .card-link { color: var(--accent-bright); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; }
.card .card-link i { font-size: 12px; transition: transform 0.18s ease; }
a.card:hover .card-link i { transform: translateX(4px); }

/* Pillar cards (homepage) */
.pillar-card { overflow: hidden; padding: 0; }
.pillar-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; filter: saturate(0.9); }
.pillar-card:hover .pillar-media img { transform: scale(1.05); }
.pillar-body h3 a { transition: color 0.15s ease; }
.pillar-body h3 a:hover { color: var(--accent-bright); }

.pillar-services { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; margin: 2px 0 4px; }
.pillar-services a {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 2px 0;
  transition: color 0.15s ease;
}
.pillar-services a:hover { color: var(--accent-bright); }
.pillar-services i { color: var(--accent-bright); font-size: 11px; width: 15px; text-align: center; flex-shrink: 0; transition: transform 0.15s ease; }
.pillar-services a:hover i { transform: scale(1.2); }
.pillar-services .pillar-more { color: var(--accent-bright); }
@media (max-width: 480px) { .pillar-services { grid-template-columns: 1fr; } }
.pillar-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11, 13, 17, 0.85)); }
.pillar-num {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  background: rgba(9, 10, 14, 0.7); border: 1px solid var(--line-strong);
  padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}
.pillar-body { padding: 26px 28px 30px; display: grid; gap: 12px; }

/* ---------- Checklist (deliverables) ---------- */

.checklist { display: grid; gap: 14px; }
.checklist li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 16px;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.checklist li:hover { border-color: rgba(244, 88, 31, 0.4); transform: translateX(4px); }
.checklist li i { color: var(--accent-bright); margin-top: 4px; font-size: 15px; flex-shrink: 0; }
.checklist li strong { color: var(--text); }
.checklist li span { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.split .section-head { margin-bottom: 0; }
.split-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); position: relative; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ---------- Stats band ---------- */

.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 880px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stat {
  text-align: center; padding: 34px 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card) 0%, var(--ink-2) 100%);
  display: grid; gap: 6px;
}
.stat .num { font-family: var(--font-display); font-size: clamp(38px, 4.5vw, 56px); font-weight: 600; color: var(--text); line-height: 1; }
.stat .num em { color: var(--accent-bright); font-style: normal; }
.stat .label { font-size: 14px; color: var(--muted); }

/* ---------- Process steps ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 22px; counter-reset: step; }
.step {
  counter-increment: step;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: grid; gap: 12px; align-content: start; position: relative;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em;
  color: var(--accent-bright);
}
.step h3 { font-size: 20px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Brand chips (selected work) ---------- */

.workline { display: grid; gap: 14px; }
.workline li {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 26px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card);
  flex-wrap: wrap;
}
.workline .wl-brand { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.workline .wl-what { color: var(--muted); font-size: 15px; flex: 1; min-width: 220px; }
.workline .wl-tag {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-bright); background: var(--accent-soft); border: 1px solid rgba(244, 88, 31, 0.28);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 14px; max-width: 860px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); overflow: hidden; transition: border-color 0.2s ease; }
.faq-item.open { border-color: rgba(244, 88, 31, 0.4); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 24px;
  font-weight: 700; font-size: 16.5px;
}
.faq-q i { color: var(--accent-bright); transition: transform 0.25s ease; font-size: 14px; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; }

/* ---------- Comparison table (AI SDR) ---------- */

.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.compare-row > div { padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.compare-row:last-child > div { border-bottom: 0; }
.compare-row.head > div { background: var(--card-2); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.compare-row .c-label { color: var(--muted); background: var(--ink-2); }
.compare-row .c-ai { color: var(--text); font-weight: 600; background: rgba(244, 88, 31, 0.06); }
.compare-row .c-ai i { color: var(--accent-bright); margin-right: 8px; }
@media (max-width: 640px) {
  .compare-row > div { padding: 13px 14px; font-size: 13.5px; }
}

/* ---------- CTA band ---------- */

.cta-band { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line-strong); padding: clamp(48px, 7vw, 84px) clamp(28px, 6vw, 80px); }
.cta-band .cta-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.18; filter: saturate(0.8);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 90% at 85% 20%, rgba(244, 88, 31, 0.22), transparent 65%),
    linear-gradient(120deg, rgba(11, 13, 17, 0.94), rgba(11, 13, 17, 0.72));
}
.cta-inner { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: start; max-width: 640px; }
.cta-inner .lede { color: #c4cad6; }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.03em; }
.field input, .field select, .field textarea {
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font: inherit; font-size: 15.5px;
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 88, 31, 0.18);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a2abbb' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); }
.contact-list { display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list i { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-bright); display: grid; place-items: center; font-size: 17px; flex-shrink: 0; border: 1px solid rgba(244, 88, 31, 0.28); }
.contact-list strong { display: block; font-size: 15px; }
.contact-list span, .contact-list a { color: var(--muted); font-size: 14.5px; }
.contact-list a:hover { color: var(--accent-bright); }

/* ---------- Partner link (krid.ai) ---------- */

.krid-link {
  color: var(--accent-bright);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(244, 88, 31, 0.5);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.krid-link:hover { text-decoration-color: var(--accent-bright); }

/* ---------- Clientele logo walls ---------- */

.client-group { margin-bottom: 38px; }
.client-group:last-child { margin-bottom: 0; }
.client-group-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.client-group-title i { color: var(--accent-bright); font-size: 17px; }

.client-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.client-chip {
  display: flex; align-items: center; gap: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 9px 13px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.client-chip:hover { border-color: rgba(244, 88, 31, 0.45); transform: translateY(-3px); }
.client-logo {
  width: 66px; height: 46px; flex-shrink: 0;
  background: #fff;
  border-radius: 9px;
  display: grid; place-items: center;
  padding: 5px;
}
.client-logo img { max-height: 36px; max-width: 54px; width: auto; height: auto; object-fit: contain; }
.client-name { font-size: 13.5px; font-weight: 700; color: var(--muted); line-height: 1.35; transition: color 0.2s ease; }
.client-chip:hover .client-name { color: var(--text); }

/* ---------- News digest ---------- */

.news-group { margin-bottom: 40px; }
.news-group:last-child { margin-bottom: 0; }
.news-group-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.news-group-title i { color: var(--accent-bright); font-size: 17px; }
.news-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.06em; }
.news-title { font-size: 18px; line-height: 1.4; }
.news-title a { transition: color 0.15s ease; }
.news-title a:hover { color: var(--accent-bright); }
.news-card-img {
  width: calc(100% + 56px); margin: -30px -28px 6px;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--ink-2);
}

/* News article page */
.news-article { max-width: 860px; }
.news-article-img {
  width: 100%; max-height: 440px; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  margin-bottom: 28px;
}
.news-article-body p { color: var(--muted); font-size: 17px; line-height: 1.75; margin-bottom: 18px; max-width: 68ch; }
.news-article-body .news-attrib { font-size: 14px; color: var(--faint); }
.news-article-body .btn { margin-top: 6px; }

/* ---------- Case studies & testimonials ---------- */

.case-result {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600; line-height: 1.3;
  color: var(--accent-bright) !important;
}

.quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  display: grid; gap: 18px; align-content: space-between;
  position: relative;
}
.quote-card::before {
  content: "\201C";
  position: absolute; top: 6px; right: 22px;
  font-family: var(--font-display);
  font-size: 84px; line-height: 1;
  color: rgba(244, 88, 31, 0.18);
}
.quote-card blockquote { font-size: 15.5px; line-height: 1.7; color: var(--muted); font-style: italic; }
.quote-card figcaption strong { display: block; color: var(--text); font-size: 15px; }
.quote-card figcaption span { color: var(--faint); font-size: 13px; }

/* ---------- Values / mini feature list ---------- */

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: clamp(56px, 7vw, 80px) 0 36px; margin-top: clamp(64px, 9vw, 110px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 52px; }
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand img { height: 46px; width: auto; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--faint); }
.footer-bottom a:hover { color: var(--accent-bright); }
.footer-tagline { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); }

/* ---------- Floating actions: WhatsApp + assistant ---------- */

.fab-stack {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  display: flex; flex-direction: column; gap: 12px;
}
.fab {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 24px; color: #fff;
  box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.fab:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -8px rgba(0, 0, 0, 0.6); }
.fab-wa { background: #25d366; }
.fab-chat { background: var(--grad-accent); }
.fab-chat .fa-xmark { display: none; }
.fab-chat.open .fa-message { display: none; }
.fab-chat.open .fa-xmark { display: block; }

.chat-panel {
  position: fixed; right: 22px; bottom: 158px; z-index: 150;
  width: min(384px, calc(100vw - 32px));
  height: min(540px, calc(100dvh - 190px));
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }
@media (max-width: 480px) {
  .fab-stack { right: 14px; bottom: 14px; }
  .chat-panel { right: 14px; bottom: 146px; }
}

.chat-head {
  padding: 14px 16px;
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.chat-title strong { display: block; font-size: 15px; }
.chat-title span { font-size: 12px; color: var(--muted); }
.chat-close { color: var(--muted); font-size: 16px; padding: 6px; border-radius: 8px; }
.chat-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.chat-body {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; overflow-wrap: break-word; }
.chat-msg.bot { background: var(--ink-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--text); }
.chat-msg.user { background: var(--grad-accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg .chat-link {
  display: block; margin-top: 9px;
  color: var(--accent-bright); font-weight: 700; font-size: 13px;
}
.chat-msg .chat-link:hover { text-decoration: underline; }
.chat-hint { display: block; margin-top: 8px; font-size: 12px; color: var(--faint); }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chips button {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px; font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.chat-chips button:hover { border-color: var(--accent); color: var(--accent-bright); }

.chat-typing { display: inline-flex; gap: 4px; padding: 3px 2px; }
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted);
  animation: chat-blink 1.1s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes chat-blink { 0%, 70%, 100% { opacity: 0.25; } 35% { opacity: 1; } }

.chat-form {
  display: flex; gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--text);
  font: inherit; font-size: 14px;
}
.chat-input:focus { outline: none; border-color: var(--accent); }
.chat-send {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-accent); color: #fff; font-size: 15px;
  display: grid; place-items: center;
  transition: transform 0.15s ease;
}
.chat-send:hover { transform: scale(1.07); }

/* ---------- Reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   Light theme (toggle in header; dark is default)
   Header, heroes, CTA bands and footer stay dark by design —
   the content sections switch to a warm light palette.
   ============================================================ */

[data-theme="light"] {
  --ink: #faf8f4;
  --ink-2: #f1eee6;
  --card: #ffffff;
  --card-2: #f6f3ec;
  --line: rgba(24, 26, 32, 0.09);
  --line-strong: rgba(24, 26, 32, 0.17);
  --text: #1a1c22;
  --muted: #4e5563;
  --faint: #8b90a0;
  --accent-soft: rgba(244, 88, 31, 0.1);
  --shadow: 0 24px 55px -28px rgba(30, 32, 44, 0.22);
}

/* regions that keep the dark, cinematic treatment in light mode */
[data-theme="light"] .site-header,
[data-theme="light"] .hero-cine,
[data-theme="light"] .page-hero,
[data-theme="light"] .cta-band,
[data-theme="light"] .site-footer {
  --ink: #0b0d11;
  --ink-2: #10131a;
  --card: #151923;
  --card-2: #1a1f2b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eceef3;
  --muted: #a2abbb;
  --faint: #6d7686;
  --accent-soft: rgba(244, 88, 31, 0.13);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
  color: var(--text);
}

/* keep the light stat cards readable in both modes (they're always light) */
[data-theme="light"] .stat-card { background: #ffffff; }

/* Google Maps: don't invert to dark in light mode */
[data-theme="light"] .split-media iframe { filter: none !important; }

/* Theme toggle button (header) */
.theme-toggle {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #eceef3;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-bright); transform: rotate(15deg); }
.theme-toggle .fa-moon { display: none; }
[data-theme="light"] .theme-toggle .fa-sun { display: none; }
[data-theme="light"] .theme-toggle .fa-moon { display: block; }

/* Cross-discipline pointer card (e.g. marketing hub -> website development) */
.crosslink { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.crosslink .crosslink-copy { flex: 1; min-width: 260px; display: grid; gap: 6px; }
.crosslink h3 { font-size: 20px; }
.crosslink .card-link { white-space: nowrap; }

/* Document / legal prose pages */
.doc-body { max-width: 780px; }
.doc-body h2 {
  font-size: 26px; font-weight: 500;
  margin: 40px 0 14px;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body p { color: var(--muted); margin-bottom: 16px; line-height: 1.75; }
.doc-body ul { margin: 0 0 18px; display: grid; gap: 10px; }
.doc-body li {
  color: var(--muted); line-height: 1.65;
  padding-left: 26px; position: relative;
}
.doc-body li::before {
  content: "\2022";
  color: var(--accent-bright);
  position: absolute; left: 8px;
}

/* Newsletter mini form */
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Phone field with country code */
.phone-row { display: flex; gap: 8px; }
.phone-row select {
  width: 92px; flex-shrink: 0;
  padding: 14px 8px 14px 14px;
  background-position: right 10px center;
}
.phone-row input { flex: 1; min-width: 0; }
