/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors — brand-tinted neutrals (blue accent hue) */
  --bg:            oklch(0.09 0.012 264);
  --surface:       oklch(0.16 0.014 264);
  --surface-2:     oklch(0.18 0.015 264);
  --surface-3:     oklch(0.06 0.01 264);

  /* Text */
  --text:          oklch(0.98 0.005 264);
  --text-85:       oklch(0.98 0.005 264 / 0.85);
  --text-38:       oklch(0.98 0.005 264 / 0.38);

  /* Accent */
  --accent:        oklch(0.52 0.22 264);
  --accent-text:   #7e8bff;            /* legibility-tuned accent for inline text on dark bg */

  /* Error */
  --error:         #f0a8a8;

  /* Form inputs */
  --input-bg:      oklch(0.98 0.005 264 / 0.05);
  --input-bg-focus: oklch(0.98 0.005 264 / 0.07);

  /* Borders */
  --border:        oklch(0.98 0.005 264 / 0.14);
  --border-dark:   oklch(0.35 0.02 264 / 0.4);
  --border-subtle: oklch(0.98 0.005 264 / 0.15);

  /* Buttons */
  --btn-bg:        oklch(0.98 0.005 264 / 0.12);
  --btn-bg-hover:  oklch(0.98 0.005 264 / 0.18);

  /* Focus */
  --focus-ring:    oklch(0.98 0.005 264 / 0.5);

  /* Typography */
  --font-ui:       'Inter', sans-serif;
  --font-serif:    'Cormorant Infant', serif;

  /* Grid */
  --grid-line:     rgba(255, 255, 255, 0.2);
  --grid-x-l:      var(--pad-x);
  --grid-x-r:      var(--pad-x);
  --grid-bottom:   70px;
  --grid-inset:    36px;

  /* Layout */
  --container:     1200px;
  --pad-x:         100px;
  --pad-x-tablet:  40px;
  --pad-x-mobile:  20px;
  --section-y:     120px;

  /* Nav height — keeps top grid line flush with nav bottom */
  --nav-h:         70px;

  /* Transitions */
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --dur:           0.4s;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Keyboard focus — visible on dark surfaces */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.faq-question:focus-visible,
.nav-hamburger:focus-visible,
.about-photo-col:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Skip to main content — accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 16px;
}

/* ============================================================
   TYPOGRAPHY PRESETS
   ============================================================ */
.label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-38);
}


/* ============================================================
   PILL ARROW BUTTON (white + black arrow circle)
   ============================================================ */
.btn-pill-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 100px;
  padding: 8px 6px 8px 15px;
  color: var(--bg);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-pill-arrow:hover  { background: #ffffff; }
.btn-pill-arrow:hover .pill-arrow-dot { background: var(--accent); }
.btn-pill-arrow:active { transform: scale(0.96); }

.btn-pill-lg {
  font-size: 15px;
  padding: 10px 8px 10px 20px;
}

.btn-pill-lg .pill-arrow-dot {
  width: 28px;
  height: 28px;
}

.btn-pill-lg .arrow-track {
  width: 56px;
  height: 28px;
  transform: translateX(-28px);
}

.btn-pill-lg .arrow-track svg {
  width: 12px;
  height: 12px;
  margin: 0 8px;
}

.pill-arrow-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  flex-shrink: 0;
  overflow: hidden;
  transition: background 0.2s ease;
}

/* Two-arrow track: slides on hover/unhover via CSS transition */
.arrow-track {
  display: flex;
  align-items: center;
  width: 48px;
  height: 24px;
  transform: translateX(-24px); /* show right arrow at rest */
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-pill-arrow:hover .arrow-track { transform: translateX(0); }

.arrow-track svg {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  color: var(--text);
  margin: 0 6.5px; /* centers each 11px svg in its 24px slot */
}

/* Nav CTA — gray frosted pill */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 100px;
  box-shadow: inset 0 0 6px 3px var(--btn-bg);
  padding: 7px 16px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--dur) var(--ease);
  white-space: nowrap;
}

.btn-nav-cta:hover {
  background: var(--btn-bg-hover);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  pointer-events: none;
  transition:
    background-color .5s ease,
    backdrop-filter .5s ease,
    -webkit-backdrop-filter .5s ease,
    border-color .5s ease,
    padding-top .5s ease;
}

.nav.is-scrolled {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  padding-top: 12px;
}

.nav-inner {
  display: flex;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 22px 20px;
  border-radius: 0;
  background: transparent;
  border: 1px solid transparent;
  pointer-events: auto;
  transition:
    width .55s cubic-bezier(0.4, 0, 0.2, 1),
    max-width .55s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius .55s cubic-bezier(.68, -.55, .265, 1.55),
    background-color .5s ease,
    border-color .5s ease,
    backdrop-filter .5s ease,
    -webkit-backdrop-filter .5s ease,
    box-shadow .5s ease;
}

.nav-inner.is-scrolled {
  height: 64px;
  width: min(62vw, 860px);
  max-width: 860px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.6);
  border-color: var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 1;
  margin-bottom: 4px;
}

.nav-logo-wordmark {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  position: relative;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-85);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: -6px -12px;
  border-radius: 20px;
  background: transparent;
  transition: background var(--dur) var(--ease);
}

.nav-links a:not(.active):hover { color: var(--text); transform: translateY(-1px); }
.nav-links a:not(.active):hover::before { background: rgba(255, 255, 255, 0.07); }
.nav-links a.active { color: var(--text); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 500;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}


.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 11px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}

.nav-mobile {
  display: none;
}

.nav-backdrop {
  display: none;
}

/* Hamburger → X */
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  padding: 100px var(--pad-x) 65px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* No top glow — hero is purely dark */

/* No top overlay — nav handles its own backdrop */

/* Bottom fade to black */
.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}



/* ── Hero grid frame ──
 * Decorative frame: top line at --nav-h, bottom line 70px from section bottom,
 * vertical rails at --pad-x. Suited to compact heroes (home, security).
 * Content-heavy heroes (booking tablet+, about tablet+) hide the bottom line
 * and fade vertical rails so stacked content never intersects the grid.
 */
.hero-grid-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - var(--grid-bottom)), transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black calc(100% - var(--grid-bottom)), transparent 100%);
}

.hero-grid-frame::before,
.hero-grid-frame::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--grid-line);
}

.hero-grid-frame::before { left:  var(--grid-x-l); }
.hero-grid-frame::after  { right: var(--grid-x-r); }

/* Full-width horizontal lines */
.hero-grid-h {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--grid-line);
}

.hero-grid-h-top { top:    var(--nav-h); }
.hero-grid-h-bot { bottom: var(--grid-bottom); }

/* Corner squares where the bottom line meets the vertical rails */
.hero-grid-h-bot::before,
.hero-grid-h-bot::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  background: var(--grid-line);
}
.hero-grid-h-bot::before { left: var(--grid-x-l); }
.hero-grid-h-bot::after  { left: calc(100% - var(--grid-x-r)); }

/* ── How We Work grid frame ──
 * Vertical rails fade in from the top — no abrupt edge at the
 * value-prop → HWW boundary.
 */
.hww-grid-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 100%);
}

.hww-grid-frame::before,
.hww-grid-frame::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--grid-line);
}

