@import url("gilroy.css");
/* ============================================================
   MITHRA 2026 — Website Design System
   Palette, type, components, nav, footer, motion.
   Brand colors per Mithra Brand Guidelines (Spring 2025).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Signature accent — neutral monochrome. CTAs are ink on light
     surfaces and flip to white on dark. No brand hue. */
  --accent: #0B0E14;          /* CTA fill on light (white text on top) */
  --accent-strong: #1C2230;   /* hover / pressed */
  --accent-text: #0B0E14;     /* accent as text on light */
  --accent-tint: #FFFFFF;     /* accent as text on dark */
  --accent-soft: rgba(11,14,20,.06);
  --accent-glow: rgba(11,14,20,.22);

  /* Product-UI blues — the app screenshots keep their product colorway.
     Marketing chrome no longer uses these. */
  --clear-sky: var(--accent-tint);
  --cool-water: #4589FF;
  --really-blue: #0F62FE;
  --rich-cold: #0043CE;
  --deep-ocean: #0B0E14;    /* dark sections: near-black ink */
  --deep-ocean-2: #07090D;

  /* Neutrals — near-black ink + warm off-white, no pure-white fields */
  --white: #FFFFFF;         /* card / panel surface */
  --page: #FBFAF7;          /* warm near-white page field */
  --off-white: #F4F2EC;     /* warm off-white panels */
  --paper: #FFFFFF;
  --ink: #0B0E14;           /* primary text + dark surfaces */
  --ink-2: #11151D;         /* lifted dark surface */
  --slate: #5F646C;         /* secondary text */
  --slate-light: #8B8F96;
  --soft-border: #E7E4DC;
  --soft-border-2: #F0EDE6;
  --border-strong: #CFCCC2;

  /* film grain — replaces the dot-grid texture everywhere */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --hero-glow-pct: 16%;     /* strength of the hero's single accent field */

  /* Semantic (product UI only) */
  --green: #24A148;
  --green-bg: #E6F4EA;
  --amber: #F1C21B;
  --amber-bg: #FCF4D6;
  --coral: #DA1E28;
  --coral-bg: #FBE7E8;

  /* Type */
  --font-head: "Gilroy", system-ui, -apple-system, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1240px;
  --container-narrow: 760px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadows — neutral ink, soft */
  --shadow-xs: 0 1px 2px rgba(11,14,20,.06);
  --shadow-sm: 0 2px 8px rgba(11,14,20,.06), 0 1px 2px rgba(11,14,20,.04);
  --shadow-md: 0 12px 32px rgba(11,14,20,.10), 0 2px 8px rgba(11,14,20,.05);
  --shadow-lg: 0 28px 64px rgba(11,14,20,.16), 0 6px 16px rgba(11,14,20,.07);
  --shadow-blue: 0 14px 32px var(--accent-glow);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--accent-text); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,h5 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: #fff; }

/* ---------- Type scale ---------- */
.t-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.t-eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.t-eyebrow.no-rule::before { display: none; }
.t-eyebrow.on-dark { color: rgba(255,255,255,.62); }
.t-eyebrow.on-dark::before { background: rgba(255,255,255,.55); }

