/* ==========================================================================
   Alamay — marketing site
   Brand palette: Deep Twilight #000C51 · Royal Azure #004CDA · White #FFFFFF · Green #00690C.
   Azure-tinted paper, twilight ink, one azure-to-green gradient.
   ========================================================================== */

/* Fonts: self-hosted variable woff2 from Google Fonts (SIL Open Font License),
   only the weights and styles the site uses. Latin-ext files download only
   when a page has characters outside basic Latin. */
@font-face { font-family: 'Funnel Display'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/funnel-display-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Funnel Display'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/funnel-display-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Funnel Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/funnel-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Funnel Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/funnel-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/geist-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/geist-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #F2F5FC;
  --paper-2: #E2E9F7;
  --card: #FFFFFF;
  --card-2: #F8FAFE;
  --ink: #000C51;
  --ink-2: #1C2A6B;
  --muted: #545F88;
  --faint: #8E97B8;
  --line: rgba(0, 12, 81, .1);
  --line-2: rgba(0, 12, 81, .18);

  --night: #000C51;
  --night-2: #071866;
  --night-line: rgba(255, 255, 255, .11);
  --night-text: #EAEEFA;
  --night-muted: #A6B1D6;

  --azure: #004CDA;
  --green: #00690C;
  --accent: var(--azure);
  /* Light tints for dark grounds, where the base azure and green are too dark to read. */
  --accent-soft: #86AEFF;
  --green-soft: #6FD17C;
  --gradient: linear-gradient(100deg, #004CDA 0%, #00690C 100%);
  --gradient-light: linear-gradient(100deg, #86AEFF 0%, #6FD17C 100%);

  --good: #00690C;
  --good-bg: #E2F0E3;
  --warn: #9A5A00;
  --warn-bg: #FCEFD7;
  --info: #004CDA;
  --info-bg: #E3ECFC;
  --risk: #CF2E47;
  --risk-bg: #FBE2E6;

  --font-display: 'Funnel Display', 'Funnel Sans', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Funnel Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.2, 1.4, .4, 1);
  --shadow-lg: 0 50px 100px -40px rgba(0, 12, 81, .38), 0 18px 36px -18px rgba(0, 12, 81, .2);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -.03em; line-height: 1.04; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
::selection { background: rgba(0, 76, 218, .2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- Type helpers ---------- */
.title { font-size: clamp(38px, 5vw, 68px); letter-spacing: -.045em; line-height: .98; }
.accent {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -.015em; font-size: 1.06em; line-height: .9;
}
.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 620px; margin-top: 22px; line-height: 1.5; }

.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head.wide, .section-head.wide .lede { max-width: none; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: 15.5px; letter-spacing: -.005em;
  white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .3s;
}
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); box-shadow: 0 12px 24px -12px rgba(0, 12, 81, .5); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-glass { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .32); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .6); }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: 40px; padding: 0 17px; font-size: 14.5px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow .3s;
}
/* Frosted-glass bar, faded in once the page scrolls */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(242, 245, 252, .36));
  backdrop-filter: blur(14px) saturate(1.8); -webkit-backdrop-filter: blur(14px) saturate(1.8);
  opacity: 0; transition: opacity .3s;
}
.nav.scrolled::before { opacity: 1; }
.nav.scrolled { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .55), 0 1px 0 var(--line), 0 10px 30px -18px rgba(0, 12, 81, .25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
/* Lockup proportions from the design system: the wordmark box is 90 units tall
   (70 to the ascender + 20 descender), the mark is 140×70, the gap 29.4 */
.brand { --logo-h: 26px; display: inline-flex; align-items: flex-start; gap: calc(var(--logo-h) * .3267); }
.brand-mark { width: calc(var(--logo-h) * 1.5556); height: calc(var(--logo-h) * .7778); transition: transform .5s var(--spring); }
.brand-word { width: calc(var(--logo-h) * 3.5713); height: var(--logo-h); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-light { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 18px; }

/* Nav sitting on the hero photo, before scroll */
.nav-hero .brand { transition: color .3s; }
.nav-hero:not(.scrolled) .brand { color: #fff; }
.nav-hero:not(.scrolled) .nav-cta .btn-ink { background: #fff; color: var(--ink); }
.nav-hero:not(.scrolled) .nav-cta .btn-ink:hover { background: var(--paper); }

/* ==========================================================================
   Hero
   ========================================================================== */
/* Full-bleed: the hero slides up under the sticky nav and fills the screen */
.hero { margin-top: -72px; }
.hero-panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: max(640px, 100svh); padding: 140px 0 100px;
  background: var(--night); color: #fff;
}
/* The aurora (HeroAurora.astro) fades in once its first frame is drawn */
.hero-aurora { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-aurora.on { opacity: 1; }
.hero-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Deep-navy fade under the nav, eased so it has no visible edge */
  background: linear-gradient(180deg,
    rgba(0, 5, 38, 1) 0, rgba(0, 5, 38, .82) 25px, rgba(0, 5, 38, .62) 55px, rgba(0, 5, 38, .42) 90px,
    rgba(0, 5, 38, .25) 125px, rgba(0, 5, 38, .12) 160px, rgba(0, 5, 38, .04) 195px, transparent 230px);
}
/* One centred column: headline, subhead and button in the middle of the screen */
.hero-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 1000px; text-align: center; }
.hero-title { font-size: clamp(42px, 6vw, 88px); line-height: .95; letter-spacing: -.05em; font-weight: 600; color: #fff; }
.hero-title .line { display: block; overflow: hidden; padding: .02em .08em .24em; margin: -.02em -.08em -.24em; }
.hero-title .line:last-child { padding-bottom: .34em; margin-bottom: -.26em; }
.hero-title .line > span { display: inline-block; }
/* Second line: same size as the first, in serif italic with one blue-to-green gradient across the phrase */
.hero-em {
  display: inline-block;
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.015em;
  font-size: 1em; line-height: 1.05; padding-right: .06em; text-wrap: balance;
  background: var(--gradient-light); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--night-text); opacity: .85; max-width: 560px; margin-top: 28px; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
/* The button carries a soft white glow on the dark hero */
.hero-ctas .btn { box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 0 22px rgba(255, 255, 255, .32), 0 0 44px rgba(255, 255, 255, .12); transition: transform .3s var(--ease), box-shadow .3s, background-color .2s; }
.hero-ctas .btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 0 30px rgba(255, 255, 255, .45), 0 0 64px rgba(255, 255, 255, .18); }


/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: 140px 0 0; }
.service-q { font-family: var(--font-mono); font-size: 13px; color: var(--azure); margin-bottom: 8px; }

/* Ring (readiness scan) */
.ring { position: relative; width: 150px; aspect-ratio: 1; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--paper-2); }
.ring .val { stroke: url(#g-brand); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.3s var(--ease); }
.ring.live .val { stroke-dashoffset: calc(100 - var(--v)); }
.ring-lg:not(.live) .val { opacity: 0; }
.ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-num b { font-family: var(--font-display); font-size: 42px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.ring-num span { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ==========================================================================
   Evidence (industry research)
   ========================================================================== */
.evidence { padding: 140px 0; background: var(--paper-2); }
.evidence .accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.proof-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.proof-kicker span { display: inline-grid; place-items: center; height: 22px; padding: 0 8px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 11.5px; }


/* ==========================================================================
   Readiness scan
   ========================================================================== */
.scan { padding: 150px 0 110px; }
.faq + .scan { padding-top: 0; }
.scan-box { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); border-radius: 36px; background: var(--card); border: 1px solid var(--line); overflow: clip; }
.scan-main { padding: 56px; }
.scan-main .title { font-size: clamp(36px, 4.2vw, 58px); }
.scan-form { margin-top: 36px; }
.scan-q { padding: 22px 0; border-top: 1px solid var(--line); }
.scan-q legend { display: flex; gap: 14px; margin-bottom: 14px; font-weight: 500; font-size: 17px; letter-spacing: -.01em; float: left; width: 100%; }
.scan-q legend + * { clear: both; }
.scan-q .n { font-family: var(--font-mono); font-size: 12px; color: #004CDA; padding-top: 4px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.scan-q .opts { padding-left: 34px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 15px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--card);
  font-size: 14px; cursor: pointer; user-select: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.opt:hover span { border-color: var(--ink); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt input:active + span { transform: scale(.97); }

.scan-side {
  position: relative; isolation: isolate; padding: 24px;
  background:
    radial-gradient(80% 70% at 0% 0%, #1F66F0 0%, transparent 60%),
    radial-gradient(80% 90% at 100% 100%, #00690C 0%, transparent 62%),
    linear-gradient(160deg, #000C51 0%, #004CDA 58%, #000C51 100%);
}
.scan-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--noise); opacity: .22; mix-blend-mode: overlay; }
.scan-result {
  position: sticky; top: 104px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 36px 30px 30px; border-radius: 26px;
  background: rgba(255, 255, 255, .95); box-shadow: 0 30px 60px -30px rgba(0, 12, 81, .55);
}
.ring-lg { width: 190px; }
.ring-lg .ring-num b { font-size: 54px; }
.scan-meter { display: flex; gap: 5px; }
.scan-meter i { width: 22px; height: 5px; border-radius: 3px; background: var(--paper-2); transition: background-color .3s; }
.scan-meter i.on { background: var(--accent); }
.scan-tier { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.scan-copy { color: var(--muted); font-size: 15px; max-width: 330px; min-height: 4.5em; }
.scan-rec { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--paper); font-size: 14px; }
.scan-rec[hidden] { display: none; }
.scan-rec span { color: var(--muted); }
.scan-rec b { color: #004CDA; font-family: var(--font-display); font-size: 17px; letter-spacing: -.02em; }
.scan-result .btn { margin-top: 4px; }
.scan-result.bump .ring-num b { animation: bump .5s var(--spring); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: 150px 0; }
.faq-side { position: sticky; top: 110px; }
.faq-list details { border-top: 1px solid var(--line-2); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-2); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 23px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.faq-list summary::-webkit-details-marker { display: none; }
.plus { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s; }
.plus .i { width: 16px; height: 16px; }
.faq-list summary:hover .plus { border-color: var(--ink); }
.faq-list details[open] .plus { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: #fff; }
.faq-a { padding: 0 60px 28px 0; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.faq-a > * + * { margin-top: 12px; }
.faq-a ul { padding-left: 20px; }
.faq-a li + li { margin-top: 6px; }
.faq-a b { color: var(--ink); font-weight: 600; }
.faq-list details[open] .faq-a { animation: fadeUp .5s var(--ease); }

/* ==========================================================================
   CTA + form
   ========================================================================== */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: 150px 0 120px; background: var(--night); color: #fff; }
.cta-glow { position: absolute; z-index: -1; left: -12%; top: 2%; width: min(52%, 680px); aspect-ratio: 1; border-radius: 50%; background: var(--gradient); filter: blur(140px); opacity: .7; animation: drift 16s ease-in-out infinite alternate; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--noise); opacity: .06; pointer-events: none; }
.cta-grid { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 72px; align-items: center; }
.cta h2 { font-size: clamp(48px, 6.4vw, 96px); letter-spacing: -.055em; line-height: .92; }
.cta .accent { background: var(--gradient-light); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.cta .lede { color: var(--night-muted); }
.cta-list { margin-top: 36px; max-width: 520px; }
.cta-list li { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--night-line); color: #D3DBF0; font-size: 16px; }
.cta-list .i { width: 19px; height: 19px; color: var(--accent-soft); }

.form-card { padding: 32px; border-radius: 30px; background: var(--card); color: var(--ink); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7); }
.form-fields { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field legend { font-size: 13.5px; font-weight: 500; }
.field legend { margin-bottom: 7px; }
.field label em { font-style: normal; color: var(--faint); font-weight: 400; }
.field input, .field textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 13px;
  border: 1px solid var(--line-2); background: var(--card-2);
  font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(0, 76, 218, .15); }
.field .opt span { height: 36px; font-size: 13.5px; }
.err-msg { display: none; font-size: 12.5px; color: var(--risk); }
.field.err input { border-color: var(--risk); box-shadow: 0 0 0 4px rgba(207, 46, 71, .1); }
.field.err .err-msg { display: block; }
.form-note { text-align: center; font-size: 13px; color: var(--muted); }
.form-error { padding: 10px 14px; border-radius: 12px; background: var(--risk-bg); color: var(--risk); font-size: 13.5px; text-align: center; }
.form-error a { color: inherit; text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#contact-form.sending button[type="submit"] { opacity: .6; pointer-events: none; }
.form-success { outline: none; display: none; flex-direction: column; align-items: center; gap: 12px; padding: 60px 20px; text-align: center; }
.form-success h3 { font-size: 36px; letter-spacing: -.045em; }
.form-success p { color: var(--muted); max-width: 340px; }
.success-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: #fff; box-shadow: 0 16px 40px -12px rgba(0, 76, 218, .55); animation: pop .7s var(--spring) both; }
.success-ic .i { width: 30px; height: 30px; stroke-width: 2.6; }
#contact-form.sent .form-fields { display: none; }
#contact-form.sent .form-success { display: flex; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; overflow: hidden; background: var(--night); color: var(--night-muted); }
.footer-top { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 2.6fr); gap: clamp(40px, 5vw, 64px); padding: 72px 0 56px; border-top: 1px solid var(--night-line); }
.footer-links { display: grid; grid-template-columns: repeat(2, max-content); justify-content: end; gap: clamp(48px, 7vw, 112px); }
.footer h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; color: #fff; margin-bottom: 16px; }
.footer-top a:not(.brand):not(.btn) { display: block; width: fit-content; padding: 5px 0; font-size: 15px; transition: color .2s; }
.footer-top a:not(.brand):not(.btn):hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0; border-top: 1px solid var(--night-line); font-size: 13.5px; align-items: center; }
.footer-top-link { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.footer-top-link:hover { color: #fff; }
.footer-top-link .i { width: 14px; height: 14px; }
.footer-word {
  font-family: var(--font-display); font-weight: 600; text-align: center; line-height: .8;
  font-size: clamp(120px, 25vw, 380px); letter-spacing: -.075em;
  margin: 10px 0 -.1em; user-select: none; pointer-events: none;
  background: linear-gradient(180deg, rgba(134, 174, 255, .42), rgba(111, 209, 124, .08) 70%, transparent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: translate(35%, -6%) scale(1.08); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1140px) {
    }

@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-links { justify-content: start; }
  .scan-box { grid-template-columns: 1fr; }
  .scan-result { position: static; }
    .faq-side { position: static; }
  .cta-grid { grid-template-columns: 1fr; gap: 48px; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .nav-inner { height: 64px; }
  .hero { margin-top: -64px; }
  .hero-panel { padding: 120px 0 72px; }
  .faq, .scan { padding-top: 100px; }
  .services { padding-top: 100px; }
      .evidence { padding: 100px 0; }
  .scan-box { border-radius: 28px; }
  .scan-main { padding: 32px 22px; }
  .scan-q .opts { padding-left: 0; }
  .scan-side { padding: 14px; }
  .scan-result { padding: 28px 20px 22px; }
  .faq { padding-bottom: 100px; }
  .faq-a { padding-right: 0; }
  .cta { padding: 100px 0 90px; }
  .form-card { padding: 24px 20px; border-radius: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .hero-ctas .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Page sections: evidence charts, services rows, dark readiness scan,
   light contact. Loaded last so these override the base section styles above.
   ========================================================================== */

/* ---------- Shared chart pieces ---------- */
.v-group + .v-group { margin-top: 72px; }
.v-big { font-family: var(--font-display); font-weight: 600; font-size: clamp(72px, 8vw, 120px); letter-spacing: -.05em; line-height: .88; color: var(--ink); }
.v-big small { font-size: .45em; letter-spacing: -.02em; margin-left: .04em; }
.v-big-sm { font-size: clamp(56px, 5.6vw, 84px); }
.v-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.v-key span { display: inline-flex; align-items: center; gap: 8px; }
.v-key i { width: 12px; height: 12px; border-radius: 3px; background: rgba(0, 12, 81, .1); }
.v-key i.on { background: var(--azure); }
.v-key i.mid { background: var(--faint); }
.v-key i.low { background: #C3CBE0; }

/* Waffle: 100 units, one per organization */
.waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.waffle i { aspect-ratio: 1; border-radius: 3px; background: rgba(0, 12, 81, .1); transition: transform .45s var(--ease), opacity .45s; transition-delay: calc(var(--n) * 5ms); }
.waffle i.on { background: var(--azure); }
.js .reveal:not(.in) .waffle i { transform: scale(.3); opacity: 0; }

/* Horizontal bar track (0–100 scale) */
.track { position: relative; height: 12px; border-radius: 4px; background: rgba(0, 12, 81, .07); }
.track > i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--azure); transition: width 1.1s var(--ease) .25s; }
.js .reveal:not(.in) .track > i { width: 0; }

/* ---------- Evidence ---------- */
.v1-lead { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 64px; align-items: center; padding: 8px 0 48px; border-bottom: 1px solid var(--line-2); }
.v1-lead-text { margin-top: 18px; max-width: 560px; font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.025em; color: var(--ink); }

.meter-axis, .meter-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center; }
.meter-axis { padding: 22px 0 4px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.meter-axis .ax { grid-column: 3; display: flex; justify-content: space-between; }
.meter-row { padding: 26px 0; border-bottom: 1px solid var(--line); }
.meter-val { font-family: var(--font-display); font-weight: 600; font-size: 56px; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.meter-val small { font-size: .5em; margin-left: .04em; }
.meter-row p { color: var(--ink-2); font-size: 16px; line-height: 1.45; max-width: 420px; }

/* Dumbbell: 2024 → 2025 on the same 0–100 scale */
.track.db { height: 44px; background: none; }
.track.db::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 2px; border-radius: 2px; background: rgba(0, 12, 81, .1); }
.db-seg { position: absolute; top: 14px; left: 17%; width: 25%; height: 2px; background: var(--azure); transform-origin: left; transition: transform 1s var(--ease) .3s; }
.db-dot { position: absolute; top: 15px; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--paper-2); }
.db-dot.a { left: 17%; background: var(--faint); }
.db-dot.b { left: 42%; background: var(--azure); transition: left 1s var(--ease) .3s; }
.db-lab { position: absolute; top: 28px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.db-lab.b { color: var(--ink); }
.js .reveal:not(.in) .db-seg { transform: scaleX(0); }
.js .reveal:not(.in) .db-dot.b { left: 17%; }

.v1-pair { display: grid; grid-template-columns: 1fr 1fr; }
.v1-chart { margin: 0; padding: 8px 56px 8px 0; }
.v1-chart + .v1-chart { padding: 8px 0 8px 56px; border-left: 1px solid var(--line-2); }
.v1-chart-text { margin-top: 14px; max-width: 440px; color: var(--ink-2); font-size: 16px; line-height: 1.45; }

.hbars { display: grid; gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; }
.hbars li { display: grid; grid-template-columns: 170px minmax(0, 1fr) 48px; align-items: center; gap: 14px; font-size: 14.5px; color: var(--muted); }
.hbars b { text-align: right; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.hbars .hl span { color: var(--ink); font-weight: 500; }
.hbars li:not(.hl) .track > i { background: var(--faint); }

.stack { display: flex; gap: 2px; height: 46px; margin-top: 30px; clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease) .25s; }
.stack i { flex: var(--f) 1 0; display: flex; align-items: center; min-width: 0; padding-left: 10px; border-radius: 4px; background: var(--faint); color: #fff; font-style: normal; font-family: var(--font-mono); font-size: 12px; }
.stack i.hl { background: var(--azure); }
.stack i.l3 { background: #C3CBE0; color: var(--ink-2); }
.js .reveal:not(.in) .stack { clip-path: inset(0 100% 0 0); }

/* ---------- Services: numbered rows ---------- */
.svc-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.svc-row { display: grid; grid-template-columns: 90px minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 40px 0; border-bottom: 1px solid var(--line-2); scroll-margin-top: 96px; }
.svc-n { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1; letter-spacing: -.04em; color: var(--azure); }
.svc-row h3 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -.04em; }
.svc-desc { margin-top: 12px; max-width: 520px; color: var(--muted); font-size: 16.5px; line-height: 1.5; }
.svc-list { display: grid; gap: 12px; margin: 0; padding: 30px 0 0; list-style: none; }
.svc-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.svc-list .i { margin-top: 3px; color: var(--accent); stroke-width: 2.5; }

/* ---------- Services: dark tone ---------- */
.services { position: relative; overflow: hidden; isolation: isolate; padding: 140px 0; background: var(--night); color: #fff; }
.services::before { content: ""; position: absolute; z-index: -1; right: -14%; top: -18%; width: min(56%, 720px); aspect-ratio: 1; border-radius: 50%; background: var(--gradient); filter: blur(150px); opacity: .45; pointer-events: none; }
.services::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--noise); opacity: .06; pointer-events: none; }
.services .title { color: #fff; }
.services .accent { background: var(--gradient-light); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.services .lede { color: var(--night-muted); }
.services .svc-rows { border-top-color: var(--night-line); }
.services .svc-row { border-bottom-color: var(--night-line); }
.services .svc-n { color: var(--accent-soft); }
.services .service-q { color: var(--accent-soft); }
.services .svc-row h3 { color: #fff; }
.services .svc-desc { color: var(--night-muted); }
.services .svc-list li { color: var(--night-text); }
.services .svc-list .i { color: var(--green-soft); }

/* ---------- Readiness scan: full-width dark band, no container box ---------- */
.scan { position: relative; overflow: hidden; isolation: isolate; padding: 140px 0 120px; background: var(--night); color: #fff; }
.faq + .scan { padding-top: 140px; }
.scan::before { content: ""; position: absolute; z-index: -1; left: -10%; bottom: -30%; width: min(56%, 720px); aspect-ratio: 1; border-radius: 50%; background: var(--gradient); filter: blur(150px); opacity: .4; pointer-events: none; }
.scan::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--noise); opacity: .06; pointer-events: none; }
.scan-box { gap: 72px; align-items: start; border: 0; border-radius: 0; background: none; overflow: visible; }
.scan-main { padding: 0; }
.scan-main .title { color: #fff; }
.scan-main .accent { background: var(--gradient-light); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.scan-main .lede { color: var(--night-muted); }
.scan-q { border-top-color: var(--night-line); }
.scan-q .n { color: var(--accent-soft); }
.scan-q .opt span { background: rgba(255, 255, 255, .04); border-color: var(--night-line); color: var(--night-text); }
.scan-q .opt:hover span { border-color: rgba(255, 255, 255, .5); }
.scan-q .opt input:checked + span { background: #fff; border-color: #fff; color: var(--ink); }
.scan-q .opt input:focus-visible + span { outline-color: var(--accent-soft); }
.scan-side { align-self: stretch; padding: 0; background: none; }
.scan-side::before { content: none; }
.scan-result { background: rgba(255, 255, 255, .06); border: 1px solid var(--night-line); box-shadow: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.scan-result .ring .track { stroke: rgba(255, 255, 255, .12); }
.scan-result .ring .val { stroke: url(#g-brand-light); }
.scan-result .ring-num b { color: #fff; }
.scan-result .ring-num span { color: var(--night-muted); }
.scan-meter i { background: rgba(255, 255, 255, .14); }
.scan-meter i.on { background: var(--accent-soft); }
.scan-copy { color: var(--night-muted); }
.scan-rec { background: rgba(255, 255, 255, .06); }
.scan-rec span { color: var(--night-muted); }
.scan-rec b { color: var(--accent-soft); }
.scan-result .btn-ink { background: #fff; color: var(--ink); }
.scan-result .btn-ink:hover { background: var(--paper); }

/* ---------- Contact ("Let's find your AI solution"): light mode ---------- */
.cta { background: var(--paper); color: var(--ink); }
.cta-glow { opacity: .16; }
.cta::after { opacity: .04; }
.cta .accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta .lede { color: var(--muted); }
.cta-list li { border-top-color: var(--line-2); color: var(--ink-2); }
.cta-list .i { color: var(--azure); }
.form-card { border: 1px solid var(--line); box-shadow: var(--shadow-lg); }

/* ---------- FAQ: single centred column ---------- */
.faq-stack { max-width: 860px; }
.faq-stack .faq-side { position: static; margin-bottom: 40px; text-align: center; }
.faq-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; }
.faq-cta p { max-width: 520px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.faq-cta b { color: var(--ink); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .v1-lead { grid-template-columns: 1fr; gap: 32px; }
  .v1-lead .waffle { max-width: 360px; }
  .meter-axis { display: none; }
  .meter-row { grid-template-columns: 96px minmax(0, 1fr); gap: 12px 24px; }
  .meter-row .track { grid-column: 1 / -1; }
  .meter-val { font-size: 44px; }
  .v1-pair { grid-template-columns: 1fr; }
  .v1-chart { padding: 0 0 40px; }
  .v1-chart + .v1-chart { padding: 40px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .svc-row { grid-template-columns: 60px minmax(0, 1fr); gap: 16px 24px; }
  .svc-list { grid-column: 2; padding-top: 4px; }
  .scan-box { gap: 48px; }
}
@media (max-width: 720px) {
  .hbars li { grid-template-columns: 1fr 44px; }
  .hbars li .track { grid-column: 1 / -1; grid-row: 2; }
  .svc-row { grid-template-columns: 1fr; padding: 32px 0; }
  .svc-list { grid-column: auto; }
  .svc-n { font-size: 32px; }
  .services { padding: 100px 0; }
  .scan, .faq + .scan { padding: 100px 0 90px; }
  .faq-cta { flex-direction: column; align-items: flex-start; }
}
/* ==========================================================================
   Alamay — multi-page additions: nav menus, inner-page hero, content blocks,
   cards, guides. Builds on the tokens and components in styles.css.
   ========================================================================== */

/* ---------- Nav: links, dropdowns, mobile panel ---------- */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 12px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s, background-color .2s;
}
.nav-link .i { width: 14px; height: 14px; opacity: .6; transition: transform .25s var(--ease); }
.nav-link:hover, .has-menu:focus-within > .nav-link { background: rgba(0, 12, 81, .06); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); background: rgba(0, 12, 81, .06); }
.has-menu:hover > .nav-link .i, .has-menu:focus-within > .nav-link .i { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: calc(100% + 6px); left: -8px; z-index: 60;
  display: grid; gap: 2px; width: 340px; padding: 8px;
  border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -28px rgba(0, 12, 81, .35);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-menu:hover > .nav-menu, .has-menu:focus-within > .nav-menu {
  opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease);
}
.nav-menu a { display: grid; gap: 2px; padding: 11px 14px; border-radius: 12px; transition: background-color .15s; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--paper); }
.nav-menu b { font-weight: 600; font-size: 15px; color: var(--ink); }
.nav-menu span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }

.nav-hero:not(.scrolled):not(.open) .nav-link { color: rgba(255, 255, 255, .86); }
.nav-hero:not(.scrolled):not(.open) .nav-link:hover,
.nav-hero:not(.scrolled):not(.open) .has-menu:focus-within > .nav-link,
.nav-hero:not(.scrolled):not(.open) .nav-link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); }
/* Home page only, before scroll: the links sit in one white pill over the hero */
body:has(.hero-panel) .nav-hero:not(.scrolled):not(.open) .nav-links { padding: 4px 6px; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .16); }
body:has(.hero-panel) .nav-hero:not(.scrolled):not(.open) .nav-link { color: var(--ink); opacity: .55; transition: opacity .2s, background-color .2s; }
body:has(.hero-panel) .nav-hero:not(.scrolled):not(.open) .nav-link:hover,
body:has(.hero-panel) .nav-hero:not(.scrolled):not(.open) .has-menu:focus-within > .nav-link { color: var(--ink); background: rgba(0, 12, 81, .05); opacity: .85; }

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 50%; place-items: center; border: 1px solid var(--line-2); color: var(--ink); }
.nav-toggle .i { width: 18px; height: 18px; }
.nav-hero:not(.scrolled):not(.open) .nav-toggle { color: #fff; border-color: rgba(255, 255, 255, .4); }

.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.nav-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  border-top: 1px solid var(--line); background: var(--paper);
  max-height: calc(100svh - 64px); overflow-y: auto;
  box-shadow: 0 30px 60px -30px rgba(0, 12, 81, .35);
}
.nav-panel-inner { display: grid; gap: 28px; padding-top: 24px; padding-bottom: 32px; }
.nav-panel-inner > div { display: grid; gap: 2px; }
.nav-panel a, .nav-panel span { padding: 8px 0; font-size: 16px; color: var(--ink-2); }
.nav-panel .nav-panel-head { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding-bottom: 4px; }
.nav.open::before { opacity: 1; }
.nav.open { box-shadow: 0 1px 0 var(--line); }
.nav.open .brand { color: var(--ink); }
.nav.open .nav-cta .btn-ink { background: var(--ink); color: #fff; }

/* ---------- Homepage additions ---------- */
.svc-row h3 a { transition: color .2s; }
.svc-row h3 a:hover { color: var(--accent-soft); }
.svc-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; font-weight: 500; color: var(--accent-soft); }
.svc-more .i { transition: transform .25s var(--ease); }
.svc-more:hover .i { transform: translateX(3px); }
.industries-band { background: var(--paper); }
/* The hero "ships" gradient, a shade deeper so it reads on light paper */
.accent-grad { background: linear-gradient(100deg, #5B8DFF 0%, #45B85C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
/* Industry cards (homepage and /industries): a navy icon tile in the hero colours instead of a photo */
.ind-card { min-height: 220px; }
.ind-card .card-icon {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 14px; color: var(--accent-soft);
  background: radial-gradient(120% 120% at 20% 0%, #1a4fd8 0%, var(--night-2) 45%, var(--night) 100%);
  box-shadow: inset 0 0 0 1px rgba(134, 174, 255, .18), 0 12px 24px -14px rgba(0, 12, 81, .8);
}
.ind-card:nth-child(even) .card-icon { color: var(--green-soft); }
@media (max-width: 720px) { .ind-card { min-height: 0; } }
.ind-card .card-icon .i { width: 24px; height: 24px; }
.ind-card p { color: var(--muted); }
.ind-card h2 { font-size: 22px; }

/* ---------- Inner-page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: -72px; padding: 164px 0 96px;
  background: var(--night); color: #fff;
}
.page-hero::before { content: ""; position: absolute; z-index: -1; right: -12%; top: -30%; width: min(60%, 760px); aspect-ratio: 1; border-radius: 50%; background: var(--gradient); filter: blur(150px); opacity: .5; pointer-events: none; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--noise); opacity: .06; pointer-events: none; }
.page-hero-inner { max-width: 1240px; }
/* Light header: same ground as the page, for pages that open on a light section (navTheme="light") */
.page-hero.page-hero-light { margin-top: 0; padding-top: 48px; padding-bottom: 0; overflow: visible; background: none; color: var(--ink); }
.page-hero-light::before, .page-hero-light::after { content: none; }
.page-hero-light .page-title { color: var(--ink); }
.page-hero-light .page-kicker { color: var(--azure); }
.page-hero-light .page-lede { color: var(--muted); }
.page-hero.page-hero-light:has(+ .feature-media) { padding-bottom: 48px; }
.page-hero-light + .feature-media { margin-top: 0; }
.page-hero-light .theme-chip { border-color: var(--line-2); color: var(--ink-2); }
.page-hero-light .theme-chip .i { color: var(--azure); }
.page-hero-light .theme-chip:hover { background: rgba(0, 12, 81, .05); border-color: var(--ink); color: var(--ink); }
.page-hero-light .theme-chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-hero-light .theme-chip[aria-current="page"] .i { color: #fff; }
.page-hero-light .theme-chip-feed { border: 0; color: var(--muted); }
.page-hero-light .theme-chip-feed .i { color: inherit; }
.page-hero-light .theme-chip-feed:hover { background: none; color: var(--ink); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--night-muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--night-text); }
.page-kicker { margin-top: 36px; font-family: var(--font-mono); font-size: 13px; color: var(--accent-soft); }
.crumbs + .page-kicker, .crumbs + .page-title { margin-top: 36px; }
.page-hero-inner > .page-kicker:first-child { margin-top: 0; }
.page-title { margin-top: 16px; max-width: 980px; font-size: clamp(44px, 6.4vw, 92px); letter-spacing: -.05em; line-height: .96; color: #fff; text-wrap: balance; }
.page-title .accent { background: var(--gradient-light); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.page-lede { margin-top: 26px; max-width: 760px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--night-text); }
.page-meta { margin-top: 22px; font-family: var(--font-mono); font-size: 12.5px; color: var(--night-muted); }
.page-meta a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(134, 174, 255, .4); transition: text-decoration-color .2s; }
.page-meta a:hover { text-decoration-color: currentColor; }
.page-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Content blocks ---------- */
.block { padding: 80px 0; }
.block-tight { padding: 0 0 80px; }
.block-alt { background: var(--paper-2); }
.block-night { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: #fff; }
.block-night::before { content: ""; position: absolute; z-index: -1; left: -14%; bottom: -40%; width: min(56%, 720px); aspect-ratio: 1; border-radius: 50%; background: var(--gradient); filter: blur(150px); opacity: .35; pointer-events: none; }
.block-title { font-size: clamp(32px, 3.6vw, 50px); letter-spacing: -.045em; line-height: 1; }
.block-title-sm { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 28px; }
.block-lede { margin-top: 16px; max-width: 640px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.block-lede a, .fine a { color: var(--azure); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 76, 218, .35); }
.block-night .block-lede { color: var(--night-muted); }
.block-night .block-lede a { color: var(--accent-soft); }
.block .section-head { margin-bottom: 44px; }
.fine { margin-top: 28px; font-size: 15px; color: var(--muted); }

.split-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }

.check-list { display: grid; gap: 14px; margin-top: 30px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16.5px; color: var(--ink-2); line-height: 1.45; }
.check-list .i { margin-top: 4px; color: var(--azure); stroke-width: 2.5; }
.check-list-sm { margin-top: 0; gap: 10px; }
.check-list-sm li { font-size: 15px; }

.deliverables { display: grid; gap: 12px; margin-top: 30px; }
.deliverable { padding: 22px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.deliverable h3 { font-size: 20px; letter-spacing: -.025em; line-height: 1.2; }
.deliverable p { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { padding: 26px 24px 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.step-n { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -.04em; line-height: 1; color: var(--azure); }
.step h3 { margin-top: 18px; font-size: 21px; letter-spacing: -.025em; line-height: 1.15; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 15px; font-weight: 500; transition: border-color .2s, background-color .2s, color .2s; }
.chip .i { width: 15px; height: 15px; color: var(--azure); }
.chip:hover { border-color: var(--ink); }
.related { margin-top: 72px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 16px; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.card h2, .card h3 { font-size: 22px; letter-spacing: -.03em; line-height: 1.15; }
.card h2 { font-size: 26px; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.card p a { color: var(--azure); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 76, 218, .35); }
.card-link { padding-right: 56px; transition: border-color .2s, transform .25s var(--ease), box-shadow .3s; }
.card-link:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 24px 48px -30px rgba(0, 12, 81, .4); }
.card-tall { min-height: 240px; }
.card-more { margin-top: auto; padding-top: 8px; font-size: 13.5px !important; color: var(--ink-2) !important; }
.card-go { position: absolute; top: 24px; right: 22px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); transition: background-color .2s, color .2s; }
.card-go .i { width: 16px; height: 16px; }
.card-link:hover .card-go { background: var(--ink); color: #fff; }
.card-kicker { font-family: var(--font-mono); font-size: 12px; color: var(--azure); }
.card-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--info-bg); color: var(--azure); margin-bottom: 6px; }
.card-icon .i { width: 22px; height: 22px; }

.next-card { display: grid; gap: 8px; padding: 36px 40px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, box-shadow .3s; }
.next-card:hover { border-color: var(--line-2); box-shadow: 0 24px 48px -30px rgba(0, 12, 81, .4); }
.next-title { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; line-height: 1.05; }
.next-title .i { color: var(--azure); transition: transform .25s var(--ease); }
.next-card:hover .next-title .i { transform: translateX(4px); }
.next-sub { color: var(--muted); font-size: 16px; }

/* ---------- Solutions hub ---------- */
.sol-list { border-top: 1px solid var(--line-2); }
.sol-row { display: grid; grid-template-columns: 90px minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; padding: 44px 0; border-bottom: 1px solid var(--line-2); }
.sol-row .svc-n { color: var(--azure); }
.sol-row h2 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -.04em; line-height: 1.04; }
.sol-row h2 a:hover { color: var(--azure); }
.sol-desc { margin-top: 14px; color: var(--muted); font-size: 16.5px; line-height: 1.55; max-width: 620px; }
.sol-side { display: grid; gap: 24px; align-content: start; justify-items: start; padding-top: 30px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.data-table th, .data-table td { padding: 16px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.45; }
.data-table thead th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--card-2); }
.data-table tbody th { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table td { color: var(--ink-2); }
.data-table a { color: var(--azure); font-weight: 500; }

/* ---------- Industry pages ---------- */
.use-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.use-case { padding: 26px 24px 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.use-case h3 { margin-top: 16px; font-size: 20px; letter-spacing: -.025em; line-height: 1.2; }
.use-case p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.use-case p a { color: var(--azure); text-decoration: underline; text-underline-offset: 3px; }

.risk-list { display: grid; gap: 0; border-top: 1px solid var(--night-line); }
.risk-list li { padding: 22px 0; border-bottom: 1px solid var(--night-line); }
.risk-list h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; letter-spacing: -.025em; line-height: 1.2; color: #fff; }
.risk-list h3 .i { width: 20px; height: 20px; color: var(--green-soft); flex-shrink: 0; }
.risk-list p { margin-top: 8px; padding-left: 32px; color: var(--night-muted); font-size: 15.5px; line-height: 1.55; }
.risk-list p a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.risk-list-light { border-top-color: var(--line-2); }
.risk-list-light li { border-bottom-color: var(--line-2); }
.risk-list-light h3 { color: var(--ink); }
.risk-list-light p { padding-left: 0; color: var(--muted); }

.help-rows { border-top: 1px solid var(--line-2); }
.help-row { display: grid; grid-template-columns: 70px minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line-2); }
.help-row .svc-n { font-size: 30px; color: var(--azure); }
.help-row h3 { font-size: 22px; letter-spacing: -.03em; line-height: 1.15; }
.help-row h3 a:hover { color: var(--azure); }
.help-row p { color: var(--muted); font-size: 16px; line-height: 1.55; }

.sources { padding-top: 28px; border-top: 1px solid var(--line-2); }
.sources h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.sources ol { display: grid; gap: 8px; margin-top: 14px; padding-left: 20px; list-style: decimal; color: var(--muted); font-size: 14px; }
.sources a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.sources a:hover { color: var(--ink); }

/* An FAQ straight after a plain block shares its background, so skip the double gap */
main > .block:not(.block-alt):not(.block-night) + .faq { padding-top: 24px; }

/* ---------- Contact page and flush scan ---------- */
.cta .cta-title { font-size: clamp(48px, 6.4vw, 96px); letter-spacing: -.055em; line-height: .92; }
.cta-page { padding-top: 120px; }
.scan-flush, .page-hero + .scan-flush { padding-top: 0; }
.page-hero + .scan { margin-top: -1px; }

/* ---------- Guides ---------- */
.guide { padding-top: 72px; }
.guide-grid { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 300px); gap: 72px; justify-content: space-between; }
.answer { padding: 24px 28px; border-radius: 20px; background: var(--info-bg); border: 1px solid rgba(0, 76, 218, .15); }
.answer-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--azure); margin-bottom: 8px; }
.answer p:last-child { font-size: 18px; line-height: 1.55; color: var(--ink); }
.guide-main .sources { margin-top: 56px; }
.guide-side { display: grid; gap: 14px; align-content: start; position: sticky; top: 96px; }
.side-card { display: grid; gap: 8px; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, box-shadow .3s; }
.side-card:hover { border-color: var(--line-2); box-shadow: 0 24px 48px -30px rgba(0, 12, 81, .4); }
.side-card b { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.03em; line-height: 1.15; }
.side-card > span:not(.card-kicker):not(.side-go) { color: var(--muted); font-size: 15px; line-height: 1.5; }
.side-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 500; font-size: 15px; color: var(--azure); }
.side-card-dark { background: var(--night); border-color: var(--night); color: #fff; }
.side-card-dark .card-kicker, .side-card-dark .side-go { color: var(--accent-soft); }
.side-card-dark > span:not(.card-kicker):not(.side-go) { color: var(--night-muted); }

.guide-list { border-top: 1px solid var(--line-2); }
.guide-row { position: relative; display: grid; gap: 8px; padding: 34px 64px 34px 0; border-bottom: 1px solid var(--line-2); }
.guide-row h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.035em; line-height: 1.1; transition: color .2s; }
.guide-row p { max-width: 820px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.guide-row .card-go { top: 34px; right: 0; }
.guide-row:hover h2 { color: var(--azure); }
.guide-row:hover .card-go { background: var(--ink); color: #fff; }

/* Long-form text */
.prose { margin-top: 40px; font-size: 17.5px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -.035em; line-height: 1.12; color: var(--ink); }
.prose h3 { margin-top: 1.8em; font-size: 21px; letter-spacing: -.025em; line-height: 1.2; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose a { color: var(--azure); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 76, 218, .35); transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--azure); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--azure); color: var(--ink); font-family: var(--font-display); font-size: 20px; line-height: 1.4; letter-spacing: -.015em; }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--card-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 2.4em 0; }
.prose code { font-family: var(--font-mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--paper-2); }
.prose-lg { margin-top: 0; font-size: 19px; }
.prose-lg p + p { margin-top: 1em; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .card-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .guide-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1141px) {
  .nav-panel { display: none !important; }
  /* Three columns so the links sit in the true centre, whatever the logo and button widths */
  .nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav-inner .brand { justify-self: start; }
  .nav-cta { justify-self: end; }
}
@media (max-width: 960px) {
  .split-2 { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-3 { grid-template-columns: 1fr; }
  .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-row { grid-template-columns: 60px minmax(0, 1fr); gap: 16px 24px; }
  .sol-side { grid-column: 2; padding-top: 4px; }
  .help-row { grid-template-columns: 60px minmax(0, 1fr); gap: 8px 24px; }
  .help-row p { grid-column: 2; }
}
@media (max-width: 720px) {
  .page-hero { margin-top: -64px; padding: 128px 0 72px; }
  .block { padding: 80px 0; }
  .block-tight { padding: 0 0 80px; }
  .cta-page { padding-top: 96px; }
  .card-grid-2, .card-grid-3, .card-grid-4, .card-grid-5, .use-cases, .steps { grid-template-columns: 1fr; }
  .sol-row { grid-template-columns: 1fr; padding: 32px 0; }
  .sol-side { grid-column: auto; }
  .help-row { grid-template-columns: 1fr; gap: 6px; }
  .help-row p { grid-column: auto; }
  .help-row .svc-n { font-size: 24px; }
  .guide-side { grid-template-columns: 1fr; }
  .next-card { padding: 28px 24px; }
  .data-table th, .data-table td { padding: 14px 16px; }
  .data-table tbody th { white-space: normal; }
  .prose { font-size: 17px; }
  .nav-cta .btn-sm { display: none; }
}
@media (max-width: 420px) {
  .page-ctas .btn { width: 100%; }
}

/* ==========================================================================
   Media: photos, feature images, solution diagrams, guide covers
   ========================================================================== */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: 28px; background: var(--night-2); }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: var(--ratio); object-fit: cover; }

/* A wide image or diagram that overlaps the bottom of the page hero */
.page-hero:has(+ .feature-media) { padding-bottom: 168px; }
.feature-media { position: relative; z-index: 2; margin-top: -96px; }
.feature-media + .block { padding-top: 96px; }
.feature-media .photo { box-shadow: var(--shadow-lg); }

/* Cards that lead with a photo or cover */
.card-photo { padding: 0; gap: 0; overflow: hidden; }
.card-photo .photo { border-radius: 0; }
.card-photo .photo img { transition: transform .9s var(--ease); }
.card-photo:hover .photo img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.card-photo .card-go { top: 16px; right: 16px; background: rgba(255, 255, 255, .92); }
.card-photo.card-tall { min-height: 0; }

.split-media { display: grid; gap: 28px; }
.split-media .photo { border-radius: 22px; }

/* Guide covers */
.guide-cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 10; background: var(--night); }
.card-photo .cover { border-radius: 0; }
.guide-row { grid-template-columns: 220px minmax(0, 1fr); column-gap: 32px; align-items: center; }
.guide-row .cover { grid-row: 1 / span 3; }
.guide-row .card-kicker, .guide-row h2, .guide-row p { grid-column: 2; }

@media (max-width: 960px) {
  .feature-media { margin-top: -72px; }
  .page-hero:has(+ .feature-media) { padding-bottom: 136px; }
  .guide-row { grid-template-columns: 160px minmax(0, 1fr); column-gap: 22px; }
}
@media (max-width: 720px) {
  .photo { border-radius: 20px; }
  .feature-media { margin-top: -56px; }
  .page-hero:has(+ .feature-media) { padding-bottom: 104px; }
  .feature-media + .block { padding-top: 72px; }
  .guide-row { grid-template-columns: 1fr; padding-right: 0; }
  .guide-row .cover { grid-row: auto; margin-bottom: 8px; }
  .guide-row .card-kicker, .guide-row h2, .guide-row p { grid-column: 1; }
  .guide-row .card-go { display: none; }
}

/* Blog: industry theme chips, a featured post, cover cards and one reading column */
.theme-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.theme-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: var(--night-text); font-size: 14px; transition: background-color .2s, border-color .2s, color .2s; }
.theme-chip .i { width: 16px; height: 16px; color: var(--accent-soft); }
.theme-chip:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); color: #fff; }
.theme-chip[aria-current="page"] { background: #fff; border-color: #fff; color: var(--ink); }
.theme-chip[aria-current="page"] .i { color: var(--azure); }
/* The RSS feed is for the few who use readers: a small, faint link at the end of the row, not a chip */
.theme-chip-feed { margin-left: auto; height: 36px; padding: 0 2px; border: 0; font-size: 12.5px; color: var(--night-muted); opacity: .7; }
.theme-chip-feed .i { width: 13px; height: 13px; color: inherit; }
.theme-chip-feed:hover { background: none; color: var(--night-text); opacity: 1; }

.post-byline { margin-top: auto; padding-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.post-card .card-body { flex: 1; padding: 18px 10px 12px; }
/* Same inset cover as the featured post */
.post-card { padding: 14px; border-radius: 28px; }
.post-card .cover { border-radius: 20px; }
.post-card .card-go { top: 28px; right: 28px; }

.post-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 44px; align-items: center; padding: 14px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transition: border-color .2s, transform .25s var(--ease); }
.post-feature:hover { border-color: var(--line-2); transform: translateY(-3px); }
.post-feature .cover { border-radius: 20px; }
.post-feature-body { display: grid; gap: 12px; padding: 20px 28px 20px 0; }
.post-feature h2 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.04em; line-height: 1.04; transition: color .2s; }
.post-feature:hover h2 { color: var(--azure); }
.post-feature p { color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.post-feature .post-byline { padding-top: 0; }


/* A theme with no posts yet: the "coming soon" card sits close under the hero */
.block-empty { padding-top: 40px; }
.theme-empty { max-width: 640px; margin: 0 auto; display: grid; justify-items: center; gap: 14px; padding: 48px 32px; text-align: center; border-radius: 26px; background: var(--card); border: 1px solid var(--line); }
.theme-empty h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.04em; line-height: 1.05; }
.theme-empty p { color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.theme-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 20px; margin-top: 8px; }
.feed-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); transition: color .2s; }
.feed-link .i { width: 14px; height: 14px; }
.feed-link:hover { color: var(--ink); }

.post-cover .cover { max-width: 980px; margin: 0 auto; aspect-ratio: 21 / 9; border-radius: 24px; box-shadow: var(--shadow-lg); }
/* Posts with their own 16:9 artwork show all of it, rather than the generated cover's wide crop */
.post-cover .cover:has(img.guide-cover) { aspect-ratio: 16 / 9; }
.feature-media + .post { padding-top: 72px; }
.post-main { max-width: 740px; margin: 0 auto; }
.post-intro { padding-bottom: 28px; border-bottom: 1px solid var(--line-2); font-size: 18.5px; font-weight: 600; line-height: 1.6; color: var(--ink); }
.post .prose { margin-top: 32px; }
.post-main .sources { margin-top: 56px; }
.post-ctas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 48px; }
.section-head.split .block-title-sm { margin-bottom: 0; }

@media (max-width: 960px) {
  .post-feature { grid-template-columns: 1fr; gap: 8px; }
  .post-feature-body { padding: 14px 14px 18px; }
}
@media (max-width: 720px) {
  .post-cover .cover { aspect-ratio: 16 / 10; border-radius: 20px; }
  .section-head.split { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Industries menu: two columns, an icon per sector */
.nav-menu-2col { grid-template-columns: 1fr 1fr; width: 620px; left: 50%; transform: translate(-50%, -4px); }
.has-menu:hover > .nav-menu-2col, .has-menu:focus-within > .nav-menu-2col { transform: translate(-50%, 0); }
.nav-menu-2col a { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px; }
.nav-menu .nav-ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--info-bg); color: var(--azure); transition: background-color .2s, color .2s;
}
.nav-ico .i { width: 19px; height: 19px; }
.nav-menu a:hover .nav-ico, .nav-menu a:focus-visible .nav-ico { background: var(--azure); color: #fff; }
.nav-menu .nav-txt { display: grid; gap: 2px; font-size: inherit; color: inherit; }

/* Use cases: what to measure */
.use-measure { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px !important; color: var(--ink-2) !important; }
.use-measure span { display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--azure); }

/* Risk lists end with a short legal note */
.risk-list .legal-note { padding: 16px 0 0; border-bottom: 0; font-family: var(--font-mono); font-size: 12px; color: var(--night-muted); }

/* ---------- About page ---------- */
/* Light hero after the deck's "Who we are" slide: white, with a blue glow top right and a green one
   bottom left. */
.about-hero { position: relative; overflow: hidden; isolation: isolate; margin-top: -72px; padding: 164px 0 104px; background: #fff; }
.about-hero::before, .about-hero::after { content: ""; position: absolute; z-index: -1; aspect-ratio: 1; border-radius: 50%; pointer-events: none; }
.about-hero::before { right: -18%; top: -300px; width: min(70%, 900px); background: radial-gradient(closest-side, rgba(134, 174, 255, .55), rgba(134, 174, 255, 0)); }
.about-hero::after { left: -22%; bottom: -340px; width: min(64%, 820px); background: radial-gradient(closest-side, rgba(111, 209, 124, .32), rgba(111, 209, 124, 0)); }
.crumbs-light ol { color: var(--muted); }
.crumbs-light [aria-current] { color: var(--ink); }
.crumbs-light a:hover { color: var(--azure); }
.about-kicker { margin-top: 36px; font-family: var(--font-mono); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--azure); }
.about-title { margin-top: 18px; max-width: 1080px; font-family: var(--font-display); font-weight: 600; font-size: clamp(42px, 6vw, 84px); line-height: .98; letter-spacing: -.05em; color: var(--ink); animation: titleRise 1.1s var(--ease) .1s both; }
.about-title .accent { display: block; margin-top: .06em; background: linear-gradient(100deg, #5B8DFF 0%, #45B85C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }

/* What we've seen: the heading sticks on the left while the numbered problems scroll on the right */
.seen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.seen-head { position: sticky; top: 120px; }
.seen-list { list-style: none; margin: 0; padding: 0; }
.seen-list li { display: grid; grid-template-columns: 48px 88px minmax(0, 1fr); gap: 8px; align-items: center; padding: 30px 0; border-top: 1px solid var(--line-2); }
.seen-list li:last-child { border-bottom: 1px solid var(--line-2); }
.seen-n { font-family: var(--font-display); font-weight: 600; font-size: 52px; line-height: .9; letter-spacing: -.05em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Rail, dots and light: a journey line on a light ground. JS sets the rail's span
   and moves the light; the dim/bright states follow the .on class */
.seen-track { position: relative; }
.seen-rail { position: absolute; z-index: 0; width: 2px; border-radius: 2px; background: var(--line-2); }
.seen-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: 2px; background: linear-gradient(180deg, #5B8DFF, #45B85C); transition: height .7s var(--ease); }
.seen-dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid rgba(0, 12, 81, .2); transition: border-color .4s, background .4s; }
.seen-light { position: absolute; z-index: 2; left: -7px; top: -7px; width: 14px; height: 14px; pointer-events: none; border-radius: 50%; background: #45B85C; box-shadow: 0 0 0 6px rgba(69, 184, 92, .16), 0 0 22px 6px rgba(69, 184, 92, .4); transition: transform .7s var(--ease); }
.seen-n, .seen-list h3 { transition: opacity .5s var(--ease), color .5s var(--ease); }
.seen-list li:not(.on) .seen-n { opacity: .3; }
.seen-list li:not(.on) h3 { color: var(--muted); }
.seen-list li.on .seen-dot { border-color: #5B8DFF; background: #fff; }
.seen-list h3 { font-size: 22px; letter-spacing: -.025em; line-height: 1.2; }

/* Why a dedicated team: a dark band with a three-step flow and three outcomes */
.team-band .block-title { max-width: 22ch; color: #fff; }
.team-band .accent { background: var(--gradient-light); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; }
.flow-step { display: grid; gap: 6px; padding: 24px 26px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); }
.flow-end { background: rgba(111, 209, 124, .1); border-color: rgba(111, 209, 124, .55); }
.flow-n { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-soft); }
.flow-end .flow-n { color: var(--green-soft); }
.flow-step b { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; color: #fff; }
/* Connector: a thin line with a green light travelling along it */
.flow-link { position: relative; height: 2px; margin: 0 10px; background: linear-gradient(90deg, rgba(134, 174, 255, .5), rgba(111, 209, 124, .6)); }
.flow-link span { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #6FD17C; box-shadow: 0 0 12px 3px rgba(111, 209, 124, .55); animation: flowDot 2.4s var(--ease) infinite; }
.flow-link:nth-child(4) span { animation-delay: 1.2s; }
@keyframes flowDot { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.outcomes { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.outcomes li { padding-top: 20px; border-top: 2px solid; border-image: var(--gradient-light) 1; }
.outcomes h3 { font-size: 22px; letter-spacing: -.025em; color: #fff; }
.outcomes p { margin-top: 8px; color: var(--night-muted); font-size: 16px; line-height: 1.55; }

/* A note from the founders: large type on a soft panel, in one comfortable reading column */
.note-panel { padding: clamp(48px, 7vw, 96px) 24px; border-radius: 28px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(0, 76, 218, .1); box-shadow: 0 28px 56px -32px rgba(0, 76, 218, .45); }
.note, .note-sign { max-width: 720px; margin-inline: auto; }
.note { font-size: clamp(20px, 2vw, 27px); line-height: 1.4; letter-spacing: -.015em; color: var(--ink); }
.note p + p { margin-top: 1.1em; }
.note strong { font-weight: 600; }
/* Instrument Serif has one weight, and browser bold is too heavy, so a thin stroke thickens it slightly */
.note .accent { font-size: 1.1em; line-height: 1; -webkit-text-stroke: .5px; }
.note.is-reading span { color: rgba(0, 12, 81, .24); transition: color .3s; }
.note.is-reading span.on { color: var(--ink); }
/* Gradient words: the gradient sits behind the text, so an unread word is veiled in white and a read one is see-through */
.note.is-reading em span { color: rgba(255, 255, 255, .72); }
.note.is-reading em span.on { color: transparent; }
.note-sign { display: flex; align-items: center; gap: 14px; margin-top: 44px; color: var(--muted); font-size: 16px; }
.note-sign::before { content: ""; width: 32px; height: 1px; background: var(--ink); }

@media (max-width: 960px) {
  .seen { grid-template-columns: 1fr; gap: 32px; }
  .seen-head { position: static; }
  .flow { grid-template-columns: 1fr; }
  .flow-link { width: 2px; height: 40px; margin: 6px 0 6px 34px; background: linear-gradient(180deg, rgba(134, 174, 255, .5), rgba(111, 209, 124, .6)); }
  .flow-link span { left: 50%; top: 0; animation-name: flowDotDown; }
  .outcomes { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
}
@keyframes flowDotDown { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media (max-width: 720px) {
  .about-hero { margin-top: -64px; padding: 128px 0 72px; }
  .seen-list li { grid-template-columns: 34px 56px minmax(0, 1fr); gap: 6px; padding: 24px 0; }
  .seen-dot { width: 18px; height: 18px; }
  .seen-n { font-size: 40px; }
  .note-panel { border-radius: 22px; }
}
/* ==========================================================================
   Alamay — motion. Everything here is decorative: the base styles render
   the finished state, and the reduced-motion rule in styles.css collapses
   every animation and transition to an instant.
   ========================================================================== */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes titleRise {
  from { opacity: 0; transform: translateY(.32em); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes orbDrift { to { transform: translate(-16%, 14%) scale(1.14); } }
@keyframes orbDriftRight { to { transform: translate(22%, -10%) scale(1.1); } }

/* ---------- Inner-page hero: entrance ---------- */
.page-hero::before { animation: orbDrift 18s ease-in-out infinite alternate; }
.page-hero .crumbs { animation: fadeUp .8s var(--ease) .05s both; }
.page-hero .page-kicker { animation: fadeUp .8s var(--ease) .15s both; }
.page-hero .page-title { animation: titleRise 1.1s var(--ease) .22s both; }
.page-hero .page-lede { animation: fadeUp .9s var(--ease) .42s both; }
.page-hero .page-meta { animation: fadeUp .9s var(--ease) .5s both; }
.page-hero .page-ctas { animation: fadeUp .9s var(--ease) .55s both; }

/* ---------- Home: entrance ----------
   The menu bar slides down, the headline fades up line by line, then the subhead and a pulsing
   button arrive in turn. Resting styles are the finished state, so nothing
   is hidden if animations never run; fill-mode both holds the first keyframe through each delay.
   Once a piece lands, index.astro adds .is-in to drop the animation so hover lifts work again.
   Scoped to the home page with :has(), since the menu bar is shared by every page. */
@keyframes slideDown { from { opacity: 0; transform: translateY(-18px); } }
@keyframes headlineFade { from { opacity: 0; transform: translateY(14px); } }
@keyframes reveal { from { opacity: 0; transform: translateY(22px) scale(.98); filter: blur(6px); } }
@keyframes revealPulse {
  0% { opacity: 0; transform: translateY(22px) scale(.98); filter: blur(6px); }
  60% { opacity: 1; transform: scale(1.03); filter: blur(0); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 0 36px rgba(255, 255, 255, .55), 0 0 72px rgba(255, 255, 255, .22); }
}
body:has(.hero-panel) .hero-sub { animation: reveal .85s cubic-bezier(.22, 1, .36, 1) var(--d, 0s) both; }
body:has(.hero-panel) .nav-inner { animation: slideDown .7s cubic-bezier(.22, 1, .36, 1) both; }
body:has(.hero-panel) .hero-title .line > span { animation: headlineFade .85s cubic-bezier(.22, 1, .36, 1) var(--d) both; }
body:has(.hero-panel) .hero-title .line:nth-child(1) > span { --d: .12s; }
body:has(.hero-panel) .hero-title .line:nth-child(2) > span { --d: .3s; }
body:has(.hero-panel) .hero-sub { --d: .28s; }
body:has(.hero-panel) .hero-ctas .btn { animation: revealPulse 1.1s cubic-bezier(.22, 1, .36, 1) .4s both; }
body:has(.hero-panel) .is-in { animation: none !important; }

/* Accent words get the homepage's hand-drawn underline, wiped in */
.page-title .accent { position: relative; display: inline-block; }
.page-title .accent::after {
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16C60 6 120 4 170 9s90 8 126-2' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
  content: ""; position: absolute; left: 4%; bottom: -.14em; width: 92%; height: .16em;
  background: var(--gradient-light);
  -webkit-mask: var(--squiggle) center / 100% 100% no-repeat; mask: var(--squiggle) center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
}
.page-title .accent::after { animation: wipe 1.1s var(--ease) 1.1s forwards; }

/* ---------- Drifting glows on dark bands ---------- */
.block-night::before { animation: orbDriftRight 20s ease-in-out infinite alternate; }
.services::before { animation: orbDrift 24s ease-in-out infinite alternate; }

/* ---------- Steps: a progress bar fills across the cards in order ---------- */
.step { position: relative; overflow: hidden; isolation: isolate; }
.step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--gradient); transform-origin: left; transform: scaleX(0);
  transition: transform .9s var(--ease);
}
.step.in::before, html:not(.js) .step::before { transform: scaleX(1); }
.step:nth-child(1)::before { transition-delay: .35s; }
.step:nth-child(2)::before { transition-delay: .75s; }
.step:nth-child(3)::before { transition-delay: 1.15s; }
.step:nth-child(4)::before { transition-delay: 1.55s; }
.step .step-n { display: inline-block; }
.js .step:not(.in) .step-n { transform: translateY(10px) scale(.8); opacity: 0; }
.js .step .step-n { transition: transform .7s var(--spring), opacity .4s; transition-delay: calc(var(--rd, 0s) + .25s); }

/* ---------- Checks and shields draw themselves in ---------- */
.js .reveal .check-list .i, .js .reveal .svc-list .i {
  stroke-dasharray: 24; stroke-dashoffset: 24;
  transition: stroke-dashoffset .6s var(--ease);
}
.js .reveal.in .check-list .i, .js .reveal.in .svc-list .i { stroke-dashoffset: 0; }
.check-list li:nth-child(1) .i, .svc-list li:nth-child(1) .i { transition-delay: .3s; }
.check-list li:nth-child(2) .i, .svc-list li:nth-child(2) .i { transition-delay: .45s; }
.check-list li:nth-child(3) .i, .svc-list li:nth-child(3) .i { transition-delay: .6s; }
.check-list li:nth-child(4) .i, .svc-list li:nth-child(4) .i { transition-delay: .75s; }

.js .risk-list.reveal h3 .i { stroke-dasharray: 70; stroke-dashoffset: 70; transition: stroke-dashoffset 1s var(--ease); }
.js .risk-list.reveal.in h3 .i { stroke-dashoffset: 0; }
.risk-list li:nth-child(2) h3 .i { transition-delay: .15s; }
.risk-list li:nth-child(3) h3 .i { transition-delay: .3s; }
.risk-list li:nth-child(4) h3 .i { transition-delay: .45s; }
.risk-list li:nth-child(5) h3 .i { transition-delay: .6s; }

/* ---------- Cursor spotlight on cards (pointer devices only) ---------- */
.step, .use-case, .deliverable { position: relative; isolation: isolate; }
.card, .side-card, .next-card { isolation: isolate; }
.side-card, .next-card, .guide-row { position: relative; }
:is(.card, .step, .use-case, .deliverable, .side-card, .next-card)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 76, 218, .09), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.side-card-dark::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(134, 174, 255, .2), transparent 60%) !important; }
@media (hover: hover) and (pointer: fine) {
  :is(.card, .step, .use-case, .deliverable, .side-card, .next-card):hover::after { opacity: 1; }
}
.card-go { transition: background-color .2s, color .2s, transform .35s var(--spring); }
.card-link:hover .card-go, .guide-row:hover .card-go { transform: rotate(45deg); }

/* ---------- Buttons: a light sweep on hover ---------- */
.btn-ink, .btn-light { overflow: hidden; }
.btn-ink::after, .btn-light::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform .8s var(--ease);
}
.btn-light::after { background: linear-gradient(110deg, transparent 30%, rgba(0, 76, 218, .14) 50%, transparent 70%); }
.btn-ink:hover::after, .btn-light:hover::after { transform: translateX(110%); }

/* ---------- Homepage ticker ---------- */
.ticker {
  position: relative; overflow: hidden; padding: 22px 0;
  background: var(--night); color: var(--night-text);
  border-top: 1px solid var(--night-line);
}
/* Fade the words into the band at both edges */
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 12%; pointer-events: none;
  background: linear-gradient(90deg, var(--night), transparent);
}
.ticker::before { left: 0; }
.ticker::after { right: 0; transform: scaleX(-1); }
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -.02em;
}
.ticker-track .i { width: 14px; height: 14px; color: var(--accent-soft); }
.ticker-track span:nth-child(even) .i { color: var(--green-soft); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Guides: reading progress ---------- */
.read-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 70; height: 3px; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: var(--gradient); transform-origin: left; transform: scaleX(var(--read, 0)); }

/* Looping animations pause while scrolled out of view (set in main.js) */
.paused::before, .paused .ticker-track { animation-play-state: paused !important; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .ticker { padding: 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Photos: a slow settle as they reveal ---------- */
.js .photo.reveal img { transform: scale(1.08); transition: transform 1.8s var(--ease); }
.js .photo.reveal.in img { transform: none; }

.gc-spark { transform-box: fill-box; transform-origin: center; transition: transform .6s var(--spring); }
.card-link:hover .gc-spark, .guide-row:hover .gc-spark { transform: scale(1.35) rotate(20deg); }
/* ==========================================================================
   Alamay — tap feedback, and a lighter site on phones and tablets.
   Loaded last, so these rules override the other stylesheets.
   ========================================================================== */

/* ---------- Changing page (every device) ----------
   A tapped link switches these on straight away (inline script in Base.astro) and they
   hold until the next page replaces this one, so a slow connection never looks like a dead tap.
   The bar's colours are mid-tones because it has to show on both the navy and the pale pages. */
.page-progress { position: fixed; inset: 0; z-index: 90; pointer-events: none; visibility: hidden; }
.navigating .page-progress { visibility: visible; }
.page-progress::before { content: ""; position: absolute; inset: 0; background: rgba(242, 245, 252, .24); opacity: 0; }
.navigating .page-progress::before { opacity: 1; transition: opacity .2s .15s; }
.page-progress i {
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #2F7BFF, #27B860);
  transform: scaleX(0); transform-origin: left;
}
.navigating .page-progress i { animation: pageProgress 10s cubic-bezier(.08, .75, .2, 1) forwards; }
@keyframes pageProgress {
  from { transform: scaleX(.08); }
  12% { transform: scaleX(.5); }
  to { transform: scaleX(.94); }
}
.is-tapped { opacity: .55 !important; transition: none !important; }

/* ---------- Touch screens and narrow windows ---------- */
@media (hover: none), (max-width: 720px) {
  /* A tap jumps straight there and shows right away that it landed. Pinch zoom still works. */
  html { scroll-behavior: auto; touch-action: manipulation; -webkit-tap-highlight-color: rgba(0, 76, 218, .18); }
  a:active, button:active, summary:active, label:active { opacity: .6 !important; transition: none !important; }

  /* Page content is there at first paint, instead of fading in over the next second or more */
  .page-hero .crumbs, .page-hero .page-kicker, .page-hero .page-title,
  .page-hero .page-lede, .page-hero .page-meta, .page-hero .page-ctas { animation: none; }
  .page-title .accent::after { animation-duration: .5s; animation-delay: .1s; }
  body:has(.hero-panel) .nav-inner,
  body:has(.hero-panel) .hero-title .line > span,
  body:has(.hero-panel) .hero-sub,
  body:has(.hero-panel) .hero-ctas .btn { animation: none; }
  /* Sections stay visible while scrolling. Charts still animate from .in, set in main.js. */
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  .js .photo.reveal img { transform: none; transition: none; }

  /* Large blurs are among the costliest things a phone can draw, and these ran the whole time the
     page was open. A radial gradient looks nearly the same on these dark bands and costs almost nothing. */
  .page-hero::before, .block-night::before, .services::before, .scan::before, .cta-glow {
    inset: 0; width: auto; aspect-ratio: auto; border-radius: 0; opacity: 1; filter: none; animation: none;
  }
  .page-hero::before { background: radial-gradient(circle 460px at 86% 0, rgba(0, 88, 130, .2), rgba(0, 88, 130, .08) 50%, transparent); }
  .block-night::before { background: radial-gradient(circle 460px at 6% 100%, rgba(0, 88, 130, .2), rgba(0, 88, 130, .08) 50%, transparent); }
  .services::before { background: radial-gradient(circle 460px at 92% 0, rgba(0, 88, 130, .24), rgba(0, 88, 130, .1) 50%, transparent); }
  .scan::before { background: radial-gradient(circle 460px at 8% 100%, rgba(0, 88, 130, .22), rgba(0, 88, 130, .09) 50%, transparent); }
  .cta-glow { background: radial-gradient(circle 460px at 12% 18%, rgba(0, 88, 130, .36), rgba(0, 88, 130, .15) 50%, transparent); }

  /* The film grain was barely visible at this size but still had to be generated and blended */
  .page-hero::after, .services::after, .scan::after, .cta::after, .scan-side::before { content: none; }

  /* Frosted glass re-blurs whatever is behind it on every frame of a scroll */
  .nav::before { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }
  .scan-result, .btn-glass, .note-panel { backdrop-filter: none; -webkit-backdrop-filter: none; }

  /* Tap targets of at least 44px, so a tap doesn't land in a gap between small links */
  .nav-toggle { width: 44px; height: 44px; }
  .nav-cta .btn-sm { height: 44px; }
  .nav-panel a { display: flex; align-items: center; min-height: 44px; padding-top: 0; padding-bottom: 0; }
  .footer-top a:not(.brand):not(.btn) { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0; }
  .opt span, .field .opt span { height: 44px; }
  /* Same layout, larger hit area */
  .brand { padding-block: 9px; margin-block: -9px; }
  .crumbs a { padding: 13px 4px; margin: -13px -4px; }
  .footer-top-link { padding-block: 12px; margin-block: -12px; }
  a.side-go { padding-block: 11px; margin-block: -11px; }
}
