/* =============================================
   TABLE OF CONTENTS
   =============================================
   Sections are marked with banner comments. Grep the title to jump.

   FOUNDATION:   BRAND TOKENS · RESET · NOISE TEXTURE · KICKER · BUTTONS · SCROLL REVEAL
   LANDING:      1. NAV · LANG SWITCH · 2. HERO · KEYBOARD INTRO · 4. WHY US ·
                 5. SERVICES · 7. TEAM · FAQ · 8. CONTACT · 9. FOOTER ·
                 10. INTERSTITIAL · 11. SERVICES DUALITY + COMBO CARD
   GLOBAL:       GLOBAL MOTION + A11Y · LANG BANNER · EASTER EGG
   OTHER PAGES:  PRIVACY PAGES · INSPECT US · 404 ERROR PAGE · SCROLL PROGRESS · BLOG

   RESPONSIVE:   Each component's @media overrides live at the bottom of that section,
                 not in a single shared block. Breakpoints: 1024 / 768 / 767 / 480 / 414 / 374.
                 prefers-reduced-motion globals: GLOBAL MOTION + A11Y section.
   ============================================= */

/* Poppins — latin-ext (Croatian diacritics: č, đ, ž, ć, š) */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600-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: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-700-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: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/poppins-800-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: 'Poppins';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/poppins-900-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;
}
/* Poppins — latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600.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: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-700.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: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/poppins-800.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: 'Poppins';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/poppins-900.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: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/outfit-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/caveat-700.woff2') format('woff2');
}
/* =============================================
       BRAND TOKENS
    ============================================= */
:root {
  /* Deterministic UA form-control accent. Without this, color-scheme: dark
     (see content/site-head.mjs) lets the UA pick a dark accent for checkbox
     ticks, radio dots, range thumbs, progress bars, and select arrows. UA
     defaults vary between Linux/Mac/Windows and shared GHA runners, driving
     subpixel jitter in the contact section + accordion focus rings (real
     cause of the visual flake on PR #175). Explicit CAG cyan replaces UA
     decision with brand decision — byte-stable across platforms. Pairs with
     color-scheme: dark, which still governs pre-CSS body bg + scrollbar
     palette (the original brand intent — no-white-flash on slow 3G). */
  accent-color: #18cbcb;

  --dark: #373643;
  --dark-deep: #272632;
  --cyan: #18cbcb;
  --cyan-ink: #0a686a;
  --cyan-hover: #0fa5a7;
  --light-teal: #b0f0f0;
  --off-white: #f5f7fa;
  --light-gray: #e8ecf1;
  --mid-gray: #6b7085;
  --body-text: #474759;
  --white: #ffffff;
  --error: #e74c3c;
  /* warm accent — marketing column, Caveat handwriting, personality badges */
  --coral: #ff6b6b;
  --coral-ink: #d94f4f;
  /* WCAG AA-compliant dark coral for white-text surfaces.
     White on --coral is 2.77:1 (fails 4.5:1 minimum); white on --coral-ink
     is 4.02:1 (still under). --coral-deep tested at 5.12:1 — solid headroom
     for body text while staying within the established coral identity hue. */
  --coral-deep: #b94646;
  --dark-text: #1a1a2e;
  --muted: #9fa7c1;
  --muted-light: #b4b8ca;
  --cyan-glow: #7de2e2;
  --cyan-bright: #5ee5e5;
  /* Inspect Us live-audit semantic tokens. Green = verified, amber =
     informational/CI, dark-ink = text on cyan-filled surfaces (the prompt
     submit button). Kept here so consumers reach them via var() rather than
     hardcoding hex inside .la-* rules. */
  --green: #5fd17a;
  --amber: #ffb84a;
  --dark-ink: #02181a;
  --font-head: 'Poppins', Arial, sans-serif;
  --font-display: 'Outfit', 'Poppins', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;

  --light-surface: #eef4f6;
  --dark-surface: #1c2029;
  --dark-base: #10141b;
  --dark-floor: #090c12;

  --nav-h: 72px;
  --pad: clamp(64px, 9vw, 110px);
  --wrap: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;
  --ease: 0.25s ease;
}

@media (max-width: 414px) {
  :root {
    --pad: 40px;
  }
}

/* =============================================
       RESET
    ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}
body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: clip;
}
::selection {
  background: var(--cyan);
  color: var(--dark);
}
.hero-content,
.services-grid,
.svc-col,
.svc-card,
.svc-text,
.team-card,
.team-info,
.contact-grid,
.contact-copy,
.contact-panel,
.c-item,
.privacy-inner,
.p-section,
.error-primary,
.error-lang,
.error-lang .wrap,
.error-actions {
  min-width: 0;
}
.hero-sub,
.svc-text p,
.t-bio,
.c-sub,
.c-value,
.p-section p,
.p-section li,
.p-section a,
.error-description,
.f-copy,
.fl-label {
  overflow-wrap: anywhere;
}
.body-no-scroll {
  overflow: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.honeypot {
  display: none !important;
}
.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
  display: inline-block;
}
.icon-spin {
  animation: iconSpin 1s linear infinite;
}
@keyframes iconSpin {
  to {
    transform: rotate(360deg);
  }
}
.toast-msg {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: var(--error);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  box-shadow: 0 8px 30px rgba(231, 76, 60, 0.3);
  width: min(90vw, 420px);
  max-width: 420px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.toast-msg.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.egg-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: var(--cyan);
  color: var(--dark);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  box-shadow: 0 8px 30px rgba(24, 203, 203, 0.3);
  width: min(90vw, 420px);
  max-width: 420px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.egg-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  z-index: 201;
  background: var(--cyan);
  color: var(--dark);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateX(-50%) translateY(0);
}
ul {
  list-style: none;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* =============================================
       NOISE TEXTURE
    ============================================= */
.noise {
  position: relative;
}
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: soft-light;
  z-index: 0;
}
.noise > * {
  position: relative;
  z-index: 1;
}

/* =============================================
       KICKER
    ============================================= */
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.kicker-light {
  color: var(--light-teal);
}

/* =============================================
       BUTTONS
    ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--ease),
    border-color var(--ease),
    color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
  min-height: 44px;
}
.btn-primary {
  background: var(--cyan);
  color: var(--dark-text);
  border-color: var(--cyan);
  font-weight: 700;
  border-bottom: 3px solid var(--cyan-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 8px rgba(24, 203, 203, 0.2);
}
.btn-primary:hover {
  background: var(--cyan-hover);
  border-color: var(--cyan-hover);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 24px rgba(24, 203, 203, 0.25);
}
.btn-primary:active {
  transform: translateY(1px);
  border-bottom-width: 1px;
  background: var(--cyan-hover);
  border-color: var(--cyan-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 4px rgba(24, 203, 203, 0.15);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline:hover,
.btn-outline:active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(24, 203, 203, 0.08);
  transform: translateY(-1px);
}

/* =============================================
       SCROLL REVEAL
    ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}

/* =============================================
       1. NAV
    ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 101;
  background: rgba(39, 38, 50, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    top 0.25s ease,
    background var(--ease),
    backdrop-filter var(--ease),
    border-color var(--ease);
}
.nav.scrolled {
  background: rgba(39, 38, 50, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(24, 203, 203, 0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo svg {
  height: 38px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.87);
  letter-spacing: 0.02em;
  transition: color var(--ease);
}
.nav-links a:hover {
  color: var(--cyan);
}
.nav-links a.nav-active {
  color: var(--white);
  position: relative;
}
.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1.5px;
  background-color: var(--cyan);
}
#usluge,
#tim,
#kontakt {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.nav-cta {
  padding: 10px 20px;
  font-size: 15px;
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 15px 2px rgba(24, 203, 203, 0.2);
}
.nav-cta:hover {
  box-shadow: 0 0 20px 4px rgba(24, 203, 203, 0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    background-color 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--dark);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  min-height: 44px;
  transition: color var(--ease);
}
.mobile-menu a:hover {
  color: var(--cyan);
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* =============================================
       LANG SWITCH
    ============================================= */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
  cursor: pointer;
  padding: 8px 6px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.lang-btn.active {
  color: var(--white);
}
.lang-btn:hover {
  color: var(--cyan);
}
.lang-sep {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0;
  vertical-align: middle;
}

/* Mobile lang switch */
.mobile-menu .lang-switch {
  margin-left: 0;
  gap: 10px;
}
.mobile-menu .lang-btn {
  font-size: 14px;
  padding: 4px 8px;
}
.mobile-menu .lang-sep {
  font-size: 14px;
}

