/*
Theme Name: True Masters
Theme URI: https://truemasters.kz/
Author: True Masters
Author URI: https://truemasters.kz/
Description: Корпоративная тема True Masters — лендинг, блог и страницы команды на трёх языках (EN, /ru/, /kk/ — Polylang), SEO-разметка поверх Rank Math, секции лендинга как блоки и паттерны редактора, контактная форма с Cloudflare Turnstile. Все адреса строятся от текущего домена.
Version: 2.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: truemasters
*/

/* =============================================================================
   True Masters — design system v3 (editorial light)

   Same structure as before: surfaces separated by hairlines rather than
   shadows, mono index marks, accordion rows, large light-weight display type.
   The canvas is now white/near-white, with the brand navy carrying the text
   and ultramarine as the single accent.

   01 Fonts
   02 Tokens
   03 Reset & base
   04 Typography
   05 Buttons, links, chips
   06 Motion system
   07 Header & navigation
   08 Hero
   09 Section scaffolding
   10 About
   11 Global reach
   12 Services accordion
   13 R&D · Products
   14 Clients & certification grids
   15 Case work · Blog · Team · Why · FAQ
   16 Contact & form
   17 Footer
   18 Responsive
   19 Accessibility preferences
   ============================================================================= */

/* ----------------------------------------------------------------- 01 Fonts
   Self-hosted variable Manrope, split by script so a page downloads only the
   alphabets it actually renders (EN pulls latin alone; KZ adds cyrillic-ext). */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(assets/vendor/fonts/manrope-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: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(assets/vendor/fonts/manrope-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: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(assets/vendor/fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(assets/vendor/fonts/manrope-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F,
    U+FE2E-FE2F;
}

/* ---------------------------------------------------------------- 02 Tokens */
:root {
  /* brand */
  --brand-navy: #091C53;
  --blue: #034EA2;
  --blue-bright: #1C6FD8;
  --sky: #84C1FA;
  --sky-soft: #C9E2FD;
  --white: #FFFFFF;

  /* canvas */
  --bg: #FFFFFF;
  --bg-alt: #F5F8FC;
  --bg-deep: #071026;          /* the one dark accent panel */

  /* text */
  --ink: #0A1733;
  --ink-2: #4B5C7C;
  --ink-3: #7A8CA8;
  --ink-onDark: #EEF3FB;
  --ink-onDark-2: #A5B9D8;

  /* hairlines — the primary separation device in this system */
  --line: rgba(9, 28, 83, .13);
  --line-2: rgba(9, 28, 83, .22);
  --line-3: rgba(9, 28, 83, .42);
  --line-onDark: rgba(132, 193, 250, .2);

  /* surfaces */
  --surface: rgba(9, 28, 83, .022);
  --surface-2: rgba(9, 28, 83, .05);
  --glass: rgba(255, 255, 255, .72);

  /* elevation is used sparingly — only where a surface genuinely floats */
  --sh-1: 0 1px 2px rgba(9, 28, 83, .05);
  --sh-2: 0 20px 56px rgba(9, 28, 83, .1);
  --sh-glow: 0 16px 44px rgba(3, 78, 162, .22);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* rhythm — floor is 1.5rem so Bootstrap's g-5 rows never poke out */
  --gutter: clamp(1.5rem, 4vw, 3rem);
  --section-y: clamp(5rem, 11vw, 10rem);

  /* motion — one curve family */
  --e-out:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --e-inout:  cubic-bezier(0.65, 0.05, 0.36, 1);
  --e-spring: cubic-bezier(0.34, 1.26, 0.64, 1);
  --e-press:  cubic-bezier(0.3, 0.9, 0.4, 1);
  --t-fast: 140ms;
  --t-med:  340ms;
  --t-slow: 680ms;

  --font: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;
}

/* ----------------------------------------------------------- 03 Reset & base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
svg { fill: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--sky); color: var(--brand-navy); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container-xl { max-width: 1320px; padding-inline: var(--gutter); }

.skip-link {
  position: fixed;
  top: 0.75rem; left: 50%;
  translate: -50% -180%;
  z-index: 2000;
  padding: 0.6rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--brand-navy); color: #fff;
  font-size: 0.875rem; font-weight: 600;
  transition: translate var(--t-med) var(--e-out);
}
.skip-link:focus { translate: -50% 0; }

/* ------------------------------------------------------------ 04 Typography
   Display sizes run light (200–300) and tightly tracked; body stays at 400
   with open leading. Tracking is size-specific, never one global value. */
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }

.display {
  font-size: clamp(2.5rem, 1.1rem + 6.2vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 300;
}

.section-title {
  font-size: clamp(2rem, 1.1rem + 3.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 300;
  color: var(--brand-navy);
}

.section-lead {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  letter-spacing: -0.004em;
  color: var(--ink-2);
  font-weight: 400;
}
.section-lead em { color: var(--ink); font-style: normal; font-weight: 500; }

/* Mono micro-label — the recurring wayfinding mark of this system */
.eyebrow,
.index-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before,
.index-mark::before { content: "/"; color: var(--blue); }

.card-title {
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: 500;
  color: var(--brand-navy);
}

.card-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.card-body-text { margin: 0.75rem 0 0; color: var(--ink-2); line-height: 1.6; font-size: 0.9375rem; }
.body-lg { margin: 1.5rem 0 0; max-width: 58ch; font-size: 1.0625rem; line-height: 1.68; color: var(--ink-2); }

.subhead {
  margin: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.18;
  letter-spacing: -0.024em;
  font-weight: 300;
  color: var(--brand-navy);
}

/* ------------------------------------------------- 05 Buttons, links, chips */
.btn-tm {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  cursor: pointer;
  transform: translateZ(0);
  transition:
    transform var(--t-fast) var(--e-press),
    box-shadow var(--t-med) var(--e-out),
    background-color var(--t-med) var(--e-out),
    color var(--t-med) var(--e-out);
}
.btn-tm svg { width: 1rem; height: 1rem; flex: none; transition: translate var(--t-med) var(--e-spring); }
.btn-tm-spaced { margin-top: 1.75rem; }
.btn-tm:hover svg { translate: 3px -3px; }

.btn-tm-primary,
.btn-tm-light {
  background: var(--brand-navy);
  color: #fff;
  box-shadow: var(--sh-1);
}
.btn-tm-primary:hover,
.btn-tm-light:hover { background: var(--blue); box-shadow: var(--sh-glow); }

.btn-tm-ghost {
  background: transparent;
  color: var(--brand-navy);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-tm-ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-3); }

.btn-tm-wide { padding-inline: 2.2rem; }
.btn-sm-tm { padding: 0.62rem 1.15rem; font-size: 0.875rem; }

/* Circular arrow affordance */
.btn-round {
  display: grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--brand-navy);
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer;
  transition:
    transform var(--t-fast) var(--e-press),
    background-color var(--t-med) var(--e-out),
    color var(--t-med) var(--e-out),
    box-shadow var(--t-med) var(--e-out);
}
.btn-round svg { width: 1rem; height: 1rem; transition: translate var(--t-med) var(--e-spring); }
.btn-round:hover { background: var(--brand-navy); color: #fff; box-shadow: none; }
.btn-round:hover svg { translate: 2px -2px; }

.tactile { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.tactile.is-pressed { transform: scale(0.965); }
.btn-tm.is-pressed { transform: scale(0.958); }

.link-tm {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  color: var(--blue);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--t-med) var(--e-out), gap var(--t-med) var(--e-spring);
}
.link-tm svg { width: 0.95rem; height: 0.95rem; }
.link-tm:hover { color: var(--brand-navy); gap: 0.7rem; }

.badge-tm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 0 1px var(--line-2);
  backdrop-filter: blur(12px);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-navy);
}
.badge-tm svg { width: 0.9rem; height: 0.9rem; color: var(--blue); }
.badge-tm-accent {
  background: linear-gradient(120deg, rgba(3, 78, 162, .1), rgba(132, 193, 250, .18));
  box-shadow: inset 0 0 0 1px rgba(3, 78, 162, .22);
}

/* A sub-offering, listed as plain text with a small mark ahead of it (a real
   brand logo where one exists, a minimal line glyph otherwise) and a
   hairline divider between items — no pill/border chrome. */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.chip-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-right: 1rem;
  margin-right: 1rem;
  border-right: 1px solid var(--line-2);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--t-med) var(--e-out);
}
.chip-row li:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.chip-row:hover li { color: var(--ink-2); }
.chip-row li:hover { color: var(--brand-navy); }
.chip-icon { display: inline-flex; flex: none; width: 16px; height: 16px; }
.chip-icon svg { width: 100%; height: 100%; }
/* Generic concept marks (no real logo) inherit the chip's own text color, so
   they tint together on hover instead of staying a fixed accent. */