.hww-grid-frame::before { left:  var(--grid-x-l); }
.hww-grid-frame::after  { right: var(--grid-x-r); }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes hero-heading-in {
  from { opacity: 0; transform: translateY(100px) scale(1.1); }
  to   { opacity: 1; transform: translateY(0)     scale(1);   }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes nav-link-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes btn-in {
  from { opacity: 0; transform: translateY(35px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes word-blur-in {
  from { opacity: 0; filter: blur(8px); }
  to   { opacity: 1; filter: blur(0px); }
}


/* Eyebrow: pure opacity fade, no vertical movement (matches live site) */
.hero-eyebrow  { animation: hero-fade-in 0.7s ease 0.05s both; }
/* Headline: single-block spring rise, slight delay after eyebrow */
.hero-headline { animation: hero-heading-in 0.8s var(--ease) 0.18s both; }
/* Subtitle: words animated individually by JS; parent has no animation */
.hero-sub      { opacity: 0; }

/* Subtitle word spans injected by JS */
.hero-sub-word {
  display: inline-block;
  animation: word-blur-in 0.45s ease both;
}

/* Buttons animated individually to match Framer delays (0.8s / 1.0s) */
.hero-actions > a:first-child { animation: btn-in 0.75s var(--ease-out) 0.8s both; }
.hero-actions > a:last-child  { animation: btn-in 0.75s var(--ease-out) 1.0s both; }


.hero-text-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  padding-inline: clamp(16px, 3vw, 40px);
}

.hero-eyebrow {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-bolt {
  width: 22px;
  height: 16px;
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(40px, 5.83vw, 70px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-sub {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0em;
  color: var(--text-85);
  max-width: 480px;
}

.hero-sub em {
  font-style: italic;
  color: var(--text);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}



.btn-label-narrow { display: none; }

.btn-hero-border {
  font-size: 14px;
  padding: 10px 20px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 20px;
  box-shadow: inset 0 0 6px 3px var(--btn-bg);
  transition: background var(--dur) var(--ease);
}

.btn-hero-border:hover {
  background: var(--btn-bg-hover);
}

/* ============================================================
   VALUE PROP SECTION
   ============================================================ */
.value-prop {
  padding: var(--section-y) calc(var(--pad-x) + var(--grid-inset));
  background: var(--bg);
  position: relative;
}

.value-prop-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Image left, text right */
.value-prop-image { order: -1; }

.value-prop-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.value-prop-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 440px;
}

.value-prop-body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-85);
  max-width: 440px;
}

.value-prop-body em {
  font-style: italic;
  color: var(--text);
}

.value-prop-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 360px;
  justify-self: center;
}

.value-prop-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ============================================================
   HOW WE WORK
   ============================================================ */
.how-we-work {
  padding: var(--section-y) calc(var(--pad-x) + var(--grid-inset));
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.how-we-work-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 64px;
  text-align: center;
}

.section-header--spacious {
  margin-bottom: 48px;
}

.section-header--split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0 clamp(32px, 4vw, 64px);
  align-items: center;
  text-align: left;
  margin-bottom: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.section-header--split .section-header-title {
  /* occupies left column naturally */
}

.section-header--split .section-label {
  display: block;
  margin-bottom: 12px;
}

.section-header--split .section-intro {
  margin-top: 0;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-38);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.section-intro {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-85);
}

/* ── How We Work bento grid ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  height: 740px;
  gap: 8px;
}

/* Grid spans — source order: Define, Design, Iterate, Structure */
.step-card:nth-child(1) { grid-row: span 3; grid-column: span 2; }
.step-card:nth-child(2) { grid-row: span 2; }
.step-card:nth-child(3) { grid-row: span 3; }
.step-card:nth-child(4) { grid-row: span 2; grid-column: span 2; }

.step-card {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.step-number-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.step-num {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-38);
  letter-spacing: normal;
  flex-shrink: 0;
}

.step-title {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: normal;
  color: var(--text);
  line-height: 1.2;
}

.step-desc {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-85);
  max-width: 320px;
}

/* Visual area — fills remaining card height, bleeds to card edges */
.step-visual {
  flex: 1;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  margin: 14px -28px -28px;
  min-height: 60px;
}

.step-chart-svg,
.step-card-svg {
  width: 100%;
  height: 100%;
  display: block;
  flex-shrink: 0;
}


/* ============================================================
   CASE STUDIES
   ============================================================ */
.case-studies {
  padding: var(--section-y) calc(var(--pad-x) + var(--grid-inset));
  background: var(--bg);
}

.case-studies-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 0;
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-card-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
}

.case-card-desc {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-85);
  max-width: 65ch;
}

.case-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-text);
  text-decoration: none;
  margin-top: 4px;
  transition: gap 0.18s ease, opacity 0.18s ease;
}

.case-card-link:hover {
  gap: 10px;
  opacity: 0.85;
}

.case-card-link svg {
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.case-card-link:hover svg {
  transform: translateX(2px);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: var(--section-y) calc(var(--pad-x) + var(--grid-inset));
  background: var(--bg);
  position: relative;
}

.faq-grid-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.faq-grid-frame::before,
.faq-grid-frame::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--grid-line);
}

.faq-grid-frame::before { left:  var(--grid-x-l); }
.faq-grid-frame::after  { right: var(--grid-x-r); }

.faq-inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.faq-list {
  margin-top: 0;
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item {
  border-top: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
  transition: color var(--dur) var(--ease);
}

.faq-question:hover,
.faq-item.open .faq-question { color: var(--text-85); }

.faq-item.open .faq-icon { color: var(--text-85); }

.faq-icon {
  flex-shrink: 0;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  transition: color var(--dur) var(--ease);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-85);
  padding: 0 0 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.faq-item.open .faq-answer-inner {
  opacity: 1;
  transition: opacity 0.3s ease 0.12s;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 130px var(--pad-x) 150px;
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.cta-heading {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cta-sub {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-85);
  max-width: 580px;
}

/* ============================================================
   LOGO MARQUEE
   ============================================================ */
.logo-marquee {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 48px auto 0;
  overflow: hidden;
  padding: 8px 0;
  mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.logo-track {
  display: flex;
  gap: 48px;
  list-style: none;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 18s linear infinite;
}

.logo-track li {
  flex-shrink: 0;
}

.logo-track li img {
  height: 28px;
  width: auto;
  display: block;
  opacity: 1;
  transition: opacity var(--dur) var(--ease);
}

.logo-track li img:hover {
  opacity: 0.8;
}

@keyframes marquee-scroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  position: relative;
  border-top: 1px solid var(--border-subtle);
  padding: 40px var(--pad-x) 32px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}


.footer-brand-icon {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0.9;
}


.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-nav a {
  position: relative;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-85);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.footer-nav a::before {
  content: '';
  position: absolute;
  inset: -5px -10px;
  border-radius: 14px;
  background: transparent;
  transition: background var(--dur) var(--ease);
}

.footer-nav a:hover { color: var(--text); transform: translateY(-1px); }
.footer-nav a:hover::before { background: rgba(255, 255, 255, 0.06); }

.footer-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  margin-bottom: -4px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-38);
}

.footer-copy p { margin: 0; }

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-38);
}

.footer-legal a {
  color: inherit;
  transition: color var(--dur) var(--ease);
}

.footer-legal a:hover { color: var(--text-85); }

.footer-legal-sep {
  opacity: 0.5;
  user-select: none;
}