/* =============================================
       2. HERO
    ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--dark);
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
}
.hero .wrap {
  max-width: min(1320px, 100%);
  min-width: 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(24, 203, 203, 0.08), transparent 18%),
    radial-gradient(circle at 72% 30%, rgba(24, 203, 203, 0.2), transparent 23%),
    radial-gradient(circle at 84% 56%, rgba(24, 203, 203, 0.11), transparent 31%),
    linear-gradient(112deg, rgba(8, 11, 17, 0) 0%, rgba(8, 11, 17, 0.14) 34%, rgba(10, 15, 23, 0.92) 100%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 12%;
  bottom: 10%;
  right: clamp(28px, 6vw, 88px);
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(24, 203, 203, 0.28), transparent);
  opacity: 0.85;
  box-shadow: 0 0 18px rgba(24, 203, 203, 0.12);
  pointer-events: none;
}

/* Faded background chevron */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-bg svg {
  width: min(82vw, 820px);
  height: min(82vw, 820px);
  opacity: 0.14;
  transform: translateX(14%) translateY(2%);
  filter: drop-shadow(0 0 52px rgba(24, 203, 203, 0.12));
  animation: bgPulse 7s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes bgPulse {
  0%,
  100% {
    opacity: 0.13;
    transform: translateX(14%) translateY(2%) scale(1);
  }
  50% {
    opacity: 0.2;
    transform: translateX(14%) translateY(2%) scale(1.04);
  }
}

/* =============================================
       KEYBOARD INTRO
    ============================================= */
.keyboard-intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  background: var(--dark);
  will-change: opacity;
  contain: paint;
  transition: opacity 0.3s ease;
}
.keyboard-intro.fade-out {
  opacity: 0;
}
.keyboard-intro.done {
  display: none;
}
.keys-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 26px;
  background: linear-gradient(180deg, rgba(80, 78, 105, 0.97) 0%, rgba(45, 44, 60, 0.97) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 4px solid rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-sm);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
  text-transform: lowercase;
  transition:
    transform 0.1s ease,
    border-bottom-width 0.1s ease,
    box-shadow 0.1s ease;
  -webkit-user-select: none;
  user-select: none;
}
.key.grow {
  color: var(--cyan);
}
.key.pressed {
  transform: translateY(3px);
  border-bottom-width: 1px;
  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.keyboard-flash {
  position: fixed;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity 0.15s ease;
}
.keyboard-flash.flash {
  opacity: 0.18;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 9vw, 136px) 0;
  max-width: min(1180px, 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero-content.revealed {
  opacity: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  padding: 0;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.hero-tag-brand {
  color: var(--white);
}
.hero-tag-context {
  color: var(--light-teal);
}
.hero-tag-sep {
  color: rgba(255, 255, 255, 0.3);
}
.hero-tag::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%2318CBCB' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4,10 16,10 16,22'/%3E%3Cpolyline points='12,4 24,4 24,16'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.85;
}
.hero-tag.animate {
  opacity: 1;
  transform: translateY(0);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.6vw, 82px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 18px;
  max-width: none;
}
html[lang='en'] .hero-content {
  max-width: min(1200px, 100%);
}
html[lang='en'] .hero-headline {
  font-size: clamp(40px, 5.6vw, 76px);
}

.hero-line {
  display: block;
  overflow: hidden;
}
.hero-line-inner {
  display: block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(70px);
}
.hero-line-inner.animate {
  animation: slideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-line:nth-child(1) .hero-line-inner {
  animation-delay: 0.2s;
}
.hero-line:nth-child(2) .hero-line-inner {
  animation-delay: 0.42s;
}
.hero-line:nth-child(3) .hero-line-inner {
  animation-delay: 0.56s;
}
.cyan {
  color: var(--cyan);
}
.hero-headline .cyan {
  text-shadow: 0 0 25px rgba(24, 203, 203, 0.45);
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 18px);
  color: rgba(255, 255, 255, 0.76);
  max-width: 42ch;
  line-height: 1.62;
  margin-bottom: 38px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.hero-sub.animate {
  opacity: 1;
  transform: translateY(0);
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.hero-ctas.animate {
  opacity: 1;
  transform: translateY(0);
}

.proof-strip {
  position: relative;
  background: linear-gradient(180deg, rgba(245, 247, 250, 0.92) 0%, var(--white) 100%);
  padding: 42px 0 12px;
  overflow: hidden;
  margin-top: -36px;
  z-index: 2;
  border-radius: 16px 16px 0 0;
}
.proof-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 50%, rgba(24, 203, 203, 0.12), transparent 25%),
    linear-gradient(90deg, rgba(24, 203, 203, 0.04), transparent 22%, transparent 78%, rgba(24, 203, 203, 0.04));
  pointer-events: none;
}
.proof-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: end;
}
.proof-intro h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 10px;
}
.proof-intro p {
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mid-gray);
}
.proof-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.proof-item {
  min-width: 0;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(55, 54, 67, 0.08);
  box-shadow: 0 20px 30px -28px rgba(26, 26, 46, 0.24);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.proof-value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--dark);
  margin-bottom: 10px;
}
.proof-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dark);
}
.proof-item p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--mid-gray);
}

@media (max-width: 768px) {
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .hero-line-inner {
    white-space: normal;
  }
  .hero-headline {
    line-height: 1.05;
  }
}

@media (max-width: 414px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 48px);
  }
  .hero-content {
    padding: 24px 0 40px;
    max-width: 100%;
  }
  .hero-headline {
    font-size: clamp(2rem, 8.5vw, 2.5rem);
    line-height: 1.05;
    max-width: none;
  }
  .hero-tag {
    gap: 8px 10px;
    margin-bottom: 18px;
  }
  .hero-tag::before {
    width: 28px;
  }
  .hero-sub {
    margin-top: 12px;
    margin-bottom: 28px;
  }
  .hero-ctas {
    gap: 12px;
    margin-top: 20px;
  }
}

/* =============================================
       4. WHY US
    ============================================= */
.why {
  background: var(--white);
  padding: var(--pad) 0;
  overflow: hidden;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.why-headline {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.why-headline .accent {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.35em;
  color: var(--coral-ink);
}
.why-body {
  padding-top: 6px;
  font-size: 16px;
  color: var(--body-text);
  line-height: 1.8;
}
.why-lead {
  display: block;
  font-size: 19px;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 16px;
}
.why-detail {
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.8;
  border-top: 1px solid var(--light-gray);
  padding-top: 14px;
  margin-top: 0;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 414px) {
  .why-grid {
    gap: 20px;
  }
  .why-headline {
    margin-bottom: 0;
  }
}

/* =============================================
       5. SERVICES
    ============================================= */
.services {
  background: var(--off-white);
  padding: var(--pad) 0;
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -8%;
  width: 480px;
  height: 480px;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%2318CBCB' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='40,40 140,40 140,140'/%3E%3Cpolyline points='70,10 170,10 170,110'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
}
.services > * {
  position: relative;
  z-index: 1;
}
.services-head {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.services-head h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.services-head p {
  font-size: 16px;
  color: var(--mid-gray);
  max-width: 500px;
  margin: 0 auto 22px;
}
.services-bridge {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(55, 54, 67, 0.09);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.services-bridge span {
  position: relative;
  padding-left: 16px;
}
.services-bridge span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(24, 203, 203, 0.55);
  transform: translateY(-50%);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: start;
}
.svc-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.col-head {
  margin-bottom: 6px;
}
.col-title {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}
.svc-col.primary .col-title {
  font-size: clamp(20px, 2.6vw, 26px);
}
.col-lead {
  font-size: 12px;
  font-weight: 500;
  color: var(--mid-gray);
  letter-spacing: 0.04em;
}
.col-copy {
  max-width: 30ch;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--body-text);
}

.svc-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 251, 252, 0.98) 100%);
  border: 1px solid rgba(55, 54, 67, 0.08);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    border-color var(--ease);
  box-shadow:
    0 4px 6px -1px rgba(55, 54, 67, 0.05),
    0 10px 24px -4px rgba(55, 54, 67, 0.08);
}
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(24, 203, 203, 0.08), transparent 34%);
  pointer-events: none;
}
.svc-card > * {
  position: relative;
  z-index: 1;
}
.svc-card:hover {
  border-color: rgba(24, 203, 203, 0.22);
  box-shadow:
    0 12px 16px -4px rgba(55, 54, 67, 0.08),
    0 24px 44px -8px rgba(55, 54, 67, 0.12);
}
.svc-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
  font-size: 20px;
  opacity: 0.88;
  border-radius: var(--radius-md);
  background: rgba(24, 203, 203, 0.08);
  transition:
    opacity var(--ease),
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background var(--ease);
}
.svc-card:hover .svc-icon {
  opacity: 1;
  transform: translateY(-4px) scale(1.1);
}
.svc-col:not(.primary) .svc-card::before {
  background: radial-gradient(circle at 100% 0%, rgba(233, 107, 107, 0.08), transparent 34%);
}
.svc-col:not(.primary) .svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 107, 107, 0.22);
}
.svc-col:not(.primary) .svc-icon {
  color: var(--coral);
  background: rgba(233, 107, 107, 0.08);
}
.svc-col.primary .svc-card:hover {
  transform: translateY(-4px);
}
.svc-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(24, 203, 203, 0.12);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-ink);
}
.svc-card-featured {
  background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-base) 100%);
  border-color: rgba(24, 203, 203, 0.18);
  box-shadow:
    0 20px 40px -28px rgba(26, 26, 46, 0.45),
    0 16px 32px -26px rgba(24, 203, 203, 0.2);
}
.svc-card-featured::before {
  background:
    radial-gradient(circle at 88% 16%, rgba(24, 203, 203, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(24, 203, 203, 0.08), transparent 45%);
}
.svc-card-featured:hover {
  transform: translateY(-6px);
  border-color: rgba(24, 203, 203, 0.3);
  box-shadow:
    0 28px 44px -30px rgba(26, 26, 46, 0.56),
    0 18px 36px -28px rgba(24, 203, 203, 0.28);
}
.svc-card-featured .svc-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(24, 203, 203, 0.14);
  color: var(--cyan-glow);
}
.svc-icon-lock .lock-shackle {
  transform-origin: center;
  transform: translateY(-8%);
  opacity: 0.5;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}