.h1 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.04em; line-height: 1.04; }
.h2 { font-size: clamp(31px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -0.04em; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.14; }
.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--slate); }
.lede.on-dark { color: rgba(255,255,255,.78); }
.measure { max-width: 640px; }
.measure-wide { max-width: 760px; }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 44px; }
@media (max-width: 700px){ .container { padding: 0 22px; } }
.section { padding: clamp(64px, 9vw, 122px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }

.bg-offwhite { background: var(--off-white); }
.bg-white { background: var(--page); }
.bg-dark { background: var(--deep-ocean); color: #fff; }
.bg-dark h1,.bg-dark h2,.bg-dark h3,.bg-dark h4 { color: #fff; }
.bg-dark-grad {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  color: #fff;
}
.bg-dark-grad h1,.bg-dark-grad h2,.bg-dark-grad h3,.bg-dark-grad h4 { color:#fff; }

.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .h2 { margin-top: 16px; }
.section-head p { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 11px 24px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .2s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn .ic { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
/* on dark surfaces the primary CTA flips to white */
.bg-dark .btn-primary, .bg-dark-grad .btn-primary, .mega-foot .btn-primary {
  background: #fff; color: var(--ink);
}
.bg-dark .btn-primary:hover, .bg-dark-grad .btn-primary:hover, .mega-foot .btn-primary:hover { background: #EDEAE2; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--soft-border); }
.btn-secondary:hover { border-color: var(--border-strong); background: var(--off-white); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--off-white); }
.btn-ghost-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.btn-lg { padding: 13px 30px; font-size: 17px; }
.btn-block { width: 100%; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  color: var(--accent-text); transition: gap .2s var(--ease);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.arrow-link .ic { width: 16px; height: 16px; flex: 0 0 auto; }
.arrow-link:hover { gap: 12px; }
.arrow-link.on-dark { color: var(--clear-sky); }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; padding: 6px 13px;
  border-radius: var(--radius-pill); background: #fff;
  color: var(--ink); border: 1px solid var(--soft-border);
}
.pill.on-dark { background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.18); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  padding: 5px 11px; border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.tag-atlas { background: var(--off-white); color: var(--ink); }
.tag-pulse { background: var(--off-white); color: var(--ink); }

/* dot status */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); }
.dot-amber { background: var(--amber); }
.dot-coral { background: var(--coral); }
.dot-blue { background: var(--cool-water); }

/* ---------- Cards ---------- */
/* ElevenLabs-style module: flat tonal surface, no border, no shadow.
   Bare line icon top-left with generous air before a muted title;
   the description carries the visual weight in ink. */
.card {
  background: var(--off-white); border: 1px solid transparent;
  border-radius: var(--radius-lg); padding: 28px 28px 32px;
  transition: background .25s var(--ease);
}
.card-hover:hover { background: #EFECE4; }
.card .card-ic, .card-ic {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: clamp(40px, 4.5vw, 64px);
  background: transparent; border: 1px solid var(--soft-border);
  color: var(--ink);
}
.card .card-ic svg, .card-ic svg { width: 24px; height: 24px; }
.card-ic .ic { width: 24px; height: 24px; }
.card h3 { font-size: 18px; font-weight: 500; color: var(--slate); margin-bottom: 10px; }
.card p { color: var(--ink); font-size: 17px; line-height: 1.55; }

.card-dark {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 30px; color: #fff;
}
.card-dark .card-ic { background: transparent; border-color: rgba(255,255,255,.22); color: var(--accent-tint); }
/* Plain .card icons sitting on a dark section: keep the chip + icon visible */
.bg-dark .card .card-ic, .bg-dark-grad .card .card-ic,
.bg-dark .card-ic, .bg-dark-grad .card-ic { border-color: rgba(255,255,255,.22); color: var(--accent-tint); }
.card-dark h3 { margin-bottom: 16px; }
.card-dark p { color: rgba(255,255,255,.72); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-5 { grid-template-columns: repeat(5,1fr); }
@media (max-width: 1000px){ .grid-5 { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 980px){ .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
.split.narrow-text { grid-template-columns: 0.9fr 1.1fr; }
@media (max-width: 900px){ .split, .split.narrow-text { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Product UI frame ---------- */
.ui-frame {
  border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--soft-border);
  box-shadow: var(--shadow-lg);
}
.ui-frame.tilt { box-shadow: var(--shadow-lg); }
.ui-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: var(--off-white); border-bottom: 1px solid var(--soft-border);
}
.ui-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--soft-border); display: block; }
.ui-bar i:nth-child(1){ background:#FF5F57; } .ui-bar i:nth-child(2){ background:#FEBC2E; } .ui-bar i:nth-child(3){ background:#28C840; }
.ui-bar .ui-url { margin-left: 12px; font-size: 12px; color: var(--slate); font-family: var(--font-body); background:#fff; border:1px solid var(--soft-border); border-radius: 6px; padding: 4px 12px; }
.ui-screenshot { display:block; width:100%; }

/* float card chip */
.float-chip {
  position: absolute; background: #fff; border: 1px solid var(--soft-border);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 14px 18px;
}

/* ---------- Marquee (logo strip) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 38px; align-items: center; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track img { width: 116px; height: 38px; object-fit: contain; object-position: center; opacity: .62; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.marquee-track img:hover { opacity: 1; filter: grayscale(0); }
@media (prefers-reduced-motion: reduce){ .marquee-track { animation: none; flex-wrap: wrap; justify-content:center; } }
/* mobile: auto-scrolls AND is hand-swipeable at the same time.
   Native horizontal scroll stays on; js/home.js drives scrollLeft so the
   user can grab and swipe whenever they want (auto-scroll pauses on touch). */
@media (max-width: 760px){
  .marquee { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); scrollbar-width: none; }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee-track { animation: none; gap: 30px; }
}

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--soft-border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 4px; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(18px,1.6vw,21px); color: var(--ink);
}
.faq-q .faq-ic { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--soft-border); display: grid; place-items: center; transition: .25s var(--ease); color: var(--ink); }
.faq-q[aria-expanded="true"] .faq-ic { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 4px 26px; color: var(--slate); max-width: 820px; font-size: 16.5px; }

/* ---------- Stats ---------- */
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(38px,5vw,60px); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.bg-dark .stat-num, .bg-dark-grad .stat-num { color: var(--clear-sky); }
.stat-label { color: var(--slate); margin-top: 10px; font-size: 15px; }
.bg-dark .stat-label, .bg-dark-grad .stat-label { color: rgba(255,255,255,.7); }

/* ---------- Header / Nav ---------- */
/* the injected wrapper is the sticky element — a sticky child can never
   travel beyond its own parent's bounds */
#site-header { position: sticky; top: 0; z-index: 100; }
.site-header {
  background: rgba(251,250,247,.85); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--soft-border);
  transition: box-shadow .25s, background-color .35s var(--ease), border-color .35s var(--ease);
}
.site-header.scrolled { box-shadow: none; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 70px; width: auto; flex: 0 0 auto; object-fit: contain; max-width: none; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 10px; font-weight: 500; font-size: 15.5px;
  color: var(--ink); background: none; border: none; transition: color .15s, background .15s;
}
.nav-link:hover, .nav-item:hover .nav-link, .nav-link[aria-expanded="true"] { color: var(--ink); background: var(--off-white); }
.nav-link .chev { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.nav-item:hover .nav-link .chev, .nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
/* nav CTAs stay compact — proportioned to the nav links, not page-level buttons */
.nav-cta .btn { padding: 9px 17px; font-size: 14.5px; }
.nav-cta .btn-primary:hover { transform: none; }
.nav-cta .btn-secondary { border-color: transparent; padding: 9px 12px; }
.nav-cta .btn-secondary:hover { border-color: transparent; background: var(--off-white); }

/* mega panel */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--soft-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 10px; min-width: 300px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
/* invisible bridge across the 10px gap so hover doesn't drop between button and panel */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -11px; height: 12px; }
.nav-item.open .mega, .nav-item:hover .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega.mega-wide { min-width: 520px; }
/* solutions two-section mega */
.mega.mega-solutions { min-width: 660px; }
.mega.mega-solutions-3 { min-width: 900px; }
.mega-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.mega-cols.mega-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.mega-col { display: flex; flex-direction: column; }
.mega-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-light); padding: 3px 12px 5px; }
.mega-cols + .mega-foot { margin-top: 8px; }
/* distinguish the two solution sections by icon accent */
.mega-col--role { border-left: 1px solid var(--soft-border); padding-left: 8px; }
.mega-col--industry { border-left: 1px solid var(--soft-border); padding-left: 8px; }
.mega-col--role .mega-label { color: var(--slate-light); }
.mega-col--usecase .mega-label { color: var(--slate-light); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega-grid.one { grid-template-columns: 1fr; }
/* solutions · by industry band */
.mega-industries { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--soft-border); }
.mega-industries .mega-label { padding: 2px 14px 8px; }
.mega-ind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-ind-link { display: flex; align-items: center; gap: 11px; padding: 9px 14px; border-radius: 10px; transition: background .15s; }
.mega-ind-link:hover { background: var(--off-white); }
.mega-ind-ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: var(--off-white); color: var(--ink); display: grid; place-items: center; }
.mega-ind-ic svg { width: 17px; height: 17px; }
.mega-ind-link:hover .mega-ind-ic { background: var(--ink); color: #fff; }
.mega-ind-tx b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); }
.mega-ind-tx span { display: block; font-size: 12px; color: var(--slate); margin-top: 1px; line-height: 1.35; }
.mega-link { display: flex; gap: 11px; padding: 7px 11px; border-radius: 12px; transition: background .15s; align-items: flex-start; }
.mega-link:hover { background: var(--off-white); }
.mega-link .mega-ic { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: var(--off-white); color: var(--ink); display: grid; place-items: center; }
.mega-link:hover .mega-ic { background: var(--ink); color: #fff; }
.mega-link .mega-ic svg { width: 18px; height: 18px; }
.mega-link b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); }
.mega-link span { display: block; font-size: 12.5px; color: var(--slate); margin-top: 2px; line-height: 1.35; }
.mega-foot { margin-top: 8px; padding: 14px; border-radius: 12px; background: var(--deep-ocean); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mega-foot b { font-family: var(--font-head); font-size: 15px; }
.mega-foot span { font-size: 13px; color: rgba(255,255,255,.7); display:block; margin-top:2px; }

/* compact the 3-column Solutions mega so it isn't so tall */
.mega.mega-solutions-3 { min-width: 820px; padding: 8px; }
.mega-solutions .mega-cols { gap: 0 14px; }
.mega-solutions .mega-label { padding: 2px 13px 3px; }
.mega-solutions .mega-link { padding: 7px 13px; gap: 11px; align-items: flex-start; }
.mega-solutions .mega-link .mega-ic { width: 28px; height: 28px; border-radius: 9px; }
.mega-solutions .mega-link .mega-ic svg { width: 16px; height: 16px; }
.mega-solutions .mega-link b { font-size: 13.5px; line-height: 1.3; }
.mega-solutions .mega-link span { font-size: 11.5px; margin-top: 1px; line-height: 1.3; }
.mega-solutions .mega-ind-link { padding: 7px 13px; gap: 11px; align-items: flex-start; }
.mega-solutions .mega-ind-ic { width: 28px; height: 28px; border-radius: 9px; }
.mega-solutions .mega-ind-ic svg { width: 16px; height: 16px; }
.mega-solutions .mega-ind-tx b { font-size: 13.5px; line-height: 1.3; }
.mega-solutions .mega-ind-tx span { font-size: 11.5px; line-height: 1.3; }
.mega-solutions .mega-foot { margin-top: 6px; padding: 11px 14px; }

/* mobile */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--soft-border); background: #fff; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }
.mobile-nav { display: none; }
@media (max-width: 1040px){
  .nav { height: 64px; }
  .nav-logo img { height: 32px; }
  .nav-menu, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav {
    display: block; position: fixed; inset: 72px 0 0 0; background: #fff; z-index: 99;
    transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; padding: 18px 20px 60px;
  }
  body.menu-open .mobile-nav { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  .m-group { border-bottom: 1px solid var(--soft-border); }
  .m-group > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; background: none; border: none; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); }
  .m-group > button svg { width: 18px; height: 18px; transition: transform .25s; }
  .m-group.open > button svg { transform: rotate(180deg); }
  .m-sub { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
  .m-group.open .m-sub { max-height: 600px; }
  .m-sub a { display: block; padding: 12px 4px 12px 14px; color: var(--slate); font-weight: 500; }
  .m-link { display: block; padding: 16px 4px; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--soft-border); }
  .mobile-nav .btn { margin-top: 22px; }
}