/* Icon only — hide email text */
.footer-email {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0;
  color: var(--text-85);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.footer-email:hover { color: var(--text); transform: translateY(-2px); }

.footer-email svg {
  width: 30px;
  height: 20px;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-eyebrow,
  .hero-headline,
  .hero-sub-word,
  .hero-actions > a,
  .reveal,
  .step-card.visible .chart-area,
  .step-card.visible .chart-line,
  .step-card.visible .chart-cursor,
  .step-card.visible .chart-dot-glow,
  .step-card.visible .chart-dot,
  .step-card.visible .dsgn-nav,
  .step-card.visible .dsgn-c1,
  .step-card.visible .dsgn-c2,
  .step-card.visible .dsgn-c3,
  .step-card.visible .dsgn-table,
  .step-card.visible .dsgn-handles,
  .step-card.visible .cyc-guide,
  .step-card.visible .cyc-a1,
  .step-card.visible .cyc-a2,
  .step-card.visible .cyc-a3,
  .step-card.visible .cyc-n1,
  .step-card.visible .cyc-n2,
  .step-card.visible .cyc-n3,
  .step-card.visible .str-sources,
  .step-card.visible .str-lines-in,
  .step-card.visible .str-hub,
  .step-card.visible .str-lines-out line,
  .step-card.visible .str-rows,
  .nav-mobile.open a,
  .nav-mobile.open .nav-mobile-cta,
  .sec-hero-heading,
  .sec-word,
  .sec-badge-pill,
  .sec-card-inner,
  .about-photo-col,
  .about-photo-img,
  .about-photo-label {
    animation: none !important;
    transition: none !important;
  }

  .sec-card:hover .sec-card-inner { transform: none; }
  .sec-card .sec-card-label { opacity: 1; transform: none; }

  .hero-sub { opacity: 1; }
  .hero-sub-word { filter: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  .chart-area,
  .chart-line,
  .chart-cursor,
  .chart-dot-glow,
  .chart-dot,
  .dsgn-nav, .dsgn-c1, .dsgn-c2, .dsgn-c3, .dsgn-table, .dsgn-handles,
  .cyc-guide, .cyc-arrow, .cyc-node,
  .str-sources, .str-lines-in, .str-hub, .str-rows {
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }

  .logo-track { animation: none; }
  .faq-answer { transition: none; }
  .faq-answer-inner { transition: none; }
}

/* ── Step-card graphic entrance animations ──────────────────── */

@keyframes svg-fade-in    { from { opacity: 0; }                          to { opacity: 1; } }
@keyframes svg-pop        { from { transform: scale(0);   opacity: 0; }   to { transform: scale(1);   opacity: 1; } }
@keyframes svg-node-in    { from { transform: scale(0.6); opacity: 0; }   to { transform: scale(1);   opacity: 1; } }
@keyframes svg-chart-draw { from { stroke-dashoffset: 1500; }             to { stroke-dashoffset: 0; } }
@keyframes svg-line-draw  { from { stroke-dashoffset: 200; opacity: 0; }  to { stroke-dashoffset: 0;  opacity: 1; } }

/* 1. Define — step chart */
.chart-baseline                  { opacity: 0; }
.chart-area                      { opacity: 0; }
.chart-line                      { stroke-dasharray: 1500; stroke-dashoffset: 1500; }
.chart-cursor                    { opacity: 0; }
.chart-dot-glow, .chart-dot      { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(0); }

.step-card.visible .chart-baseline { animation: svg-fade-in    0.5s ease                           0.15s both; }
.step-card.visible .chart-area     { animation: svg-fade-in    0.6s ease                           0.25s both; }
.step-card.visible .chart-line     { animation: svg-chart-draw 1.0s ease-out                        0.0s  both; }
.step-card.visible .chart-cursor   { animation: svg-fade-in    0.3s ease                           0.85s both; }
.step-card.visible .chart-dot-glow { animation: svg-pop        0.5s var(--ease-out) 0.80s both; }
.step-card.visible .chart-dot      { animation: svg-pop        0.5s var(--ease-out) 0.75s both; }

/* 2. Design — wireframe */
.dsgn-nav, .dsgn-c1, .dsgn-c2, .dsgn-c3, .dsgn-table, .dsgn-handles { opacity: 0; }

.step-card.visible .dsgn-nav     { animation: svg-fade-in 0.4s ease                           0.05s both; }
.step-card.visible .dsgn-c1      { animation: svg-fade-in 0.4s ease                           0.18s both; }
.step-card.visible .dsgn-c2      { animation: svg-fade-in 0.4s ease                           0.30s both; }
.step-card.visible .dsgn-c3      { animation: svg-fade-in 0.4s ease                           0.42s both; }
.step-card.visible .dsgn-table   { animation: svg-fade-in 0.4s ease                           0.55s both; }
.step-card.visible .dsgn-handles { animation: svg-pop     0.4s var(--ease-out) 0.72s both; }

/* 3. Iterate — cycle */
.cyc-guide                       { opacity: 0; }
.cyc-arrow                       { opacity: 0; }
.cyc-node  { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(0.65); }

.step-card.visible .cyc-guide  { animation: svg-fade-in 0.5s ease                           0.10s both; }
.step-card.visible .cyc-a1     { animation: svg-fade-in 0.4s ease                           0.25s both; }
.step-card.visible .cyc-a2     { animation: svg-fade-in 0.4s ease                           0.45s both; }
.step-card.visible .cyc-a3     { animation: svg-fade-in 0.4s ease                           0.65s both; }
.step-card.visible .cyc-n1     { animation: svg-node-in 0.5s var(--ease-out) 0.20s both; }
.step-card.visible .cyc-n2     { animation: svg-node-in 0.5s var(--ease-out) 0.40s both; }
.step-card.visible .cyc-n3     { animation: svg-node-in 0.5s var(--ease-out) 0.60s both; }

/* 4. Structure — data flow */
.str-sources                     { opacity: 0; }
.str-lines-in                    { opacity: 0; }
.str-hub   { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(0.5); }
.str-lines-out line              { stroke-dasharray: 200; stroke-dashoffset: 200; opacity: 0; }
.str-rows                        { opacity: 0; }

.step-card.visible .str-sources             { animation: svg-fade-in  0.5s ease                           0.10s both; }
.step-card.visible .str-lines-in            { animation: svg-fade-in  0.6s ease                           0.30s both; }
.step-card.visible .str-hub                 { animation: svg-node-in  0.6s var(--ease-out) 0.65s both; }
.step-card.visible .str-lines-out line      { animation: svg-line-draw 0.4s ease                           0.90s both; }
.step-card.visible .str-lines-out line:nth-child(2) { animation-delay: 0.96s; }
.step-card.visible .str-lines-out line:nth-child(3) { animation-delay: 1.02s; }
.step-card.visible .str-lines-out line:nth-child(4) { animation-delay: 1.08s; }
.step-card.visible .str-rows                { animation: svg-fade-in  0.5s ease                           1.05s both; }

/* ============================================================
   RESPONSIVE – LARGE DESKTOP (≥ 1400px)
   At this width, container + 2×100px padding = 1400px exactly.
   Above it, pad-x expands so rails & content stay locked to
   the container boundary instead of drifting to viewport edges.
   ============================================================ */
@media (min-width: 1400px) {
  :root {
    --pad-x: calc((100vw - var(--container)) / 2);
  }
}

/* ============================================================
   RESPONSIVE – TABLET (810px–1199px)
   ============================================================ */
@media (min-width: 810px) and (max-width: 1199px) {
  :root {
    --pad-x: var(--pad-x-tablet);
    --section-y: 90px;
    --nav-h: 66px;
  }

  .nav-inner { padding: 20px 16px; }

  .hero { padding: 100px var(--pad-x-tablet) 70px; min-height: 100vh; min-height: 100svh; }
  .hero-bolt-hero { width: 200px; height: 255px; right: 20px; }
  .hero-headline { font-size: clamp(36px, 5.2vw, 56px); }
  .hero-text-cluster { padding-inline: clamp(20px, 4vw, 36px); gap: 24px; }

  .value-prop-inner { grid-template-columns: 1fr; gap: 48px; }
  .value-prop-image { order: -1; max-width: 240px; margin: 0 auto; }
  .value-prop-text  { align-items: center; text-align: center; }
  .value-prop-heading,
  .value-prop-body  { max-width: 480px; }

  .cta-section { padding-inline: calc(var(--pad-x) + var(--grid-inset) + 48px); }

  .section-header { margin-bottom: 48px; }

  .steps-grid { grid-template-columns: 1fr 1fr; height: auto; grid-auto-rows: clamp(280px, 32vw, 340px); }
  .step-card:nth-child(1),
  .step-card:nth-child(2),
  .step-card:nth-child(3),
  .step-card:nth-child(4) { grid-row: span 1; grid-column: span 1; }
  .step-title { font-size: 16px; }

  .case-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .about-hero {
    justify-content: flex-start;
    padding-top: calc(var(--nav-h) + var(--grid-inset));
    padding-bottom: calc(var(--grid-bottom) + var(--grid-inset));
    padding-inline: calc(var(--pad-x) + var(--grid-inset) + 24px);
  }

  .about-hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: center;
    max-width: 680px;
    margin-inline: auto;
    width: 100%;
  }

  .about-text {
    max-width: none;
    text-align: left;
    align-items: flex-start;
  }

  .about-body {
    max-width: 38ch;
  }

  .about-photos {
    align-items: flex-start;
    flex-shrink: 0;
  }

  .about-photo-labels {
    position: absolute;
    top: calc(280px + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    min-height: 68px;
    margin-top: 0;
  }

  .booking-inner    { gap: 48px; }

  /* Booking — form sits inside full-width grid frame with clearance on all sides */
  .page-booking {
    --grid-inset: 32px;
  }

  .page-booking .booking-hero {
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + clamp(56px, 12svh, 80px));
    padding-bottom: calc(var(--grid-bottom) + var(--grid-inset));
    padding-inline: calc(var(--pad-x) + var(--grid-inset));
  }

  .page-booking .booking-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .page-booking .booking-intro {
    text-align: center;
    align-items: center;
    padding-inline: 8px;
  }

  .page-booking .booking-lead {
    max-width: 38ch;
  }

  /* About — bottom grid intersects photo strip on tablet */
  .about-hero .hero-grid-h-bot {
    display: none;
  }

  .about-hero .hero-grid-frame {
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 88%);
    mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 88%);
  }

}

/* ============================================================
   RESPONSIVE – MOBILE (< 810px)
   ============================================================ */