.svc-card-featured:hover .lock-shackle {
  transform: translateY(0);
  opacity: 1;
}
.svc-card-featured .svc-text h3 {
  color: var(--white);
}
.svc-card-featured .svc-text p {
  color: rgba(255, 255, 255, 0.78);
}
.svc-card-featured .svc-badge {
  background: rgba(233, 107, 107, 0.14);
  color: var(--coral);
}
.svc-text h3 {
  font-family: var(--font-head);
  font-size: clamp(18px, 1.6vw, 20px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.svc-text p {
  font-size: 14px;
  color: var(--mid-gray);
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 414px) {
  .services-head {
    margin-bottom: 28px;
  }
  .services-bridge {
    justify-content: flex-start;
    text-align: left;
  }
  .services-grid {
    gap: 28px;
  }
  .svc-card {
    padding: 16px 18px;
  }
}

/* =============================================
       7. TEAM
    ============================================= */
.team {
  background:
    radial-gradient(circle at 18% 18%, rgba(24, 203, 203, 0.12), transparent 28%),
    linear-gradient(180deg, var(--dark-surface) 0%, var(--dark-base) 100%);
  padding: var(--pad) 0;
  overflow: hidden;
  position: relative;
}
.team::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -8%;
  width: 400px;
  height: 400px;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%2318CBCB' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='40,40 140,40 140,140'/%3E%3Cpolyline points='70,10 170,10 170,110'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
}
.team > * {
  position: relative;
  z-index: 1;
}
.team-head {
  text-align: center;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.team-head h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.team-head p {
  font-size: 16px;
  color: var(--muted-light);
  max-width: 420px;
  margin: 0 auto;
}
.handwritten-inline {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.45em;
  color: var(--coral);
}
.team-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
}
@media (min-width: 769px) {
  .team-card:nth-child(2) {
    margin-top: 48px;
  }
}
.team-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.018) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: 24px;
  width: min(520px, 100%);
  position: relative;
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
  box-shadow:
    0 4px 6px -1px rgba(55, 54, 67, 0.04),
    0 10px 20px -4px rgba(55, 54, 67, 0.06);
  overflow: hidden;
}
.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(24, 203, 203, 0.13), transparent 42%),
    linear-gradient(90deg, rgba(24, 203, 203, 0.2), transparent 28%);
  opacity: 0.55;
  pointer-events: none;
}
.team-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, rgba(24, 203, 203, 0.45), rgba(24, 203, 203, 0));
  pointer-events: none;
}
.team-card:hover {
  border-color: rgba(24, 203, 203, 0.35);
  box-shadow:
    0 8px 16px -4px rgba(0, 0, 0, 0.2),
    0 20px 40px -8px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-surface) 100%);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(24, 203, 203, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
  transition: box-shadow var(--ease);
  letter-spacing: 0.04em;
}
.avatar::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 1px solid rgba(24, 203, 203, 0.3);
}
.team-card:hover .avatar {
  box-shadow: 0 0 0 6px rgba(24, 203, 203, 0.15);
}
.team-info {
  flex: 1;
}
.t-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 4px;
  margin-left: 0;
  letter-spacing: -0.01em;
}
.t-title {
  font-size: 12px;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.t-bio {
  font-size: 13px;
  color: var(--muted-light);
  line-height: 1.7;
}
.t-linkedin {
  position: absolute;
  top: 28px;
  right: 28px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  transition: color var(--ease);
  margin-top: 0;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
}
.t-linkedin:hover {
  color: var(--cyan);
}

.email-link,
.email-copy-btn,
.c-value a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  padding: 10px 0;
}
.email-copy-btn {
  position: relative;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(24, 203, 203, 0.22);
  border-radius: var(--radius-full);
  background: rgba(24, 203, 203, 0.08);
  color: var(--cyan-ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background var(--ease),
    border-color var(--ease),
    color var(--ease),
    transform var(--ease);
}
.email-copy-btn:hover {
  background: rgba(24, 203, 203, 0.14);
  border-color: rgba(24, 203, 203, 0.35);
  color: var(--cyan);
  transform: translateY(-1px);
}
.email-copy-btn.copied::after {
  content: var(--copy-text, 'Kopirano!');
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: var(--dark);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  animation: fadeUp 1.2s ease forwards;
}
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }
  20% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
}

@media (max-width: 768px) {
  .team-grid {
    flex-direction: column;
    align-items: center;
  }
  .team-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: min(400px, 100%);
  }
  .t-linkedin {
    position: static;
    margin-top: 14px;
    color: var(--cyan);
    border: 1px solid rgba(24, 203, 203, 0.22);
    background: rgba(24, 203, 203, 0.12);
    box-shadow: 0 16px 28px -22px rgba(24, 203, 203, 0.45);
  }
}

@media (max-width: 414px) {
  .team-head {
    margin-bottom: 24px;
  }
  .team-card {
    padding: 24px 20px;
    gap: 16px;
  }
}

/* =============================================
       FAQ
    ============================================= */
.faq {
  background: var(--white);
  padding: var(--pad) 0;
  position: relative;
}
.faq-head {
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}
.faq-head .kicker {
  display: inline-block;
}
.faq-headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
}
.faq-headline .accent {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.35em;
  color: var(--coral-ink);
}
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 52px);
}
.faq-item {
  padding-left: clamp(18px, 2vw, 28px);
  border-left: 2px solid var(--cyan);
}
.faq-q {
  font-family: var(--font-head);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--dark);
  margin: 0 0 12px;
}
.faq-a {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-text);
  max-width: 68ch;
  margin: 0;
}

@media (max-width: 768px) {
  .faq-q {
    font-size: 18px;
  }
  .faq-a {
    font-size: 15.5px;
  }
}

/* =============================================
       8. CONTACT
    ============================================= */