/* announcement bar — static element above the sticky #site-header; scrolls away with the page */
.announce-bar {
  position: relative; z-index: 101;
  height: 44px;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 0 56px; text-align: center;
}
.announce-bar .announce-link {
  color: #fff; font-size: 14.5px; font-weight: 500; line-height: 1.4;
  display: inline-flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%;
}
.announce-bar .announce-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.announce-bar .announce-link strong { font-weight: 700; }
.announce-bar .announce-arrow { width: 16px; height: 16px; flex: 0 0 auto; transition: transform .2s var(--ease); }
.announce-bar .announce-link:hover .announce-arrow { transform: translateX(3px); }
.announce-bar .announce-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; background: none; color: rgba(255,255,255,.6);
  display: grid; place-items: center; border-radius: 8px; cursor: pointer;
  transition: color .15s, background .15s;
}
.announce-bar .announce-close:hover { color: #fff; background: rgba(255,255,255,.12); }
.announce-bar .announce-close svg { width: 13px; height: 13px; }
@media (max-width: 720px){
  .announce-bar { padding: 0 46px; }
  .announce-bar .announce-link { font-size: 13px; }
}

/* active page link */
.nav-link.is-active, .footer-col a.is-active { color: var(--really-blue); }

/* ---------- Overlay nav — dark-hero pages ----------
   At the top the header is invisible: no bar, no border, the hero background
   shows straight through. Once the user scrolls it becomes a floating
   glass bar (blur + translucency) that travels with them. */
body.nav-overlay #site-header { margin-bottom: -65px; }
body.nav-overlay .site-header {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
body.nav-overlay .site-header.scrolled {
  background: rgba(11,14,20,.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom-color: rgba(255,255,255,.08);
}
body.nav-overlay .nav-logo img { height: 44px; }
body.nav-overlay .nav-link { color: rgba(255,255,255,.78); }
body.nav-overlay .nav-link:hover,
body.nav-overlay .nav-item:hover .nav-link,
body.nav-overlay .nav-link[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.09); }
body.nav-overlay .nav-link.is-active { color: #fff; }
body.nav-overlay .nav-toggle { color: #fff; }
body.nav-overlay .nav-cta .btn-secondary { color: rgba(255,255,255,.85); border-color: transparent; background: transparent; }
body.nav-overlay .nav-cta .btn-secondary:hover { color: #fff; border-color: transparent; background: rgba(255,255,255,.08); }
body.nav-overlay .nav-cta .btn-primary { background: #fff; color: var(--ink); }
body.nav-overlay .nav-cta .btn-primary:hover { background: #EDEAE2; }
/* past the hero the glass flips to a light lens — colours reverse */
body.nav-overlay .site-header.past-hero {
  background: rgba(251,250,247,.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom-color: rgba(11,14,20,.08);
}
.nav-logo img { transition: filter .3s var(--ease); }
/* dark-hero pages: white monochrome logo over the hero inverts to black on the light lens */
body.nav-overlay:not(.nav-light-start) .past-hero .nav-logo img { filter: invert(1); }
body.nav-overlay .past-hero .nav-link { color: rgba(11,14,20,.74); }
body.nav-overlay .past-hero .nav-link:hover,
body.nav-overlay .past-hero .nav-item:hover .nav-link,
body.nav-overlay .past-hero .nav-link[aria-expanded="true"] { color: var(--ink); background: rgba(11,14,20,.06); }
body.nav-overlay .past-hero .nav-link.is-active { color: var(--ink); }
body.nav-overlay .past-hero .nav-toggle { color: var(--ink); }
body.nav-overlay .past-hero .nav-cta .btn-secondary { color: rgba(11,14,20,.78); }
body.nav-overlay .past-hero .nav-cta .btn-secondary:hover { color: var(--ink); background: rgba(11,14,20,.06); }
body.nav-overlay .past-hero .nav-cta .btn-primary { background: var(--ink); color: #fff; }
body.nav-overlay .past-hero .nav-cta .btn-primary:hover { background: #1C2230; }
body.nav-overlay .site-header { will-change: transform; transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), transform .4s var(--ease); }
/* Harvey pattern: below the hero the bar slips away on scroll-down and glides back on scroll-up */
body.nav-overlay .site-header.nav-hidden { transform: translateY(-112%); }
/* light-topped pages: same overlay behavior, light variant from the start —
   transparent over the page field with dark elements, light lens on scroll */
body.nav-light-start .nav-link { color: rgba(11,14,20,.74); }
body.nav-light-start .nav-link:hover,
body.nav-light-start .nav-item:hover .nav-link,
body.nav-light-start .nav-link[aria-expanded="true"] { color: var(--ink); background: rgba(11,14,20,.06); }
body.nav-light-start .nav-link.is-active { color: var(--ink); }
body.nav-light-start .nav-toggle { color: var(--ink); }
body.nav-light-start .nav-cta .btn-secondary { color: rgba(11,14,20,.78); }
body.nav-light-start .nav-cta .btn-secondary:hover { color: var(--ink); background: rgba(11,14,20,.06); }
body.nav-light-start .nav-cta .btn-primary { background: var(--ink); color: #fff; }
body.nav-light-start .nav-cta .btn-primary:hover { background: #1C2230; }
body.nav-light-start main > :first-child { padding-top: clamp(110px, 4vw + 88px, 152px); }

/* dark-hero pages: the announcement bar turns into translucent glass and the hero
   ink extends up beneath it (lio-style). The extra negative pull = bar height (44px). */
body.has-announce.nav-overlay:not(.nav-light-start) .announce-bar {
  background: rgba(11, 14, 20, .6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
body.has-announce.nav-overlay:not(.nav-light-start) #site-header { margin-bottom: -109px; }
body.has-announce.nav-overlay:not(.nav-light-start) main > .hero:first-child,
body.has-announce.nav-overlay:not(.nav-light-start) main > .page-hero:first-child,
body.has-announce.nav-overlay:not(.nav-light-start) main > :first-child > .hero:first-child,
body.has-announce.nav-overlay:not(.nav-light-start) main > :first-child > .page-hero:first-child { padding-top: clamp(176px, 6vw + 140px, 224px); }
@media (max-width: 1040px){
  body.has-announce.nav-overlay:not(.nav-light-start) #site-header { margin-bottom: -109px; }
  body.has-announce.nav-overlay:not(.nav-light-start) main > .hero:first-child,
  body.has-announce.nav-overlay:not(.nav-light-start) main > .page-hero:first-child,
  body.has-announce.nav-overlay:not(.nav-light-start) main > :first-child > .hero:first-child,
  body.has-announce.nav-overlay:not(.nav-light-start) main > :first-child > .page-hero:first-child { padding-top: clamp(144px, 8vw + 108px, 194px); }
}

/* the hero now starts beneath the floating nav — give it room to breathe */
body.nav-overlay main > .hero:first-child,
body.nav-overlay main > .page-hero:first-child,
body.nav-overlay main > :first-child > .hero:first-child,
body.nav-overlay main > :first-child > .page-hero:first-child { padding-top: clamp(132px, 6vw + 96px, 180px); }
@media (max-width: 1040px){
  body.nav-overlay #site-header { margin-bottom: -65px; }
  body.nav-overlay .nav-logo img { height: 30px; }
  body.nav-overlay main > .hero:first-child,
  body.nav-overlay main > .page-hero:first-child,
  body.nav-overlay main > :first-child > .hero:first-child,
  body.nav-overlay main > :first-child > .page-hero:first-child { padding-top: clamp(100px, 8vw + 64px, 150px); }
  body.nav-light-start main > :first-child { padding-top: clamp(90px, 6vw + 64px, 130px); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-ocean); color: rgba(255,255,255,.7); padding: 80px 0 36px; }
.footer-top { display: grid; grid-template-columns: repeat(7, 1fr); gap: 40px 28px; }
@media (max-width: 1080px){ .footer-top { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 620px){ .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-logo { display: inline-block; margin-bottom: 20px; }
.footer-brand img { height: 40px; display: block; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: 15px; max-width: 300px; }
.footer-social { margin-top: 22px; display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.78); transition: background .18s, color .18s, border-color .18s; }
.footer-social a:hover { background: #fff; border-color: #fff; color: var(--ink); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 13px; line-height: 1.35; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; min-height: calc(2 * 1.35em); }
@media (max-width: 1080px){ .footer-col h4 { min-height: 0; } }
.footer-col a { display: block; color: rgba(255,255,255,.68); font-size: 15px; padding: 7px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-cert { display: inline-block; margin-top: 22px; opacity: .82; transition: opacity .15s; }
.footer-cert:hover { opacity: 1; }
.footer-cert img { height: 60px; width: auto; display: block; }
.footer-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #fff; }
.footer-entity { display: block; margin-top: 6px; color: rgba(255,255,255,.42); font-size: 13px; }

/* ---------- Reveal animation (scroll fly-in disabled per request) ---------- */
.reveal { opacity: 1; transform: none; transition: none; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1 !important; transform: none !important; } }
html.anim-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- helpers ---------- */
.dark-tile { background-image: var(--grain); background-size: 180px; }
.divider { height: 1px; background: var(--soft-border); border: 0; }
.flex { display: flex; } .items-center { align-items: center; } .gap-12 { gap: 12px; } .gap-16 { gap:16px; } .gap-24 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}.mt-40{margin-top:40px}.mt-48{margin-top:48px}
.eyebrow-row{ display:flex; align-items:center; gap:14px; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 1200;
  width: min(420px, calc(100vw - 48px));
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--soft-border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(14px);
  pointer-events: none; visibility: hidden;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s var(--ease);
}
.cookie-banner.open { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; }
.cookie-inner { padding: 22px 22px 20px; }
.cookie-text { font-size: 14.5px; line-height: 1.55; color: var(--slate); }
.cookie-text a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cookie-text a:hover { color: var(--accent-text); }
.cookie-actions { display: flex; gap: 10px; margin-top: 18px; }
.cookie-actions .btn { flex: 1; padding: 11px 18px; font-size: 14.5px; }
@media (max-width: 560px){
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce){
  .cookie-banner { transition: opacity .2s linear, visibility .2s linear; transform: none; }
  .cookie-banner.open { transform: none; }
}
/* preview sandboxes / frozen transitions: snap to target (kill the transition,
   not just its target value) so the banner appears instantly */
html.anim-off .cookie-banner { transition: none !important; }
html.anim-off .cookie-banner.open { opacity: 1 !important; visibility: visible !important; transform: none !important; }

/* ---------- Open cell grid (ElevenLabs-style) ----------
   Blocks sit directly on the page: no card surface at all. Cells are
   separated by hairline rules — a horizontal rule above and below each
   row, vertical rules between columns — with small ink dots marking the
   line intersections. Works with .card and .card-dark cells; dark
   sections swap the line/dot colors via custom props. */
.cellgrid { --cg-line: var(--soft-border); --cg-dot: var(--ink); gap: 0; border-bottom: 1px solid var(--cg-line); position: relative; }
.bg-dark .cellgrid, .bg-dark-grad .cellgrid { --cg-line: rgba(255,255,255,.16); --cg-dot: rgba(255,255,255,.85); }
.bg-dark .cellgrid .card h3, .bg-dark-grad .cellgrid .card h3 { color: #fff; }
.bg-dark .cellgrid .card p, .bg-dark-grad .cellgrid .card p { color: rgba(255,255,255,.72); }
.cellgrid > * {
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  border-top: 1px solid var(--cg-line);
  border-left: 1px solid var(--cg-line);
  padding: 44px 36px 56px;
  position: relative;
}
/* first cell of each row: no left rule, content aligns to container edge */
.grid-2.cellgrid > :nth-child(2n+1),
.grid-3.cellgrid > :nth-child(3n+1),
.grid-4.cellgrid > :nth-child(4n+1),
.grid-5.cellgrid > :nth-child(5n+1) { border-left: 0; padding-left: 0; }
.cellgrid > .card-hover:hover { background: transparent; }
/* title carries the ink here; body recedes */
.cellgrid .card h3, .cellgrid .card-dark h3 { font-size: 20px; font-weight: 500; margin-bottom: 12px; }
.cellgrid .card h3 { color: var(--ink); }
.cellgrid .card p { color: var(--slate); }
/* intersection dots */
.cellgrid > *::before, .cellgrid > *::after,
.cellgrid::before, .cellgrid::after {
  content: ""; position: absolute; width: 4px; height: 4px;
  border-radius: 50%; background: var(--cg-dot); z-index: 1;
}
.cellgrid > *::before { top: -2.5px; left: -2px; }
.cellgrid > *::after { bottom: -2.5px; left: -2px; }
.cellgrid::before { top: -2.5px; right: -2px; }
.cellgrid::after { bottom: -2.5px; right: -2px; }
@media (max-width: 980px) {
  .cellgrid { grid-template-columns: 1fr; }
  .cellgrid > * { border-left: 0; padding: 36px 0 44px; }
  .cellgrid > *::after { display: none; }
}
/* the home chapters fold .grid-3 to one column via a container query
   (rail-scope content column ≤900px) even on wide viewports — mirror the
   stacked-mode cleanup on the same condition so no stray column rules or
   indents survive the fold */
@container (max-width: 900px) {
  .cellgrid { grid-template-columns: 1fr; }
  .cellgrid > * { border-left: 0; padding: 36px 0 44px; }
  .cellgrid > *::after { display: none; }
}