@media (max-width: 809px) {
  :root {
    --pad-x: var(--pad-x-mobile);
    --section-y: 72px;
    --nav-h: 68px;
  }

  .nav,
  .nav.is-scrolled {
    padding-top: 0;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    border-bottom-color: var(--border-subtle);
    pointer-events: auto;
    transition: none;
  }
  .nav-inner {
    width: 100%;
    max-width: none;
    padding: 21px var(--pad-x-mobile);
    border-radius: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    pointer-events: auto;
    transition: none;
  }
  .nav-inner.is-scrolled {
    width: 100%;
    border-radius: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Dropdown panel — same frosted glass as the nav bar */
  .nav-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 36px var(--pad-x-mobile) 34px;
    gap: 4px;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.22s var(--ease), transform 0.28s var(--ease);
  }
  .nav-mobile.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Nav links — sans-serif, centered, no dividers */
  .nav-mobile a:not(.nav-mobile-cta) {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 400;
    color: var(--text-85);
    padding: 13px 0;
    text-decoration: none;
    display: block;
    text-align: center;
    opacity: 0;
    transition: color var(--dur) var(--ease);
  }
  .nav-mobile a:not(.nav-mobile-cta):hover { color: var(--text); }
  .nav-mobile a:not(.nav-mobile-cta).active { color: var(--text); }

  /* Staggered entrance */
  .nav-mobile.open a:nth-child(1) { animation: nav-link-in 0.32s var(--ease) 0.04s both; }
  .nav-mobile.open a:nth-child(2) { animation: nav-link-in 0.32s var(--ease) 0.09s both; }
  .nav-mobile.open a:nth-child(3) { animation: nav-link-in 0.32s var(--ease) 0.14s both; }

  /* Book a call — frosted pill button, consistent with desktop */
  .nav-mobile-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--btn-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 100px;
    box-shadow: inset 0 0 6px 3px var(--btn-bg);
    padding: 10px 22px;
    margin-top: 22px;
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    opacity: 0;
    transition: background var(--dur) var(--ease);
  }
  .nav-mobile-cta:hover { background: var(--btn-bg-hover); }
  .nav-mobile.open .nav-mobile-cta { animation: nav-link-in 0.32s var(--ease) 0.20s both; }

  /* Backdrop */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: transparent;
    z-index: 49;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ease);
  }
  .nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding: 80px var(--pad-x-mobile) 64px;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-bolt-hero { display: none; }
  .hero-headline { font-size: clamp(32px, 8vw, 42px); }
  .hero-sub { line-height: 1.6; }
  .hero-text-cluster {
    gap: 16px;
    padding-inline: var(--grid-inset);
  }
  /* Fill full hero height so flex-start = top of screen */
  .hero-content {
    align-self: stretch;
    justify-content: flex-start;
    padding-top: clamp(80px, 15svh, 140px);
    gap: 0;
  }
  .hero-actions { margin-top: clamp(52px, 12vh, 96px); }
  .hero-stats { margin-top: 20px; }
  .hero-eyebrow { font-size: 19px; }
  .hero-sub { margin-top: 8px; font-size: 16px; }
  .hero-grid-h-bot { bottom: 64px; }

  .page-booking {
    --grid-bottom: 64px;
  }

  .page-booking .booking-hero {
    padding-inline: calc(var(--pad-x) + var(--grid-inset));
  }

  /* Hide grid lines below the hero on mobile — keep only the hero frame */
  .hww-grid-frame,
  .faq-grid-frame { display: none; }

  .section-header { margin-bottom: 36px; }
  .section-header--spacious { margin-bottom: 36px; }
  .section-header--split {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }
  .section-header--split .section-intro {
    padding-top: 0;
  }

  .value-prop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 720px;
    text-align: center;
  }

  .value-prop-text {
    align-items: center;
    gap: 20px;
  }

  .value-prop-heading {
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 600px;
  }

  .value-prop-body {
    line-height: 1.6;
    max-width: 480px;
  }

  .value-prop-image {
    order: -1;
    max-width: 180px;
    width: 100%;
    justify-self: auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    height: auto;
    grid-auto-rows: 300px;
  }

  .step-card:nth-child(1),
  .step-card:nth-child(2),
  .step-card:nth-child(3),
  .step-card:nth-child(4) { grid-row: span 1; grid-column: span 1; }
  .step-title { font-size: 15px; }
  .step-desc  { max-width: none; }

  .case-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .case-card { gap: 16px; }
  .case-card-body { gap: 10px; }
  .case-card-desc { font-size: 15px; line-height: 1.6; }
  .case-card-link { font-size: 14px; }

  .footer { padding: 40px var(--pad-x-mobile) 32px; }
  .footer-inner { flex-direction: column; align-items: center; gap: 24px; }
  .footer-center { align-items: center; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-copy { justify-content: center; text-align: center; }

  .cta-section { padding: 96px var(--pad-x-mobile) 112px; }

  /* Home page sections — reduce side padding to match CTA (20px) */
  .value-prop   { padding-inline: var(--pad-x-mobile); }
  .how-we-work  { padding-inline: var(--pad-x-mobile); }
  .case-studies { padding-inline: var(--pad-x-mobile); }
  .faq          { padding-inline: var(--pad-x-mobile); }
}

/* Tall phones (XR / 12 Pro / 14+) — push hero content lower so
   buttons sit closer to the bottom grid line.
   Excluded from narrow screens (< 375px) where content is already tall. */
@media (min-width: 375px) and (max-width: 809px) and (min-height: 720px) {
  .hero-content {
    padding-top: clamp(120px, 20svh, 190px);
  }
}

/* Very narrow phones (≤ 374px, e.g. 360px) — shrink heading font and
   tighten cluster padding to prevent single-word-per-line wrapping */
@media (max-width: 374px) {
  .hero-text-cluster {
    padding-inline: 4px;
  }
  .hero-actions {
    margin-top: clamp(64px, 14vh, 120px);
    padding-inline: 8px;
    flex-wrap: nowrap;
  }
  .btn-label-wide { display: none; }
  .btn-label-narrow { display: inline; }
}

/* ============================================================
   SECURITY PAGE — HERO
   ============================================================ */
.sec-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  padding-top: var(--nav-h);
}

.sec-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/security-hero-bg.png');
  background-size: cover;
  background-position: center 60%;
  z-index: 0;
}

.sec-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: 0 var(--grid-inset);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
}

@keyframes heading-glisten {
  from { background-position: 100% 50%; opacity: 1; }
  to   { background-position:   0% 50%; opacity: 1; }
}

.sec-hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 600;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  position: relative;
  animation: fade-up 0.7s var(--ease) 0.1s both;
}

/*
 * Glisten overlay: a duplicate text layer clipped to a sweeping white band.
 * Using ::after + content:attr() means the base heading is always normal colour
 * and the glisten is purely additive — one clean left→right pass, no dim valleys.
 * At bg-pos 100% (start) and 0% (end) the white band is outside the visible
 * gradient window, so the overlay is fully transparent before and after.
 */
.sec-hero-heading::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  white-space: inherit;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0)    0%,
    rgba(255,255,255,0)   34%,
    rgba(255,255,255,0.5) 44%,
    rgba(255,255,255,1)   50%,
    rgba(255,255,255,0.5) 56%,
    rgba(255,255,255,0)   66%,
    rgba(255,255,255,0)  100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  opacity: 0;
  animation: heading-glisten 2.5s ease-in-out 0.9s 1 forwards;
}

@media (min-width: 810px) {
  .sec-hero-heading {
    white-space: nowrap;
  }
}

@keyframes word-in {
  from { opacity: 0; filter: blur(3px); transform: translateY(6px); }
  to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
}

.sec-hero-sub {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-85);
  text-align: center;
  max-width: 52ch;
}

.sec-word {
  display: inline-block;
  animation: word-in 0.55s var(--ease) both;
}

.sec-word:nth-of-type(1)  { animation-delay: 0.30s; }
.sec-word:nth-of-type(2)  { animation-delay: 0.36s; }
.sec-word:nth-of-type(3)  { animation-delay: 0.42s; }
.sec-word:nth-of-type(4)  { animation-delay: 0.48s; }
.sec-word:nth-of-type(5)  { animation-delay: 0.54s; }
.sec-word:nth-of-type(6)  { animation-delay: 0.60s; }
.sec-word:nth-of-type(7)  { animation-delay: 0.66s; }
.sec-word:nth-of-type(8)  { animation-delay: 0.72s; }
.sec-word:nth-of-type(9)  { animation-delay: 0.80s; }
.sec-word:nth-of-type(10) { animation-delay: 0.86s; }
.sec-word:nth-of-type(11) { animation-delay: 0.92s; }
.sec-word:nth-of-type(12) { animation-delay: 0.98s; }
.sec-word:nth-of-type(13) { animation-delay: 1.04s; }
.sec-word:nth-of-type(14) { animation-delay: 1.10s; }
.sec-word:nth-of-type(15) { animation-delay: 1.16s; }

/* Mobile-only line breaks in sec-hero-sub */
.sec-br-mobile { display: none; }