.contact {
  position: relative;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--light-surface) 58%, var(--light-surface) 100%);
  padding: var(--pad) 0 clamp(80px, 10vw, 140px);
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: auto auto -120px -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 203, 203, 0.14) 0%, rgba(24, 203, 203, 0) 68%);
  pointer-events: none;
}
.contact::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24, 203, 203, 0.35), transparent);
}
.contact-headline {
  font-family: var(--font-head);
  font-size: clamp(48px, 8.5vw, 108px);
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin-bottom: clamp(44px, 5.5vw, 72px);
  margin-left: clamp(-40px, -3vw, -20px);
}
.contact-headline span {
  color: var(--cyan);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: stretch;
}
.contact-copy,
.contact-panel {
  position: relative;
  z-index: 1;
}
.contact-copy {
  max-width: 360px;
}
.c-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-ink);
  margin-bottom: 16px;
}
.c-sub {
  font-size: 16px;
  color: var(--dark);
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 340px;
}
.c-notes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.c-notes span {
  position: relative;
  padding-left: 14px;
}
.c-note-handwritten {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--coral-ink);
}
.c-notes span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(24, 203, 203, 0.65);
  transform: translateY(-50%);
}
.c-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.c-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 30px -28px rgba(26, 26, 46, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.c-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(24, 203, 203, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.c-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-ink);
  margin-bottom: 2px;
}
.c-value {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--dark);
}
.c-value a {
  color: var(--dark);
  transition: color var(--ease);
}
.c-value a:hover {
  color: var(--cyan);
}
.c-value a:focus-visible,
.email-copy-btn:focus-visible,
.t-linkedin:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* Form */
.contact-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 34px);
  box-shadow:
    0 24px 40px -30px rgba(26, 26, 46, 0.28),
    0 16px 48px -32px rgba(24, 203, 203, 0.22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.form-intro {
  font-size: 14px;
  color: var(--mid-gray);
  line-height: 1.65;
  max-width: 38ch;
  margin-bottom: 18px;
}
.c-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.f-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.f-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mid-gray);
  text-transform: uppercase;
}
.f-group label[for] .required-star {
  color: var(--error);
  margin-left: 2px;
}
.f-group input,
.f-group select,
.f-group textarea {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  transition:
    border-color var(--ease),
    background var(--ease),
    box-shadow var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.f-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%238A8FA3' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.f-group select option {
  background: var(--white);
  color: var(--dark);
}
.f-group input::placeholder,
.f-group textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
}
.f-group input:hover,
.f-group select:hover,
.f-group textarea:hover {
  border-color: rgba(24, 203, 203, 0.35);
}
.f-group input:focus,
.f-group select:focus,
.f-group textarea:focus {
  border-color: var(--cyan);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(24, 203, 203, 0.15);
}
.f-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-promise {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.f-success {
  font-size: 14px;
  color: var(--cyan-ink);
  background: rgba(24, 203, 203, 0.1);
  border: 1px solid rgba(24, 203, 203, 0.14);
  border-radius: var(--radius-full);
  padding: 8px 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  gap: 7px;
}
.f-success.show {
  opacity: 1;
}
.f-error {
  color: var(--error);
  font-size: 13px;
  margin-top: 4px;
  min-height: 18px;
  display: block;
}
.f-group input.field-error,
.f-group select.field-error,
.f-group textarea.field-error {
  border-color: var(--error);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 414px) {
  .contact {
    padding: var(--pad) 0 28px;
  }
  .contact-headline {
    font-size: clamp(38px, 13vw, 64px);
    margin-bottom: 28px;
    margin-left: 0;
  }
  .contact-grid {
    gap: 24px;
  }
  .contact-panel {
    border-radius: var(--radius-lg);
    padding: 24px;
  }
  .c-eyebrow {
    margin-bottom: 12px;
  }
  .c-sub {
    margin-bottom: 16px;
    max-width: none;
  }
  .c-notes {
    gap: 8px 14px;
    margin-bottom: 18px;
  }
  .c-details {
    gap: 12px;
  }
  .c-item {
    padding: 14px 16px;
  }
}

/* =============================================
       9. FOOTER
    ============================================= */
.footer {
  background: linear-gradient(180deg, var(--dark-base) 0%, var(--dark-floor) 100%);
  border-top: 1px solid rgba(24, 203, 203, 0.18);
  padding: 40px 0;
}
.f-privacy-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: rgba(180, 184, 202, 1);
  transition: color var(--ease);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.f-privacy-link:hover {
  color: var(--cyan);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo svg {
  height: 30px;
  width: auto;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-mid {
  text-align: center;
  flex: 1;
}
.footer-links a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}
.f-tagline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.f-copy {
  font-size: 12px;
  color: rgba(180, 184, 202, 1);
  margin-top: 2px;
}
.f-copy:last-child {
  margin-top: 4px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  transition: color var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover {
  color: var(--cyan);
}
.fl-label {
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 414px) {
  .footer {
    padding: 20px 0;
  }
}

/* =============================================
       10. INTERSTITIAL
    ============================================= */
.interstitial {
  padding: clamp(60px, 10vw, 120px) 0;
  background: var(--cyan);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.inter-text {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  color: var(--dark-deep);
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 800px;
}
.inter-city {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.3em;
  color: var(--white);
  display: block;
  margin-bottom: 8px;
}
.inter-text::after {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  margin-top: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23272632' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4,10 16,10 16,22'/%3E%3Cpolyline points='12,4 24,4 24,16'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

@media (max-width: 414px) {
  .interstitial {
    padding: 40px 0;
  }
}

/* =============================================
       11. SERVICES DUALITY + COMBO CARD
    ============================================= */
.svc-col.primary .svc-card {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.svc-col:not(.primary) .svc-card {
  border-left: 1px solid rgba(55, 54, 67, 0.08);
  border-top: 3px solid var(--coral);
  border-radius: var(--radius-md);
}
.combo-card {
  position: relative;
  overflow: hidden;
  margin: 0 auto 42px;
  max-width: 940px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(238, 250, 250, 0.96) 0%, rgba(215, 247, 247, 0.98) 100%);
  color: var(--dark);
  border: 1px solid rgba(24, 203, 203, 0.2);
  border-radius: var(--radius-lg);
  font-size: 15px;
  box-shadow:
    0 14px 28px -18px rgba(24, 203, 203, 0.26),
    0 30px 48px -36px rgba(26, 26, 46, 0.28);
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    border-color var(--ease);
}
.combo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(24, 203, 203, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(24, 203, 203, 0.08), transparent 26%, transparent 74%, rgba(24, 203, 203, 0.08));
  pointer-events: none;
}
.combo-card > * {
  position: relative;
  z-index: 1;
}
.combo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 203, 203, 0.28);
  box-shadow:
    0 18px 34px -18px rgba(24, 203, 203, 0.28),
    0 34px 54px -34px rgba(26, 26, 46, 0.32);
}
.combo-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.combo-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-ink);
}
.combo-card strong {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}
.combo-text > span {
  display: block;
  max-width: 46ch;
  color: rgba(55, 54, 67, 0.82);
  opacity: 1;
}
.combo-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: rgba(24, 203, 203, 0.14);
  color: var(--cyan-ink);
}
.combo-card .combo-cta {
  margin-left: auto;
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
  border-bottom-color: rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.2);
}
.combo-card .combo-cta:hover {
  background: var(--dark-deep);
  border-color: var(--dark-deep);
}

@media (max-width: 768px) {
  .combo-card {
    flex-direction: column;
    text-align: center;
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .combo-cta {
    margin-left: 0;
    margin-top: 4px;
  }
}

/* =============================================
       GLOBAL MOTION + A11Y
    ============================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-line-inner {
    transform: none !important;
    opacity: 1 !important;
  }
  .keyboard-intro {
    display: none !important;
  }
  .hero-content {
    opacity: 1 !important;
  }
  .team-card:hover {
    transform: none;
  }
}

/* Focus visible for keyboard navigation */
.btn:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.nav-links a:focus-visible {
  color: var(--cyan);
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.t-linkedin:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.lang-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.nav-logo:focus-visible,
.footer-logo:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.hamburger:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.skip-link:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.f-group input:focus-visible,
.f-group select:focus-visible,
.f-group textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* =============================================
       LANG BANNER (EN-suggestion top bar)
    ============================================= */
.lang-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 102;
  background: var(--dark-deep);
  border-bottom: 1px solid rgba(24, 203, 203, 0.12);
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(245, 247, 250, 0.72);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
  pointer-events: none;
}
.lang-banner.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
/* Push nav down when banner is visible */
.lang-banner:not(.hidden) ~ .nav {
  top: 40px;
}
.lang-banner:not(.hidden) ~ .mobile-menu {
  top: calc(var(--nav-h) + 40px);
}
.lang-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 48px 8px 16px;
  position: relative;
  min-height: 38px;
}
.lang-banner-link {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  pointer-events: auto;
  transition:
    background var(--ease),
    color var(--ease);
}
.lang-banner-link:hover {
  background: rgba(24, 203, 203, 0.1);
  color: var(--cyan-bright);
}
.lang-banner-close {
  background: none;
  border: none;
  color: rgba(245, 247, 250, 0.4);
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  transition: color var(--ease);
}
.lang-banner-close:hover {
  color: var(--off-white);
}
.lang-banner-close:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 480px) {
  .lang-banner-inner {
    font-size: 12px;
    gap: 4px 8px;
    padding: 6px 44px 6px 12px;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* =============================================
       EASTER EGG
    ============================================= */
@keyframes eggShake {
  0%,
  100% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-4px) rotate(-0.5deg);
  }
  30% {
    transform: translateX(4px) rotate(0.5deg);
  }
  45% {
    transform: translateX(-3px);
  }
  60% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-1px);
  }
}
.egg-shake {
  animation: eggShake 0.4s ease;
}
.egg-logo-pop {
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s ease;
  transform: scale(1.4);
  filter: drop-shadow(0 0 20px rgba(24, 203, 203, 0.8));
}

/* =============================================
       PRIVACY PAGES
    ============================================= */
.privacy-hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + 48px) 0 48px;
  text-align: center;
}
.privacy-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.privacy-hero .updated {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.privacy-content {
  padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 8vw, 100px);
}
.privacy-inner {
  max-width: 780px;
  margin: 0 auto;
}