.chip-icon-line { color: var(--ink-3); transition: color var(--t-med) var(--e-out); }
.chip-row li:hover .chip-icon-line { color: var(--blue); }

.service-tags, .team-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.service-tags li, .team-tags li {
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* -------------------------------------------------------- 06 Motion system */
.reveal {
  --rv-y: 26px;
  --rv-s: 1;
  opacity: 0;
  translate: 0 var(--rv-y);
  scale: var(--rv-s);
  transition:
    opacity var(--t-slow) var(--e-out),
    translate var(--t-slow) var(--e-out),
    scale var(--t-slow) var(--e-out);
  transition-delay: calc(var(--rv-delay, 0) * 85ms);
  will-change: opacity, transform;
}
.reveal[data-reveal="scale"] { --rv-y: 16px; --rv-s: 0.97; }
.reveal.is-in { opacity: 1; translate: 0 0; scale: 1; will-change: auto; }
html.no-observer .reveal { opacity: 1; translate: 0 0; scale: 1; }

/* Pointer-tracked hairline highlight (--mx/--my written by main.js) */
[data-glow] { position: relative; isolation: isolate; }
[data-glow]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 0%),
    rgba(3, 78, 162, .75),
    rgba(132, 193, 250, .4) 45%,
    transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-med) var(--e-out);
  pointer-events: none;
}
[data-glow]:hover::after { opacity: 1; }