/* Badge pill */
.sec-badge-pill {
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 11px 20px;
  margin-top: 64px;
  animation: fade-up 0.7s var(--ease) 0.5s both;
}

.sec-badge-pill img {
  display: block;
  object-fit: contain;
}

.sec-badge-pill img.badge-sq  { width: 48px; height: 48px; border-radius: 10px; }
.sec-badge-pill img.badge-wide { width: 82px; height: 53px; }

/* ── Standard section ── */
.sec-standard {
  background: var(--bg);
  padding: 120px calc(var(--pad-x) + var(--grid-inset)) 80px;
  position: relative;
}

.sec-standard-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
}

.sec-standard-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 700px;
  text-align: center;
}

.sec-standard-body {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  font-style: normal;
  line-height: 1.45;
  color: var(--text);
}

.sec-standard-body a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sec-standard-body a:hover { color: var(--text); }

.sec-highlight { color: var(--accent-text); }

/* Cards + text text row wrapper — sits as single flex item so no gap bleeds in */
.sec-cards-wrap { width: 100%; max-width: 920px; }

/* Three-card grid */
.sec-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-subtle);
}

.sec-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 0 56px;
  overflow: hidden;
  border-right: 1px solid var(--border-subtle);
  cursor: pointer;
}
.sec-card:last-child { border-right: none; }

/* Dot grid canvas — JS-driven radial wave reveal */
.sec-card-matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: blur(0.6px);
}

/* Centered icon + label group */
.sec-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform var(--dur) var(--ease-out);
}
.sec-card:hover .sec-card-inner {
  transform: translateY(-10px);
}

.sec-card-icon {
  width: 68px;
  height: 68px;
  color: var(--text-85);
  flex-shrink: 0;
  transition: color 0.25s ease;
}
.sec-card-icon svg { width: 100%; height: 100%; }
.sec-card-icon svg path,
.sec-card-icon svg rect,
.sec-card-icon svg circle { transition: fill 0.25s ease, stroke 0.25s ease; }

/* On hover: icon becomes solid filled white */
.sec-card:hover .sec-card-icon { color: #fff; }
.sec-card:hover .sec-card-icon svg {
  fill: currentColor;
  stroke: none;
}
/* Keep open paths (shackle, key blade) as strokes */
.sec-card:hover .sec-card-icon svg .icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* Label hidden by default, slides up on hover */
.sec-card-label {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s var(--ease) 0.1s, transform 0.3s var(--ease) 0.1s;
  white-space: nowrap;
}
.sec-card:hover .sec-card-label {
  opacity: 1;
  transform: translateY(0);
}

/* Body text row below the card grid */
.sec-cards-text {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.sec-card-desc {
  padding: 28px 32px 36px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-85);
}

/* Tablet — security cards (must follow base .sec-cards rules above) */
@media (min-width: 810px) and (max-width: 1199px) {
  .sec-cards-wrap {
    max-width: 820px;
    margin-inline: auto;
  }

  .sec-card {
    padding: 56px 16px 48px;
    min-height: 220px;
    box-sizing: border-box;
  }

  /* Keep tiles stable on tap — no hover lift or label pop-in */
  .sec-card:hover .sec-card-inner { transform: none; }
  .sec-card .sec-card-label {
    opacity: 1;
    transform: none;
  }

  .sec-card-desc {
    padding: 22px 16px 0;
    font-size: 14px;
    line-height: 1.55;
  }
}

/* Narrow tablet — stack card + description pairs */
@media (min-width: 810px) and (max-width: 959px) {
  .sec-cards-wrap {
    display: flex;
    flex-direction: column;
    max-width: 560px;
  }
  .sec-cards      { display: contents; }
  .sec-cards-text { display: contents; }

  .sec-card:nth-child(1) { order: 1; }
  .sec-card-desc:nth-child(1) { order: 2; }
  .sec-card:nth-child(2) { order: 3; }
  .sec-card-desc:nth-child(2) { order: 4; }
  .sec-card:nth-child(3) { order: 5; }
  .sec-card-desc:nth-child(3) { order: 6; }

  .sec-card {
    width: 100%;
    min-height: 0;
    height: 200px;
    padding: 0;
    margin-top: 20px;
    border: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
  }
  .sec-card:first-child { margin-top: 0; }
  .sec-card:last-child { border-right: 1px solid var(--border-subtle); }

  .sec-card-desc {
    padding: 14px 0 0;
    margin-top: 0;
  }
}

@media (max-width: 809px) {
  .sec-br-mobile { display: initial; }
  .sec-hero-content { padding-inline: calc(var(--pad-x) + 24px); }
  .sec-hero-heading { white-space: normal; }
  .sec-hero-sub { max-width: none; font-size: 16px; line-height: 1.6; }
  .sec-standard { padding: 60px var(--pad-x-mobile) 80px; }

  /* Interleave: card1, desc1, card2, desc2, card3, desc3 */
  .sec-cards-wrap { display: flex; flex-direction: column; }
  .sec-cards      { display: contents; }
  .sec-cards-text { display: contents; }

  .sec-card:nth-child(1) { order: 1; }
  .sec-card-desc:nth-child(1) { order: 2; }
  .sec-card:nth-child(2) { order: 3; }
  .sec-card-desc:nth-child(2) { order: 4; }
  .sec-card:nth-child(3) { order: 5; }
  .sec-card-desc:nth-child(3) { order: 6; }

  /* Card — compact fixed-height tile, icon + label centred inside */
  .sec-card {
    border: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    height: 210px;
    padding: 0;
    margin-top: 24px;
  }
  .sec-card:first-child { margin-top: 0; }
  /* Override the desktop :last-child rule that strips the right border */
  .sec-card:last-child { border-right: 1px solid var(--border-subtle); }

  /* Label always visible on touch */
  .sec-card .sec-card-label {
    opacity: 1;
    transform: none;
  }

  /* Desc — plain text, no box, sits directly below its card */
  .sec-card-desc {
    border: none;
    padding: 14px 4px 0;
    margin-top: 0;
    color: var(--text-85);
    font-size: 14px;
    line-height: 1.6;
  }
  .sec-badge-pill { gap: 20px; padding: 10px 16px; margin-top: 72px; }
  .sec-badge-pill img.badge-sq  { width: 36px; height: 36px; }
  .sec-badge-pill img.badge-wide { width: 62px; height: 40px; }
}

/* Narrow phones — suppress forced mid-line breaks so "as" can't
   land alone on its own line; also reduce content padding */
@media (max-width: 414px) {
  .sec-br-mobile { display: none; }
  .sec-hero-content { padding-inline: 24px; }
  .sec-hero-sub { font-size: 16px; text-wrap: balance; }
}
@media (max-width: 374px) {
  .sec-hero-content { padding-inline: 20px; }
}

/* ============================================================
   ABOUT US PAGE
   ============================================================ */

/* Full-viewport section — footer only visible on scroll */
.about-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + var(--grid-inset)) var(--pad-x) calc(var(--grid-bottom) + var(--grid-inset));
}

.about-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-heading {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about-body {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-85);
  max-width: 52ch;
}

/* Photo strip — vertically centered alongside mission text.
   Labels are absolutely positioned so they don't inflate the
   block height used for grid centering. */