.p-section {
  margin-bottom: 40px;
}
.p-section h2 {
  font-family: var(--font-head);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  padding-left: 16px;
  border-left: 3px solid var(--cyan);
}
.p-section p,
.p-section li {
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.8;
  margin-bottom: 10px;
}
.p-section ul {
  padding-left: 20px;
  margin-bottom: 10px;
}
.p-section li {
  list-style: disc;
  margin-bottom: 6px;
}
.p-section a {
  color: var(--cyan-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.p-section a:hover {
  color: var(--dark);
}
.p-section strong {
  color: var(--dark);
  font-weight: 600;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan-ink);
  margin-top: 24px;
  transition: color var(--ease);
}
.back-link:hover {
  color: var(--dark);
}

/* =============================================
       VDP POLICY (security page) — TOC card,
       heading permalinks, scroll-driven reveals.
       Scoped so the privacy page is unaffected.
    ============================================= */

/* Table of contents — boxed card with cyan accent rail, 2-col on desktop. */
.p-toc {
  margin: 0 0 48px;
  padding: 24px 28px;
  background: var(--light-surface);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.p-toc h2 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan-ink);
  margin-bottom: 14px;
}
.p-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 32px;
}
.p-toc ol li {
  counter-increment: toc;
  list-style: none;
  margin: 0;
  position: relative;
  padding-left: 32px;
  font-size: 14px;
  line-height: 1.5;
}
.p-toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-body);
  font-feature-settings: 'tnum';
  font-size: 11px;
  font-weight: 600;
  color: var(--mid-gray);
  letter-spacing: 0.05em;
}
.p-toc ol li a {
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color var(--ease),
    border-color var(--ease);
}
.p-toc ol li a:hover,
.p-toc ol li a:focus-visible {
  color: var(--cyan-ink);
  border-bottom-color: var(--cyan);
}
@media (max-width: 640px) {
  .p-toc {
    padding: 20px 22px;
  }
  .p-toc ol {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Heading permalinks — subtle # next to each <h2>, coral on hover. */
.policy-vdp .p-section h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.anchor-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity var(--ease),
    transform var(--ease),
    color var(--ease);
  border-bottom: none !important;
}
.policy-vdp .p-section:hover .anchor-link,
.anchor-link:hover,
.anchor-link:focus-visible {
  opacity: 1;
  transform: translateX(0);
}
.anchor-link:hover,
.anchor-link:focus-visible {
  color: var(--coral);
}
/* Touch — no hover, so keep anchors visible (faded) on coarse pointers. */
@media (hover: none) {
  .anchor-link {
    opacity: 0.5;
    transform: none;
  }
}

/* Hall of Fame callout on the VDP page — coral accent breaks the cyan
   dominance and signals "open invitation" rather than legal-doc cyan.
   Two-column flex: big monospace count on the left, copy + CTA on right. */
.hof-callout {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 56px;
  padding: 22px 28px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(255, 107, 107, 0.01));
  border: 1px solid rgba(255, 107, 107, 0.18);
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.hof-callout-count {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, Menlo, monospace;
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: var(--coral);
  letter-spacing: -0.02em;
}
.hof-callout-body {
  flex: 1 1 auto;
  min-width: 0;
}
.hof-callout-body h3 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral-ink);
  margin-bottom: 6px;
}
.hof-callout-body p {
  font-size: 15px;
  color: var(--body-text);
  margin-bottom: 8px;
  line-height: 1.5;
}
.hof-callout-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--coral-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color var(--ease),
    border-color var(--ease),
    transform var(--ease);
}
.hof-callout-cta:hover,
.hof-callout-cta:focus-visible {
  color: var(--coral);
  border-bottom-color: var(--coral);
}
.hof-callout-cta:hover span {
  transform: translateX(2px);
}
.hof-callout-cta span {
  display: inline-block;
  transition: transform var(--ease);
}
@media (max-width: 480px) {
  .hof-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
  }
  .hof-callout-count {
    font-size: 44px;
  }
}

/* Hall of Fame empty state (the standalone page). Same coral accent
   language as the VDP callout — visually they're the same family. */
.hof-empty {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 24px;
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.04), transparent 70%);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
.hof-empty-count {
  font-family: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, Menlo, monospace;
  font-size: clamp(96px, 18vw, 168px);
  font-weight: 800;
  line-height: 0.85;
  color: var(--coral);
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  opacity: 0.85;
}
.hof-empty h2 {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  padding: 0;
  border: none;
}
.hof-empty p {
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 24px;
}
.hof-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  /* WCAG AA: white on --coral is 2.77:1 (fails). --coral-deep is 5.12:1.
     The lighter --coral still appears throughout the page (count digit,
     border accent, background gradient) so the coral identity is intact;
     this CTA's filled surface is the one place white text sits on coral
     and therefore the one place AA-compliant depth is required. */
  background: var(--coral-deep);
  border-radius: var(--radius-full);
  text-decoration: none;
  border-bottom: none !important;
  transition:
    transform var(--ease),
    box-shadow var(--ease);
}
.hof-empty-cta:hover,
.hof-empty-cta:focus-visible {
  /* Visual feedback via lift + subtle shadow; bg stays --coral-deep so
     contrast can't degrade on interaction. Earlier hover swapped to
     --coral-ink (lighter), which would have read as 4.0:1 → AA fail. */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(185, 70, 70, 0.32);
}
.hof-empty-cta span {
  display: inline-block;
  transition: transform var(--ease);
}
.hof-empty-cta:hover span {
  transform: translateX(3px);
}

/* Scroll-driven reveal — TOC + sections + HoF callout fade up as they
   enter the viewport. Pure CSS via animation-timeline: view(). Gated by
   @supports so older browsers don't get stranded at opacity:0, and by
   prefers-reduced-motion so accessibility settings disable it. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .policy-vdp .p-toc,
    .policy-vdp .hof-callout,
    .policy-vdp .hof-empty,
    .policy-vdp .p-section {
      animation: vdp-reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@keyframes vdp-reveal-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
       INSPECT US — Live Audit Console (.la-*)
    ============================================= */
.inspect-us {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(24, 203, 203, 0.12), transparent 24%),
    linear-gradient(180deg, var(--dark-surface) 0%, var(--dark-base) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--pad) 0;
  color: var(--white);
  overflow: hidden;
}
.inspect-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
  pointer-events: none;
}