/* ---------------------------------------------------- 07 Header & navigation */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 1.1rem 0;
  transition:
    padding var(--t-med) var(--e-out),
    background-color var(--t-med) var(--e-out),
    backdrop-filter var(--t-med) var(--e-out);
}
.site-header.is-scrolled {
  padding: 0.7rem 0;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}
.header-edge {
  position: absolute;
  inset: 100% 0 auto;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity var(--t-med) var(--e-out);
}
.site-header.is-scrolled .header-edge { opacity: 1; }

.header-inner { display: flex; align-items: center; gap: 1rem; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex: none; transition: transform var(--t-fast) var(--e-press); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(3, 78, 162, .22);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: grid; line-height: 1.15; }
.brand-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-navy);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav-primary { position: relative; display: none; align-items: center; gap: 0.25rem; }
.nav-primary a {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--t-med) var(--e-out);
  white-space: nowrap;
}
.nav-primary a:hover, .nav-primary a.is-active { color: var(--brand-navy); }

/* A single hairline that slides between items, rather than per-item borders */
.nav-indicator {
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: var(--nav-w, 0);
  transform: translateX(var(--nav-x, 0));
  background: var(--blue);
  opacity: 0;
  transition:
    transform 420ms var(--e-out),
    width 420ms var(--e-out),
    opacity var(--t-med) var(--e-out);
}
.nav-primary.has-active .nav-indicator { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.lang-switch { position: relative; display: flex; padding: 0.2rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); }
.lang-btn {
  position: relative;
  z-index: 2;
  padding: 0.4rem 0.65rem;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  cursor: pointer;
  transition: color var(--t-med) var(--e-out), transform var(--t-fast) var(--e-press);
}
.lang-btn:active { transform: scale(0.93); }
.lang-btn.is-active { color: #fff; }
.lang-thumb {
  position: absolute;
  top: 0.2rem; left: 0;
  height: calc(100% - 0.4rem);
  width: var(--lang-w, 0);
  transform: translateX(var(--lang-x, 0));
  border-radius: var(--r-pill);
  background: var(--brand-navy);
  transition: transform 380ms var(--e-spring), width 380ms var(--e-out);
}

.menu-toggle {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: none;
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer;
  transition: transform var(--t-fast) var(--e-press), background-color var(--t-med) var(--e-out);
}
.menu-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  border-radius: 2px;
  background: var(--brand-navy);
  transition: transform 340ms var(--e-out), opacity 200ms var(--e-out);
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(9, 28, 83, .3);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--t-med) var(--e-out);
}
.sheet-scrim.is-open { opacity: 1; }

.mobile-sheet {
  position: fixed;
  top: 0; right: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: min(380px, 90vw);
  height: 100dvh;
  padding: 5.5rem 1.5rem 2rem;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: -20px 0 50px rgba(9, 28, 83, .1);
  translate: 100% 0;
  visibility: hidden;
  transition: translate 460ms var(--e-out), visibility 460ms linear;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-sheet.is-open { translate: 0 0; visibility: visible; }
.mobile-nav { display: grid; }
.mobile-nav a {
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--brand-navy);
  transition: color var(--t-fast) var(--e-out), padding-left var(--t-med) var(--e-out);
}
.mobile-nav a:active { color: var(--blue); padding-left: 0.75rem; }
.mobile-sheet .btn-tm { width: 100%; justify-content: center; }