.about-photos {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-photo-strip {
  /* 3 × 95px cols + 2 × 8px gaps = 301px (1px clipped by overflow, visually imperceptible) */
  width: 300px;
  height: 280px;
  display: flex;
  gap: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.about-photo-col {
  width: 95px;
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: width var(--dur) var(--ease-out);
}

.about-photo-col.pc-collapsed { width: 16px; }
/* expanded = 300 − 2×16 − 2×8 = 252px */
.about-photo-col.pc-expanded  { width: 252px; }

.about-photo-img {
  width: 300px;
  max-width: none;
  height: 280px;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform var(--dur) var(--ease-out);
}

/* offset = (strip − col) / 2 */
.about-photo-col         .about-photo-img { transform: translateX(-103px); } /* (300-95)/2  */
.about-photo-col.pc-expanded .about-photo-img { transform: translateX(-24px);  } /* (300-252)/2 */
.about-photo-col.pc-collapsed .about-photo-img { transform: translateX(-142px); } /* (300-16)/2  */

/* Name labels — absolutely positioned so they don't affect strip centering */
.about-photo-labels {
  position: absolute;
  top: calc(280px + 12px); /* strip height + small gap */
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  min-height: 68px;
}

.about-photo-label {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.25s ease 0.1s, transform 0.25s ease 0.1s;
  pointer-events: none;
}

.about-photo-label strong {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
}

.about-photo-label-sub {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.25);
}

.about-photo-label.pc-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .about-hero {
    padding-inline: max(36px, var(--pad-x));
  }

  .about-hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    justify-items: center;
  }
  .about-text {
    text-align: center;
    align-items: center;
  }
  .about-photos { align-items: center; gap: 12px; width: 100%; }

  /* Labels: in-flow below strip, always reserve space so hover reveals them.
     On real touch devices no hover fires so the reserved area stays empty;
     on a desktop narrowed to mobile width, hover still works correctly. */
  .about-photo-labels {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(300px, 100%);
    min-height: 68px;
    margin-top: 12px;
  }

  .about-photo-label,
  .about-photo-label strong,
  .about-photo-label-sub {
    white-space: normal;
    font-size: 14px;
  }

  .about-body--secondary { display: none; }

  /* Hide bottom gridline on mobile — it intersects content on small viewports */
  .about-hero .hero-grid-h-bot { display: none; }

  /* Photo strip on mobile */
  .about-photo-strip { width: min(300px, 100%); height: 250px; }
  .about-photo-col { height: 250px; width: 95px; }
  .about-photo-col.pc-expanded { width: 252px; }
  .about-photo-img { width: 300px; height: 250px; }
  .about-photo-col .about-photo-img { transform: translateX(-103px); }
  .about-photo-col.pc-expanded .about-photo-img { transform: translateX(-24px); }
  .about-photo-col.pc-collapsed .about-photo-img { transform: translateX(-142px); }
}

/* Mobile only — top-flush positioning (tablet uses desktop center via base rule) */
@media (max-width: 809px) {
  .about-hero {
    justify-content: flex-start;
    padding-top: calc(var(--nav-h) + clamp(56px, 12svh, 80px));
    padding-bottom: 56px;
  }
}

/* Very narrow phones (≤ 374px) — hide gridlines, tighten padding, shrink text */
@media (max-width: 374px) {
  .about-hero {
    padding-inline: 20px;
  }
  .about-hero .hero-grid-frame,
  .about-hero .hero-grid-h-top { display: none; }
  .about-text {
    padding-inline: 16px;
  }
}

@media (max-width: 359px) {
  .about-photo-label,
  .about-photo-label strong,
  .about-photo-label-sub { font-size: 12px; }
}

/* ============================================================
   BOOKING
   ============================================================ */

/* Footer sits below the fold until scroll (same pattern as About) */
.page-booking {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-booking main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.booking-hero {
  position: relative;
  flex: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + var(--grid-inset)) var(--pad-x) calc(var(--grid-bottom) + var(--grid-inset));
}

/* Desktop booking: keep content inside grid frame on short viewports */
@media (min-width: 1200px) and (max-height: 860px) {
  .page-booking .booking-hero {
    justify-content: flex-start;
    padding-top: calc(var(--nav-h) + var(--grid-inset));
    padding-bottom: calc(var(--grid-bottom) + var(--grid-inset));
  }
}

.booking-inner {
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.booking-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 2px;
}

.booking-heading {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.booking-lead {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-85);
  margin: 0;
  max-width: 65ch;
}

.booking-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-family: var(--font-ui);
  font-size: 13px;
}

.booking-meta-sep {
  color: var(--text-38);
  user-select: none;
}

.booking-email {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.booking-email:hover { color: var(--text-85); }

.booking-link {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-85);
  text-decoration: none;
  transition: color 0.15s ease;
}

.booking-link:hover { color: var(--text); }

.booking-panel {
  position: static;
}

.booking-form-wrap {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 0;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-form .form-field {
  gap: 8px;
}

.booking-form .form-input,
.booking-form .form-textarea,
.booking-form .form-select {
  padding: 11px 14px;
  font-size: 14px;
  border-radius: 3px;
  background: var(--surface);
  border-color: var(--border-subtle);
}

.booking-form .form-textarea {
  min-height: 96px;
  resize: none;
}

.booking-form .form-label {
  color: var(--text-38);
}


.booking-form .form-row {
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-required {
  color: var(--text-38);
  font-weight: 400;
}

.form-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-38);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.55)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select option {
  background: var(--surface);
  color: var(--text);
}

.form-error {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.45;
  color: var(--error);
  margin: 0;
}

.form-field.has-error .form-input,
.form-field.has-error .form-textarea,
.form-field.has-error .form-select {
  border-color: color-mix(in oklch, var(--error) 55%, transparent);
}

.booking-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  border: none;
  cursor: pointer;
  min-height: 44px;
}

.booking-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.booking-success {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 0;
}

.booking-success-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 10px;
}

.booking-success-body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-85);
  margin: 0 0 16px;
  max-width: 36ch;
}

.booking-success-mail {
  display: inline-flex;
  margin-top: 8px;
}

.booking-success-back {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-38);
}

.form-input,
.form-textarea {
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 11px 13px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-38);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--border);
  background: var(--input-bg-focus);
}

.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible,
.form-submit:focus-visible,
.booking-submit:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  margin-top: 4px;
  width: 100%;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.form-submit:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.form-submit:active { transform: scale(0.98); }

@media (max-width: 809px) {
  .page-booking .hero-grid-frame,
  .page-booking .hero-grid-h {
    display: none;
  }

  .page-booking .booking-hero {
    justify-content: flex-start;
    padding: calc(var(--nav-h) + clamp(56px, 12svh, 80px)) 36px 56px;
  }

  .booking-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 100%;
    align-items: start;
  }

  .booking-intro {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    padding-inline: 8px;
  }

  .booking-lead {
    max-width: 34ch;
  }

  .booking-form-wrap {
    padding-top: 24px;
  }

  .booking-success {
    padding-top: clamp(40px, 8svh, 72px);
    padding-bottom: clamp(24px, 5svh, 48px);
    text-align: center;
  }

  .booking-success:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   HERO STATS STRIP
   ============================================================ */
.hero-stats {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-38);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-up 0.6s var(--ease-out) 1.2s both;
}

.hero-stats-sep {
  opacity: 0.4;
}

@media (max-width: 809px) {
  .hero-stats { font-size: 11px; gap: 10px; }
}

/* ============================================================
   ABOUT APPROACH SECTION
   ============================================================ */
.about-approach {
  padding: clamp(100px, 12vw, 160px) calc(var(--pad-x) + var(--grid-inset)) 80px;
  background: var(--bg);
}

.about-approach-header {
  max-width: var(--container);
  margin: 0 auto clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.about-approach-eyebrow {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}

.about-approach-lead {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-85);
  max-width: 52ch;
  margin: 0;
}

.about-approach-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--border-subtle);
}

.about-approach-item {
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.about-approach-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.about-approach-num {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-38);
}

.about-approach-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}

.about-approach-body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-85);
  margin: 10px 0 0;
}

@media (min-width: 810px) and (max-width: 1199px) {
  .about-approach-header {
    grid-template-columns: 1fr 2fr;
    gap: 40px;
  }
  .about-approach-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .about-approach-item {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 32px;
    margin-bottom: 32px;
  }
  .about-approach-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 809px) {
  .about-approach-header {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }
  .about-approach-lead {
    max-width: 100%;
  }
  .about-approach-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .about-approach-item {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 32px;
    margin-bottom: 32px;
  }
  .about-approach-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

/* ============================================================
   SECURITY TECHNICAL DETAILS SECTION
   ============================================================ */
.sec-details {
  background: var(--bg);
  padding: 80px calc(var(--pad-x) + var(--grid-inset));
  border-top: 1px solid var(--border-subtle);
}

.sec-details-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 80px;
  align-items: start;
}

.sec-details-list {
  display: flex;
  flex-direction: column;
}

.sec-details-list li {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-85);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.sec-details-list li:first-child {
  border-top: 1px solid var(--border-subtle);
}

.sec-details-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 9px;
}

.sec-std-term {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  min-width: 150px;
  flex-shrink: 0;
}

.sec-std-desc {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-85);
}

@media (max-width: 809px) {
  .sec-std-term {
    min-width: 120px;
    font-size: 14px;
  }
  .sec-std-desc {
    font-size: 14px;
  }
}

@media (min-width: 810px) and (max-width: 1199px) {
  .sec-details-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sec-details { padding: 64px calc(var(--pad-x) + var(--grid-inset)); }
}

@media (max-width: 809px) {
  .sec-details {
    padding: 56px var(--pad-x-mobile);
  }
  .sec-details-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sec-details-list li {
    font-size: 14px;
    padding: 14px 0;
  }
}

/* ============================================================
   LEGAL PAGES (Privacy Policy, Legal Notices)
   ============================================================ */