/* ---------- HEAD ---------- */
.la-head {
  position: relative;
  margin-bottom: 30px;
}
.la-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.la-tag {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(24, 203, 203, 0.1);
  border: 1px solid rgba(24, 203, 203, 0.3);
  padding: 4px 8px;
  border-radius: 3px;
  font-weight: 600;
}
.la-tag--green {
  color: var(--green);
  background: rgba(95, 209, 122, 0.1);
  border-color: rgba(95, 209, 122, 0.3);
  font-variant-numeric: tabular-nums;
}
.la-tag--muted {
  color: var(--muted);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
}
.la-headline {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 20ch;
  text-wrap: balance;
  color: var(--white);
}
.la-headline__accent {
  color: var(--cyan);
}
.la-sub {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--muted-light);
  line-height: 1.5;
  max-width: 64ch;
}
.la-handwriting--note {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 30px;
  color: var(--coral);
  position: absolute;
  top: 24px;
  right: 20px;
  transform: rotate(-7deg);
  opacity: 0.95;
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- NUMBER CELLS ---------- */
.la-numbers {
  display: grid;
  /* Four equal cells + a wider trailing cell for L5 — the punchline metric.
     Asymmetry pulls the eye to the agent-native score without changing
     the cell internals. */
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 0;
}
.la-cell {
  position: relative;
  padding: 4px 8px;
  margin: 0 -8px;
  border-radius: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.la-cell:last-child {
  border-right: none;
}
.la-cell + .la-cell {
  padding-left: 22px;
}
.la-cell:not(:last-child) {
  padding-right: 22px;
}
.la-cell--pulse {
  animation: la-pulse 1.2s ease;
}
@keyframes la-pulse {
  0% {
    background: rgba(95, 209, 122, 0);
  }
  20% {
    background: rgba(95, 209, 122, 0.12);
  }
  100% {
    background: rgba(95, 209, 122, 0);
  }
}
.la-cell__num-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}
.la-cell__num {
  font-family: var(--font-body);
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.la-cell--accent .la-cell__num {
  color: var(--green);
}
.la-cell__demoted {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.la-cell__kicker {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 600;
}
.la-cell__sub {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 11.5px;
  color: var(--muted-light);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.la-cell__chip {
  display: inline-block;
  margin-top: 6px;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  /* Chip wraps inside its cell rather than bleeding into neighbours.
     Above 1080px columns are wide enough that wrap rarely fires;
     between 720px (mobile breakpoint) and 1080px the chip wraps to
     2 lines at the tightest widths. Acceptable trade vs the visible
     overflow that nowrap caused on common tablet widths. */
  max-width: 100%;
  white-space: normal;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}
.la-cell[data-state='verified'] .la-cell__chip {
  color: var(--green);
  background: rgba(95, 209, 122, 0.1);
  border: 1px solid rgba(95, 209, 122, 0.35);
}
.la-cell[data-state='ready'] .la-cell__chip {
  color: var(--cyan-bright);
  background: rgba(24, 203, 203, 0.08);
  border: 1px solid rgba(24, 203, 203, 0.32);
}
.la-cell[data-state='external'] .la-cell__chip,
.la-cell[data-state='ci'] .la-cell__chip {
  color: var(--amber);
  background: rgba(255, 184, 74, 0.08);
  border: 1px solid rgba(255, 184, 74, 0.3);
}
.la-cell[data-state='failed'] .la-cell__chip {
  color: var(--coral);
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.35);
}

/* ---------- CONSOLE CARD ---------- */
.la-console {
  position: relative;
  margin-top: 28px;
  background: linear-gradient(180deg, #08100f 0%, #050908 100%);
  border: 1px solid rgba(24, 203, 203, 0.18);
  border-radius: 10px;
  /* Dark-Depth Family deep drop + cyan-glow halo per DESIGN.md elevation:
     "deep, low-spread shadows that read as ambient occlusion" + cyan glow
     family signals "the brand wants you to act here". */
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, 0.85),
    0 0 80px rgba(24, 203, 203, 0.06),
    inset 0 0 100px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.la-console::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  opacity: 0.04;
  mix-blend-mode: overlay;
  z-index: 1;
}
.la-console > * {
  position: relative;
  z-index: 2;
}
.la-titlebar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  align-items: center;
}
.la-live {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.la-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  display: inline-block;
}
.la-live-label {
  color: var(--green);
  font-weight: 700;
}
.la-live--running .la-live-dot {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: la-blink 0.6s step-end infinite;
}
.la-live--running .la-live-label {
  color: var(--cyan);
}
@keyframes la-blink {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 0;
  }
}
.la-titlebar__name {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-align: center;
}
.la-titlebar__counter {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.la-titlebar__counter-value {
  color: var(--cyan);
}
.la-titlebar__counter--done .la-titlebar__counter-value {
  color: var(--green);
}

/* ---------- HISTORY ---------- */
.la-history {
  padding: 20px 26px 18px;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.65;
  color: #cfd6d8;
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.la-history::-webkit-scrollbar {
  width: 6px;
}
.la-history::-webkit-scrollbar-track {
  background: transparent;
}
.la-history::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}
.la-history::-webkit-scrollbar-thumb:hover {
  background: rgba(24, 203, 203, 0.35);
}
.la-history__intro {
  color: var(--muted);
  margin-bottom: 4px;
}
.la-history__intro-mark {
  color: var(--green);
}
.la-entry {
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}
.la-entry--check {
  padding: 14px 0 12px;
}
.la-entry--help {
  padding: 14px 0 10px;
}
.la-entry--error {
  padding: 10px 0 6px;
}
.la-entry--note {
  padding: 8px 0 0;
  border-top: none;
  color: var(--muted);
  font-size: 12.5px;
}
.la-entry__head {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.la-entry__prompt {
  color: var(--cyan);
  font-weight: 700;
  margin-right: 6px;
}
.la-entry__cmd {
  color: var(--white);
}
.la-entry__key {
  color: var(--muted);
  margin-left: 12px;
  font-size: 11px;
}
.la-entry__actions {
  display: flex;
  gap: 6px;
}
.la-lang-btn,
.la-copy-btn {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 3px 7px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 700;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.la-lang-btn:hover,
.la-copy-btn:hover {
  color: var(--cyan);
}
.la-lang-btn[data-active='1'] {
  color: var(--cyan);
}
.la-copy-btn--copied {
  color: var(--green);
  border-color: rgba(95, 209, 122, 0.4);
}
/* Touch devices: bump small inline buttons to 44pt min target. */
@media (pointer: coarse) {
  .la-lang-btn,
  .la-copy-btn {
    padding: 10px 14px;
    font-size: 11px;
    min-height: 44px;
    min-width: 44px;
  }
}
.la-entry__pre {
  margin: 6px 0 10px;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  border-left: 2px solid var(--cyan);
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 12.5px;
  color: #9fadb0;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-x: auto;
}
.la-entry__arrow {
  color: var(--cyan);
}
.la-entry__expect {
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
}
.la-entry__note {
  color: var(--green);
  font-weight: 600;
  font-size: 12.5px;
}
.la-entry__note.la-entry__note--failed {
  color: var(--coral);
}
.la-entry__external {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid rgba(24, 203, 203, 0.35);
  border-radius: 4px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.la-entry__external:hover,
.la-entry__external:focus-visible {
  color: var(--cyan-bright);
  background: rgba(24, 203, 203, 0.08);
  border-color: rgba(24, 203, 203, 0.6);
}
.la-entry__time {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.la-entry__time-value {
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.la-entry__help {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--muted);
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 12.5px;
  color: #9fadb0;
  line-height: 1.7;
  white-space: pre-wrap;
}
.la-entry__err-mark {
  color: var(--coral);
  font-weight: 700;
  margin-right: 6px;
}
.la-entry__err-text {
  color: var(--coral);
}

/* ---------- PROMPT ---------- */
.la-prompt {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: stretch;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.la-prompt__glyph {
  padding: 14px 14px 14px 22px;
  color: var(--cyan);
  font-weight: 700;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 14px;
  background: rgba(24, 203, 203, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}
.la-prompt__input {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 14px;
  color: var(--white);
  caret-color: var(--cyan);
  min-width: 0;
}
.la-prompt__input::placeholder {
  color: var(--muted);
}
.la-prompt__input:disabled {
  opacity: 0.6;
}
.la-prompt__btn {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 11px;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 14px 12px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: color 0.15s ease;
}
.la-prompt__btn:hover {
  color: var(--cyan);
}
.la-prompt__submit {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--dark-ink);
  background: var(--cyan);
  border: none;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.15s ease;
}
.la-prompt__submit:disabled {
  background: rgba(24, 203, 203, 0.25);
  cursor: default;
}

/* ---------- BUTTON ROW ---------- */
.la-btn-row {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.la-check-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  padding: 12px 12px 13px;
  text-align: left;
  color: var(--white);
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  cursor: pointer;
  transition: all 0.18s ease;
}
.la-check-btn:hover {
  background: rgba(24, 203, 203, 0.08);
  border-color: rgba(24, 203, 203, 0.35);
}
.la-check-btn[data-state='done'] {
  border-color: rgba(95, 209, 122, 0.35);
  background: rgba(95, 209, 122, 0.06);
}
.la-check-btn[data-state='running'] {
  background: rgba(24, 203, 203, 0.1);
}
.la-check-btn[data-state='failed'] {
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.06);
}
.la-check-btn[data-state='failed'] .la-check-btn__key,
.la-check-btn[data-state='failed'] .la-check-btn__status {
  color: var(--coral);
}
.la-check-btn__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.la-check-btn__key {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.14em;
  font-weight: 700;
}
.la-check-btn[data-state='done'] .la-check-btn__key {
  color: var(--green);
}
.la-check-btn__status {
  font-size: 10px;
}
.la-check-btn[data-state='done'] .la-check-btn__status {
  color: var(--green);
}
.la-check-btn[data-state='running'] .la-check-btn__status {
  color: var(--cyan);
}
.la-check-btn__label {
  font-size: 13px;
  margin-top: 4px;
  color: var(--white);
  font-weight: 500;
}
.la-check-btn[data-state='done'] .la-check-btn__label {
  color: var(--muted-light);
}
.la-runall-btn {
  grid-column: 1 / -1;
  border: 1px solid rgba(24, 203, 203, 0.55);
  background: rgba(24, 203, 203, 0.14);
  border-radius: 6px;
  padding: 12px 14px 13px;
  text-align: left;
  color: var(--cyan);
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  cursor: pointer;
  transition: all 0.18s ease;
}
.la-runall-btn:hover {
  box-shadow: 0 0 0 3px rgba(24, 203, 203, 0.12);
}
.la-runall-btn[data-state='done'] {
  border-color: rgba(95, 209, 122, 0.45);
  background: rgba(95, 209, 122, 0.1);
  color: var(--green);
  cursor: default;
  box-shadow: none;
}
.la-runall-btn__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.la-runall-btn__kicker {
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.18em;
  font-weight: 700;
}
.la-runall-btn[data-state='done'] .la-runall-btn__kicker {
  color: var(--green);
}
.la-runall-btn__count {
  font-size: 10px;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.la-runall-btn[data-state='done'] .la-runall-btn__count {
  color: var(--green);
}
.la-runall-btn__label {
  font-size: 13px;
  margin-top: 4px;
  font-weight: 600;
}

/* ---------- EXTERNAL VERIFIERS ---------- */
.la-verifiers {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.la-verifiers__label {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-right: 4px;
}
.la-verifier {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  text-decoration: none;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.la-verifier:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(24, 203, 203, 0.25);
}
.la-verifier__label {
  font-size: 12.5px;
  color: var(--cyan);
  font-weight: 600;
}
.la-verifier__sub {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- ORIGIN BAR (V1.5 OriginLine) ---------- */
.scramble-text {
  display: inline;
  transition: color 0.15s ease;
}
.inspect-origin {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 22px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--cyan);
  border-radius: 6px;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}
.inspect-origin.animate-in {
  opacity: 0;
  transform: translateY(8px);
}
.inspect-origin.animate-in.revealed {
  opacity: 1;
  transform: translateY(0);
}
.origin-prompt {
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
}
.inspect-origin .scramble-text {
  color: rgba(255, 255, 255, 0.85);
}
.origin-cursor {
  display: inline-block;
  width: 9px;
  height: 16px;
  background: var(--cyan);
  margin-left: 2px;
  flex-shrink: 0;
  animation: blink-cursor 1.2s step-end infinite;
  opacity: 0.7;
  vertical-align: text-bottom;
}
.la-handwriting--origin {
  margin-left: auto;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 28px;
  color: var(--coral);
  transform: rotate(-3deg);
  padding-left: 18px;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
@keyframes blink-cursor {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .origin-cursor,
  .la-live--running .la-live-dot {
    animation: none;
  }
  .la-cell--pulse {
    animation: none;
  }
  .la-check-btn,
  .la-runall-btn,
  .la-cell__chip,
  .la-prompt__btn,
  .la-prompt__submit,
  .la-copy-btn,
  .la-lang-btn,
  .la-verifier,
  .la-entry__external {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
  .proof-intro p {
    max-width: 48ch;
  }
  .proof-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .proof-strip {
    padding-top: 18px;
    margin-top: 0;
    border-radius: 0;
  }
  .proof-grid {
    gap: 20px;
  }
  .proof-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* ---------- CRT SCANLINE REVEAL ----------
   A thin cyan line sweeps top→bottom across the section in ~1.1s.
   Section content is staggered into place beneath it: each element
   fades in at the moment the scanline crosses its vertical position.
   The line itself is a pseudo-element (::after) sitting on
   .inspect-us; the line glows via box-shadow and disappears at the
   bottom. The cells get an extra box-shadow inset that contracts
   from fully cyan-filled to transparent — "values materialise out
   of the cyan haze" — synced to the scanline reaching their row.
   prefers-reduced-motion bypasses everything. */
.inspect-us.la-anim-ready .la-tags,
.inspect-us.la-anim-ready .la-headline,
.inspect-us.la-anim-ready .la-sub,
.inspect-us.la-anim-ready .la-handwriting--note,
.inspect-us.la-anim-ready .la-cell,
.inspect-us.la-anim-ready .la-console,
.inspect-us.la-anim-ready .la-verifiers,
.inspect-us.la-anim-ready .inspect-origin {
  opacity: 0;
  transform: translateY(8px);
  will-change: opacity, transform;
}
.inspect-us.la-anim-ready.la-revealed .la-tags,
.inspect-us.la-anim-ready.la-revealed .la-headline,
.inspect-us.la-anim-ready.la-revealed .la-sub,
.inspect-us.la-anim-ready.la-revealed .la-handwriting--note,
.inspect-us.la-anim-ready.la-revealed .la-cell,
.inspect-us.la-anim-ready.la-revealed .la-console,
.inspect-us.la-anim-ready.la-revealed .la-verifiers,
.inspect-us.la-anim-ready.la-revealed .inspect-origin {
  animation: la-section-reveal 0.55s cubic-bezier(0.25, 0.7, 0.3, 1) forwards;
}
/* Delays align with the scanline's vertical position. Scanline 2.0s top to
   bottom (linear-ish); each child fades in ~80ms after the line passes
   over its row. */
.inspect-us.la-anim-ready.la-revealed .la-tags {
  animation-delay: 150ms;
}
.inspect-us.la-anim-ready.la-revealed .la-handwriting--note {
  animation-delay: 220ms;
}
.inspect-us.la-anim-ready.la-revealed .la-headline {
  animation-delay: 290ms;
}
.inspect-us.la-anim-ready.la-revealed .la-sub {
  animation-delay: 460ms;
}
.inspect-us.la-anim-ready.la-revealed .la-cell:nth-child(1) {
  animation-delay: 720ms;
}
.inspect-us.la-anim-ready.la-revealed .la-cell:nth-child(2) {
  animation-delay: 810ms;
}
.inspect-us.la-anim-ready.la-revealed .la-cell:nth-child(3) {
  animation-delay: 900ms;
}
.inspect-us.la-anim-ready.la-revealed .la-cell:nth-child(4) {
  animation-delay: 990ms;
}
.inspect-us.la-anim-ready.la-revealed .la-cell:nth-child(5) {
  animation-delay: 1080ms;
}
.inspect-us.la-anim-ready.la-revealed .la-console {
  animation-delay: 1300ms;
}
.inspect-us.la-anim-ready.la-revealed .la-verifiers {
  animation-delay: 1700ms;
}
.inspect-us.la-anim-ready.la-revealed .inspect-origin {
  animation-delay: 1880ms;
}
@keyframes la-section-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* The scanline. 2px cyan line with a strong triple-shadow halo, sweeps
   top→bottom over 2s. Gentle ease-in-out so the motion reads as a
   deliberate scanner pass, not a quick flicker. */
.inspect-us.la-anim-ready::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(24, 203, 203, 0.6) 8%,
    var(--cyan) 50%,
    rgba(24, 203, 203, 0.6) 92%,
    transparent 100%
  );
  box-shadow:
    0 0 24px rgba(24, 203, 203, 0.7),
    0 0 48px rgba(24, 203, 203, 0.4),
    0 0 80px rgba(24, 203, 203, 0.18);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}
.inspect-us.la-anim-ready.la-revealed::after {
  animation: la-scanline 2s cubic-bezier(0.4, 0, 0.4, 1) forwards;
}
@keyframes la-scanline {
  0% {
    top: 0%;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    top: calc(100% + 2px);
    opacity: 0;
  }
}

/* Cells materialise out of a cyan fill rather than just fading. The inset
   shadow starts at cell-spanning spread and contracts to 0. 0.9s feels
   weighty enough to register at the slower scanline pace. */
.inspect-us.la-anim-ready.la-revealed .la-cell {
  animation:
    la-section-reveal 0.55s cubic-bezier(0.25, 0.7, 0.3, 1) forwards,
    la-cell-materialise 0.9s cubic-bezier(0.3, 0.6, 0.3, 1) forwards;
}
@keyframes la-cell-materialise {
  0% {
    box-shadow: inset 0 0 0 200px rgba(24, 203, 203, 0.85);
  }
  55% {
    box-shadow: inset 0 0 0 80px rgba(24, 203, 203, 0.22);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(24, 203, 203, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .inspect-us.la-anim-ready .la-tags,
  .inspect-us.la-anim-ready .la-headline,
  .inspect-us.la-anim-ready .la-sub,
  .inspect-us.la-anim-ready .la-handwriting--note,
  .inspect-us.la-anim-ready .la-cell,
  .inspect-us.la-anim-ready .la-console,
  .inspect-us.la-anim-ready .la-verifiers,
  .inspect-us.la-anim-ready .inspect-origin {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  .inspect-us.la-anim-ready::after {
    display: none;
  }
}

/* ---------- FOCUS RINGS ---------- */
.la-check-btn:focus-visible,
.la-runall-btn:focus-visible,
.la-prompt__btn:focus-visible,
.la-prompt__submit:focus-visible,
.la-copy-btn:focus-visible,
.la-lang-btn:focus-visible,
.la-verifier:focus-visible,
.la-cell:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 2px;
  border-radius: 4px;
}
.la-prompt__input:focus-visible {
  outline: none;
  box-shadow: inset 0 -2px 0 0 var(--cyan-bright);
}
.la-prompt:focus-within {
  background: rgba(24, 203, 203, 0.04);
}

@media (max-width: 720px) {
  .la-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    row-gap: 24px;
  }
  .la-cell {
    border-right: none;
    padding-left: 0;
    padding-right: 0;
  }
  .la-cell + .la-cell,
  .la-cell:not(:last-child) {
    padding-left: 0;
    padding-right: 0;
  }
  /* 5 cells in a 2-col grid leave a single orphan in the last row.
     Span the last cell so it occupies both columns instead of dangling. */
  .la-numbers > .la-cell:last-child {
    grid-column: span 2;
  }
  .la-cell__num {
    font-size: 36px;
  }
  .la-btn-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .la-btn-row > .la-check-btn:last-of-type {
    grid-column: span 2;
  }
  .la-runall-btn {
    grid-column: 1 / -1;
  }
  .la-titlebar {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }
  .la-titlebar__counter {
    grid-column: 1 / -1;
    text-align: left;
  }
  .la-history {
    padding: 16px 16px 14px;
    font-size: 12px;
  }
  /* Stack the prompt: input row on top, full-width RUN below.
     Submit on its own row removes the cramped-glyph + truncated-placeholder
     problem on phones. help/clear stay hidden (clear is a power-user gesture
     and live in the desktop chrome). */
  .la-prompt {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .la-prompt__glyph {
    grid-row: 1;
    grid-column: 1;
  }
  .la-prompt__input {
    grid-row: 1;
    grid-column: 2;
  }
  .la-prompt__btn {
    display: none;
  }
  .la-prompt__submit {
    grid-row: 2;
    grid-column: 1 / -1;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .la-handwriting--note {
    font-size: 24px;
    top: -8px;
    right: 8px;
  }
  .la-handwriting--origin {
    font-size: 22px;
    margin-left: 12px;
  }
  .inspect-origin {
    flex-wrap: wrap;
    padding: 14px 16px;
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .proof-rail {
    grid-template-columns: 1fr;
  }
  .la-handwriting--note {
    display: none;
  }
}
/* Improve CLS for hero background SVGs */
.hero-bg svg {
  will-change: transform, opacity;
}

/* =============================================
       404 ERROR PAGE
    ============================================= */
.error-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  padding: calc(var(--nav-h) + var(--pad)) var(--pad) var(--pad);
  text-align: center;
  gap: clamp(28px, 6vw, 56px);
}
.error-primary,
.error-lang .wrap {
  max-width: 760px;
}

.error-code {
  font-family: var(--font-head);
  font-size: clamp(72px, 18vw, 160px);
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
  margin: 0 0 0.25em;
  letter-spacing: -0.02em;
}

.error-headline {
  font-family: var(--font-head);
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.75em;
  line-height: 1.2;
}

.error-description {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 2em;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.error-lang {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: min(760px, 100%);
  margin-top: 0;
  padding-top: clamp(28px, 5vw, 48px);
}

@media (max-width: 768px) {
  .error-hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 40px) clamp(20px, 6vw, 32px) 56px;
  }
  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .error-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .error-lang {
    width: 100%;
  }
}

@media (max-width: 414px) {
  .error-code {
    font-size: clamp(64px, 24vw, 120px);
  }
  .error-headline {
    font-size: clamp(22px, 8vw, 30px);
  }
  .error-description {
    font-size: 15px;
  }
  .error-lang {
    padding-top: 24px;
  }
}

/* =============================================
       SCROLL PROGRESS (landing top bar)
    ============================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 103;
  pointer-events: none;
  animation: scroll-progress linear;
  animation-timeline: scroll();
}
@keyframes scroll-progress {
  to {
    transform: scaleX(1);
  }
}
@supports not (animation-timeline: scroll()) {
  .scroll-progress {
    display: none;
  }
}

/* =============================================
       BLOG
    ============================================= */

.blog-hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + 48px) 0 52px;
  text-align: center;
}

.blog-hero-sub {
  font-size: 16px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.01em;
}

.blog-intro {
  background: var(--off-white);
  padding: clamp(40px, 5vw, 56px) 0 0;
}

.blog-intro-inner {
  max-width: 720px;
  margin: 0 auto;
}

.blog-intro-text {
  font-size: 16px;
  color: var(--body-text);
  line-height: 1.7;
  margin: 0 0 16px;
}

.blog-intro-text:last-child {
  margin-bottom: 0;
}

.blog-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.blog-meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.blog-sep {
  margin: 0 6px;
}

/* Byline author link — same hero context as .blog-meta, scoped here so it
   doesn't leak to other surfaces (services cards, FAQ, footer). */
a.blog-author {
  color: inherit;
  text-decoration: none;
}
a.blog-author:hover,
a.blog-author:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
}

.blog-reading-time {
  font-variant-numeric: tabular-nums;
}

.blog-body {
  padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 8vw, 100px);
}

.blog-content {
  max-width: 680px;
  margin: 0 auto;
}

/* Blog typography */
.blog-content h2 {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--cyan);
}

.blog-content h3 {
  font-family: var(--font-head);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 700;
  color: var(--dark);
  margin: 32px 0 12px;
}

.blog-content h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin: 24px 0 10px;
}

.blog-content p {
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.blog-content a {
  color: var(--cyan-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.blog-content a:hover {
  color: var(--dark);
  text-decoration-color: var(--cyan);
}

.blog-content strong {
  color: var(--dark);
  font-weight: 600;
}

.blog-content ul,
.blog-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.blog-content li {
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.8;
  margin-bottom: 8px;
}

/* Blog tables */
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.blog-content thead th {
  background: var(--dark);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  padding: 10px 14px;
  letter-spacing: 0.02em;
}

.blog-content thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.blog-content thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.blog-content tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--light-gray);
  color: var(--body-text);
  line-height: 1.5;
}

.blog-content tbody tr:nth-child(even) {
  background: var(--off-white);
}

.blog-content th.text-right,
.blog-content td.text-right {
  text-align: right;
}

/* Blog blockquote */
.blog-content blockquote {
  border-left: 3px solid var(--cyan);
  background: var(--off-white);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.blog-content blockquote p {
  margin-bottom: 8px;
}

.blog-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Blog code */
.blog-content code {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 13px;
  background: var(--off-white);
  padding: 2px 6px;
  border-radius: 3px;
}

.blog-content pre {
  background: var(--dark);
  color: var(--off-white);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 24px 0;
}

.blog-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Blog figures (inline SVG diagrams) */
.blog-content figure {
  margin: 32px 0;
  max-width: 100%;
}

.blog-content figure svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.blog-content figcaption {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--cyan);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--body-text);
}

/* Blog glossary sidebar (collapsible <details> block for term definitions) */
.blog-content details.blog-glossary {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--off-white);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.blog-content details.blog-glossary summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--dark-text);
}

.blog-content details.blog-glossary[open] summary {
  margin-bottom: 12px;
}

.blog-content details.blog-glossary ul {
  margin: 0;
  padding-left: 20px;
}

.blog-content details.blog-glossary li {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.5;
}

/* Narrow viewports: SVG diagrams keep a legible minimum size and the figure scrolls horizontally.
   Below 720px the SVG would otherwise compress text to unreadable. Caption stays pinned left
   via position: sticky so it never disappears off-screen during horizontal scroll. */
@media (max-width: 720px) {
  .blog-content figure {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .blog-content figure svg {
    min-width: 720px;
    width: 720px;
    max-width: none;
  }

  .blog-content figcaption {
    position: sticky;
    left: 0;
    width: calc(100vw - 48px);
    box-sizing: border-box;
    background: var(--white);
  }
}

/* Blog CTA */
.blog-cta {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--light-gray);
}

/* Related reading — bottom-of-article spoke links. Echoes .blog-card from
   the listing page but tighter: card-grid, whole-card click target, chevron
   cue that nudges on hover. Sits between .blog-cta and .blog-author-bio.
   The block-level <h2> is intentionally NOT scoped under .blog-content so it
   keeps a section-label feel (uppercase eyebrow) rather than competing with
   article H2s (cyan left-bar). */
.blog-related {
  max-width: 680px;
  margin: 56px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--light-gray);
}

.blog-related h2 {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--mid-gray);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.blog-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .blog-related ul {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-related li {
  margin: 0;
  padding: 0;
}

.blog-related-card {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 14px;
  align-items: start;
  padding: 18px 20px;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .blog-related-card {
    transition: none;
  }
}

.blog-related-card:hover,
.blog-related-card:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 4px 18px rgba(24, 203, 203, 0.12);
}

.blog-related-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.blog-related-card-title {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  transition: color 0.2s ease;
}

.blog-related-card:hover .blog-related-card-title,
.blog-related-card:focus-visible .blog-related-card-title {
  color: var(--cyan-ink);
}

.blog-related-card-cue {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.35;
  color: var(--cyan-ink);
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.blog-related-card:hover .blog-related-card-cue,
.blog-related-card:focus-visible .blog-related-card-cue {
  transform: translateX(3px);
  color: var(--cyan-hover);
}

.blog-related-card-desc {
  grid-column: 1 / -1;
  grid-row: 2;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--body-text);
  line-height: 1.55;
  margin-top: 6px;
}

/* Author bio */
.blog-author-bio {
  max-width: 680px;
  margin: 32px auto 0;
  padding: 20px 0;
  border-top: 1px solid var(--light-gray);
  font-size: 14px;
  color: var(--mid-gray);
  line-height: 1.6;
}

.blog-author-bio a {
  color: var(--cyan-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Blog listing */
.blog-listing {
  padding: clamp(40px, 6vw, 64px) 0 clamp(60px, 8vw, 100px);
  background: var(--off-white);
}

.blog-listing-inner {
  max-width: 720px;
  margin: 0 auto;
}

.blog-card {
  display: block;
  padding: 32px;
  margin-bottom: 20px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .blog-card {
    transition: none;
  }
}

.blog-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 2px 16px rgba(24, 203, 203, 0.1);
}

.blog-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.blog-card:hover .blog-card-title {
  color: var(--cyan-ink);
}

.blog-card time {
  font-size: 12px;
  font-weight: 600;
  color: var(--mid-gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--dark);
  margin: 10px 0;
  transition: color var(--ease);
}

.blog-card p {
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.65;
  margin: 0;
}

.blog-card-read {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan-ink);
  transition: color var(--ease);
}

.blog-card:hover .blog-card-read {
  color: var(--cyan-hover);
}