/* ------------------------------------------------------------------ 08 Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
  padding: clamp(7.5rem, 15vh, 11rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  background: linear-gradient(180deg, #FBFDFF, var(--bg) 55%);
}

/* A single wash of brand light crossing the canvas */
.hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-streak {
  position: absolute;
  top: 50%; left: -10%;
  width: 120%; height: 40vh;
  translate: 0 -50%;
  background:
    radial-gradient(60% 50% at 48% 50%, rgba(132, 193, 250, .5), transparent 72%),
    radial-gradient(85% 55% at 62% 50%, rgba(3, 78, 162, .22), transparent 74%);
  filter: blur(54px);
  opacity: .75;
  animation: streak 22s var(--e-inout) infinite alternate;
}
@keyframes streak {
  from { transform: translate3d(-3%, 0, 0) scaleY(0.92); opacity: .62; }
  to   { transform: translate3d(3%, 0, 0)  scaleY(1.06); opacity: .85; }
}
.hero-glowspot {
  position: absolute;
  bottom: -22%; right: -10%;
  width: 46vw; height: 46vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 193, 250, .35), transparent 68%);
  filter: blur(70px);
}
.grid-veil {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(9, 28, 83, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(9, 28, 83, .05) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(80% 65% at 50% 40%, #000, transparent 82%);
}

.hero-top, .hero-bottom { position: relative; z-index: 2; }
.hero-bottom { margin-top: clamp(4rem, 14vh, 10rem); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }

.hero-title {
  /* capped so the Russian and Kazakh headlines, which run ~40% longer than
     the English one, still leave the CTA row above the fold */
  max-width: 19ch;
  font-size: clamp(2.375rem, 1rem + 5.4vw, 5.25rem);
  line-height: 1.01;
  letter-spacing: -0.04em;
  font-weight: 300;
  color: var(--brand-navy);
}
.hero-title em {
  display: block;
  font-style: normal;
  font-weight: 200;
  background: linear-gradient(96deg, var(--blue) 5%, var(--blue-bright) 50%, #5BA7F2 95%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.1875rem);
  line-height: 1.58;
  color: var(--ink-2);
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.75rem; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.scroll-cue i {
  display: block;
  width: 1px; height: 2.2rem;
  background: linear-gradient(var(--blue), transparent);
  animation: cue 2.4s var(--e-inout) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.3); opacity: .4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* ------------------------------------------- 09 Section scaffolding */
.section { position: relative; padding: var(--section-y) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }

/* Two-column head: large title left, lede right */
.sec-head { display: grid; gap: 1.75rem clamp(2rem, 6vw, 6rem); margin-bottom: clamp(3rem, 6vw, 5rem); }
.sec-head-spaced { margin-top: clamp(4rem, 8vw, 7rem); }
.sec-head-mark { margin-bottom: 1.25rem; }
.sec-head-lede { align-self: end; }

/* A row of values sitting on one hairline */
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.stat { min-width: 0; }
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 0.03em;
  margin: 0;
  font-size: clamp(2.25rem, 1.3rem + 3vw, 4rem);
  line-height: 1;
  font-weight: 200;
  letter-spacing: -0.04em;
  color: var(--brand-navy);
  font-variant-numeric: tabular-nums;
}
.stat-value i { font-style: normal; color: var(--blue); }
.stat-value-sm { font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); letter-spacing: -0.025em; }
.stat-label { margin: 0.75rem 0 0; font-size: 0.875rem; line-height: 1.4; color: var(--ink-3); }

/* Hairline cell — the generic container that replaces the drop-shadow card */
.cell {
  position: relative;
  height: 100%;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--t-med) var(--e-out), box-shadow var(--t-med) var(--e-out);
}
.cell:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }

.indexed { position: relative; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.indexed > .index-mark { position: absolute; top: -0.65rem; left: 0; background: var(--bg); padding-right: 0.75rem; }

/* ----------------------------------------------------------------- 10 About */
.definition-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(3, 78, 162, .07), rgba(132, 193, 250, .12));
  box-shadow: inset 0 0 0 1px rgba(3, 78, 162, .16);
}
.definition-tag { margin-bottom: 1rem; }
.definition-card p {
  margin: 0;
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  letter-spacing: -0.014em;
  font-weight: 300;
  color: var(--ink);
}
.definition-card b { font-weight: 600; color: var(--brand-navy); }

.credibility-row { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 2rem 0 0; padding: 0; }
.credibility-row li {
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.mission-note {
  margin: 2rem 0 0;
  padding-left: 1.25rem;
  border-left: 1px solid var(--blue);
  font-size: 0.9875rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.mission-note b { color: var(--brand-navy); font-weight: 600; }

/* --------------------------------------------------------- 11 Global reach
   No illustration, no icon — a generic pin-in-a-circle said nothing about
   True Masters specifically. Just the index, a kicker naming the region, the
   case, and a closing fact (a time-zone range), the same rhythm the product
   cards use. */
.region-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.region-card:hover .work-index { color: var(--blue); }
.region-card .work-index { margin-bottom: 1.25rem; }
.region-card .card-kicker { margin-bottom: 0.5rem; }
.region-fact {
  margin: 0;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-3);
}

/* --------------------------------------------------- 12 Services accordion */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }

.acc-item summary {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: center;
  gap: 1rem clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 2.6vw, 2.25rem) 0;
  cursor: pointer;
  list-style: none;
  transition: padding-left var(--t-med) var(--e-out);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item:hover summary { padding-left: 0.5rem; }

.acc-index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  transition: color var(--t-med) var(--e-out);
}
.acc-item[open] .acc-index, .acc-item:hover .acc-index { color: var(--blue); }

.acc-title {
  font-size: clamp(1.375rem, 0.9rem + 1.9vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 300;
  color: var(--ink);
  transition: color var(--t-med) var(--e-out);
}
.acc-item[open] .acc-title, .acc-item:hover .acc-title { color: var(--brand-navy); }

.acc-toggle {
  position: relative;
  display: block;
  width: 2.6rem; height: 2.6rem;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color var(--t-med) var(--e-out), box-shadow var(--t-med) var(--e-out);
}
.acc-item:hover .acc-toggle { box-shadow: inset 0 0 0 1px var(--line-3); }
.acc-item[open] .acc-toggle { background: var(--brand-navy); box-shadow: none; }
.acc-toggle::before, .acc-toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0.875rem; height: 1.5px;
  translate: -50% -50%;
  border-radius: 2px;
  background: var(--brand-navy);
  transition: transform 360ms var(--e-out), opacity 220ms var(--e-out), background-color var(--t-med) var(--e-out);
}
.acc-toggle::after { transform: rotate(90deg); }
.acc-item[open] .acc-toggle::before, .acc-item[open] .acc-toggle::after { background: #fff; }
.acc-item[open] .acc-toggle::after { transform: rotate(0deg); opacity: 0; }

.acc-body { overflow: hidden; }
.acc-inner { display: grid; gap: 1.5rem clamp(2rem, 6vw, 6rem); padding: 0 0 clamp(1.75rem, 3vw, 2.75rem) 4.5rem; }
.acc-inner p { margin: 0; max-width: 54ch; color: var(--ink-2); line-height: 1.65; }

/* -------------------------------------------------------- 13 R&D · Products
   The one deliberately dark panel on the page: a pull-quote that has to stop
   the eye, not another section. */
.framework {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(3, 78, 162, .75), transparent 62%),
    radial-gradient(70% 120% at 100% 100%, rgba(132, 193, 250, .22), transparent 60%),
    var(--brand-navy);
  text-align: center;
}
.framework-slogan {
  margin: 0;
  font-size: clamp(2rem, 1rem + 4.4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 200;
  color: #fff;
}
.framework-slogan span { display: inline-block; margin: 0 0.12em; }
.framework-slogan span:nth-child(2) { color: var(--sky); }
.framework-slogan span:nth-child(3) { color: var(--sky-soft); }
.framework footer { max-width: 60ch; margin: 1.5rem auto 0; font-size: 0.9875rem; line-height: 1.6; color: var(--ink-onDark-2); }

.proof-tile {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--t-med) var(--e-out), box-shadow var(--t-med) var(--e-out);
}
.proof-tile:hover { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2), var(--sh-1); }
.proof-tile b {
  display: block;
  font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 300;
  color: var(--blue);
}
.proof-tile span { display: block; margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.5; color: var(--ink-3); }

.product-hero {
  position: relative;
  display: block;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(132, 193, 250, .2), transparent 60%),
    var(--bg-alt);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
/* The featured product card is a real link (whole card clickable, opens the
   platform in a new tab) — give it the same lift-on-hover feedback as any
   other interactive card, plus a visible "visit" affordance. */
.product-hero-link {
  transition: transform var(--t-med) var(--e-out), box-shadow var(--t-med) var(--e-out);
}
.product-hero-link:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--sh-2);
}
.product-visit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-pill);
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  transition: background-color var(--t-med) var(--e-out);
}
.product-visit svg { width: 1rem; height: 1rem; transition: translate var(--t-med) var(--e-spring); }
.product-hero-link:hover .product-visit { background: var(--blue); }
.product-hero-link:hover .product-visit svg { translate: 3px -3px; }
.product-title {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 300;
  color: var(--brand-navy);
}

/* ------------------------------------------- 14 Clients & certification grids
   One shared hairline grid: cells share borders so the whole block reads as a
   single ruled table rather than a scatter of cards. */
.hair-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hair-grid > * {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem) 1rem;
  background: var(--bg);
  text-align: center;
  transition: background-color var(--t-med) var(--e-out);
}
.hair-grid > *:hover { background: var(--bg-alt); }