.page-legal main {
  padding-bottom: 80px;
}

.legal-hero {
  padding: calc(var(--nav-h) + 56px) var(--pad-x) 48px;
  max-width: var(--container);
  margin: 0 auto;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 12px;
}

.legal-meta {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-38);
  margin: 0;
}

.legal-doc-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--pad-x) 96px;
}

.legal-doc {
  display: grid;
  gap: 40px 48px;
}

.legal-toc {
  font-family: var(--font-ui);
  font-size: 13px;
}

.legal-toc-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-38);
  margin: 0 0 12px;
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-toc a {
  color: var(--text-85);
  transition: color var(--dur) var(--ease);
}

.legal-toc a:hover { color: var(--text); }

.legal-body {
  max-width: 68ch;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-85);
}

.legal-body > p:first-of-type {
  margin-top: 0;
}

.legal-body p {
  margin: 0 0 1em;
}

.legal-body section {
  scroll-margin-top: calc(var(--nav-h) + 40px);
}

.legal-body section + section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.legal-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 1rem;
}

.legal-body h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
}

.legal-body ul {
  list-style: disc;
  margin: 0 0 1em;
  padding-left: 1.35em;
}

.legal-body li {
  margin-bottom: 0.35em;
}

.legal-body li:last-child { margin-bottom: 0; }

.legal-body a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body a:hover { color: var(--text); }

.legal-body strong {
  font-weight: 600;
  color: var(--text);
}

.legal-contact {
  margin: 0.5em 0 0;
  padding: 0;
  list-style: none;
}

.legal-contact li { margin-bottom: 0.25em; }

@media (min-width: 1024px) {
  .legal-doc {
    grid-template-columns: 200px 1fr;
    align-items: start;
  }

  .legal-toc {
    position: sticky;
    top: calc(var(--nav-h) + 48px);
  }
}

@media (max-width: 1023px) {
  .legal-toc ol {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}

@media (max-width: 809px) {
  .legal-hero {
    padding: calc(var(--nav-h) + 36px) var(--pad-x-mobile) 36px;
  }

  .legal-doc-wrap {
    padding: 40px var(--pad-x-mobile) 64px;
  }

  .legal-body {
    font-size: 14px;
  }

  .legal-body h2 {
    font-size: 1.35rem;
  }
}

/* ============================================================
   CASE STUDY PAGE  (.cs-*)  — editorial article layout
   ============================================================ */

.cs-page { padding-top: var(--nav-h); }

/* Shared editorial wrapper */
.cs-wrap {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--pad-x-mobile);
}

/* ── Masthead — same column as body, consistent left edge ── */
.cs-masthead {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--pad-x-mobile);
  padding-top: clamp(48px, 8vh, 88px);
  padding-bottom: 28px;
}

/* Breadcrumb line */
.cs-top-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-38);
  margin-bottom: 24px;
}
.cs-top-line-sep { opacity: 0.3; }
.cs-backlink {
  color: var(--text-38);
  transition: color var(--dur) var(--ease);
}
.cs-backlink:hover { color: var(--text-85); }

.cs-h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 16px;
}

.cs-lede {
  font-size: 15px;
  line-height: 1.68;
  color: var(--text-85);
  max-width: 64ch;
  margin-bottom: 0;
}

.cs-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-38);
  letter-spacing: 0.01em;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 20px;
}
.cs-meta-dot { opacity: 0.4; }

/* ── Stats — same 720px column, flush with masthead and body ── */
.cs-stats {
  display: flex;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--pad-x-mobile);
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.cs-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 24px;
}
.cs-stat:first-child { padding-left: 0; }
.cs-stat + .cs-stat { border-left: 1px solid var(--border-subtle); }
.cs-stat-num {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1;
  color: var(--text);
}
.cs-stat-label {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-38);
  max-width: 18ch;
}
.cs-illustrative {
  max-width: 720px;
  margin: 12px auto 0;
  padding-inline: var(--pad-x-mobile);
  font-size: 11px;
  font-style: italic;
  color: var(--text-38);
  opacity: 0.55;
}

/* ── Body sections ── */
.cs-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px var(--pad-x-mobile) 0;
}
.cs-section { margin-bottom: 80px; }
.cs-eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}
.cs-h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 18px;
}
.cs-body p {
  font-size: 15px;
  line-height: 1.74;
  color: var(--text-85);
  margin-bottom: 18px;
}
.cs-body p em { color: var(--text); font-style: italic; }

/* ── Platform chip ── */
.cs-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-38);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.cs-chip-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-text);
  box-shadow: 0 0 4px oklch(0.52 0.22 264 / 0.5);
}

/* ── Body bullet list ── */
.cs-bullets { margin: 4px 0 22px; }
.cs-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-85);
  margin-bottom: 9px;
}
.cs-bullets li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-38);
}

/* ── Transition sentence between narrative sections ── */
.cs-transition {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-38);
  font-style: italic;
  margin-top: 4px;
}

/* ── Capabilities deliverables grid ── */
.cs-deliverables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  margin: 28px 0 32px;
}
.cs-deliverable {
  background: var(--surface);
  padding: 20px 22px;
}
.cs-dl-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}
.cs-deliverable p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-85);
  margin: 0;
}

/* ── Implementation timeline ── */
.cs-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
  position: relative;
}
.cs-timeline::before {
  content: "";
  position: absolute;
  top: 4px; left: 6%; right: 6%;
  height: 1px;
  background: var(--border-subtle);
}
.cs-tl-step { display: flex; flex-direction: column; gap: 5px; position: relative; }
.cs-tl-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  position: relative; z-index: 1;
}
.cs-tl-label { font-size: 12px; font-weight: 500; color: var(--text); margin-top: 5px; }
.cs-tl-sub { font-size: 11px; color: var(--text-38); }

/* ── Before / After ── */
.cs-beforeafter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
.cs-ba-col {
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 18px 20px;
}
.cs-ba-before { background: var(--surface-3); }
.cs-ba-after { background: oklch(0.52 0.22 264 / 0.05); border-color: oklch(0.52 0.22 264 / 0.2); }
.cs-ba-head {
  display: block;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 14px;
}
.cs-ba-before .cs-ba-head { color: var(--text-38); }
.cs-ba-after .cs-ba-head { color: var(--accent-text); }
.cs-ba-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-85);
  margin-bottom: 9px;
}
.cs-ba-list li:last-child { margin-bottom: 0; }
.cs-ba-list li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 5px; height: 5px; border-radius: 50%;
}
.cs-ba-before .cs-ba-list li::before { background: oklch(0.98 0.005 264 / 0.22); }
.cs-ba-after .cs-ba-list li::before { background: var(--accent-text); opacity: 0.7; }