/* Client emblem: the real logo where we have the file, a colored monogram
   plate where we don't — both sit in the same fixed-height slot so the row
   reads as one consistent grid either way. */
.client-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.client-mark {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 10px;
  background: var(--brand-navy);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.client-cell:nth-child(5n+2) .client-mark { background: var(--blue); }
.client-cell:nth-child(5n+3) .client-mark { background: #1C6FD8; }
.client-cell:nth-child(5n+4) .client-mark { background: #0B2D6B; }
.client-cell:nth-child(5n+5) .client-mark { background: #145091; }
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
}
.client-logo img {
  max-width: 108px;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* most of these logos are full color and read fine on our light cells;
     a light desaturate+darken on hover would fight their own brand colors,
     so unlike the monogram marks, logos don't get a hover-state change */
}
.client-name {
  font-size: clamp(0.875rem, 0.85rem + 0.15vw, 1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  transition: color var(--t-med) var(--e-out);
}
.client-cell:hover .client-name { color: var(--brand-navy); }

.clients-grid { grid-template-columns: repeat(2, 1fr); }

/* Certification badges sit directly on the card, no background plate — all
   four are now transparent-background PNGs (CEH and ISO were flood-filled
   from their original flat JPGs to match OSCP/OSWE's native transparency). */
.cert-item { text-align: center; }
.cert-mark {
  width: clamp(84px, 30%, 108px);
  height: auto;
  margin: 0 auto 1.1rem;
  object-fit: contain;
}
.cert-item figcaption { display: grid; gap: 0.3rem; }
.cert-item b { font-size: 0.9375rem; font-weight: 600; color: var(--brand-navy); }
.cert-item span { font-size: 0.75rem; line-height: 1.4; color: var(--ink-3); }

/* Vendor credentials and core technologies share one component: a bigger
   square card, logo alone up top, name below — the same language the cert
   badges use, so certs/vendors/stack all read as one family of "proof"
   grids rather than three different treatments. */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}
.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 2rem 1.25rem;
  min-height: 172px;
  background: var(--bg);
  text-align: center;
  transition: background-color var(--t-med) var(--e-out);
}
.badge-card:hover { background: var(--bg-alt); }
.badge-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}
.badge-card-icon svg { width: auto; height: 100%; max-width: 110px; }
/* Marks with no standalone glyph (JS, Django, RTO) get a big solid-color
   plate at the same visual weight as a real logo, rather than a small tinted
   letterbox. */
.badge-card-icon-js     { --bc: #F7DF1E; --bfg: #1B1B1B; }
.badge-card-icon-django { --bc: #092E20; --bfg: #44B78B; }
.badge-card-icon-text {
  width: 68px; height: 44px;
  border-radius: 10px;
  background: var(--bc);
  color: var(--bfg, #fff);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.badge-card b { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.008em; color: var(--brand-navy); }

/* ------------------------- 15 Case work · Blog · Team · Why · FAQ */
.work-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  transition: border-color var(--t-med) var(--e-out);
}
.work-item:hover { border-color: var(--line-3); }
.work-index {
  display: block;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  transition: color var(--t-med) var(--e-out);
}
.work-item:hover .work-index { color: var(--blue); }
.work-item .card-title { padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.work-meta {
  margin: 0;
  margin-top: auto;
  padding-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.work-item-cta { border-top-color: var(--line-3); }
.work-item-cta .link-tm { margin-top: 1rem; }

/* Secondary product card: a real bordered cell (not a bare hairline row),
   the kicker leading the title the same way it leads the featured card —
   the two tiers of the section now read as one family, not "hero + list". */
.product-card { display: flex; flex-direction: column; }

/* Compact proof points for a secondary product card — the same fact the
   featured card would show as a full metric-grid, condensed to one line. */
.mini-metrics { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.75rem; }
.mini-metric { display: inline-flex; align-items: baseline; gap: 0.4rem; }
.mini-metric b {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mini-metric span { font-size: 0.8125rem; color: var(--ink-3); }
.mini-metric-down b { color: var(--blue); }
.mini-metric-up b { color: #16864A; }

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: box-shadow var(--t-med) var(--e-out), transform var(--t-med) var(--e-out);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), var(--sh-2); }
.blog-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; transition: transform var(--t-fast) var(--e-press); }
.blog-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 32px 32px;
  transition: transform var(--t-slow) var(--e-out);
}
.blog-card:hover .blog-media::before { transform: scale(1.1); }
.blog-media-1 { background: radial-gradient(120% 120% at 20% 0%, #0B57B0, #091C53 74%); }
.blog-media-2 { background: radial-gradient(120% 120% at 80% 10%, #123A86, #071026 76%); }
.blog-media-3 { background: radial-gradient(120% 120% at 50% 0%, #1C6FD8, #0A2359 74%); }
.blog-media-badge {
  position: absolute;
  left: 1rem; bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.blog-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.blog-meta {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.blog-body .link-tm { margin-top: auto; padding-top: 1.5rem; }

.team-card { height: 100%; border-top: 1px solid var(--line); padding-top: 1.25rem; transition: border-color var(--t-med) var(--e-out); }
.team-card:hover { border-color: var(--line-3); }
.team-photo {
  position: relative;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-alt);
  box-shadow: inset 0 0 0 1px var(--line);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 760ms var(--e-out);
}
.team-card:hover .team-photo img { transform: scale(1.035); }
.team-body { padding-top: 1.25rem; }
.team-name { font-size: 1.125rem; line-height: 1.22; letter-spacing: -0.018em; font-weight: 500; color: var(--brand-navy); }
.team-role {
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.team-bio { margin: 1rem 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }

/* Five short reasons don't need five full-width rows of padding to make
   their case — a two-column grid of bordered cells says the same thing in
   about half the scroll. */
.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  list-style: none;
  counter-reset: why;
  margin: 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.why-item {
  counter-increment: why;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--bg);
  transition: background-color var(--t-med) var(--e-out);
}
.why-item:hover { background: var(--bg-alt); }
.why-item::before {
  content: "0" counter(why);
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  transition: color var(--t-med) var(--e-out);
}
.why-item:hover::before { color: var(--blue); }
.why-item h3 { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.25; letter-spacing: -0.016em; font-weight: 500; color: var(--brand-navy); }
.why-item p { margin: 0.6rem 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }
/* five items in two columns leaves the last one alone — give it the full
   width instead of a lopsided empty cell beside it */
.why-item:last-child { grid-column: 1 / -1; }
.why-item:last-child h3, .why-item:last-child p { max-width: 62ch; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 400;
  letter-spacing: -0.016em;
  color: var(--ink);
  transition: color var(--t-med) var(--e-out), padding-left var(--t-med) var(--e-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item:hover summary { color: var(--brand-navy); padding-left: 0.5rem; }
.faq-item summary i { position: relative; flex: none; width: 1rem; height: 1rem; }
.faq-item summary i::before, .faq-item summary i::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform 340ms var(--e-out), opacity 200ms var(--e-out);
}
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0deg); opacity: 0; }
.faq-answer { overflow: hidden; }
.faq-answer p { margin: 0; padding: 0 0 1.5rem; max-width: 68ch; font-size: 0.9875rem; line-height: 1.65; color: var(--ink-2); }

/* ------------------------------------------------------- 16 Contact & form */
.contact-list { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
}
.contact-list a { color: var(--brand-navy); font-weight: 500; letter-spacing: -0.01em; transition: color var(--t-med) var(--e-out); }
.contact-list a:hover { color: var(--blue); }
.contact-list span:not(.contact-ico) { color: var(--ink-2); }
.contact-ico { display: grid; place-items: center; width: 1.5rem; flex: none; color: var(--blue); }
.contact-ico svg { width: 1.15rem; height: 1.15rem; }

/* Honeypot: off-screen rather than display:none, which some bots skip */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form {
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border-radius: var(--r-xl);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-1);
}

.field { display: grid; }
.field label {
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.9rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: -0.008em;
  transition: border-color var(--t-med) var(--e-out);
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .85; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5' fill='none' stroke='%23034EA2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  background-size: 15px;
  padding-right: 2rem;
  cursor: pointer;
}

.field-error {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #C0392B;
  opacity: 0;
  translate: 0 -3px;
  transition: opacity var(--t-med) var(--e-out), translate var(--t-med) var(--e-out);
}
.field-error.is-shown { opacity: 1; translate: 0 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #D35445; }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: rgba(22, 134, 74, .5); }

/* Turnstile renders its own iframe widget (~300×65px) — this is just the
   surrounding rhythm, matching the hairline the old captcha row sat on. */
.turnstile-field { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.turnstile-field .cf-turnstile { max-width: 100%; }

.consent { display: flex; align-items: flex-start; gap: 0.85rem; cursor: pointer; user-select: none; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-box {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  flex: none;
  margin-top: 2px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: #fff;
  transition: background-color var(--t-fast) var(--e-out), box-shadow var(--t-fast) var(--e-out), transform var(--t-fast) var(--e-press);
}
.consent-box svg { width: 13px; height: 13px; opacity: 0; scale: 0.6; transition: opacity 160ms var(--e-out), scale 260ms var(--e-spring); }
.consent input:checked + .consent-box { background: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.consent input:checked + .consent-box svg { opacity: 1; scale: 1; }
.consent:active .consent-box { transform: scale(0.9); }
.consent input:focus-visible + .consent-box { outline: 2px solid var(--blue); outline-offset: 3px; }
.consent-text { font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-note { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-3); max-width: 28ch; }

.form-status {
  display: block;
  margin-top: 1.5rem;
  padding: 0;
  max-height: 0;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0;
  overflow: hidden;
  transition: max-height 420ms var(--e-out), opacity var(--t-med) var(--e-out), padding 420ms var(--e-out);
}
.form-status.is-shown { max-height: 14rem; opacity: 1; padding: 1rem 1.15rem; }
.form-status.is-ok { background: rgba(22, 134, 74, .08); box-shadow: inset 0 0 0 1px rgba(22, 134, 74, .28); color: #106036; }
.form-status.is-bad { background: rgba(192, 57, 43, .07); box-shadow: inset 0 0 0 1px rgba(192, 57, 43, .26); color: #9E2D20; }

/* ---------------------------------------------------------------- 17 Footer */
.site-footer { position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0 0.5rem; background: var(--bg-alt); border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.footer-blurb { margin: 1.5rem 0 0; max-width: 34ch; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }

.footer-social { display: flex; gap: 0.6rem; list-style: none; margin: 2rem 0 0; padding: 0; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink-2);
  transition: transform var(--t-fast) var(--e-press), background-color var(--t-med) var(--e-out), color var(--t-med) var(--e-out);
}
.footer-social svg { width: 1.1rem; height: 1.1rem; }
.footer-social a:hover { background: var(--brand-navy); color: #fff; box-shadow: none; }

.footer-head {
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-links a, .footer-links span { font-size: 0.9375rem; color: var(--ink-2); transition: color var(--t-med) var(--e-out); }
.footer-links a:hover { color: var(--brand-navy); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.footer-bottom p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer-legal { display: flex; align-items: center; gap: 0.75rem; }
.footer-legal a:hover { color: var(--brand-navy); }
.footer-legal .dot { opacity: .5; }


/* ------------------------------------------------------------ 18 Responsive */
@media (min-width: 640px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
  .nav-primary { display: flex; }
  .sec-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; }
  .acc-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .acc-inner .chip-row { margin-top: 0; }
}

@media (max-width: 991.98px) {
  .hero { min-height: auto; padding-bottom: 4rem; }
  .framework { text-align: left; }
  .framework footer { margin-inline: 0; }
}

@media (max-width: 575.98px) {
  .acc-item summary { grid-template-columns: 2.25rem 1fr auto; gap: 0.75rem; }
  .acc-inner { padding-left: 0; }
  .why-list { grid-template-columns: 1fr; }
  .why-item:last-child { grid-column: 1; }
  .form-foot .btn-tm { width: 100%; justify-content: center; }
  .form-note { max-width: none; }
}

/* --------------------------------------------- 19 Accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 160ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { --rv-y: 0px; --rv-s: 1; transition-delay: 0ms !important; }
  .mobile-sheet { translate: 0 0; opacity: 0; visibility: hidden; transition: opacity 160ms linear, visibility 160ms linear; }
  .mobile-sheet.is-open { opacity: 1; visibility: visible; }
  .hero-streak, .scroll-cue i { animation: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled { background: var(--bg); backdrop-filter: none; }
  .mobile-sheet { background: var(--bg); backdrop-filter: none; }
  .badge-tm { background: var(--bg); backdrop-filter: none; }
  .blog-media-badge { background: rgba(9, 28, 83, .78); backdrop-filter: none; }
  .sheet-scrim { backdrop-filter: none; background: rgba(9, 28, 83, .45); }
}

@media (prefers-contrast: more) {
  :root {
    --ink-2: #26344F;
    --ink-3: #44526B;
    --line: rgba(9, 28, 83, .32);
    --line-2: rgba(9, 28, 83, .5);
    --line-3: rgba(9, 28, 83, .75);
  }
  .hero-title em { -webkit-text-fill-color: currentColor; color: var(--blue); background: none; }
  .btn-tm-ghost { box-shadow: inset 0 0 0 2px var(--brand-navy); }
}

@media print {
  .site-header, .mobile-sheet, .sheet-scrim, .scroll-cue, .hero-canvas { display: none !important; }
  .reveal { opacity: 1 !important; translate: none !important; scale: none !important; }
  body { background: #fff; color: #000; }
  .framework { background: #fff; color: #000; }
  .framework-slogan, .framework footer { color: #000; }
}