/* ── Figure + rendered UI mock ── */
.cs-figure { margin: 32px 0; }
.cs-mock {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  background: oklch(0.10 0.012 264);
  box-shadow: 0 20px 56px -16px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.03);
}
.cs-mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
}
.cs-mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.cs-mock-title { margin-left: 8px; font-size: 11px; color: var(--text-38); letter-spacing: 0.02em; }
.cs-mock-body { padding: 18px; }
.cs-mock-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cs-mock-name { font-size: 13px; font-weight: 500; color: var(--text); }
.cs-mock-list { font-size: 11px; color: var(--text-38); margin-left: auto; }
.cs-tag {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px;
}
.cs-tag-strong { color: var(--error); background: oklch(0.7 0.15 25 / 0.12); border: 1px solid oklch(0.7 0.15 25 / 0.25); }
.cs-tag-match { color: var(--accent-text); background: oklch(0.52 0.14 155 / 0.12); border: 1px solid oklch(0.52 0.14 155 / 0.25); width: 148px; flex-shrink: 0; text-align: center; }
.cs-mock-subtitle { font-size: 11px; color: var(--text-38); margin-bottom: 12px; letter-spacing: 0.02em; }
.cs-mock-divider { height: 1px; background: var(--border-subtle); margin: 0 -18px 14px; }
.cs-mock-row--last { margin-bottom: 0; }
.cs-mock-scan-footer { border-top: 1px solid var(--border-subtle); padding: 11px 18px 14px; }
.cs-mock-scan-bar-wrap { height: 4px; background: var(--input-bg); border-radius: 100px; overflow: hidden; margin-bottom: 8px; }
.cs-mock-scan-bar-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--accent), var(--accent-text)); }
.cs-mock-scan-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-38); }
.cs-mock-scan-matches { color: var(--accent-text); font-weight: 600; }
.cs-mock-check { color: var(--accent-text); font-weight: 600; min-width: 14px; }
/* ── Scanner SVG chart ── */
.cs-mock-svg-chart { display: block; width: 100%; height: 100px; margin: 4px 0 0; border-radius: 5px; overflow: hidden; background: oklch(0.08 0.01 264); }
.cs-mock-chart-legend { display: flex; gap: 18px; font-size: 10px; color: var(--text-38); margin: 5px 0 4px; letter-spacing: 0.02em; }
.cs-mock-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.cs-mock-legend-item::before { content: ''; display: inline-block; width: 18px; height: 1.5px; border-radius: 1px; }
.cs-legend-price::before { background: oklch(0.72 0.18 155); }
.cs-legend-resistance::before { background: oklch(0.75 0.12 60); opacity: 0.65; }
/* ── Two-column rationale pack card ── */
.cs-mock-header-row { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border-subtle); flex-wrap: wrap; }
.cs-mock-header-ticker { font-size: 13px; font-weight: 600; color: var(--text); }
.cs-mock-header-meta { font-size: 11px; color: var(--text-38); }
.cs-mock-two-col { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border-subtle); }
.cs-mock-col { padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.cs-mock-col + .cs-mock-col { border-left: 1px solid var(--border-subtle); }
.cs-mock-col-label { font-size: 9px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-38); margin-bottom: 2px; }
.cs-mock-metric-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; }
.cs-mock-metric-label { color: var(--text-38); }
.cs-mock-metric-val { color: var(--text); font-weight: 500; }
.cs-mock-file-row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-85); }
.cs-mock-file-ext { font-size: 9px; color: var(--text-38); background: var(--input-bg); padding: 2px 5px; border-radius: 3px; letter-spacing: 0.03em; font-weight: 500; }
.cs-mock-action-row { border-top: 1px solid var(--border-subtle); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; }
.cs-mock-download-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--accent-text); background: oklch(0.52 0.14 155 / 0.12); border: 1px solid oklch(0.52 0.14 155 / 0.3); border-radius: 5px; padding: 4px 10px; letter-spacing: 0.01em; }
.cs-mock-status-pill { font-size: 9.5px; color: var(--text-38); text-transform: uppercase; letter-spacing: 0.05em; }
/* ── Chart grid with sparklines ── */
.cs-mock-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cs-mock-chart-cell { display: flex; flex-direction: column; gap: 6px; background: oklch(0.08 0.01 264); border: 1px solid var(--border-subtle); border-radius: 5px; padding: 10px 11px 8px; }
.cs-mock-chart-cell svg { display: block; width: 100%; height: 36px; overflow: visible; }
.cs-mock-card-meta { display: flex; justify-content: space-between; align-items: center; }
.cs-mock-card-title { font-size: 9.5px; color: var(--text-38); letter-spacing: 0.02em; }
.cs-mock-card-value { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1; letter-spacing: -0.02em; }
.cs-mock-card-change { font-size: 9.5px; font-weight: 600; }
.cs-card-change--pos { color: oklch(0.72 0.18 155); }
.cs-card-change--neu { color: var(--text-38); }
.cs-mock-chart-more { font-size: 10.5px; color: var(--text-38); padding: 8px 10px; border-top: 1px solid var(--border-subtle); letter-spacing: 0.01em; margin-top: 6px; }
.cs-mock-conf { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cs-mock-conf-label { font-size: 11px; color: var(--text-38); min-width: 100px; }
.cs-mock-conf-track { flex: 1; height: 4px; border-radius: 100px; background: var(--input-bg); overflow: hidden; }
.cs-mock-conf-fill { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--accent), var(--accent-text)); }
.cs-mock-conf-val { font-size: 12px; font-weight: 600; color: var(--text); }
.cs-mock-judge {
  background: oklch(0.52 0.22 264 / 0.07);
  border: 1px solid oklch(0.52 0.22 264 / 0.2);
  border-radius: 7px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.cs-mock-judge-tag { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); }
.cs-mock-judge-text { font-size: 12.5px; line-height: 1.55; color: var(--text-85); margin-top: 7px; }
.cs-mock-log { display: flex; flex-direction: column; gap: 7px; }
.cs-mock-log + .cs-mock-judge { margin-top: 18px; }
.cs-mock-log-row { font-size: 11.5px; color: var(--text-85); display: flex; align-items: center; gap: 9px; }
.cs-mock-actor {
  font-size: 9px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px; min-width: 54px; text-align: center;
}
.cs-actor-system  { color: var(--text-38); background: var(--input-bg); }
.cs-actor-agent   { color: var(--accent-text); background: oklch(0.52 0.22 264 / 0.12); }
.cs-actor-analyst { color: var(--text); background: var(--btn-bg); }
.cs-figure-cap { font-size: 11.5px; line-height: 1.5; color: var(--text-38); margin-top: 12px; text-align: center; font-style: italic; }

/* ── Inline quote — horizontal rule treatment ── */
.cs-inlinequote {
  padding-block: 28px;
  padding-inline: 0;
  margin-block: 28px;
  margin-inline: 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.cs-inlinequote p {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 20px);
  font-style: italic;
  line-height: 1.52;
  color: var(--text);
  margin-bottom: 12px;
}
.cs-inlinequote cite {
  display: block;
  font-size: 11px;
  font-style: normal;
  color: var(--text-38);
  letter-spacing: 0.03em;
}

/* ── Results list — ruled rows ── */
.cs-results { margin: 10px 0 22px; }
.cs-results li {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-85);
  padding: 13px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.cs-results li:first-child { border-top: 1px solid var(--border-subtle); }
.cs-results li strong { color: var(--text); font-weight: 600; }

/* ── Pull quote ── */
.cs-body:not(.cs-body-continued) > .cs-section:last-child {
  margin-bottom: 0;
}
.cs-wrap:has(.cs-pullquote-mid) {
  margin-block: 56px;
}
.cs-pullquote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding-block: 56px;
  padding-inline: var(--pad-x-mobile);
}
/* Mid-page variant: tighter, acts as section bridge */
.cs-pullquote-mid {
  padding-block: 48px;
  padding-inline: var(--pad-x-mobile);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.cs-pullquote-mid p { font-size: clamp(18px, 2.2vw, 26px); }
.cs-pullquote p {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.26;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 14px;
}
.cs-pullquote cite {
  display: block;
  font-size: 12px;
  font-style: normal;
  color: var(--text-38);
}

/* Second body article segment — spacing comes from the mid-quote bridge */
.cs-body-continued { padding-top: 0; }

/* Tighter CTA top on case study pages */
.cta-section--tight { padding-top: 48px; }

/* ── Desktop ── */
@media (min-width: 810px) {
  .cs-wrap, .cs-illustrative { padding-inline: 0; }
  .cs-body { padding-inline: 0; }
  .cs-masthead { padding-inline: 0; }
  .cs-stats { padding-inline: 0; }
  .cs-pullquote { padding-inline: 0; }
  .cs-wrap:has(.cs-pullquote-mid) { margin-block: 48px; }
}

/* ── Mobile ── */
@media (max-width: 809px) {
  .cs-masthead { padding-top: 40px; padding-bottom: 20px; }
  .cs-lede { max-width: none; }
  .cs-stats { flex-wrap: wrap; padding-inline: var(--pad-x-mobile); }
  .cs-stat { flex: 0 0 calc(50% - 10px); padding: 12px 0; }
  .cs-stat:nth-child(odd) { border-left: none; }
  .cs-stat:nth-child(even) { border-left: 1px solid var(--border-subtle); padding-left: 16px; }
  .cs-stat:nth-child(1),
  .cs-stat:nth-child(2) { border-bottom: 1px solid var(--border-subtle); padding-bottom: 16px; }
  .cs-beforeafter { grid-template-columns: 1fr; }
  .cs-deliverables { grid-template-columns: 1fr; }
  .cs-body { padding-top: 44px; }
  .cs-section { margin-bottom: 56px; }
  .cs-pullquote:not(.cs-pullquote-mid) {
    padding-block: 40px;
    padding-inline: var(--pad-x-mobile);
  }
  .cs-pullquote-mid {
    padding-block: 40px;
    padding-inline: var(--pad-x-mobile);
  }
  .cs-wrap:has(.cs-pullquote-mid) { margin-block: 40px; }
}

@media (max-width: 374px) {
  .cs-stat { flex: 0 0 100%; border-left: none !important; padding-left: 0 !important; }
  .cs-stat:nth-child(1),
  .cs-stat:nth-child(2),
  .cs-stat:nth-child(3) { border-bottom: 1px solid var(--border-subtle); }
  .cs-stat:nth-child(4) { border-bottom: none; }
}
