/* Albanna Conwood — single-page editorial site (luxe) */

@font-face {
  font-family: "Helvetica Neue";
  src: local("Helvetica Neue"), local("Helvetica"), local("Arial");
}
@font-face {
  font-family: "Helvetica Arabic";
  src: url("assets/fonts/HelveticaNeueLT-Arabic-Roman.ttf") format("truetype"),
       local("Helvetica Neue LT Arabic"), local("Helvetica Arabic");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Athelas Arabic";
  src: url("assets/fonts/Athelas-Arabic-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Athelas Arabic";
  src: url("assets/fonts/Athelas-Arabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Teal scale ---- */
  --teal-900: #1d4f4a;
  --teal-800: #2d6e67;
  --teal-700: #37857d;
  --teal-600: #4a9c93;
  --teal-200: #9fd3cc;
  --teal-100: #e8f4f3;
  --teal-50:  #f0f8f7;

  /* ---- Neutral scale ---- */
  --neutral-950: #0f0e0d;
  --neutral-900: #1a1918;
  --neutral-800: #2c2b29;
  --neutral-700: #4a4947;
  --neutral-500: #6b6b6b;
  --neutral-400: #898b8d;
  --neutral-200: #d6d4cf;
  --neutral-100: #e8e6e0;
  --neutral-50:  #f6f4ef;

  /* ---- Stone/warm accent ---- */
  --stone-400: #a44a3f;

  /* ---- Semantic: brand ---- */
  --brand:       var(--teal-700);
  --brand-hover: var(--teal-800);
  --brand-deep:  var(--teal-900);
  --brand-soft:  rgba(55,133,125,0.10);
  --text-brand:  var(--teal-700);

  /* ---- Semantic: surfaces ---- */
  --surface-page:       #f2f3f4;
  --surface-paper:      #ffffff;
  --surface-charcoal:   var(--neutral-900);
  --surface-brand-deep: var(--teal-900);

  /* ---- Semantic: text ---- */
  --ink:        var(--neutral-900);
  --text-muted: var(--neutral-500);

  /* ---- Semantic: borders ---- */
  --border-subtle: var(--neutral-200);
  --border-line:   rgba(26,25,24,0.10);
  --border-strong: rgba(26,25,24,0.18);

  /* ---- Shadows (Apple-soft) ---- */
  --shadow-sm: 0 1px 3px rgba(26,25,24,0.06), 0 1px 2px rgba(26,25,24,0.04);
  --shadow-md: 0 4px 16px -2px rgba(26,25,24,0.10), 0 2px 6px rgba(26,25,24,0.06);
  --shadow-lg: 0 12px 40px -8px rgba(26,25,24,0.14), 0 4px 12px rgba(26,25,24,0.06);
  --shadow-xl: 0 24px 64px -12px rgba(26,25,24,0.20), 0 8px 24px rgba(26,25,24,0.08);

  /* ---- Radius ---- */
  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* ---- Type tracking ---- */
  --tracking-widest: 0.24em;
  --tracking-wide:   0.16em;

  /* ---- Backward-compat aliases (cascade still works) ---- */
  --light:        var(--surface-page);
  --paper:        var(--surface-paper);
  --emerald:      var(--brand);
  --emerald-deep: var(--brand-hover);
  --emerald-soft: var(--brand-soft);
  --pale-brown:   var(--stone-400);
  --steel:        var(--text-muted);
  --black:        var(--ink);
  --charcoal:     var(--surface-charcoal);
  --bg:           var(--surface-page);
  --ink-muted:    var(--text-muted);
  --line:         var(--border-line);
  --line-strong:  var(--border-strong);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --t-fast: 200ms;
  --t-med:  360ms;
  --t-slow: 700ms;

  /* ---- Fonts ---- */
  --sans:           "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif:          "Source Serif 4", "Source Serif Pro", Athelas, Georgia, serif;
  --arabic:         "Helvetica Arabic", "Helvetica Neue Arabic", "Arial Unicode MS", Tahoma, system-ui, sans-serif;
  --arabic-display: "Athelas Arabic", "Noto Naskh Arabic", "Amiri", serif;

  /* ---- Layout ---- */
  --page-max:      1360px;
  --gutter:        56px;
  --gutter-mobile: 24px;
  --topbar-h:      100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--emerald); color: var(--light); }

html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============ TOP BAR ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 95%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
}
.topbar__brand img { height: 52px; width: auto; }
.brand-logo--white { display: none; }
.brand-logo--mark { display: none; }
.brand-logo--mark-white { display: none; }
.topbar__nav {
  display: flex; justify-content: center;
  gap: 44px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
}
.topbar__nav a {
  position: relative; padding: 7px 0; color: var(--ink);
  transition: color var(--t-fast);
  white-space: nowrap;
  min-width: 112px; text-align: center;
}
.topbar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 0.5px; background: var(--emerald);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
html[dir="rtl"] .topbar__nav a::after { transform-origin: right; }
.topbar__nav a:hover { color: var(--emerald); }
.topbar__nav a:hover::after { transform: scaleX(1); }
.topbar__nav a.active { color: var(--emerald); }
.topbar__nav a.active::after { transform: scaleX(1); }

.topbar__inner { transition: padding var(--t-med) var(--ease); }
.topbar--scrolled .topbar__inner { padding-top: 16px; padding-bottom: 16px; }
.topbar--scrolled { box-shadow: 0 1px 0 var(--line), 0 4px 24px rgba(34,31,32,0.07); }

.topbar__actions {
  display: inline-flex; align-items: center; gap: 20px; justify-self: end;
}
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0;
  height: 36px;
  border: none;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
}
.lang-toggle button {
  background: transparent; border: 0; padding: 0 9px;
  font: inherit; font-size: inherit; color: var(--ink-muted); cursor: pointer;
  letter-spacing: inherit;
  display: inline-flex; align-items: center;
  transition: color var(--t-fast), font-weight var(--t-fast);
}
.lang-toggle button[lang="ar"] {
  font-family: inherit;
  letter-spacing: 0.12em;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button.active { color: var(--ink); font-weight: 600; }
.lang-toggle__sep { color: var(--ink-muted); opacity: 0.35; font-size: 10px; user-select: none; }

@keyframes pill-shine {
  0%   { transform: translateX(-150%) skewX(-15deg); }
  25%  { transform: translateX(260%) skewX(-15deg); }
  100% { transform: translateX(260%) skewX(-15deg); }
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 18px 0 16px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid var(--brand);
  position: relative;
  overflow: hidden;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.contact-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.24) 50%, transparent 100%);
  transform: translateX(-150%) skewX(-15deg);
  animation: pill-shine 6s ease-in-out 2s infinite;
  pointer-events: none;
}
html[dir="rtl"] .contact-pill::before { animation-direction: reverse; }
.contact-pill:hover {
  background: var(--brand-hover, #3a6560);
  border-color: var(--brand-hover, #3a6560);
  color: #fff;
}
.contact-pill__dot { display: none; }
.contact-pill__arrow {
  width: 12px; height: 1px; background: currentColor;
  position: relative;
}
.contact-pill__arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 5px; height: 5px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* Hamburger — hidden on desktop, bare icon on mobile */
.topbar__burger {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; gap: 6px;
  background: none; border: 0; border-radius: 0;
  cursor: pointer; flex-shrink: 0;
}
.topbar__burger:hover { opacity: 0.7; }
.topbar__burger span {
  display: block; width: 17px; height: 1px; background: var(--ink);
  transition: transform 0.32s var(--ease), opacity 0.22s, width 0.28s var(--ease);
}
.topbar--over .topbar__burger span { background: rgba(242,243,244,0.9); }
.topbar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.topbar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.topbar__scrim { display: none; }

@media (max-width: 1240px) {
  .topbar__nav { gap: 28px; }
  .topbar__inner { gap: 28px; }
}
@media (max-width: 980px) {
  .topbar__nav { display: none; }
  .topbar__inner { grid-template-columns: auto auto; gap: 16px; padding: 18px var(--gutter-mobile); justify-content: space-between; }
  .topbar__brand img { height: 44px; }
  .topbar__actions { gap: 14px; }
  .contact-pill { display: none; }
  .topbar__burger { display: inline-flex; }

  /* Clean light dropdown */
  .topbar__nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 3;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(242,243,244,0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(34,31,32,0.09);
    box-shadow: 0 8px 24px rgba(34,31,32,0.09);
    padding: 0;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }
  .topbar__nav.is-open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0);
  }
  /* Links — light dropdown (non-hero pages) */
  .topbar__nav a {
    display: flex; align-items: center; justify-content: center;
    padding: 18px var(--gutter-mobile, 24px);
    font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid rgba(34,31,32,0.05);
    position: relative;
    transition: color 0.18s, background 0.18s;
  }
  .topbar__nav a:hover {
    color: var(--emerald);
    background: rgba(55,133,125,0.04);
  }
  .topbar__nav a.active {
    color: var(--emerald);
    background: rgba(55,133,125,0.06);
  }
  /* Dark dropdown when menu opens over the hero */
  .topbar--over .topbar__nav {
    background: rgba(20,18,19,0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: rgba(255,255,255,0.18);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  }
  .topbar--over .topbar__nav a {
    color: rgba(242,243,244,0.80);
    border-bottom-color: rgba(255,255,255,0.07);
  }
  .topbar--over .topbar__nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.07);
  }
  .topbar--over .topbar__nav a.active {
    color: #fff;
    background: rgba(55,133,125,0.15);
  }
  /* Staggered entrance when menu opens */
  @keyframes mnav-link-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .topbar__nav.is-open a {
    animation: mnav-link-in 0.32s var(--ease) both;
  }
  .topbar__nav.is-open a:nth-child(1) { animation-delay: 0.07s; }
  .topbar__nav.is-open a:nth-child(2) { animation-delay: 0.14s; }
  .topbar__nav.is-open a:nth-child(3) { animation-delay: 0.21s; }
  /* Emerald left accent bar — scales in on hover / active */
  .topbar__nav a::before {
    display: block;
    content: '';
    position: absolute;
    left: 0; top: 22%; bottom: 22%;
    width: 2px;
    background: var(--emerald);
    border-radius: 1px;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.2s var(--ease), opacity 0.2s;
    opacity: 0;
  }
  .topbar__nav a:hover::before,
  .topbar__nav a.active::before {
    transform: scaleY(1);
    opacity: 1;
  }
  .topbar__nav a::after { display: none; }
  .topbar__nav a:last-child { border-bottom: 0; }
  html[dir="rtl"] .topbar__nav a { letter-spacing: 0; }
  html[dir="rtl"] .topbar__nav a::before { left: auto; right: 0; border-radius: 1px 0 0 1px; }

  /* Scrim */
  .topbar--menu .topbar__scrim {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    height: 100vh; z-index: 2; background: rgba(34,31,32,0.10);
  }
}

section[id] { scroll-margin-top: 72px; }

/* ============ RTL ADJUSTMENTS ============ */
html[dir="rtl"] body { font-family: var(--arabic); }
html[dir="rtl"] .topbar__nav { font-family: var(--arabic); font-size: 15px; letter-spacing: 0; }
html[dir="rtl"] .hero__stats {
  border-left: 0;
  padding-left: 0;
  border-right: 1px solid var(--line);
  padding-right: 40px;
  justify-self: start;
}
html[dir="rtl"] .section-eyebrow,
html[dir="rtl"] .hero__eyebrow,
html[dir="rtl"] .hero__stat-lbl,
html[dir="rtl"] .trust-strip__lbl {
  font-family: var(--arabic);
  letter-spacing: 0;
  text-transform: none;
}
html[dir="rtl"] .contact-pill {
  font-family: var(--arabic);
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
  font-weight: 600;
}
html[dir="rtl"] .contact-pill__arrow { transform: scaleX(-1); }
/* LTR values (phone/email) keep their reading order but must anchor to the
   right edge of the body column in RTL, next to their label. */
html[dir="rtl"] .ccard__val { text-align: right; }
/* Mirror the arrow chip so it points toward the reading direction */
html[dir="rtl"] .ccard__arrow { transform: scaleX(-1); }
html[dir="rtl"] .ccard:not(.ccard--primary):hover .ccard__arrow { transform: scaleX(-1) translateX(2px); }
html[dir="rtl"] .ccard--primary:hover .ccard__arrow { transform: scaleX(-1) translateX(2px); }

/* ---- RTL directional element inversions ---- */
/* Carousel prev/next chevrons: flip all arrow SVGs so the icons
   point in the correct reading direction.
   - prev button: plain Chevron (←) → flipped → (→) = "back" in RTL ✓
   - next button: Chevron wrapped in scaleX(-1) span (→) → svg flipped
     back to (←) by CSS, then span flips it to ← = "forward" in RTL ✓ */
html[dir="rtl"] .cf-arrow svg { transform: scaleX(-1); }

/* Eyebrows: flex rows already flow right-to-left under dir="rtl", which puts
   the rosette / rule bar at the reading-start (right) automatically. Never add
   row-reverse here: it re-flips the row back to LTR and packs it left. */
html[dir="rtl"] .hero__eyebrow .icon { transform: scaleX(-1); }
html[dir="rtl"] .ccard__cta,
html[dir="rtl"] .ccard__lbl,
html[dir="rtl"] .step__title,
html[dir="rtl"] .pcard__stat dt,
html[dir="rtl"] .discipline__tag,
html[dir="rtl"] .discipline__title {
  font-family: var(--arabic);
  letter-spacing: 0;
  text-transform: none;
}
html[dir="rtl"] .pcard__loc,
html[dir="rtl"] .step__title,
html[dir="rtl"] .discipline__title,
html[dir="rtl"] .section-title,
html[dir="rtl"] .contact__title,
html[dir="rtl"] .about-opening {
  font-family: var(--arabic);
}
html[dir="rtl"] .section-title .it,
html[dir="rtl"] .contact__title .it,
html[dir="rtl"] .about-opening .em {
  font-family: var(--arabic);
  font-style: normal;
  font-weight: 400;
}
.value__ar {
  font-family: var(--arabic);
  font-weight: 600;
  font-size: 1.15em;
  margin-inline-end: 4px;
}
html[dir="rtl"] .section-sub { font-family: var(--arabic); font-style: normal; letter-spacing: 0; }
html[dir="rtl"] .value__title { font-family: var(--arabic); }
html[dir="rtl"] .value__body  { font-family: var(--arabic); font-style: normal; }
html[dir="rtl"] .discipline__body { font-family: var(--arabic); letter-spacing: 0; font-size: 15px; line-height: 1.78; }
html[dir="rtl"] .discipline__num  { letter-spacing: 0; }
html[dir="rtl"] .discipline__title { min-height: 0; font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; line-height: 1.4; margin-bottom: 14px; }
html[dir="rtl"] .discipline__tag  { font-family: var(--arabic); font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; }
html[dir="rtl"] .footer__copy { font-family: var(--arabic); letter-spacing: 0; text-transform: none; }
.contact__rosette img { width: 100%; height: auto; }

/* ============ TYPE HELPERS ============ */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 700;
  letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: var(--text-brand);
}
.section-eyebrow .rule {
  display: inline-block; width: 28px; height: 1.5px;
  background: var(--brand); flex-shrink: 0;
}

.section-head {
  max-width: var(--page-max);
  margin: 0 auto 80px;
  padding: 0 var(--gutter);
  display: grid; gap: 24px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  font-weight: 400;
  max-width: 22ch;
  padding-top: 0.14em;
  padding-bottom: 0.2em;
}
.section-title .it { font-style: italic; color: var(--text-brand); font-weight: 400; }
.section-sub {
  font-family: var(--serif); font-weight: 450;
  font-size: 17px; line-height: 1.65;
  color: var(--ink-muted);
  max-width: 56ch;
}

/* ============ HERO (cinematic, full-bleed) ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 0 0 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--black);
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: -8% 0 0 0;
  z-index: -2;
  will-change: transform;
  transform: translate3d(0, var(--py, 0), 0);
}
.hero__img {
  width: 100%; height: 112%;
  object-fit: cover;
  object-position: 50% 25%;
  display: block;
  /* Pre-processed B&W — light touch only */
  filter: brightness(0.90) contrast(1.05);
  animation: hero-drift 34s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
@keyframes hero-drift {
  0%   { transform: scale(1.1) translate(0.8%, -0.4%); }
  100% { transform: scale(1.04) translate(-0.4%, 0.2%); }
}

/* ── Hero overlay animations ─────────────────────────────────────────────
   .hero__scrim — static gradient vignette with a slow "breath" pulse.
   ──────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__img { animation: none; }
}

/* Scrim: static gradient vignette + slow breathing pulse */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top,
      rgba(20,18,19,0.92) 0%,
      rgba(20,18,19,0.30) 40%,
      rgba(20,18,19,0.06) 60%,
      rgba(20,18,19,0.58) 100%),
    radial-gradient(130% 100% at 68% 30%, transparent 35%, rgba(20,18,19,0.50) 100%);
  animation: hero-scrim-breath 12s ease-in-out infinite;
}
@keyframes hero-scrim-breath {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.82; }
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 150px var(--gutter) 0;
  color: var(--light);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 700;
  letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.hero__eyebrow .icon { color: var(--teal-200); flex-shrink: 0; }

.hero__title {
  font-family: var(--serif);
  font-size: clamp(56px, 9.4vw, 176px);
  line-height: 1.02;
  letter-spacing: -0.026em;
  font-weight: 400;
  color: #fff;
  margin: 0;
}
.hero__line {
  display: block;
  overflow: hidden;
  padding: 0.08em 0.1em 0.24em;
  margin: -0.08em -0.1em -0.24em;
}
.hero__line-i {
  display: block;
  transform: translateY(132%);
  transition: transform 1.05s var(--ease);
  transition-delay: var(--d, 0ms);
}
.hero__content.is-in .hero__line-i { transform: translateY(0); }
.hero__title .it { font-style: italic; color: var(--teal-600); font-weight: 300; }
/* Cycling word animation */
.hero__cycle {
  display: inline-grid;
  vertical-align: top;
}
.hero__word {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.18em);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  pointer-events: none;
}
.hero__word--out {
  opacity: 0;
  transform: translateY(-0.12em);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.hero__word--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero__title--ar {
  font-family: var(--arabic);
  font-weight: 400;
  font-size: clamp(96px, 16vw, 248px);
  line-height: 1.04;
  letter-spacing: 0;
}
.hero__title--ar .it { font-family: var(--arabic); font-style: normal; font-weight: 400; color: var(--teal-600); }

.hero__sub {
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--serif); font-weight: 450;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.6;
  max-width: 54ch;
  color: rgba(242,243,244,0.86);
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: clamp(32px, 4vw, 48px);
}

/* staggered entrance for hero text */
.hero__eyebrow, .hero__sub, .hero__cta {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.hero__content.is-in .hero__eyebrow,
.hero__content.is-in .hero__sub,
.hero__content.is-in .hero__cta { opacity: 1; transform: none; }

.hero__foot {
  position: relative;
  width: 100%;
  max-width: var(--page-max);
  margin: clamp(48px, 7vw, 92px) auto 0;
  padding: 26px var(--gutter) 34px;
  display: flex; align-items: flex-end; justify-content: flex-start; gap: 28px;
  border-top: 1px solid rgba(242,243,244,0.16);
  color: var(--light);
}
.hero__scroll {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.hero__foot.is-in .hero__scroll { opacity: 1; transform: none; }
.hero__scroll {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(242,243,244,0.8);
}
.hero__scroll-line {
  position: relative; display: block; width: 1px; height: 46px;
  background: rgba(242,243,244,0.25); overflow: hidden;
}
.hero__scroll-line span {
  position: absolute; left: 0; top: 0; width: 100%; height: 42%;
  background: var(--emerald);
  animation: scroll-cue 2.2s var(--ease) infinite;
}
@keyframes scroll-cue {
  0% { transform: translateY(-110%); }
  100% { transform: translateY(255%); }
}
html[dir="rtl"] .hero__scroll { letter-spacing: 0; text-transform: none; font-family: var(--arabic); }

@media (max-width: 860px) {
  .hero { min-height: 94vh; min-height: 94svh; }
  .hero__content { padding: 124px var(--gutter-mobile) 0; }
  .hero__title { font-size: clamp(48px, 13vw, 96px); }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 26px; padding: 22px var(--gutter-mobile) 26px; }
}
@media (max-width: 540px) {
  .hero__title--ar { font-size: 88px; }
}

/* ============ NEIGHBORHOODS MAP ============ */
.neighborhoods-map {
  max-width: var(--page-max);
  margin: 56px auto 0;
  padding: 40px var(--gutter) 0;
}
.neighborhoods-map__label {
  margin-bottom: 28px;
}
/* ---- Satellite Dubai map: Leaflet + ESRI tiles, branded pins ---- */
.satmap {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  direction: ltr;
  --sat-label: #f6f4ee;
}
.satmap__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 320;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: #0a2826;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  z-index: 0;
}
/* Leaflet fills the frame */
.satmap__leaflet {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
/* Grayscale + darken on tile pane only — marker pane is a sibling so it
   keeps its original emerald colour. The filter creates one offscreen
   buffer for the entire pane; tile-container translateZ(0) flattens all
   tiles within each container into a single GPU texture before that buffer
   is composited, so sub-pixel tile-boundary gaps are never visible. */
.satmap__leaflet .leaflet-tile-pane {
  filter: grayscale(100%) brightness(0.72);
}
/* Flatten tiles per container → no sub-pixel seam gaps */
.satmap__leaflet .leaflet-tile-container {
  transform: translateZ(0);
}
/* Dark bg so any gap during tile load is invisible */
.satmap__leaflet .leaflet-container {
  background: #111 !important;
}
.satmap__leaflet .leaflet-tile {
  image-rendering: auto;
}
/* subtle vignette over the satellite imagery */
.satmap__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 500;
  border-radius: 14px;
  box-shadow:
    inset 0 0 56px 2px rgba(8, 22, 21, 0.34),
    inset 0 0 22px 0px rgba(8, 22, 21, 0.18);
}
/* Leaflet zoom controls — brand-matched */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45) !important;
}
.leaflet-control-zoom a {
  background: rgba(8, 22, 21, 0.78) !important;
  color: var(--emerald) !important;
  border: none !important;
  backdrop-filter: blur(6px);
  font-size: 18px !important;
  line-height: 26px !important;
  width: 26px !important; height: 26px !important;
}
.leaflet-control-zoom a:hover { background: rgba(8, 22, 21, 0.95) !important; color: #fff !important; }
/* Esri credit — required by license; hidden until hover */
.leaflet-control-attribution {
  background: rgba(8, 22, 21, 0.42) !important;
  color: rgba(246, 244, 238, 0.5) !important;
  font-size: 9px !important;
  padding: 1px 6px !important;
  backdrop-filter: blur(4px);
  border-radius: 4px 0 0 0 !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
}
.leaflet-control-attribution:hover { opacity: 1 !important; }
.leaflet-control-attribution a { color: rgba(246, 244, 238, 0.65) !important; }

/* ---- Project location pins: flat dots + horizontal labels ---- */
/* Animate ONLY opacity here. Leaflet positions each marker via an inline
   `transform: translate3d(x,y,0)` on this same `.spin` element; animating
   `transform` would override that and collapse every pin onto the pane origin
   (top-left). So the pins fade in without any transform. */
@keyframes spin-in { from { opacity: 0; } to { opacity: 1; } }
/* ---------- pin keyframes ---------- */

/* ---- Sonar ring: unhurried, minimal pulse ---- */
/* Rings only expand to ~4× — large enough to read, small enough to stay elegant.
   Opacity peaks low and fades cleanly; no backdrop-filter (causes render artefacts
   at large scale). */
@keyframes spin-sonar {
  0%   { opacity: 0;    transform: scale(1); }
  8%   { opacity: 0.55; }
  70%  { opacity: 0.07; }
  100% { opacity: 0;    transform: scale(5.2); }
}

/* Dot breathes very gently — just enough to signal "live", not to demand attention */
@keyframes spin-glow {
  0%, 100% { box-shadow: 0 0 0 1.5px rgba(246,244,238,0.80), 0 1px 5px rgba(0,0,0,0.45); }
  50%       { box-shadow: 0 0 0 1.5px rgba(246,244,238,0.92), 0 0 8px 2px rgba(78,131,124,0.28), 0 1px 5px rgba(0,0,0,0.45); }
}
@keyframes spin-glow-t1 {
  0%, 100% { box-shadow: 0 0 0 2px rgba(246,244,238,0.85), 0 0 6px 1px rgba(78,131,124,0.22), 0 2px 8px rgba(0,0,0,0.5); }
  50%       { box-shadow: 0 0 0 2px rgba(246,244,238,0.96), 0 0 12px 4px rgba(78,131,124,0.38), 0 2px 8px rgba(0,0,0,0.5); }
}

.spin {
  position: absolute;
  width: 0; height: 0;
  opacity: 0;
  --dot: 11px;
  --dur: 22s;
}
.spin--t2 { --dot: 14px; --dur: 20s; }
.spin--t1 { --dot: 26px; --dur: 18s; }
.satmap.is-in .spin {
  animation: spin-in 0.8s var(--ease) forwards;
  animation-delay: calc(0.5s + var(--i, 0) * 0.12s);
}

/* ---- Three evenly-phased sonar rings — a continuous, unhurried wave train ---- */
.spin__ring {
  display: block;
  position: absolute; left: 0; top: 0;
  width: var(--dot); height: var(--dot);
  margin: calc(var(--dot) / -2) 0 0 calc(var(--dot) / -2);
  border-radius: 50%;
  border: 0.75px solid rgba(200, 230, 226, 0.60);
  background: none;
  opacity: 0;
  will-change: transform, opacity;
  animation: spin-sonar var(--dur) cubic-bezier(0.15, 0.5, 0.4, 1) infinite;
}
/* Three evenly-phased rings — a continuous, unhurried wave train */
.spin > .spin__ring:nth-child(1) { animation-delay: 0.5s; }
.spin > .spin__ring:nth-child(2) { animation-delay: calc(0.5s - var(--dur) / 3); }
.spin > .spin__ring:nth-child(3) { animation-delay: calc(0.5s - var(--dur) * 2 / 3); }

.spin--t1 .spin__ring { border-width: 1px; border-color: rgba(210, 236, 231, 0.80); }

/* ---- Main dot ---- */
.spin__dot {
  position: absolute; left: 0; top: 0;
  width: var(--dot); height: var(--dot);
  margin: calc(var(--dot) / -2) 0 0 calc(var(--dot) / -2);
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 2px rgba(246,244,238,0.88), 0 2px 6px rgba(0,0,0,0.4);
  animation: spin-glow 3.4s ease-in-out infinite;
}
.spin--t1 .spin__dot {
  animation-name: spin-glow-t1;
}

/* label — no box, no scrim. Clean sans caps, generous tracking,
   lifted off the imagery with a soft halo only. */
.spin__name {
  position: absolute; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  text-indent: 0.22em; /* balance the trailing tracking space so text centres true */
  color: rgba(248, 246, 240, 0.96);
  text-shadow:
    0 1px 2px rgba(4, 12, 11, 0.9),
    0 0 14px rgba(4, 12, 11, 0.75),
    0 0 30px rgba(4, 12, 11, 0.5);
  background: none;
  padding: 0;
}
.spin--top .spin__name    { bottom: calc(var(--dot) / 2 + 13px); }
.spin--bottom .spin__name { top: calc(var(--dot) / 2 + 13px); }
.spin--left .spin__name   { left: auto; right: calc(var(--dot) / 2 + 14px); top: 0; transform: translateY(-50%); }
.spin--right .spin__name  { left: calc(var(--dot) / 2 + 14px); top: 0; transform: translateY(-50%); }
.spin--t2 .spin__name { font-size: 10px; }
.spin--t1 .spin__name { font-size: 11px; letter-spacing: 0.24em; text-indent: 0.24em; }

[dir="rtl"] .spin__name { font-family: var(--arabic); letter-spacing: 0; text-indent: 0; text-transform: none; font-weight: 500; font-size: 13px; }
[dir="rtl"] .spin--t1 .spin__name { font-size: 15px; }

/* secondary / minor labels — present on map but visually subordinate */
.spin--minor .spin__name {
  font-size: 7.5px; font-weight: 400;
  letter-spacing: 0.18em; text-indent: 0.18em;
  opacity: 0.8;
}
[dir="rtl"] .spin--minor .spin__name { font-size: 10px; opacity: 0.8; }

/* ── Zoom-out cleanup ────────────────────────────────────────────────────
   When the map is at a low zoom (class toggled by JS on zoomend):
   • minor markers (many in the Al Khawaneej cluster) fade out
   • tier-3 non-minor labels shrink so they don't collide
   • Transitions are fast so the change feels like a natural map response
   ────────────────────────────────────────────────────────────────────── */
.satmap.is-zoomed-out .spin--minor {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.satmap.is-zoomed-out .spin:not(.spin--minor) .spin__name {
  font-size: 8px;
  letter-spacing: 0.18em;
  transition: font-size 0.25s ease, letter-spacing 0.25s ease;
}
/* Reveal smoothly when zooming back in */
.satmap:not(.is-zoomed-out) .spin--minor {
  opacity: 1;
  transition: opacity 0.35s ease 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  .spin { opacity: 1; animation: none; }
  .spin__ring { animation: none !important; opacity: 0.25 !important; transform: scale(2.5) !important; }
  .spin__dot { animation: none !important; }
}

@media (max-width: 720px) {
  .neighborhoods-map {
    margin: 40px 0 0;
    padding: 28px var(--gutter-mobile) 0;
  }
  .satmap__frame { aspect-ratio: 1000 / 400; }
  .spin { --dot: 10px; }
  .spin--t2 { --dot: 13px; }
  .spin--t1 { --dot: 22px; }
  .spin__name { font-size: 8px; letter-spacing: 0.18em; text-indent: 0.18em; }
  .spin--t1 .spin__name { font-size: 9px; letter-spacing: 0.20em; text-indent: 0.20em; }
  [dir="rtl"] .spin__name { font-size: 10px; text-indent: 0; }
  [dir="rtl"] .spin--t1 .spin__name { font-size: 12px; }
  /* Touch-friendly zoom buttons */
  .leaflet-control-zoom a {
    width: 36px !important; height: 36px !important;
    line-height: 36px !important; font-size: 20px !important;
  }
}
@media (max-width: 560px) {
  /* Phones: a 1000/400 letterbox leaves the city a tiny sliver — go taller
     so the fitted view actually fills the frame and labels stay readable. */
  .satmap__frame { aspect-ratio: 4 / 4.6; }
  .spin__name { font-size: 8.5px; }
  .spin--t2 .spin__name { font-size: 9px; }
  .spin--t1 .spin__name { font-size: 10px; }
  [dir="rtl"] .spin__name { font-size: 11px; }
  [dir="rtl"] .spin--t1 .spin__name { font-size: 13px; }
}

/* ============ PRACTICE ============ */
section { padding: clamp(56px, 6vw, 80px) 0; }
section.tight { padding: clamp(40px, 5vw, 60px) 0; }
@media (max-width: 720px) { section { padding: 44px 0; } }

.practice__head {
  max-width: var(--page-max);
  margin: 0 auto 80px;
  padding: 0 var(--gutter);
  display: grid;
  gap: 32px;
}
.about-opening {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.35;
  font-weight: 400;
  max-width: 32ch;
}
.about-opening .em { color: var(--text-brand); font-style: normal; }

.values-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--line-strong);
}
.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.value {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 28px;
  row-gap: 12px;
  align-content: start;
  transition: background 0.45s ease;
}
.value:hover { background: rgba(55,133,125,0.04); }
/* columns — vertical divider down the middle (logical props mirror for RTL) */
.value:nth-child(odd)  { border-inline-end: 1px solid var(--line); padding-block: 56px; padding-inline: 0 64px; }
.value:nth-child(even) { padding-block: 56px; padding-inline: 64px 0; }
/* rows — horizontal divider between the two rows */
.value:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.value:nth-child(n+3)  { padding-top: 64px; }

.value__icon {
  grid-row: 1 / 4;
  align-self: start;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(55,133,125,0.28);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  background: rgba(55,133,125,0.07);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
/* Idle sonar ring — pulses outward slowly */
.value__icon::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(55,133,125,0.45);
  animation: val-ring 3.5s ease-out infinite;
  pointer-events: none;
}
.value:nth-child(2) .value__icon::before { animation-delay: 1.2s; }
/* Icon SVG — bounce spring on hover */
.value__icon svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Hover: circle glows + ring quickens */
.value:hover .value__icon {
  background: rgba(55,133,125,0.13);
  border-color: rgba(55,133,125,0.55);
  box-shadow:
    0 0 0 10px rgba(55,133,125,0.06),
    0 6px 18px -4px rgba(55,133,125,0.22);
}
.value:hover .value__icon::before {
  animation: val-ring 1.1s ease-out infinite;
}
/* Per-icon hover animations — each icon acts out its meaning */
.value:hover .value__icon .icon--precision {
  animation: val-plumb-swing 1.5s ease-in-out infinite;
}
.value:hover .value__icon .icon--speed {
  animation: val-chevron-dash 0.95s ease-in-out infinite;
}
@keyframes val-ring {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(1.88); opacity: 0;   }
}
@keyframes val-plumb-swing {
  0%   { transform: translateY(0)    rotate(0deg); }
  12%  { transform: translateY(-3px) rotate(0deg); }
  38%  { transform: translateY(-3px) rotate(7deg); }
  65%  { transform: translateY(-3px) rotate(-7deg); }
  88%  { transform: translateY(-3px) rotate(2deg); }
  100% { transform: translateY(0)    rotate(0deg); }
}
@keyframes val-chevron-dash {
  0%   { transform: translateY(0)    translateX(0);   }
  15%  { transform: translateY(-3px) translateX(0);   }
  40%  { transform: translateY(-3px) translateX(5px); }
  56%  { transform: translateY(-3px) translateX(1px); }
  76%  { transform: translateY(-3px) translateX(5px); }
  90%  { transform: translateY(-2px) translateX(2px); }
  100% { transform: translateY(0)    translateX(0);   }
}
.value__title {
  font-family: var(--serif);
  font-size: clamp(23px, 1.9vw, 29px);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.12;
  align-self: start;
  padding-top: 2px;
}
.value__gloss {
  grid-column: 2;
  font-family: var(--serif);
  font-style: normal;
  color: var(--text-brand);
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.4;
  margin-top: -2px;
}
.value__body {
  grid-column: 2;
  font-family: var(--serif); font-weight: 450;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 42ch;
  margin-top: 6px;
}
html[dir="rtl"] .value__gloss { font-style: normal; font-family: var(--arabic); }
@media (max-width: 860px) {
  .values { grid-template-columns: 1fr; }
  .value:nth-child(odd),
  .value:nth-child(even) { border-inline-end: 0; padding: 40px 0; }
  .value:nth-child(n+2) { border-top: 1px solid var(--line); }
  .value:nth-child(-n+2) { border-bottom: 0; }
  .value:nth-child(1) { padding-top: 8px; }
}
@media (max-width: 420px) {
  .value { grid-template-columns: 1fr; }
  .value__icon { grid-row: auto; }
  .value__title, .value__gloss, .value__body { grid-column: 1; }
}


/* ============ APPROACH ============ */
.approach-grid {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.step {
  padding-block: 48px;
  padding-inline: 0 36px;
  border-inline-end: 1px solid var(--line);
  display: grid;
  gap: 18px;
  align-content: start;
}
.step:last-child { border-inline-end: 0; }
.step__n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--emerald);
  letter-spacing: -0.01em;
  font-weight: 400;
}
.step__title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.008em;
  line-height: 1.15;
}
.step__body {
  font-family: var(--serif); font-weight: 450;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 32ch;
}
@media (max-width: 980px) {
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .step { border-inline-end: 0; border-top: 1px solid var(--line); padding-block: 36px; padding-inline: 0 24px; }
  .step:nth-child(2n) { padding-inline-end: 0; }
}
@media (max-width: 540px) { .approach-grid { grid-template-columns: 1fr; } }

/* ============ WORK — PHOTO GRID ============ */
.work-section { padding: clamp(32px, 3.5vw, 56px) 0 clamp(40px, 4.5vw, 60px); }
.work-section .work-note { color: var(--ink-muted); }
.work-grid {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 56px 40px;
}

.pcard { display: block; }
.pcard__media {
  aspect-ratio: 4 / 3;
  background: var(--brand-soft);
  position: relative; overflow: hidden;
  border: 1px solid var(--border-subtle);
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--t-slow) var(--ease);
  transition-delay: var(--d, 0ms);
}
.pcard.in .pcard__media { clip-path: inset(0 0 0 0); }
.pcard__body {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pcard__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 4px;
}
html[dir="rtl"] .pcard__status { letter-spacing: 0; }
.pcard__status.is-active { color: var(--emerald); }
.pcard__status.is-active::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}
.pcard__loc {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.006em;
  line-height: 1.2;
}
.pcard__stats {
  display: flex;
  gap: 40px;
  margin: 10px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.pcard__stat dt {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 4px;
}
.pcard__stat dd {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
html[dir="rtl"] .pcard__stat dd { letter-spacing: 0; }

@media (max-width: 980px) {
  .work-grid { gap: 48px 32px; }
}
@media (max-width: 560px) {
  .work-grid { gap: 40px; }
  .pcard__loc { font-size: 22px; }
}

/* ============ CONFIDENCE ============ */
.confidence {
  background: var(--light);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.confidence__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.confidence .section-eyebrow {
  color: var(--ink-muted);
  margin-bottom: 0;
}
.confidence .section-eyebrow .rule { background: var(--emerald); }
.confidence__hl {
  background: color-mix(in oklab, var(--emerald) 18%, transparent);
  color: var(--ink);
  font-style: inherit;
  padding: 0 4px;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.disc-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.disc-strip__item {
  display: grid;
  gap: 8px;
}
.disc-strip__num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--emerald);
  font-size: 13px;
}
.disc-strip__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
@media (max-width: 900px) {
  .disc-strip { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
/* ---- Testimonial gallery (auto-advancing) ---- */
.cf-stage {
  position: relative;
  margin-top: 60px;
  overflow: visible;
}
.cf-glyph {
  position: absolute;
  top: -42px;
  left: 50%; /* physical: pairs with the physical translateX(-50%) in both dirs */
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: clamp(150px, 17vw, 230px);
  line-height: 0.66;
  color: var(--emerald);
  opacity: 0.09;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.cf-viewport {
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.cf-track {
  display: flex;
  align-items: stretch;
  transition: transform 720ms var(--ease);
  will-change: transform;
}
.cf-slide {
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
  padding: 4px clamp(0px, 6vw, 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cf-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(21px, 2.3vw, 33px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  max-width: 920px;
  text-wrap: pretty;
}
html[dir="rtl"] .cf-quote { font-size: clamp(19px, 2.1vw, 30px); line-height: 1.7; }
.cf-attrib {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.cf-attrib__text { display: inline; }
.cf-attrib__name { font-weight: 700; }
.cf-attrib__loc { font-weight: 400; opacity: 0.6; letter-spacing: 0.18em; }
html[dir="rtl"] .cf-attrib { letter-spacing: 0; }
@media (max-width: 600px) {
  /* ---- Testimonial: left-align + compact on mobile ---- */
  .cf-stage { margin-top: 20px; }
  .cf-glyph { left: 0; transform: none; font-size: clamp(56px, 16vw, 80px); opacity: 0.06; top: -14px; }
  .cf-slide {
    align-items: flex-start;
    text-align: left;
    padding: 4px 0;
  }
  html[dir="rtl"] .cf-slide { align-items: center; text-align: center; }
  html[dir="rtl"] .cf-attrib { align-items: center; text-align: center; }
  .cf-quote { font-size: clamp(15px, 4.2vw, 18px); line-height: 1.55; }
  .cf-attrib { margin-top: 16px; align-items: flex-start; }
  .cf-attrib__text { display: flex; flex-direction: column; gap: 4px; }
  .cf-attrib__sep { display: none; }
  .cf-attrib__loc { font-weight: 400; opacity: 0.65; letter-spacing: 0.16em; }
  .cf-controls { margin-top: 24px; gap: 16px; }
  .cf-count { white-space: nowrap; }
}
.cf-controls {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.cf-arrow {
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.cf-arrow:hover { color: var(--emerald); border-color: var(--emerald); background: var(--emerald-soft); }
.cf-arrow svg { width: 18px; height: 18px; }
.cf-dots {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.cf-count {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-inline-end: 8px;
}
.cf-count b { color: var(--emerald); font-style: italic; font-weight: 400; }
.cf-play {
  margin-inline-start: 4px;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--ink-muted);
  cursor: pointer; flex-shrink: 0;
  transition: color var(--t-fast);
}
.cf-play:hover { color: var(--emerald); }
.cf-play svg { width: 12px; height: 12px; }
.cf-dot {
  position: relative;
  width: 34px; height: 2px;
  background: var(--line-strong);
  border: 0; padding: 0; cursor: pointer;
  overflow: hidden;
}
.cf-dot.is-active { background: color-mix(in oklab, var(--emerald) 28%, var(--line-strong)); }
.cf-dot__fill {
  position: absolute; inset: 0;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left center;
  animation: cfFill 7000ms linear forwards;
}
html[dir="rtl"] .cf-dot__fill { transform-origin: right center; }
.cf-stage.is-paused .cf-dot__fill { animation-play-state: paused; }
@keyframes cfFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .cf-track { transition: none; }
  .cf-dot__fill { animation: none; transform: scaleX(1); }
}
@media (max-width: 980px) {
  .cf-glyph { top: -34px; font-size: 170px; }
  .cf-slide { padding: 4px 12px; }
}
@media (max-width: 720px) {
  .confidence { padding: 32px 0; }
  .cf-stage { margin-top: 28px; }
  .cf-glyph { top: -20px; font-size: 88px; }
  .cf-controls { gap: 16px; margin-top: 28px; }
  .cf-arrow { width: 42px; height: 42px; }
  .cf-dot { width: 26px; }
}

/* ============ DISCIPLINES ============ */
/* Reduce the title→grid gap just for services (no section-sub here) */
.services-section .section-head { margin-bottom: clamp(24px, 3vw, 40px); }

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto 1fr; /* row 1: icon, row 2: header, row 3: content */
  grid-auto-rows: auto;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.discipline__media {
  height: clamp(80px, 9vw, 112px);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(16px, 2vw, 24px);
  opacity: 0.82;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  transform-origin: bottom center;
}
@media (hover: hover) {
  .discipline:hover .discipline__media {
    transform: scale(1.1);
    opacity: 1;
  }
}
.discipline {
  /* Span 3 parent rows and use subgrid — forces each row to be
     the tallest across all four columns so icons/titles align. */
  grid-row: span 3;
  display: grid;
  grid-template-rows: subgrid;
  /* padding-bottom is 0 here because overflow:hidden + subgrid clips the
     card's own bottom padding outside the track allocation. Bottom breathing
     room is provided by .discipline__content padding-bottom instead. */
  padding: clamp(28px, 3.5vw, 48px) clamp(20px, 2.5vw, 36px) 0;
  overflow: hidden;
  border-right: 1px solid var(--border);
  transition: background var(--t-med) var(--ease);
}
.discipline:last-child { border-right: none; }
.discipline:hover { background: var(--brand-soft); }
.discipline__top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: clamp(20px, 2.5vw, 32px);
}
.discipline__num { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--emerald); flex-shrink: 0; }
.discipline__tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel); text-align: end; line-height: 1.4;
  white-space: nowrap;
}
.discipline__content { padding: 0 0 clamp(24px, 3vw, 40px); }
.discipline__title {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 400;
  line-height: 1.25;
  display: block;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  color: var(--black);
}
.discipline__body { font-family: var(--serif); font-weight: 450; font-size: clamp(14px, 1vw, 15px); line-height: 1.78; color: var(--ink-muted); }
@media (max-width: 980px) {
  .discipline-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr auto auto 1fr; /* 3 rows × 2 pairs for 2-col layout */
    border-top: none;
  }
  .discipline { border-right: none; border-top: 1px solid var(--border); }
  .discipline:nth-child(odd) { border-right: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .discipline-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .discipline { grid-row: auto; grid-template-rows: none; display: flex; flex-direction: column; }
  .discipline:nth-child(odd) { border-right: none; }
}

/* ---- Service icon draw-on animation ---- */
@keyframes svc-draw {
  from { stroke-dashoffset: 600; }
  to   { stroke-dashoffset: 0; }
}
.discipline__media svg line,
.discipline__media svg rect,
.discipline__media svg polyline,
.discipline__media svg path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.reveal.in .discipline__media svg line,
.reveal.in .discipline__media svg rect,
.reveal.in .discipline__media svg polyline,
.reveal.in .discipline__media svg path {
  animation: svc-draw 0.9s ease-out forwards;
  animation-delay: calc(var(--d, 0ms) + 80ms);
}
.reveal.in .discipline__media svg *:nth-child(3n+2) {
  animation-delay: calc(var(--d, 0ms) + 140ms);
}
.reveal.in .discipline__media svg *:nth-child(3n+3) {
  animation-delay: calc(var(--d, 0ms) + 200ms);
}
@media (prefers-reduced-motion: reduce) {
  .discipline__media svg line,
  .discipline__media svg rect,
  .discipline__media svg polyline,
  .discipline__media svg path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}

/* ============ CONTACT ============ */
.contact {
  position: relative;
  padding: clamp(56px, 6vw, 80px) 0;
  overflow: hidden;
  background: var(--paper);
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/pattern-dots.png');
  background-size: 480px auto;
  background-repeat: repeat;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}
.contact__rosette {
  position: absolute;
  left: -320px;
  top: 50%;
  transform: translateY(-50%);
  width: 720px;
  pointer-events: none;
}
html[dir="rtl"] .contact__rosette { left: auto; right: -320px; }
.contact__rosette img { width: 100%; height: auto; opacity: 0.09; }

.contact__inner {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: center;
}
.contact__lede {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.contact__lede-head {
  flex: 1;
}
.contact__lede .section-eyebrow { margin-bottom: 20px; }
.contact__title {
  font-family: var(--serif);
  font-size: clamp(36px, 3.8vw, 58px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 0;
}
.contact__title .it { font-style: italic; color: var(--text-brand); }
.contact__place {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}
.contact__place-text { min-width: 0; flex: 1; }
/* location hierarchy ---- */
.contact__place-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.contact__place-icon { display: inline-flex; flex-shrink: 0; }
.contact__place-eyebrow {
  font: 700 10.5px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-brand);
}
.contact__place-name {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
}
.contact__place-addr {
  margin: 0 0 16px;
  font-family: var(--serif); font-weight: 450;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.contact__near {
  margin: 0;
  font-family: var(--serif); font-weight: 450;
  font-size: 12.5px;
  line-height: 1.75;
  font-style: italic;
  color: var(--text-muted);
}
.contact__directions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 7px 14px 7px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
  border: 1px solid var(--emerald);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.contact__directions:hover {
  background: var(--emerald);
  color: #fff;
}
[dir="rtl"] .contact__place-eyebrow { letter-spacing: 0; font-family: var(--arabic); }
[dir="rtl"] .contact__place-name { font-family: var(--arabic); }
[dir="rtl"] .contact__place-addr { font-family: var(--arabic); }
[dir="rtl"] .contact__near { font-style: normal; font-family: var(--arabic); }
[dir="rtl"] .contact__directions { font-family: var(--arabic); letter-spacing: 0; text-transform: none; }

.contact__photo {
  margin: 0;
  padding: 0;
  width: 148px;
  flex-shrink: 0;
  line-height: 0;
  align-self: flex-end;
  margin-top: auto;
}
.contact__photo img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 8px 28px rgba(34,31,32,0.12));
  -webkit-mask-image: radial-gradient(ellipse 82% 88% at 50% 48%, black 68%, rgba(0,0,0,0.4) 82%, transparent 100%);
  mask-image: radial-gradient(ellipse 82% 88% at 50% 48%, black 68%, rgba(0,0,0,0.4) 82%, transparent 100%);
}

.contact__cards { display: flex; flex-direction: column; gap: 14px; }
.ccard {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0 24px;
  align-items: center;
  min-height: 110px;
  padding: 24px 28px 24px 24px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-paper);
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.ccard:hover { border-color: var(--emerald); }
.ccard--primary {
  background: var(--brand-deep);
  color: #fff;
  border-color: var(--brand-deep);
}
.ccard--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.ccard__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(78,131,124,0.08);
  flex-shrink: 0;
}
.ccard--primary .ccard__icon { background: rgba(255,255,255,0.10); }
.ccard__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ccard__lbl {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted);
}
.ccard--primary .ccard__lbl { color: rgba(255,255,255,0.5); }
.ccard__val {
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ccard__cta {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ccard:not(.ccard--primary):hover .ccard__cta { color: var(--emerald); }
.ccard--primary .ccard__cta { color: rgba(242,243,244,0.6); }
.ccard__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(78,131,124,0.08);
  color: var(--emerald);
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.ccard--primary .ccard__arrow { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.7); }
.ccard:not(.ccard--primary):hover .ccard__arrow { background: var(--emerald); color: #fff; transform: translateX(2px); }
.ccard--primary:hover .ccard__arrow { background: rgba(255,255,255,0.18); color: #fff; transform: translateX(2px); }

@media (max-width: 860px) {
  .contact { padding: 44px 0; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .contact__rosette { right: -360px; width: 540px; }
  .contact__title { font-size: clamp(32px, 8vw, 52px); }
  .contact__photo { display: none; }
  .contact__place-eyebrow { white-space: nowrap; }
  .ccard { grid-template-columns: 44px 1fr auto; gap: 0 16px; padding: 20px 18px; min-height: 90px; }
}

/* ============ FOOTER ============ */
.footer {
  position: relative;
  background: var(--surface-brand-deep);
  overflow: hidden;
  color: rgba(255,255,255,0.88);
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/pattern-dots.png');
  background-size: 560px auto;
  background-repeat: repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
.footer .brand-logo--color { display: none; }
.footer .brand-logo--white { display: inline-block; }
.footer__bar {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__brand img { height: 44px; width: auto; display: block; }
.footer__copy {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
@media (max-width: 600px) {
  .footer__bar { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px var(--gutter-mobile); }
  .footer__copy { font-size: 8.5px; letter-spacing: 0.06em; }
}

/* ============ TWEAKS ============ */
.tweaks-mini {
  position: fixed; right: 24px; bottom: 24px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 14px 18px;
  display: flex; gap: 8px; align-items: center;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  z-index: 100;
}
.tweaks-mini button {
  border: 0; background: transparent; font: inherit;
  letter-spacing: 0.16em; cursor: pointer;
  padding: 6px 10px; color: var(--steel);
}
.tweaks-mini button.active { color: var(--ink); background: var(--emerald-soft); }
.tweaks-mini .lbl { color: var(--steel); margin-right: 4px; }

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.icon { display: inline-block; vertical-align: middle; }

/* ============ APPROACH (HOW WE BUILD) ============ */
.approach-section { padding: clamp(56px, 6vw, 80px) 0 clamp(40px, 4.5vw, 56px); }
.approach-section .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
}
.approach-step {
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 44px 40px 52px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.approach-step:hover { background: var(--brand-soft); }
.approach-step__num {
  font-family: var(--serif);
  font-size: clamp(48px, 4.5vw, 68px);
  line-height: 1;
  font-weight: 400;
  font-style: italic;
  color: var(--emerald);
}
.approach-step__title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.approach-step__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 46ch;
}
html[dir="rtl"] .approach-grid {
  border-left: 0;
  border-right: 1px solid var(--border-subtle);
}
html[dir="rtl"] .approach-step {
  border-right: 0;
  border-left: 1px solid var(--border-subtle);
}
html[dir="rtl"] .approach-step__title,
html[dir="rtl"] .approach-step__text { text-align: right; }
html[dir="rtl"] .approach-step__title,
html[dir="rtl"] .approach-step__text {
  font-family: var(--arabic);
  letter-spacing: 0;
  text-transform: none;
}
html[dir="rtl"] .approach-step__num { font-style: normal; }
@media (max-width: 980px) {
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .approach-step { padding: 36px 28px 40px; }
}
@media (max-width: 540px) {
  .approach-grid { grid-template-columns: 1fr; }
  .approach-step__num { font-size: 44px; }
}

/* ---- Approach animated icons ---- */
.aicon {
  display: block;
  width: 62px; height: 62px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-bottom: -2px;
}

.aicon__spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: aicon-spin 22s linear infinite;
}
@keyframes aicon-spin {
  to { transform: rotate(360deg); }
}

.aicon__travel {
  animation: aicon-travel 2.8s ease-in-out infinite;
}
@keyframes aicon-travel {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(8px); }
}

.aicon__draw {
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
  animation: aicon-draw 4.2s ease-in-out infinite;
}
@keyframes aicon-draw {
  0%, 6%   { stroke-dashoffset: 44; }
  52%, 74% { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: 44; }
}

.aicon__pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: aicon-pulse 3.2s ease-in-out infinite;
}
.aicon__pulse--a { animation-delay: 0s; }
.aicon__pulse--b { animation-delay: 0.8s; }
@keyframes aicon-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.75; }
  50%      { transform: scale(1.13); opacity: 1; }
}

/* editorial highlight on key phrases */
.approach-em {
  background: linear-gradient(to bottom, transparent 66%, rgba(78,131,124,0.26) 66%);
  padding: 0 1px 1px;
  font-weight: inherit;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .aicon__spin, .aicon__travel, .aicon__draw, .aicon__pulse { animation: none; }
}

/* ============================================================
   CINEMATIC OVERHAUL — preloader, topbar states, motion system,
   marquee, stats band, breadth, map section, buttons, a11y
   ============================================================ */

/* ---- Intro preloader ---- */
html.intro-lock, html.intro-lock body { overflow: hidden; }
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-brand-deep);
  transition: transform 1s var(--ease);
  will-change: transform;
}
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 40px); }
.preloader__mark {
  position: relative;
  width: clamp(104px, 13vw, 132px);
  height: clamp(104px, 13vw, 132px);
  display: grid;
  place-items: center;
  opacity: 0; transform: scale(0.92);
  animation: pre-mark 1s var(--ease) 0.15s forwards;
}
@keyframes pre-mark { to { opacity: 1; transform: scale(1); } }
.preloader__ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.preloader__ring-track { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 1.5; }
.preloader__ring-arc {
  fill: none; stroke: rgba(255,255,255,0.85); stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: pre-arc 2s var(--ease) 0.35s forwards;
}
@keyframes pre-arc { to { stroke-dashoffset: 0; } }
.preloader__glyph {
  width: 58%; height: auto;
  opacity: 0; transform: scale(0.86);
  animation: pre-glyph 1s var(--ease) 0.4s forwards, pre-breathe 4s ease-in-out 1.4s infinite;
}
@keyframes pre-glyph { to { opacity: 1; transform: scale(1); } }
@keyframes pre-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.preloader__word {
  width: clamp(180px, 24vw, 240px); height: auto;
  opacity: 0; transform: translateY(8px);
  animation: pre-word 1s var(--ease) 0.85s forwards;
}
@keyframes pre-word { to { opacity: 0.94; transform: translateY(0); } }
.preloader.is-done { transform: translateY(-100%); }

/* ---- Top bar: fixed + transparent over hero ---- */
.topbar {
  position: fixed; left: 0; right: 0; top: 0; width: 100%;
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
/* Legibility scrim: soft top-down shadow behind the bar while it sits over the
   hero photo, so white nav/logo stay readable on bright areas. Fades out solid. */
.topbar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 168px;
  background: linear-gradient(to bottom, rgba(20,18,19,0.42) 0%, rgba(20,18,19,0.18) 46%, rgba(20,18,19,0) 100%);
  opacity: 0; pointer-events: none; z-index: -1;
  transition: opacity var(--t-med) var(--ease);
}
.topbar--over::before { opacity: 1; }
.topbar--over {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
.topbar--over .brand-logo--color { display: none; }
.topbar--over .brand-logo--white { display: inline-block; }
.topbar--over .topbar__nav a { color: rgba(255,255,255,0.86); }
.topbar--over .topbar__nav a:hover,
.topbar--over .topbar__nav a.active { color: #fff; }
.topbar--over .topbar__nav a::after { background: #fff; }
.topbar--over .lang-toggle button { color: rgba(255,255,255,0.55); }
.topbar--over .lang-toggle button:hover { color: rgba(255,255,255,0.9); }
.topbar--over .lang-toggle button.active { color: #fff; font-weight: 600; background: none; }
.topbar--over .lang-toggle__sep { color: rgba(255,255,255,0.4); }
.topbar--over .contact-pill { background: rgba(255,255,255,0.95); color: var(--black, #221f20); border-color: transparent; }
.topbar--over .contact-pill:hover { background: #fff; color: var(--black, #221f20); border-color: transparent; }

/* ── Mobile logo-switching — must live AFTER the topbar--over globals above
   so these rules win the cascade at small viewports. ─────────────────── */
@media (max-width: 480px) {
  .brand-logo--color                      { display: none; }
  .brand-logo--mark                       { display: inline-block; height: 40px; width: auto; }
  .topbar--over .brand-logo--white        { display: none; }
  .topbar--over .brand-logo--mark         { display: none; }
  .topbar--over .brand-logo--mark-white   { display: inline-block; height: 40px; width: auto; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn .icon { transition: transform var(--t-fast); }
.btn:hover .icon { transform: translateX(4px); }
.btn--solid { background: var(--brand); color: #fff; border-color: var(--brand); border-radius: var(--radius-sm); }
.btn--solid:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn--ghost { color: var(--light); border-color: rgba(242,243,244,0.42); }
.btn--ghost:hover { border-color: #fff; background: rgba(242,243,244,0.08); }
html[dir="rtl"] .btn { letter-spacing: 0; text-transform: none; font-family: var(--arabic); font-weight: 600; }
html[dir="rtl"] .btn .icon { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .icon { transform: scaleX(-1) translateX(4px); }

/* ---- Reveal variants (rise / clip / fade) ---- */
.reveal { transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease), clip-path var(--t-slow) var(--ease); transition-delay: var(--d, 0ms); }
.reveal--up { transform: translateY(24px); }
.reveal--fade { transform: none; }
.reveal--clip { transform: translateY(10px); clip-path: inset(0 0 100% 0); }
.reveal.in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* ---- Capability marquee ---- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 14px 0;
  display: flex;
  align-items: center;
}
.marquee__track {
  display: inline-flex; align-items: center; white-space: nowrap;
  will-change: transform;
  animation: marquee 52s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee__track { animation-direction: reverse; }
.marquee__item { display: inline-flex; align-items: center; }
.marquee__txt {
  font-family: var(--sans); font-style: normal; font-weight: 500;
  font-size: clamp(10px, 0.85vw, 12px);
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink); padding: 0 clamp(32px, 4vw, 64px);
}
html[dir="rtl"] .marquee__txt { font-family: var(--arabic); letter-spacing: 0; text-transform: none; font-size: clamp(13px, 1.1vw, 16px); font-weight: 400; line-height: 1; }
html[dir="rtl"] .marquee__track { animation-duration: 36s; }
.marquee__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--emerald); flex: 0 0 auto; }

/* ---- Stats band (dark, over interior) ---- */
.statsband {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--black); color: var(--light);
  padding: clamp(40px, 4vw, 56px) 0 clamp(56px, 6vw, 80px);
}
.statsband__bg { position: absolute; inset: -8% 0 0 0; z-index: -2; will-change: transform; transform: translate3d(0, var(--py, 0), 0); }
/* Image is pre-processed B&W — no extra grayscale filter needed; slightly higher opacity
   since the scrim gradient on top of it provides the dark tint */
.statsband__bg video { width: 100%; height: 112%; object-fit: cover; opacity: 0.55; filter: grayscale(1) contrast(1.08); }
.statsband__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(150deg, rgba(20,58,53,0.82), rgba(14,21,20,0.88)); }
.statsband__inner { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.statsband__head { max-width: 62ch; margin-bottom: clamp(28px, 3vw, 44px); }
.statsband__lede { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 38px); line-height: 1.25; letter-spacing: -0.01em; margin: 18px 0 0; color: #fff; white-space: nowrap; }
[dir="rtl"] .statsband__lede { font-style: normal; font-family: var(--arabic-display); line-height: 1.6; padding-bottom: 0.15em; }
.statsband__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(242,243,244,0.14);
  border: 1px solid rgba(242,243,244,0.14);
}
.statsband__cell { background: rgba(15,30,28,0.5); padding: clamp(28px, 3vw, 44px) clamp(20px, 2.5vw, 32px); display: grid; gap: 14px; align-content: start; }
.bandstat__num { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 5.4vw, 82px); line-height: 1; letter-spacing: -0.03em; color: #fff; }
.bandstat__num .plus { color: #9fd3cc; font-style: italic; }
.bandstat__num .plus--pct { font-size: 0.68em; font-style: normal; vertical-align: 0.1em; }
.bandstat__lbl { font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(242,243,244,0.55); line-height: 1.5; font-weight: 400; }
html[dir="rtl"] .bandstat__lbl { letter-spacing: 0; text-transform: none; font-family: var(--arabic); }
/* Arabic *text* suffix (e.g. من كل 3) — no italic, Arabic font, slightly smaller */
.bandstat__num .plus--ar { font-style: normal; font-family: var(--arabic); letter-spacing: 0; font-size: 0.52em; font-weight: 400; vertical-align: 0.15em; }
/* % prefix in AR: restore original serif sizing, just with margin tweak for the prefixed position */
html[dir="rtl"] .bandstat__num .plus--pct { margin-right: 0.06em; }
.section-eyebrow--light { color: var(--teal-200); }
.section-eyebrow--light .rule { background: var(--teal-200); }
@media (max-width: 860px) { .statsband__grid { grid-template-columns: 1fr 1fr; } .statsband__lede { white-space: normal; } }
@media (max-width: 460px) { .statsband__grid { grid-template-columns: 1fr; } }


/* ---- Selected work: photography media ---- */
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard { transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.pcard:hover {}
.pcard:hover .pcard__media img { transform: scale(1.04); }

/* ---- Map section ---- */
.mapsection { padding: clamp(56px, 6vw, 80px) 0; }
.mapsection .neighborhoods-map { margin-top: 0; padding-top: 0; display: flex; flex-direction: column; }
.mapsection .neighborhoods-map__label { margin-bottom: 12px; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .hero__line-i { transform: none !important; transition: none !important; }
  .hero__content .hero__eyebrow,
  .hero__content .hero__sub,
  .hero__content .hero__cta,
  .hero__foot .hero__scroll { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__img { animation: none !important; transform: none !important; }
  .hero__scroll-line span { animation: none !important; }
  .hero__bg, .hero__stage, .hero__layer, .statsband__bg { transform: none !important; }
  .marquee__track { animation: none !important; }
  .pcard__media img { transition: none !important; }
  .pcard__media { clip-path: none !important; transition: none !important; }
  .preloader__mark, .preloader__glyph, .preloader__word, .preloader__ring-arc { animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
  .preloader__ring { transform: rotate(-90deg) !important; }
  .spin__dot, .spin__ring { animation: none !important; }
  .value__icon::before { animation: none !important; }
  .value:hover .value__icon .icon--precision,
  .value:hover .value__icon .icon--speed { animation: none !important; }
}

/* ============================================================
   CLIENT TIPS PAGE
   ============================================================ */

.ct-main { background: var(--light); }

/* Hero */
.ct-hero {
  padding: 160px var(--gutter) 80px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.ct-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-soft);
  pointer-events: none;
}
.ct-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.ct-hero__eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-brand);
  margin: 0 0 20px;
}
.ct-hero__title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--light);
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}
.ct-hero__sub {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: rgba(242,243,244,0.62);
  margin: 0;
  max-width: 620px;
}

/* Tips grid */
.ct-tips {
  padding: 80px var(--gutter) 80px;
}
.ct-tips__inner { max-width: 1200px; margin: 0 auto; }
.ct-tips__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.tip {
  background: #fff;
  padding: 44px 44px 40px;
  border: 1px solid var(--border-subtle);
  transition: box-shadow 0.22s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tip:hover {
  box-shadow: var(--shadow-md);
  z-index: 1;
  position: relative;
}
.tip__num {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--emerald);
  opacity: 0.7;
}
.tip__title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--black);
  margin: 0;
  letter-spacing: -0.01em;
}
.tip__body {
  font-family: var(--serif); font-weight: 450;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(34,31,32,0.65);
  margin: 0;
}

/* RTL tips */
[dir="rtl"] .tip__num { font-family: var(--arabic); letter-spacing: 0; }
[dir="rtl"] .tip__title { font-family: var(--arabic); font-size: 16px; }
[dir="rtl"] .tip__body { font-family: var(--arabic); font-size: 14px; line-height: 1.8; }

/* CTA strip */
.ct-cta {
  background: var(--emerald);
  padding: 80px var(--gutter);
  text-align: center;
}
.ct-cta__inner { max-width: 680px; margin: 0 auto; }
.ct-cta__eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin: 0 0 20px;
}
.ct-cta__title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--light);
  margin: 0 0 40px;
}
.ct-cta__btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  background: var(--light);
  padding: 14px 36px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.ct-cta__btn:hover {
  background: var(--black);
  color: var(--light);
}

/* Responsive */
@media (max-width: 900px) {
  .ct-tips__grid { grid-template-columns: 1fr; }
  .tip { padding: 32px 28px; }
}
@media (max-width: 600px) {
  .ct-hero { padding: 120px var(--gutter-mobile) 60px; }
  .ct-tips { padding: 48px var(--gutter-mobile); }
  .ct-cta { padding: 60px var(--gutter-mobile); }
  .tip { padding: 28px 20px; }
}

/* ============================================================
   CLIENT GUIDE — "The Field Guide" edition (.cg-* classes)
   Light, editorial owner's field guide.
   ============================================================ */

/* ---- Scroll progress ---- */
.cg-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; background: var(--emerald);
  transform-origin: left center; transform: scaleX(0);
  z-index: 1200; pointer-events: none;
  transition: transform 0.08s linear;
}
[dir="rtl"] .cg-progress { transform-origin: right center; }

/* ---- Hero (light, editorial) ---- */
.cg-hero {
  position: relative; overflow: hidden;
  background: var(--surface-page); color: var(--ink);
  padding: calc(var(--topbar-h) + clamp(36px, 4.5vh, 60px)) 0 clamp(60px, 10vh, 110px);
}
.cg-hero__inner {
  position: relative; z-index: 2;
  max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter);
}
.cg-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: var(--text-brand); margin-bottom: 30px;
}
.cg-hero__eyebrow .rule { display: block; width: 30px; height: 1.5px; background: var(--brand); flex-shrink: 0; }
.cg-hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.4vw, 84px); line-height: 1.05; letter-spacing: -0.012em;
  color: var(--ink); margin: 0; max-width: 28ch;
}
.cg-hero__title .it { font-style: italic; color: var(--text-brand); font-weight: 400; }
.cg-hero__lead {
  margin: clamp(28px, 4vh, 44px) 0 0; max-width: 56ch;
  font-family: var(--serif); font-weight: 450;
  font-size: clamp(16px, 1.7vw, 19px); line-height: 1.7; color: var(--text-muted);
}
[dir="rtl"] .cg-hero__eyebrow { letter-spacing: 0; font-family: var(--arabic); }
[dir="rtl"] .cg-hero__title { font-family: var(--arabic); letter-spacing: 0; }
[dir="rtl"] .cg-hero__title .it { font-style: normal; }
[dir="rtl"] .cg-hero__lead { font-family: var(--arabic); }

/* ghost "10" — bottom-anchored watermark, rises from the hero floor */
.cg-hero__ghost {
  position: absolute; z-index: 1;
  inset-inline-end: clamp(-20px, 0vw, 20px);
  bottom: 22%; top: auto;
  font-family: var(--serif); font-weight: 300; line-height: 1;
  font-size: clamp(160px, 18vw, 300px);
  letter-spacing: -0.05em;
  color: var(--ink); opacity: 0;
  animation: cgGhostIn 1.6s var(--ease) 0.6s forwards;
  pointer-events: none; user-select: none;
}
@keyframes cgGhostIn { to { opacity: 0.065; } }
[dir="rtl"] .cg-hero__ghost {
  font-family: var(--arabic); letter-spacing: 0; font-weight: 600;
  font-size: clamp(140px, 16vw, 270px);
  animation-name: cgGhostInAr;
}
@keyframes cgGhostInAr { to { opacity: 0.12; } }

/* dimension line: 1981 |---- 45 years ----| 2026 */
.cg-hero__measure {
  display: flex; align-items: center; gap: 24px;
  margin-top: clamp(48px, 8vh, 96px);
  color: var(--text-muted);
}
.cg-hero__measure-cap {
  position: relative; flex-shrink: 0;
  font-family: var(--serif); font-size: clamp(22px, 2.6vw, 36px); font-weight: 300;
  color: var(--ink); letter-spacing: -0.01em;
}
.cg-hero__measure-line {
  position: relative; flex: 1; height: 1px; background: var(--border-strong);
  transform: scaleX(0); transform-origin: left;
  animation: cgMeasureDraw 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}
[dir="rtl"] .cg-hero__measure-line { transform-origin: right; }
@keyframes cgMeasureDraw { to { transform: scaleX(1); } }
.cg-hero__measure-line::before,
.cg-hero__measure-line::after {
  content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: var(--border-strong);
}
.cg-hero__measure-line::before { left: 0; }
.cg-hero__measure-line::after { right: 0; }
.cg-hero__measure-val {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  white-space: nowrap; padding: 0 18px; background: var(--surface-page);
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-brand);
}
[dir="rtl"] .cg-hero__measure-val { font-family: var(--arabic); letter-spacing: 0; }

/* hero entrance */
.cg-hero__eyebrow, .cg-hero__title, .cg-hero__lead, .cg-hero__measure {
  opacity: 0; transform: translateY(20px);
  animation: cgHeroIn 0.9s var(--ease) forwards;
}
.cg-hero__title   { animation-delay: 0.08s; }
.cg-hero__lead    { animation-delay: 0.22s; }
.cg-hero__measure { animation-delay: 0.40s; }
@keyframes cgHeroIn { to { opacity: 1; transform: none; } }

/* foresight field — drifting triangulated sightlines behind the hero */
.cg-hero__field {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  animation: cgFieldIn 2s var(--ease) 0.35s forwards;
}
@keyframes cgFieldIn { to { opacity: 1; } }

/* soft drifting glow — atmospheric depth near the open side */
.cg-hero::before {
  content: ""; position: absolute; z-index: 0;
  inset-inline-end: -6%; top: -28%;
  width: min(58vw, 600px); aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(78, 131, 124, 0.11), rgba(78, 131, 124, 0) 62%);
  pointer-events: none;
  animation: cgGlowDrift 24s ease-in-out infinite alternate;
}
@keyframes cgGlowDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-4%, 7%, 0) scale(1.14); }
}


/* ── Client Guide hero — mobile ── */
@media (max-width: 700px) {
  .cg-hero__inner { padding: 0 var(--gutter-mobile, 24px); }
  .cg-hero__title { font-size: clamp(34px, 9.5vw, 46px); }
  .cg-hero__lead  { font-size: 15px; line-height: 1.65; margin-top: 20px; max-width: 100%; }
  .cg-hero__measure { margin-top: 36px; gap: 12px; }
  .cg-hero__measure-cap { font-size: 18px; }
  .cg-hero__measure-val { display: none; }
  .cg-hero__field { display: none; }
  .cg-hero::before { display: none; }
}

/* ======================================================
   THE PRACTICE PAGE  (tp-*)
   ====================================================== */

/* ---- Hero ---- */
.tp-hero {
  min-height: 100svh;
  background: var(--black);
  color: var(--light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 40px 100px;
  text-align: center;
}

.tp-hero__inner {
  max-width: 720px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}

.tp-hero__inner.is-in {
  opacity: 1;
  transform: none;
}

.tp-hero__eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 44px;
}

.tp-hero__title {
  font-family: var(--serif, "Source Serif 4", Georgia, serif);
  font-size: clamp(2.8rem, 7.5vw, 5.6rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 40px;
  color: var(--light);
}

.tp-hero__sub {
  font-size: 1rem;
  color: var(--steel);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.75;
}

.tp-hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.tp-hero__scroll-line {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, rgba(137,139,141,0.5));
  animation: tp-scroll 2.2s ease-in-out infinite;
}

@keyframes tp-scroll {
  0%, 100% { opacity: 0.3; }
  55% { opacity: 0.9; }
}

/* ---- RTL: Arabic hero typography ---- */
html[dir="rtl"] .tp-hero__eyebrow {
  font-family: var(--arabic);
  letter-spacing: 0;
  text-transform: none;
}
html[dir="rtl"] .tp-hero__title,
html[dir="rtl"] .tp-hero__sub {
  font-family: var(--arabic);
  letter-spacing: 0;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .tp-hero { padding: 96px 24px 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .tp-hero__inner { transition: none; opacity: 1; transform: none; }
  .tp-hero__scroll-line { animation: none; }
}

/* ================================================================
   CLIENT GUIDE — Ten tips + CTA ("The Field Guide")
   ================================================================ */

.cg-tips {
  background: var(--surface-page);
  --cg-rail: clamp(56px, 5.4vw, 90px);   /* space reserved for the dimension rail */
  --cg-rail-x: clamp(9px, 1.1vw, 15px);  /* x of the vertical line, from content edge */
}
.cg-tips__inner {
  max-width: min(var(--page-max), 1180px);
  margin: 0 auto;
  padding: clamp(32px, 5vh, 64px) var(--gutter) clamp(24px, 3vh, 40px);
}

/* section head */
.cg-tips__head { margin-bottom: clamp(64px, 9vh, 112px); }
.cg-tips__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: var(--text-brand); margin-bottom: 26px;
}
.cg-tips__eyebrow .rule { display: block; width: 28px; height: 1.5px; background: var(--brand); flex-shrink: 0; }
.cg-tips__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(32px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.02em;
  color: var(--ink); margin: 0; max-width: 34ch;
}
.cg-tips__title .it { font-style: italic; color: var(--text-brand); font-weight: 400; }
.cg-tips__lead {
  font-size: clamp(15px, 1.4vw, 17.5px); line-height: 1.75;
  color: var(--text-muted); margin: 22px 0 0; max-width: 52ch;
}
[dir="rtl"] .cg-tips__eyebrow { letter-spacing: 0; font-family: var(--arabic); }
[dir="rtl"] .cg-tips__title { font-family: var(--arabic-display); letter-spacing: 0; }
[dir="rtl"] .cg-tips__title .it { font-style: normal; }
[dir="rtl"] .cg-tips__lead { font-family: var(--arabic); text-align: right; }
.cg-tips__eyebrow, .cg-tips__title, .cg-tips__lead {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.cg-tips__head.is-in .cg-tips__eyebrow { opacity: 1; transform: none; }
.cg-tips__head.is-in .cg-tips__title   { opacity: 1; transform: none; transition-delay: 0.12s; }
.cg-tips__head.is-in .cg-tips__lead    { opacity: 1; transform: none; transition-delay: 0.26s; }

/* list — airy, borderless; one lesson per row so 01→10 reads in order.
   The hero's dimension line, stood upright: a measured emerald spine runs the
   left rail, fills as you scroll, and marks each lesson as a station. */
.cg-tips__list { position: relative; }
.cg-tips__grid {
  list-style: none;
  margin: 0; padding: 0;
  padding-inline-start: var(--cg-rail);
  display: flex; flex-direction: column;
  row-gap: clamp(84px, 12vh, 140px);
}

/* the dimension spine — a muted emerald track with a scroll-driven fill */
.cg-tips__spine {
  position: absolute; z-index: 0;
  inset-inline-start: var(--cg-rail-x);
  top: clamp(14px, 2.2vw, 30px);
  bottom: clamp(14px, 2.2vw, 30px);
  width: 1px;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
}
/* perpendicular end-caps — reads as a measured drawing, never a card divider */
.cg-tips__spine::before,
.cg-tips__spine::after {
  content: ""; position: absolute; inset-inline-start: -4px;
  width: 9px; height: 1px;
  background: color-mix(in srgb, var(--brand) 42%, transparent);
}
.cg-tips__spine::before { top: 0; }
.cg-tips__spine::after { bottom: 0; }
.cg-tips__spine-fill {
  position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 1px;
  background: var(--brand);
  transform: scaleY(var(--spine-p, 0)); transform-origin: top;
  will-change: transform;
}
/* the point of progress that travels down the line as you read */
.cg-tips__spine-head {
  position: absolute; left: 50%; /* physical: pairs with translate(-50%,-50%) */
  top: calc(var(--spine-p, 0) * 100%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent);
}

/* a single lesson: [ number + icon plate ] | [ text body ] */
.cg-tip {
  position: relative;
  display: grid;
  grid-template-columns: clamp(132px, 15vw, 208px) minmax(0, 1fr);
  column-gap: clamp(34px, 5vw, 92px);
  align-items: start;
}
.cg-tip__body { min-width: 0; padding-top: clamp(2px, 0.4vw, 8px); }

/* station on the dimension spine: a node aligned to the lesson top */
.cg-tip__station {
  position: absolute; z-index: 1; top: clamp(14px, 1.5vw, 26px);
  inset-inline-start: calc(var(--cg-rail-x) - var(--cg-rail));
  display: flex; align-items: center;
  pointer-events: none;
}
.cg-tip__station-node {
  position: absolute; inset-inline-start: 0; top: 50%;
  margin-inline-start: -3.5px; /* logical centering — correct in LTR and RTL */
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--surface-page);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent);
  transform: translateY(-50%) scale(0.45);
  transition: transform 0.5s var(--ease) 0.05s, box-shadow 0.45s var(--ease), background 0.45s var(--ease);
}
.cg-tip.is-in .cg-tip__station-node {
  background: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
  transform: translateY(-50%) scale(1);
}

/* left plate — the sequence number seated above its drawn icon */
.cg-tip__plate {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(16px, 1.9vw, 26px);
}
.cg-tip__num {
  position: relative;
  font-family: var(--serif); font-weight: 200; line-height: 0.82;
  font-size: clamp(38px, 4.4vw, 62px); letter-spacing: -0.02em;
  color: var(--steel);
  transition: color 0.4s var(--ease);
}
[dir="rtl"] .cg-tip__num { font-family: var(--arabic); letter-spacing: 0; }
.cg-tip:hover .cg-tip__num { color: var(--text-brand); }

.cg-tip__icon {
  position: relative; z-index: 1;
  width: clamp(64px, 6.6vw, 94px); height: clamp(64px, 6.6vw, 94px);
  color: var(--brand);
  flex-shrink: 0;
}
.cg-tip__svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* icon strokes draw themselves on */
.cg-tip__svg .drw {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1s cubic-bezier(0.55, 0, 0.3, 1);
}
.cg-tip__svg .dsh {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.cg-tip__svg .dot {
  opacity: 0;
  transform: scale(0);
  transform-origin: center; transform-box: fill-box;
  transition: opacity 0.45s var(--ease), transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* draw order follows DOM order */
.cg-tip__svg > :nth-child(1)  { transition-delay: 0.05s; }
.cg-tip__svg > :nth-child(2)  { transition-delay: 0.17s; }
.cg-tip__svg > :nth-child(3)  { transition-delay: 0.29s; }
.cg-tip__svg > :nth-child(4)  { transition-delay: 0.41s; }
.cg-tip__svg > :nth-child(5)  { transition-delay: 0.53s; }
.cg-tip__svg > :nth-child(6)  { transition-delay: 0.62s; }
.cg-tip__svg > :nth-child(7)  { transition-delay: 0.71s; }
.cg-tip__svg > :nth-child(8)  { transition-delay: 0.80s; }
.cg-tip__svg > :nth-child(9)  { transition-delay: 0.89s; }
.cg-tip__svg > :nth-child(10) { transition-delay: 0.98s; }
.cg-tip.is-in .cg-tip__svg .drw { stroke-dashoffset: 0; }
.cg-tip.is-in .cg-tip__svg .dsh { opacity: 1; }
.cg-tip.is-in .cg-tip__svg .dot { opacity: 1; transform: scale(1); }

/* idle motion — once drawn, the icons keep quietly drafting */
@keyframes cg-icon-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35%      { transform: translateY(-9px) rotate(-0.8deg); }
  65%      { transform: translateY(-6px) rotate(0.5deg); }
}
@keyframes cg-dash-march {
  to { stroke-dashoffset: -10.4; }
}
@keyframes cg-dot-pulse {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  45%      { opacity: 0.20; transform: scale(0.55); }
  55%      { opacity: 0.20; transform: scale(0.55); }
}
.cg-tip.is-in .cg-tip__svg {
  animation: cg-icon-drift 4.8s ease-in-out 1.2s infinite;
}
.cg-tip.is-in .cg-tip__svg .dsh {
  animation: cg-dash-march 2.6s linear 1.6s infinite;
}
.cg-tip.is-in .cg-tip__svg .dot {
  animation: cg-dot-pulse 2.6s ease-in-out 2.0s infinite;
}

.cg-tip__meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: clamp(14px, 1.6vh, 18px);
}
.cg-tip__accent {
  display: block; width: 26px; height: 1.5px; background: var(--brand);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s var(--ease) 0.4s, width 0.35s var(--ease);
}
.cg-tip.is-in .cg-tip__accent { transform: scaleX(1); }
.cg-tip:hover .cg-tip__accent { width: 44px; }
[dir="rtl"] .cg-tip__accent { transform-origin: right; }
.cg-tip__tag {
  font: 700 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted);
}

.cg-tip__heading {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 2.5vw, 34px); line-height: 1.18; letter-spacing: -0.015em;
  color: var(--ink); margin: 0 0 14px;
  max-width: 24ch;
  text-wrap: balance;
  transition: color 0.4s var(--ease);
}
.cg-tip:hover .cg-tip__heading { color: var(--text-brand); }
.cg-tip__line {
  font-size: clamp(15px, 1.3vw, 16.5px); line-height: 1.78;
  color: var(--text-muted); margin: 0 0 18px; max-width: 46ch;
  text-wrap: pretty;
}
/* "in practice" — an airy, borderless aside marked by a short emerald tick */
/* Arabic type — Naskh needs more size, weight and air than the Latin serif */
[dir="rtl"] .cg-tip__tag { letter-spacing: 0; font-family: var(--arabic); font-size: 13px; }
[dir="rtl"] .cg-tip__heading {
  font-family: var(--arabic-display); letter-spacing: 0; text-align: right;
  font-size: clamp(25px, 2.4vw, 33px); font-weight: 600; line-height: 1.5;
}
[dir="rtl"] .cg-tip__line {
  font-family: var(--arabic); letter-spacing: 0; text-align: right;
  font-size: clamp(15.5px, 1.35vw, 17.5px); line-height: 2;
}
[dir="rtl"] .cg-tips__title { line-height: 1.55; }
[dir="rtl"] .cg-tips__lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 2; }

/* reveal — the number lifts in, the icon draws itself, then the text settles */
.cg-tip__num, .cg-tip__icon,
.cg-tip__meta, .cg-tip__heading, .cg-tip__line {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), color 0.4s var(--ease);
}
.cg-tip.is-in .cg-tip__num     { opacity: 1; transform: none; transition-delay: 0.06s; }
.cg-tip.is-in .cg-tip__icon    { opacity: 1; transform: none; transition-delay: 0.18s; }
.cg-tip.is-in .cg-tip__meta    { opacity: 1; transform: none; transition-delay: 0.30s; }
.cg-tip.is-in .cg-tip__heading { opacity: 1; transform: none; transition-delay: 0.38s; }
.cg-tip.is-in .cg-tip__line    { opacity: 1; transform: none; transition-delay: 0.48s; }

/* ---- CTA (the single dark close, for contrast) ---- */
.cg-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 130% 95% at 50% 50%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(115deg, transparent 30%, rgba(137, 139, 141, 0.10) 45%, rgba(242, 243, 244, 0.055) 50%, rgba(137, 139, 141, 0.10) 55%, transparent 70%),
    repeating-linear-gradient(0deg, rgba(137, 139, 141, 0.045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(0, 0, 0, 0.14) 7px 8px, transparent 8px 11px),
    var(--surface-charcoal);
  color: #fff;
  padding: clamp(56px, 9vh, 110px) var(--gutter);
  border-top: 1px solid var(--border-subtle);
}
.cg-cta::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 55%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent,
    rgba(242, 243, 244, 0.045) 35%,
    rgba(137, 139, 141, 0.07) 50%,
    rgba(242, 243, 244, 0.045) 65%,
    transparent);
  transform: skewX(-12deg);
  animation: ctaSheen 13s ease-in-out infinite;
}
@keyframes ctaSheen {
  0%   { transform: translateX(0) skewX(-12deg); opacity: 0; }
  10%  { opacity: 1; }
  46%  { transform: translateX(330%) skewX(-12deg); opacity: 1; }
  56%  { transform: translateX(330%) skewX(-12deg); opacity: 0; }
  100% { transform: translateX(330%) skewX(-12deg); opacity: 0; }
}
.cg-cta__inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.cg-cta__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: var(--text-brand); margin-bottom: 30px;
}
.cg-cta__eyebrow .rule { display: block; width: 28px; height: 1.5px; background: var(--brand); flex-shrink: 0; }
.cg-cta__title {
  font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.08; letter-spacing: -0.02em; color: #fff; margin: 0 0 22px;
}
.cg-cta__title .it { font-style: italic; color: var(--text-brand); }
[dir="rtl"] .cg-cta__title .it { font-style: normal; }
.cg-cta__sub {
  font-size: clamp(15px, 1.7vw, 18px); line-height: 1.65; color: rgba(255,255,255,0.6);
  max-width: 52ch; margin: 0 auto 38px;
}
.cg-cta__btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 44px;
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 0;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  transition: background var(--t-med), color var(--t-med), border-color var(--t-med);
}
.cg-cta__btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
[dir="rtl"] .cg-cta__eyebrow { letter-spacing: 0; font-family: var(--arabic); }
[dir="rtl"] .cg-cta__title { font-family: var(--arabic-display); letter-spacing: 0; }
[dir="rtl"] .cg-cta__sub { font-family: var(--arabic); }
[dir="rtl"] .cg-cta__btn { font-family: var(--arabic); letter-spacing: 0; }

/* CTA reveal */
.cg-cta__eyebrow, .cg-cta__title, .cg-cta__sub, .cg-cta__btn {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}
.cg-cta.is-in .cg-cta__eyebrow { opacity: 1; transform: none; transition-delay: 0.05s; }
.cg-cta.is-in .cg-cta__title   { opacity: 1; transform: none; transition-delay: 0.18s; }
.cg-cta.is-in .cg-cta__sub     { opacity: 1; transform: none; transition-delay: 0.33s; }
.cg-cta.is-in .cg-cta__btn     { opacity: 1; transform: none; transition-delay: 0.48s; }

/* ---- Responsive ---- */
@media (max-width: 680px) {
  .cg-tips__grid { row-gap: clamp(48px, 7vh, 72px); padding-inline-start: 0; }
  .cg-tips__inner { padding-inline: var(--gutter-mobile); }
  .cg-tips__spine { display: none; }
  .cg-tip { grid-template-columns: 1fr; }
  .cg-tip__station { display: none; }
  .cg-tip__plate { flex-direction: row; align-items: center; gap: 22px; margin-bottom: 22px; }
  .cg-tip__num { font-size: 54px; }
  .cg-tip__icon { width: 66px; height: 66px; }
  .cg-hero__ghost { display: none; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .cg-hero__eyebrow, .cg-hero__title, .cg-hero__lead, .cg-hero__measure,
  .cg-tips__eyebrow, .cg-tips__title, .cg-tips__lead,
  .cg-tip__num, .cg-tip__icon,
  .cg-tip__svg, .cg-tip__accent, .cg-tip__meta, .cg-tip__heading, .cg-tip__line,
  .cg-tip__svg .dsh, .cg-tip__svg .dot,
  .cg-cta__eyebrow, .cg-cta__title, .cg-cta__sub, .cg-cta__btn {
    opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important;
  }
  .cg-hero__ghost { animation: none !important; opacity: 0.05 !important; }
  [dir="rtl"] .cg-hero__ghost { opacity: 0.1 !important; }
  .cg-hero__field { animation: none !important; opacity: 1 !important; }
  .cg-hero::before { animation: none !important; }
  .cg-tip__svg .drw { stroke-dashoffset: 0 !important; transition: none !important; }
  /* dimension spine + stations render fully drawn, static */
  .cg-tips__spine-fill { transform: scaleY(1) !important; }
  .cg-tips__spine-head { display: none !important; }
  .cg-tip__station-node { transform: translateY(-50%) scale(1) !important; transition: none !important; }
  .cg-cta__btn:hover { transform: none; }
  .cg-cta::before { animation: none !important; opacity: 0 !important; }
}

/* ================================================================
   SURVEY — cinematic feedback experience
   ================================================================ */

/* ── Progress bar ─────────────────────────────────────────────── */
.sv-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: var(--brand); transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}
[dir="rtl"] .sv-progress { transform-origin: right; }

/* ── Shell ────────────────────────────────────────────────────── */
.sv-shell {
  min-height: 100vh;
  background: var(--surface-page);
  color: var(--ink);
  position: relative;
  isolation: isolate;
}
.sv-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 55% at 97% 3%,  rgba(78,131,124,0.08) 0%, transparent 68%),
    radial-gradient(ellipse 38% 44% at 3%  97%, rgba(78,131,124,0.06) 0%, transparent 62%);
  z-index: -1;
}
.sv-section { position: relative; }

/* ── Section base ─────────────────────────────────────────────── */
.sv-section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--topbar-h) + 64px) 0 72px;
  border-top: 1px solid var(--border-line);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.sv-section:first-of-type { border-top: none; }
.sv-section.is-in { opacity: 1; transform: none; }

.sv-section__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

/* ── Eyebrow / headings ───────────────────────────────────────── */
.sv-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: var(--text-brand); margin-bottom: 20px;
}
.sv-eyebrow .rule {
  display: block; width: 28px; height: 1.5px;
  background: var(--brand); flex-shrink: 0;
}
.sv-eyebrow--light { color: rgba(255,255,255,0.6); }
.sv-eyebrow--light .rule { background: var(--teal-200); }
[dir="rtl"] .sv-eyebrow { letter-spacing: 0; font-family: var(--arabic); }

.sv-section__head { margin-bottom: 48px; }

.sv-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.8vw, 66px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 16px;
}
[dir="rtl"] .sv-title { font-family: var(--arabic-display); letter-spacing: 0; }

.sv-subtitle {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 520px;
}
[dir="rtl"] .sv-subtitle { font-family: var(--arabic); }

/* ── Fields / inputs ──────────────────────────────────────────── */
.sv-field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.sv-field:last-child { margin-bottom: 0; }

.sv-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
}
[dir="rtl"] .sv-label { letter-spacing: 0; font-family: var(--arabic); font-size: 13px; }

.sv-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--border-subtle);
  padding: 12px 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease);
  border-radius: 0;
}
.sv-input::placeholder { color: var(--border-subtle); }
.sv-input:focus { border-bottom-color: var(--brand); }
.sv-input--xl { font-size: clamp(22px, 3vw, 36px); }
[dir="rtl"] .sv-input { font-family: var(--arabic); text-align: right; }

/* ════════════════════════════════════════════════════════════
   S1 — Project Identity
   ════════════════════════════════════════════════════════════ */
.sv-identity {
  position: relative;
  overflow: hidden;
}
.sv-identity__glyph {
  position: absolute;
  top: 50%; right: -6%;
  transform: translateY(-50%);
  width: min(520px, 58vw);
  height: auto;
  color: var(--ink);
  pointer-events: none;
  overflow: visible;
}
[dir="rtl"] .sv-identity__glyph { right: auto; left: -6%; }

/* ── Survey-sheet glyph keyframes ────────────────────────────── */
@keyframes sv-glyph-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes sv-glyph-tick {
  0%        { stroke-dashoffset: 16; opacity: 0; }
  12%, 86%  { stroke-dashoffset: 0;  opacity: 0.55; }
  100%      { stroke-dashoffset: 0;  opacity: 0.55; }
}
@keyframes sv-glyph-dotpulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 0.85; }
}
@keyframes sv-glyph-bargrow {
  0%, 100% { transform: scaleY(0.82); }
  50%       { transform: scaleY(1); }
}

.sv-glyph-sheet { transform-origin: 200px 200px; animation: sv-glyph-float 14s ease-in-out infinite; }
.sv-glyph-check { stroke-dasharray: 16; animation: sv-glyph-tick 9s ease-in-out infinite; }
.sv-glyph-check--2 { animation-delay: 1.4s; }
.sv-glyph-dot   { animation: sv-glyph-dotpulse 5s ease-in-out infinite; }
.sv-glyph-dot--2 { animation-delay: 2.2s; }
.sv-glyph-bars rect { transform-origin: center bottom; transform-box: fill-box; animation: sv-glyph-bargrow 7s ease-in-out infinite; }
.sv-glyph-bars rect:nth-child(2) { animation-delay: 0.5s; }
.sv-glyph-bars rect:nth-child(3) { animation-delay: 1s; }
.sv-glyph-bars rect:nth-child(4) { animation-delay: 1.5s; }
.sv-glyph-bars rect:nth-child(5) { animation-delay: 2s; }

@media (prefers-reduced-motion: reduce) {
  .sv-identity__glyph, .sv-glyph-sheet, .sv-glyph-check,
  .sv-glyph-dot, .sv-glyph-bars rect { animation: none; }
  .sv-glyph-check { stroke-dashoffset: 0; opacity: 0.55; }
}

.sv-identity__fields { display: grid; gap: 32px; }
.sv-identity__about {
  display: grid; gap: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}
.sv-identity__about-lbl {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: -8px;
}
[dir="rtl"] .sv-identity__about-lbl { letter-spacing: 0; font-family: var(--arabic); }

/* ════════════════════════════════════════════════════════════
   S2 — Phase Timeline
   ════════════════════════════════════════════════════════════ */
.sv-timeline__body { display: flex; flex-direction: column; gap: 40px; }

.sv-phase { display: grid; grid-template-columns: 1fr 96px; gap: 20px; align-items: center; }
@media (max-width: 600px) { .sv-phase { grid-template-columns: 1fr 64px; gap: 14px; } }

.sv-phase__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px; grid-column: 1;
}
.sv-phase__label {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink);
}
[dir="rtl"] .sv-phase__label { letter-spacing: 0; font-family: var(--arabic); font-size: 14px; }
.sv-phase__sentiment {
  font-size: 11.5px; font-weight: 600;
  color: var(--text-brand);
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.3s;
}
[dir="rtl"] .sv-phase__sentiment { font-family: var(--arabic); letter-spacing: 0; font-size: 13px; }

/* Track container — positions relative for fill + dot + ticks */
.sv-phase__track {
  position: relative;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 99px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  outline: none;
  grid-column: 1;
  grid-row: 2;
  margin-top: 4px;
}
.sv-phase__track:focus-visible { box-shadow: 0 0 0 3px rgba(55,133,125,0.3); }
.sv-phase__track:active { cursor: grabbing; }

.sv-phase__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--teal-200), var(--brand));
  border-radius: 99px;
  pointer-events: none;
  transition: width 0.1s;
}

.sv-phase__ticks {
  position: absolute; inset: 0;
  pointer-events: none;
}
.sv-phase__tick {
  position: absolute; top: 50%;
  width: 1px; height: 10px;
  transform: translate(-50%, -50%);
  background: var(--surface-page);
  opacity: 0.6;
}
.sv-phase__tick:first-child,
.sv-phase__tick:last-child { display: none; }

.sv-phase__dot {
  position: absolute; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: left 0.1s;
  z-index: 2;
}
.sv-phase__dot-inner {
  display: block;
  width: 22px; height: 22px;
  background: #fff;
  border: 2.5px solid var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(55,133,125,0.18), var(--shadow-md);
  transition: box-shadow 0.2s;
}
.sv-phase__track:hover .sv-phase__dot-inner,
.sv-phase__track:active .sv-phase__dot-inner {
  box-shadow: 0 0 0 7px rgba(55,133,125,0.22), var(--shadow-lg);
}

.sv-phase__face-wrap {
  grid-row: 1 / 3;
  grid-column: 2;
  display: flex; align-items: center; justify-content: center;
}
.sv-face {
  width: 72px; height: 72px;
  display: block;
}

/* ════════════════════════════════════════════════════════════
   S3 — Word Cloud
   ════════════════════════════════════════════════════════════ */
.sv-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.sv-cloud__count {
  margin-top: 20px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-brand);
}
[dir="rtl"] .sv-cloud__count { font-family: var(--arabic); letter-spacing: 0; }

.sv-tag {
  padding: 10px 20px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 99px;
  background: #fff;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease), color 0.2s;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}
.sv-section.is-in .sv-tag {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.45s var(--ease) var(--d, 0ms),
    transform 0.45s var(--ease) var(--d, 0ms),
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.sv-tag:hover {
  border-color: rgba(55,133,125,0.5);
  transform: translateY(-2px) scale(1.03);
}
.sv-tag.is-selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: scale(1.06);
  box-shadow: var(--shadow-md);
}
.sv-tag.is-selected:hover { transform: scale(1.08) translateY(-2px); }
[dir="rtl"] .sv-tag { font-family: var(--arabic); }

/* ════════════════════════════════════════════════════════════
   S4 — One Word (dark full-viewport)
   ════════════════════════════════════════════════════════════ */
.sv-oneword {
  background: var(--surface-charcoal);
  color: #fff;
}
.sv-oneword__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
[dir="rtl"] .sv-oneword__inner { direction: rtl; }

.sv-oneword__prompt {
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 48px;
}
[dir="rtl"] .sv-oneword__prompt { font-family: var(--arabic); letter-spacing: 0; }

.sv-oneword__field {
  position: relative;
  width: 100%;
  max-width: 460px;
}
.sv-oneword__input {
  width: 100%;
  background: transparent;
  border: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  outline: none;
  padding-bottom: 12px;
  caret-color: var(--brand);
}
.sv-oneword__input::placeholder { color: rgba(255,255,255,0.2); }
[dir="rtl"] .sv-oneword__input { font-family: var(--arabic); text-align: center; letter-spacing: 0; }

.sv-oneword__line {
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255,255,255,0.2);
  border-radius: 1px;
  overflow: hidden;
}
.sv-oneword__line::after {
  content: "";
  position: absolute; left: -100%; top: 0;
  width: 100%; height: 100%;
  background: var(--brand);
  transition: left 0.4s var(--ease);
}
.sv-oneword__field.is-focused .sv-oneword__line::after,
.sv-oneword__field.has-value .sv-oneword__line::after { left: 0; }

.sv-oneword__count {
  position: absolute;
  bottom: -28px;
  right: 0;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  font-variant-numeric: tabular-nums;
}
[dir="rtl"] .sv-oneword__count { right: auto; left: 0; }

/* ════════════════════════════════════════════════════════════
   S5 — Reflection
   ════════════════════════════════════════════════════════════ */
.sv-reflection__fields { display: grid; gap: 40px; }

.sv-journal {
  width: 100%;
  min-height: 120px;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--border-subtle);
  padding: 12px 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  resize: none;
  overflow: hidden;
  outline: none;
  transition: border-bottom-color 0.2s;
}
.sv-journal::placeholder { color: var(--border-subtle); }
.sv-journal:focus { border-bottom-color: var(--brand); }
[dir="rtl"] .sv-journal { font-family: var(--arabic); text-align: right; font-size: 18px; }

/* ════════════════════════════════════════════════════════════
   S6 — Testimonial
   ════════════════════════════════════════════════════════════ */
.sv-testimonial__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}

.sv-voice-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.sv-voice-btn:hover { border-color: var(--brand); color: var(--text-brand); }
.sv-voice-btn.is-recording {
  border-color: #a44a3f;
  color: #a44a3f;
  animation: sv-rec-pulse 1.2s ease-in-out infinite;
}
@keyframes sv-rec-pulse {
  0%, 100% { background: transparent; }
  50% { background: rgba(164,74,63,0.07); }
}
[dir="rtl"] .sv-voice-btn { letter-spacing: 0; font-family: var(--arabic); }

/* Consent toggle */
.sv-consent {
  display: flex; align-items: center; gap: 16px;
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid var(--border-line);
}
.sv-consent__toggle {
  position: relative;
  width: 46px; height: 26px; flex-shrink: 0;
  background: var(--border-subtle);
  border: none;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.25s var(--ease);
  outline: none;
}
.sv-consent__toggle:focus-visible { box-shadow: 0 0 0 3px rgba(55,133,125,0.3); }
.sv-consent__toggle.is-on { background: var(--brand); }

.sv-consent__thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: left 0.25s var(--ease);
  pointer-events: none;
}
.sv-consent__toggle.is-on .sv-consent__thumb { left: 23px; }

.sv-consent__label {
  font-size: 14px; line-height: 1.5;
  color: var(--text-muted);
}
[dir="rtl"] .sv-consent__label { font-family: var(--arabic); }

/* ════════════════════════════════════════════════════════════
   Submit Section (dark)
   ════════════════════════════════════════════════════════════ */
.sv-submit {
  background: var(--surface-charcoal);
  color: #fff;
  min-height: 80vh;
  align-items: center;
}
.sv-submit__inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
[dir="rtl"] .sv-submit__inner { direction: rtl; }

.sv-submit__title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 60px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}
[dir="rtl"] .sv-submit__title { font-family: var(--arabic-display); letter-spacing: 0; }

.sv-submit__sub {
  font-size: 16px; line-height: 1.65;
  color: rgba(255,255,255,0.52);
  margin-bottom: 44px;
  max-width: 440px;
}
[dir="rtl"] .sv-submit__sub { font-family: var(--arabic); }

.sv-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 40px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  cursor: pointer;
  min-width: 200px;
  transition: background var(--t-fast), transform var(--t-fast), opacity 0.2s;
}
.sv-cta-btn:hover:not(:disabled) { background: var(--brand-hover); }
.sv-cta-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.sv-cta-btn.is-loading { pointer-events: none; }
[dir="rtl"] .sv-cta-btn { letter-spacing: 0; font-family: var(--arabic); }

.sv-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sv-spin 0.7s linear infinite;
}
@keyframes sv-spin { to { transform: rotate(360deg); } }

.sv-error {
  color: #f2a89b;
  font-size: 14px; line-height: 1.6;
  margin-bottom: 24px; max-width: 400px;
  background: rgba(164,74,63,0.15);
  border: 1px solid rgba(164,74,63,0.35);
  border-radius: 6px;
  padding: 14px 18px;
  text-align: start;
}
[dir="rtl"] .sv-error { font-family: var(--arabic); }

.sv-submit__privacy {
  margin-top: 20px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
}
[dir="rtl"] .sv-submit__privacy { font-family: var(--arabic); }

/* ════════════════════════════════════════════════════════════
   Thank-you screen
   ════════════════════════════════════════════════════════════ */
.sv-thankyou {
  background: var(--surface-charcoal);
  color: #fff;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.sv-thankyou__inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.sv-thankyou__mark {
  display: block;
  font-size: 40px;
  color: var(--brand);
  margin-bottom: 28px;
  animation: sv-mark-pop 0.5s var(--ease) both;
}
@keyframes sv-mark-pop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.sv-thankyou__title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 20px;
}
[dir="rtl"] .sv-thankyou__title { font-family: var(--arabic-display); }
.sv-thankyou__body {
  font-size: 16px; line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.sv-thankyou__ar {
  font-family: var(--arabic);
  font-size: 16px; line-height: 1.8;
  color: rgba(255,255,255,0.38);
}

/* ════════════════════════════════════════════════════════════
   Particle Burst
   ════════════════════════════════════════════════════════════ */
.sv-burst {
  position: fixed;
  top: 50%; left: 50%;
  pointer-events: none;
  z-index: 9999;
}
.sv-burst__p {
  position: absolute;
  top: 0; left: 0;
  width: var(--size, 6px);
  height: var(--size, 6px);
  border-radius: 50%;
  background: var(--brand);
  animation: sv-burst 0.9s var(--ease) var(--d, 0ms) both;
}
.sv-burst__p:nth-child(odd)  { background: var(--teal-200); }
.sv-burst__p:nth-child(3n)   { background: #fff; }
@keyframes sv-burst {
  from {
    transform: rotate(var(--angle)) translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: rotate(var(--angle)) translateX(var(--dist, 80px)) scale(0);
    opacity: 0;
  }
}

/* ════════════════════════════════════════════════════════════
   Survey footer
   ════════════════════════════════════════════════════════════ */
.sv-footer {
  background: var(--surface-charcoal);
  color: rgba(255,255,255,0.3);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 20px var(--gutter);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ════════════════════════════════════════════════════════════
   Survey topbar — hide nav links, just brand + lang
   ════════════════════════════════════════════════════════════ */
.sv-shell .topbar__inner {
  grid-template-columns: auto auto;
  justify-content: space-between;
}
.sv-shell .topbar__nav { display: none; }

/* ════════════════════════════════════════════════════════════
   Responsive — survey
   ════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  .sv-section { padding: calc(var(--topbar-h) + 40px) 0 56px; }
  .sv-section__inner { padding: 0 var(--gutter-mobile); }
  .sv-oneword__inner { padding: 0 var(--gutter-mobile); }
  .sv-submit__inner  { padding: 0 var(--gutter-mobile); }
  .sv-thankyou__inner { padding: 0 var(--gutter-mobile); }
  .sv-identity__glyph { opacity: 0.4; }
  .sv-phase { grid-template-columns: 1fr 56px; }
  .sv-phase__face-wrap { align-items: flex-end; }
  .sv-face { width: 54px; height: 54px; }
  .sv-journal { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .sv-section { transition: none; opacity: 1; transform: none; }
  .sv-tag { transition: border-color 0.2s, background 0.2s, color 0.2s; opacity: 1; transform: none; }
  .sv-burst { display: none; }
  .sv-identity__glyph { animation: none; }
  .sv-oneword__line::after { transition: none; }
  .sv-consent__thumb { transition: none; }
  .sv-phase__fill { transition: none; }
}

/* ── NPS Section ─────────────────────────────────────────────── */
.sv-nps__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sv-nps__scale {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.sv-nps__btn {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: #fff;
  font-family: var(--serif);
  font-size: 20px; font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s,
              transform 0.18s var(--ease), opacity 0.18s;
}
.sv-nps__btn:hover { border-color: rgba(55,133,125,0.5); }
.sv-nps__btn.is-selected {
  background: var(--nps-color, var(--brand));
  border-color: var(--nps-color, var(--brand));
  color: #fff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: var(--shadow-md);
}
.sv-nps__btn.is-dim { opacity: 0.35; }

.sv-nps__axis {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 612px;
  margin-top: 10px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
}
[dir="rtl"] .sv-nps__axis { font-family: var(--arabic); letter-spacing: 0; flex-direction: row-reverse; }

.sv-nps__label {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 22px; font-weight: 400;
  letter-spacing: -0.01em;
  min-height: 32px;
  transition: color 0.3s;
}
[dir="rtl"] .sv-nps__label { font-family: var(--arabic); }

@media (max-width: 600px) {
  .sv-nps__btn { width: 42px; height: 42px; font-size: 17px; border-radius: 6px; }
  .sv-nps__scale { gap: 6px; }
}

/* ── Reflection Section (one question) ───────────────────────── */
.sv-reflection__inner { max-width: 760px; }
.sv-reflection__q {
  font-size: clamp(28px, 4vw, 56px);
  margin-bottom: 36px;
}
.sv-reflection__hint {
  margin-top: 16px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-brand);
}
[dir="rtl"] .sv-reflection__hint { font-family: var(--arabic); letter-spacing: 0; }

/* ── Final Section (testimonial + submit, dark) ──────────────── */
.sv-finalsection {
  background: var(--surface-charcoal);
  color: #fff;
  min-height: auto;
  padding: 96px 0;
  opacity: 1;
  transform: none;
}
.sv-finalsection__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sv-final__testimonial { margin-bottom: 0; }
.sv-final__t-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.sv-final__t-sub {
  font-size: 15px; line-height: 1.6;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
[dir="rtl"] .sv-final__t-sub { font-family: var(--arabic); }

/* Override journal for dark background */
.sv-finalsection .sv-journal {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.2);
}
.sv-finalsection .sv-journal::placeholder { color: rgba(255,255,255,0.2); }
.sv-finalsection .sv-journal:focus { border-bottom-color: var(--brand); }

/* Override consent label for dark */
.sv-finalsection .sv-consent__label { color: rgba(255,255,255,0.55); }
.sv-finalsection .sv-consent__toggle { background: rgba(255,255,255,0.15); }

.sv-final__divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 56px 0;
}

.sv-final__cta { text-align: center; }

/* Submit title/sub — override for dark bg */
.sv-finalsection .sv-submit__title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 50px);
  font-weight: 400; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 16px;
}
[dir="rtl"] .sv-finalsection .sv-submit__title { font-family: var(--arabic-display); }
.sv-finalsection .sv-submit__sub {
  font-size: 16px; line-height: 1.65;
  color: rgba(255,255,255,0.48);
  margin-bottom: 36px; max-width: 440px;
  margin-left: auto; margin-right: auto;
}
[dir="rtl"] .sv-finalsection .sv-submit__sub { font-family: var(--arabic); }
.sv-finalsection .sv-submit__privacy {
  margin-top: 18px; font-size: 11.5px;
  color: rgba(255,255,255,0.25); letter-spacing: 0.02em;
}

@media (max-width: 680px) {
  .sv-finalsection { padding: 64px 0; }
  .sv-finalsection__inner { padding: 0 var(--gutter-mobile); }
  .sv-final__divider { margin: 40px 0; }
}

/* ── Role Picker ─────────────────────────────────────────────── */
.sv-rolepicker {
  margin-bottom: 48px;
}
.sv-rolepicker__prompt {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
[dir="rtl"] .sv-rolepicker__prompt { font-family: var(--arabic); letter-spacing: 0; }

.sv-rolepicker__cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.sv-rolecard {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s var(--ease);
  min-width: 220px;
  flex: 1;
  max-width: 320px;
}
[dir="rtl"] .sv-rolecard { text-align: right; }
/* Accent rail that reveals on hover / select */
.sv-rolecard::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.22s var(--ease);
}
[dir="rtl"] .sv-rolecard::before { left: auto; right: 0; }
.sv-rolecard:hover {
  border-color: rgba(55,133,125,0.45);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.sv-rolecard:hover::before { transform: scaleY(1); }
.sv-rolecard.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(78,131,124,0.12), var(--shadow-sm);
  transform: translateY(-2px);
}
.sv-rolecard.is-selected::before { transform: scaleY(1); }

.sv-rolecard__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--surface-page);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.sv-rolecard:hover .sv-rolecard__icon {
  color: var(--brand);
  border-color: rgba(55,133,125,0.3);
}
.sv-rolecard.is-selected .sv-rolecard__icon {
  color: var(--brand);
  background: rgba(78,131,124,0.1);
  border-color: rgba(55,133,125,0.35);
}

.sv-rolecard__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sv-rolecard__label {
  font-size: 15px; font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
[dir="rtl"] .sv-rolecard__label { font-family: var(--arabic); }
.sv-rolecard.is-selected .sv-rolecard__label { color: var(--brand); }

.sv-rolecard__sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
[dir="rtl"] .sv-rolecard__sub { font-family: var(--arabic); }

/* Identity fields — hidden until role is picked */
.sv-identity__fields {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.4s ease;
  pointer-events: none;
}
.sv-identity__fields.is-visible {
  max-height: 600px;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 560px) {
  .sv-rolepicker__cards { flex-direction: column; }
  .sv-rolecard { max-width: none; }
}

/* ── Point Allocation ────────────────────────────────────────── */
.sv-alloc__layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 8px;
}
.sv-alloc__donut {
  flex-shrink: 0;
  width: 160px;
}
.sv-alloc__donut svg { width: 100%; height: auto; overflow: visible; }

.sv-donut-seg { transition: opacity 0.3s; }
.sv-donut-seg--empty { opacity: 0.2; }
.sv-donut-num {
  font-family: var(--serif);
  font-size: 19px; font-weight: 400;
  fill: var(--brand);
  transition: fill 0.3s;
}
.sv-donut-num.is-done { fill: var(--text-muted); font-size: 14px; }
.sv-donut-lbl {
  font-size: 6.5px; font-weight: 700;
  fill: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.sv-alloc__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sv-alloc__rows {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sv-alloc__row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.sv-alloc__step {
  flex-shrink: 0;
  width: 40px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: 22px; line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, opacity 0.16s;
}
.sv-alloc__step:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.sv-alloc__step:disabled { opacity: 0.3; cursor: default; }

.sv-alloc__bar {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 18px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s;
}
[dir="rtl"] .sv-alloc__bar { text-align: right; }
.sv-alloc__bar:hover:not(:disabled) { border-color: rgba(78,131,124,0.5); }
.sv-alloc__bar.is-active { border-color: var(--brand); }
.sv-alloc__bar:disabled { cursor: default; }
.sv-alloc__fill {
  position: absolute;
  inset-inline-start: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(78,131,124,0.16), rgba(78,131,124,0.28));
  transition: width 0.35s var(--ease);
  z-index: 0;
}
.sv-alloc__name {
  position: relative; z-index: 1;
  flex: 1;
  font-size: 15px; font-weight: 600;
  color: var(--ink);
}
[dir="rtl"] .sv-alloc__name { font-family: var(--arabic); }
.sv-alloc__val {
  position: relative; z-index: 1;
  font-family: var(--serif);
  font-size: 20px; font-weight: 400;
  color: var(--brand);
  min-width: 28px;
  text-align: right;
}
[dir="rtl"] .sv-alloc__val { text-align: left; }

@media (max-width: 620px) {
  .sv-alloc__layout { gap: 28px; flex-direction: column; align-items: center; }
  .sv-alloc__donut { width: 140px; }
}

/* ── Expectation Slider ──────────────────────────────────────── */
.sv-exp__inner { max-width: 760px; }
.sv-exp__caption {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 400; letter-spacing: -0.01em;
  color: var(--text-muted);
  min-height: 1.4em;
  margin: 8px 0 40px;
  transition: color 0.3s;
}
.sv-exp__caption.is-answered { font-style: normal; }
[dir="rtl"] .sv-exp__caption { font-family: var(--arabic); }

.sv-exp__slider { margin-top: 8px; }
.sv-exp__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a44a3f 0%, #c4836e 30%, #898b8d 50%, #6fa39b 72%, var(--brand) 100%);
  outline: none;
  cursor: pointer;
}
.sv-exp__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--exp-color, var(--brand));
  box-shadow: var(--shadow-md);
  cursor: grab;
  transition: transform 0.15s var(--ease), border-color 0.3s;
}
.sv-exp__range::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.sv-exp__range::-moz-range-thumb {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--exp-color, var(--brand));
  box-shadow: var(--shadow-md);
  cursor: grab;
}
.sv-exp__range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(78,131,124,0.25), var(--shadow-md);
}

.sv-exp__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-muted);
}
[dir="rtl"] .sv-exp__axis { font-family: var(--arabic); letter-spacing: 0; flex-direction: row-reverse; }

/* ── AI-assisted testimonial draft ──────────────────────────── */
.sv-draft { margin: 6px 0 18px; }
.sv-draft__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: transparent;
  color: #f2f3f4;
  font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.sv-draft__btn:hover { border-color: var(--brand); background: rgba(78,131,124,0.16); }
.sv-draft__btn svg { color: var(--brand); flex-shrink: 0; }
[dir="rtl"] .sv-draft__btn { font-family: var(--arabic); }
.sv-draft__note {
  margin-top: 10px;
  font-size: 12.5px; line-height: 1.5;
  color: rgba(242,243,244,0.5);
  max-width: 46ch;
}
[dir="rtl"] .sv-draft__note { font-family: var(--arabic); }
.sv-journal.is-fresh { animation: svFresh 1s var(--ease); }
@keyframes svFresh {
  0%   { background: rgba(78,131,124,0.14); }
  100% { background: transparent; }
}

/* ── Frequency Picker ────────────────────────────────────────── */
.sv-freq { margin-bottom: 28px; }
.sv-freq__note {
  font-size: 11.5px; font-weight: 400;
  color: var(--text-muted); margin-inline-start: 4px;
}
.sv-freq__opts {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 10px;
}
.sv-freq__opt {
  padding: 9px 18px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.sv-freq__opt:hover { border-color: var(--brand); }
.sv-freq__opt.is-selected {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
[dir="rtl"] .sv-freq__opt { font-family: var(--arabic); }

/* ── AI Quote Visualization ──────────────────────────────────── */
.sv-quote-wrap {
  position: relative;
  margin-top: 4px;
}
.sv-quote-glyph {
  display: block;
  font-family: Georgia, var(--serif);
  font-size: 120px;
  line-height: 0.75;
  color: var(--brand);
  opacity: 0.22;
  user-select: none;
  pointer-events: none;
  margin-bottom: -16px;
}
[dir="rtl"] .sv-quote-glyph { text-align: right; }

/* Override sv-journal with bigger quote styling in final section */
.sv-finalsection .sv-journal.sv-quote-body {
  font-family: var(--serif);
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.72;
  color: rgba(242,243,244,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 10px 0 22px;
  min-height: 80px;
  font-style: normal;
}
.sv-finalsection .sv-journal.sv-quote-body::placeholder { font-style: italic; }
[dir="rtl"] .sv-finalsection .sv-journal.sv-quote-body {
  font-family: var(--arabic);
  text-align: right;
}

.sv-quote-loading {
  display: flex; gap: 9px; align-items: center;
  padding: 38px 0 48px;
}
.sv-quote-loading__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand);
  animation: svDot 1.3s ease-in-out infinite;
}
.sv-quote-loading__dot:nth-child(2) { animation-delay: 0.22s; }
.sv-quote-loading__dot:nth-child(3) { animation-delay: 0.44s; }
@keyframes svDot {
  0%, 80%, 100% { transform: scale(0.65); opacity: 0.35; }
  40%           { transform: scale(1.2);  opacity: 1; }
}

.sv-quote-attr {
  margin-top: 18px;
  font-size: 14.5px; letter-spacing: 0.01em;
  color: rgba(242,243,244,0.32);
  font-style: normal;
  transition: color 0.2s;
}
.sv-quote-attr--named { color: rgba(242,243,244,0.65); }
[dir="rtl"] .sv-quote-attr { font-family: var(--arabic); text-align: right; }

.sv-quote-regen {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px;
  padding: 0;
  background: none; border: none;
  color: rgba(242,243,244,0.3);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s;
}
.sv-quote-regen:hover:not(:disabled) { color: rgba(242,243,244,0.8); }
.sv-quote-regen:disabled { opacity: 0.5; cursor: default; }
.sv-quote-regen svg { color: var(--brand); }
[dir="rtl"] .sv-quote-regen { font-family: var(--arabic); letter-spacing: 0; }

/* ── Descriptor Chips (section 05) ────────────────────────────── */
.sv-chips__grid {
  display: flex; flex-wrap: wrap; gap: 11px;
  margin: 4px 0 44px;
}
.sv-chip {
  position: relative;
  padding: 12px 22px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.18s var(--ease);
}
.sv-chip:hover:not(:disabled):not(.is-on) {
  border-color: var(--brand);
  transform: translateY(-1px);
}
.sv-chip.is-on {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  padding-inline-start: 38px;
}
.sv-chip.is-on::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 18px;
  top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 700;
}
.sv-chip.is-locked { opacity: 0.4; cursor: default; }
[dir="rtl"] .sv-chip { font-family: var(--arabic); }

/* Optional open-text under the chips */
.sv-reflection__open { margin-top: 8px; }
.sv-reflection__open-q {
  display: block;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 14px;
}
.sv-optional {
  font-family: var(--font, inherit);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
  vertical-align: middle;
}
[dir="rtl"] .sv-reflection__open-q { font-family: var(--arabic); }

/* ── Where we can do better — improvement block (airy, private) ── */
.sv-improve {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(28px, 3.5vw, 40px);
}
.sv-improve__rule {
  display: block;
  width: 40px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
  margin-bottom: 22px;
}
[dir="rtl"] .sv-improve__rule { margin-left: auto; }
.sv-improve__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
}
[dir="rtl"] .sv-improve__title { font-family: var(--arabic-display); }
.sv-improve__sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 54ch;
  margin: 0 0 32px;
}
[dir="rtl"] .sv-improve__sub { font-family: var(--arabic); }
.sv-improve__block { margin-bottom: 36px; }
.sv-improve__followup { margin-top: 4px; }
.sv-improve__toggle { margin-top: 14px; }
.sv-improve__contact { margin-top: 22px; max-width: 460px; }

/* ── The Beginning — why-ABC choice cards + emotion pills ─────── */
.sv-begin__block { margin-bottom: 40px; }
.sv-begin__block:last-child { margin-bottom: 8px; }

.sv-choicecards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.sv-choicecard {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  text-align: start;
  padding: 18px 20px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
              box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.sv-choicecard:hover:not(:disabled):not(.is-on) {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(34,31,32,0.07);
}
.sv-choicecard__check {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 7px;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.sv-choicecard__label {
  font-size: 15.5px; font-weight: 500; line-height: 1.35;
}
.sv-choicecard.is-on {
  border-color: var(--brand);
  background: rgba(78,131,124,0.07);
  box-shadow: 0 8px 24px rgba(78,131,124,0.12);
}
.sv-choicecard.is-on .sv-choicecard__check {
  border-color: var(--brand);
  background: var(--brand);
  position: relative;
}
.sv-choicecard.is-on .sv-choicecard__check::after {
  content: "✓";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
}
.sv-choicecard.is-locked { opacity: 0.42; cursor: default; }
[dir="rtl"] .sv-choicecard__label { font-family: var(--arabic); }

.sv-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 14px;
}
.sv-pill {
  padding: 11px 20px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: 14.5px; font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.18s var(--ease);
}
.sv-pill:hover:not(.is-on) {
  border-color: var(--brand);
  transform: translateY(-1px);
}
.sv-pill.is-on {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
[dir="rtl"] .sv-pill { font-family: var(--arabic); }

/* ── Story-starters — tap to seed the open-text field ─────────── */
.sv-starters { margin-bottom: 14px; }
.sv-starters__hint {
  display: block;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 9px;
}
[dir="rtl"] .sv-starters__hint { font-family: var(--arabic); }
.sv-starters__row { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-starter {
  padding: 8px 15px;
  border: 1px dashed var(--border-subtle);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease),
              background 0.15s var(--ease);
}
.sv-starter:hover {
  border-color: var(--brand);
  border-style: solid;
  color: var(--brand);
  background: rgba(78,131,124,0.05);
}
[dir="rtl"] .sv-starter { font-family: var(--arabic); }

/* ============================================================
   THE PRACTICE PAGE — "The Working Drawing"
   One continuous architect's blueprint. Content lives on the
   grid as annotations, not in boxes.
   ============================================================ */

/* ---- Blueprint ground + measured grid ---- */
.practice-main {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  --bp-ground:      #16130f;
  --bp-ink:         #f2f3f4;
  --bp-grid:        rgba(242, 243, 244, 0.055);
  --bp-em:          #5fa093;
  --bp-em-deep:     #3f6f68;
  --bp-paper:       #e9e7e0;
  --bp-paper-ink:   #2a2622;
  --bp-paper-grid:  rgba(42, 38, 34, 0.07);
  --bp-rust:        #a44a3f;
  background: var(--bp-ground);
  color: var(--bp-ink);
}
.practice-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,  var(--bp-grid) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--bp-grid) 0 1px, transparent 1px 40px);
}
.practice-main > * { position: relative; z-index: 1; }

/* ---- Shared header scaffold, re-tuned for the dark ground ---- */
.practice-section { padding: clamp(44px, 5vw, 64px) 0 clamp(72px, 8vw, 108px); position: relative; }
.practice-standard { padding-top: calc(var(--topbar-h, 64px) + clamp(56px, 6vw, 84px)); }
.bp-wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.bp-head { margin: 0 0 clamp(44px, 5.5vw, 72px); padding: 0; max-width: 560px; }
.practice-main .bp-head { margin-bottom: clamp(30px, 3.4vw, 48px); }

.practice-main .section-title {
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--bp-ink);
  max-width: 22ch;
}
.practice-main .section-eyebrow { color: var(--bp-em); }
.practice-main .section-eyebrow .rule { background: var(--bp-em); }
.practice-main .section-title .it { font-style: italic; color: var(--bp-em); font-weight: 400; }

/* body-copy emphasis (rich() wraps *text* in .it) */
.practice-main p .it,
.bp-keynote__note .it { font-style: normal; color: var(--bp-em); font-weight: 600; }

/* ---- Draw-on primitive: strokes trace themselves when revealed ---- */
.practice-main .drw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.15s var(--ease);
}
.practice-main .in .drw { stroke-dashoffset: 0; }
.bp-detail-svg *, .bp-stamp-svg *, .bp-wall *, .bp-swatch-svg * { vector-effect: non-scaling-stroke; }
.bp-live { stroke: var(--bp-em); filter: drop-shadow(0 0 3px rgba(95, 160, 147, 0.5)); }

/* ============================================================
   HERO — cinematic photo dissolving into the drawing
   ============================================================ */
.practice-hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #0c0d0d;
  isolation: isolate;
}
.practice-hero__media { position: absolute; inset: 0; z-index: 0; }
.practice-hero__photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  animation: pr-ken 24s ease-out both;
}
@keyframes pr-ken { from { transform: scale(1.09); } to { transform: scale(1); } }
.practice-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(10, 11, 11, 0.52) 0%,
    rgba(10, 11, 11, 0.10) 30%,
    rgba(10, 11, 11, 0.48) 66%,
    var(--bp-ground) 100%);
}
.practice-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 260px; z-index: 2;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(242, 243, 244, 0.11) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg,  rgba(242, 243, 244, 0.08) 0 1px, transparent 1px 40px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 82%);
          mask-image: linear-gradient(180deg, transparent, #000 82%);
}
.bp-crop { position: absolute; z-index: 4; width: 26px; height: 26px; }
.bp-crop::before, .bp-crop::after { content: ""; position: absolute; background: rgba(242, 243, 244, 0.5); }
.bp-crop::before { width: 26px; height: 1.5px; top: 0; inset-inline-start: 0; }
.bp-crop::after  { width: 1.5px; height: 26px; top: 0; inset-inline-start: 0; }
.bp-crop--tl { top: 92px; inset-inline-start: 32px; }
.bp-crop--tr { top: 92px; inset-inline-end: 32px; }
.bp-crop--tr::before, .bp-crop--tr::after { inset-inline-start: auto; inset-inline-end: 0; }

.practice-hero__inner {
  position: relative; z-index: 3;
  max-width: var(--page-max); width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(20px, 2.6vw, 34px);
  display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px);
}
.practice-hero__sheet {
  display: inline-flex; align-items: center; gap: 14px;
  font: 700 12px/1 var(--sans);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(242, 243, 244, 0.62);
}
.practice-hero__sheet::before {
  content: ""; width: 34px; height: 1.5px; background: var(--bp-em);
}
.practice-hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 6.6vw, 96px);
  line-height: 1.0; letter-spacing: -0.022em;
  color: var(--bp-ink); margin: 0; max-width: 15ch;
}
.practice-hero__title .it { font-style: italic; color: var(--bp-em); }
.practice-hero__sub {
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.56; color: rgba(242, 243, 244, 0.84);
  max-width: 50ch; margin: 0;
}
.practice-hero__datum {
  position: relative; z-index: 3;
  max-width: var(--page-max); width: 100%;
  margin: 0 auto;
  padding: clamp(20px, 2.4vw, 30px) var(--gutter) clamp(26px, 3vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.practice-hero__datum::before {
  content: ""; position: absolute;
  left: var(--gutter); right: var(--gutter); top: 0; height: 1.5px;
  background: rgba(242, 243, 244, 0.4);
}
.practice-hero__datum-cap {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(14px, 1.3vw, 17px); color: rgba(242, 243, 244, 0.7);
}
.practice-hero__datum-mark {
  position: relative; padding-inline-start: 18px;
  font: 700 12px var(--sans); letter-spacing: 0.14em; color: var(--bp-em);
}
.practice-hero__datum-mark::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 50%;
  width: 11px; height: 1.5px; background: var(--bp-em); transform: translateY(-50%);
}

/* ============================================================
   STANDARD — scroll-driven "detail." ghost zoom
   ============================================================ */
.practice-standard { overflow: hidden; }

.std-ghost-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.std-ghost-word {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(120px, 20vw, 220px);
  color: var(--emerald);
  opacity: 0.09;
  white-space: nowrap;
  display: block;
  position: relative;
  z-index: 1;
  line-height: 1;
  user-select: none;
  transform-origin: center center;
  will-change: transform, filter;
}

.std-ghost-detail-svg {
  position: absolute;
  width: clamp(280px, 50vw, 520px);
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  fill: none;
  stroke: var(--emerald);
  stroke-width: 0.8;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform, opacity;
}

.std-ghost-detail-svg line,
.std-ghost-detail-svg polygon,
.std-ghost-detail-svg rect {
  vector-effect: non-scaling-stroke;
}

.std-svg-label {
  font-family: var(--sans);
  font-size: 9px;
  fill: var(--emerald);
  stroke: none;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

/* Clip-path reveal animation for SVG mark groups */
@keyframes std-reveal-clip-a {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes std-reveal-clip-b {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes std-reveal-clip-c {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.std-ghost-detail-svg .std-clip-rect--a { clip-path: inset(100% 0 0 0); }
.std-ghost-detail-svg .std-clip-rect--b { clip-path: inset(100% 0 0 0); }
.std-ghost-detail-svg .std-clip-rect--c { clip-path: inset(100% 0 0 0); }

.std-ghost-detail-svg.is-revealed .std-clip-rect--a {
  animation: std-reveal-clip-a 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards;
}
.std-ghost-detail-svg.is-revealed .std-clip-rect--b {
  animation: std-reveal-clip-b 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}
.std-ghost-detail-svg.is-revealed .std-clip-rect--c {
  animation: std-reveal-clip-c 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.46s forwards;
}

/* Reduced motion: static, no blur, no parallax */
@media (prefers-reduced-motion: reduce) {
  .std-ghost-word {
    transform: scale(1.8) !important;
    filter: none !important;
    letter-spacing: 0 !important;
    transition: none !important;
    will-change: auto !important;
  }
  .std-ghost-detail-svg {
    opacity: 0.6 !important;
    transform: translate(-50%, -50%) !important;
    transition: none !important;
    will-change: auto !important;
  }
  .std-ghost-detail-svg .std-clip-rect--a,
  .std-ghost-detail-svg .std-clip-rect--b,
  .std-ghost-detail-svg .std-clip-rect--c {
    animation: none !important;
    clip-path: inset(0 0 0 0) !important;
  }
  .practice-standard .section-head {
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   THE WAY WE WORK — commitments as drawn annotations
   ============================================================ */
.bp-notes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 6vw, 96px);
}
.bp-note {
  position: relative;
  padding-top: clamp(32px, 3.6vw, 52px);
  display: flex; flex-direction: column; align-items: flex-start;
}
/* Emerald thread at top of each card */
.bp-note::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0;
  width: 100%; height: 1.5px;
  background: linear-gradient(to right, var(--bp-em) 0%, rgba(78, 131, 124, 0.18) 100%);
}
[dir="rtl"] .bp-note::before {
  background: linear-gradient(to left, var(--bp-em) 0%, rgba(78, 131, 124, 0.18) 100%);
}
.bp-note__heading {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.16;
  color: var(--bp-ink); margin: 0 0 14px;
}
.bp-note__line {
  font-size: 15px; line-height: 1.72;
  color: rgba(242, 243, 244, 0.6); margin: 0; max-width: 42ch;
}

/* ── 1-in-3 stat annotation ── */
.bp-stat-pull {
  margin-top: clamp(52px, 7vw, 88px);
  padding-top: 20px;
  border-top: 1.5px solid rgba(95, 160, 147, 0.28);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 10px;
}
.bp-stat-pull__rule {
  display: none;
}
.bp-stat-pull__figure {
  margin: 0; line-height: 1; letter-spacing: -0.01em;
  font-family: var(--serif);
}
.bp-stat-pull__num {
  font-size: clamp(52px, 7.5vw, 88px);
  font-weight: 300; color: var(--bp-ink);
}
.bp-stat-pull__suf {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 300; color: var(--bp-em);
  margin-inline-start: 0.12em;
}
.bp-stat-pull__label {
  margin: 0;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(242, 243, 244, 0.52);
  max-width: 36ch;
}

/* ============================================================
   NOTHING IS COVERED — pale drafting-paper quality-gates section
   ============================================================ */
.practice-method {
  position: relative;
  background: var(--bp-paper);
  color: var(--bp-paper-ink);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.45), 0 1px 0 rgba(0, 0, 0, 0.45);
}
.practice-method::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,  var(--bp-paper-grid) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--bp-paper-grid) 0 1px, transparent 1px 40px);
}
.practice-method > * { position: relative; z-index: 1; }
.practice-method .bp-head,
.practice-crafts .bp-head { max-width: none; }
.practice-method .section-title,
.practice-crafts .section-title { max-width: none; }
.practice-method .section-title { color: var(--bp-paper-ink); }
.practice-method .section-eyebrow,
.practice-method .section-title .it { color: var(--bp-em-deep); }
.practice-method .section-eyebrow .rule { background: var(--bp-em-deep); }
.practice-method .bp-gate__name { color: var(--bp-paper-ink); }
.practice-method .bp-gate__line { color: var(--steel); }
.practice-method .bp-gate__line .it { color: var(--steel); font-weight: 500; }
.practice-method .bp-gate__stamp { color: rgba(42, 38, 34, 0.55); }

/* ============================================================
   SYSTEMS — applying systems thinking (dark drafting ground)
   ============================================================ */
.practice-systems {
  position: relative;
  overflow: hidden;
}
.practice-systems .sys-head {
  max-width: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(30px, 3.6vw, 48px);
}
.sys-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px) minmax(0, 1fr);
  grid-template-areas: "a d b";
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.sys-lead {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 29px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--bp-ink);
  max-width: 42ch;
}
.sys-lead .it { color: var(--bp-em); font-style: italic; }
.sys-body .it { color: rgba(242, 243, 244, 0.85); font-style: normal; }
.sys-body {
  margin: clamp(14px, 1.8vw, 20px) auto 0;
  font-size: clamp(14.5px, 1.6vw, 16.5px);
  line-height: 1.8;
  color: rgba(242, 243, 244, 0.6);
  max-width: 56ch;
}
[dir="rtl"] .sys-lead { font-family: var(--arabic); font-weight: 500; line-height: 1.75; }
[dir="rtl"] .sys-lead .it { font-style: normal; }
[dir="rtl"] .sys-body { font-family: var(--arabic); font-size: clamp(15.5px, 1.7vw, 17.5px); }
.sys-diagram svg { width: 100%; height: auto; display: block; }
.sys-caption {
  margin: 6px 0 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(13px, 1.4vw, 15px);
  color: rgba(242, 243, 244, 0.45);
}
[dir="rtl"] .sys-caption { font-family: var(--arabic); font-style: normal; font-size: clamp(14px, 1.5vw, 16px); }
.sys-orbit {
  stroke: rgba(242, 243, 244, 0.13);
  stroke-width: 1;
  stroke-dasharray: 3 8;
  transform-box: fill-box;
  transform-origin: center;
  animation: sysSpin 90s linear infinite;
}
@keyframes sysSpin { to { transform: rotate(360deg); } }
.sys-tick { stroke: rgba(242, 243, 244, 0.09); stroke-width: 1; }
.sys-tick--major { stroke: rgba(242, 243, 244, 0.22); }
.sys-sat__orbit {
  stroke: rgba(184, 220, 211, 0.30);
  stroke-width: 1;
  stroke-dasharray: 2 7;
  transform-box: fill-box;
  transform-origin: center;
  animation: sysSpin 140s linear infinite reverse;
}
.sys-sat { opacity: 0; transition: opacity 1.2s ease 2.2s; }
.sys-diagram.in .sys-sat { opacity: 1; }
.sys-sat__label {
  fill: rgba(184, 220, 211, 0.78);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  paint-order: stroke;
  stroke: var(--bp-ground, #16130f);
  stroke-width: 12px;
  stroke-linejoin: round;
}
[dir="rtl"] .sys-sat__label { font-family: var(--arabic); letter-spacing: 0; font-size: 16px; }
.sys-flow {
  stroke: rgba(184, 220, 211, 0.9);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 3 24;
  opacity: 0;
  transition: opacity 1.2s ease 2.4s;
  animation: sysFlow 2.6s linear infinite;
}
.sys-diagram.in .sys-flow { opacity: 0.55; }
@keyframes sysFlow { to { stroke-dashoffset: -27; } }
.sys-ring {
  stroke: rgba(95, 160, 147, 0.45);
  stroke-width: 1.2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}
.sys-spoke {
  stroke: rgba(242, 243, 244, 0.2);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s ease;
}
.sys-diagram.in .sys-ring,
.sys-diagram.in .sys-spoke { stroke-dashoffset: 0; }
.sys-hub {
  fill: url(#sysHubFill);
  stroke: rgba(95, 160, 147, 0.65);
  stroke-width: 1;
}
.sys-hub-ring { stroke: rgba(95, 160, 147, 0.32); stroke-width: 1; }
.sys-hub-pulse {
  stroke: rgba(95, 160, 147, 0.5);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: sysPulse 3.2s ease-out infinite;
}
@keyframes sysPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.65); opacity: 0; }
}
.sys-hub-label {
  fill: #f2f3f4;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sys-node { opacity: 0; transition: opacity 0.7s ease; }
.sys-diagram.in .sys-node { opacity: 1; }
.sys-dot { fill: var(--bp-em); }
.sys-node__halo { stroke: rgba(95, 160, 147, 0.38); stroke-width: 1; }
.sys-node__soft { fill: rgba(95, 160, 147, 0.18); }
.sys-label {
  fill: rgba(242, 243, 244, 0.72);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
[dir="rtl"] .sys-hub-label { font-family: var(--arabic); letter-spacing: 0; font-size: 17px; }
[dir="rtl"] .sys-label { font-family: var(--arabic); letter-spacing: 0; font-size: 16px; }
.sys-outcome {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 20px);
  max-width: 30ch;
}
.sys-outcome--a { grid-area: a; justify-self: end; }
.sys-outcome--b { grid-area: b; justify-self: start; }
.sys-diagram { grid-area: d; min-width: 0; }
.sys-outcome__text { min-width: 0; }
.sys-outcome__text::before {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: rgba(184, 220, 211, 0.5);
  margin: 0 0 clamp(12px, 1.5vw, 16px);
}
.sys-outcome__name {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.3;
  color: var(--bp-ink);
}
.sys-outcome__line {
  margin: 0;
  font-size: clamp(13.5px, 1.5vw, 15px);
  line-height: 1.7;
  color: rgba(242, 243, 244, 0.55);
}
[dir="rtl"] .sys-outcome__name { font-family: var(--arabic); font-weight: 600; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; }
[dir="rtl"] .sys-outcome__line { font-family: var(--arabic); font-size: clamp(14.5px, 1.6vw, 16px); }

/* ---- Outcome numerals — editorial index (replaces icons) ---- */
.sys-outcome__num {
  flex: none;
  min-width: 2ch;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(44px, 4.6vw, 66px);
  line-height: 0.85;
  color: var(--bp-em);
}

/* Ripple — one discipline touches all the others, looping */
.sys-hl {
  stroke: rgba(184, 220, 211, 0.5);
  stroke-width: 1.1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}
.sys-diagram.in .sys-hl { animation: sysHl 3.4s ease forwards; }
@keyframes sysHl {
  0%   { stroke-dashoffset: 1; opacity: 0; }
  12%  { opacity: 0.85; }
  45%  { stroke-dashoffset: 0; opacity: 0.85; }
  80%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.sys-hl-node {
  stroke: rgba(184, 220, 211, 0.85);
  stroke-width: 1.2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.sys-diagram.in .sys-hl-node { animation: sysHlNode 3.4s ease forwards; }
@keyframes sysHlNode {
  0%   { opacity: 0; transform: scale(0.55); }
  14%  { opacity: 1; transform: scale(1); }
  68%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.3); }
}
@media (max-width: 1080px) {
  .sys-stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "d" "a" "b";
    gap: 30px;
    justify-items: center;
  }
  .sys-diagram { max-width: 520px; margin: 0 auto; width: 100%; }
  .sys-outcome--a, .sys-outcome--b { justify-self: center; max-width: 46ch; }
  .sys-outcome {
    flex-direction: row;
    align-items: center;
    gap: clamp(18px, 2.4vw, 26px);
  }
  .sys-outcome__text::before { display: none; }
  .sys-outcome__num { font-size: clamp(38px, 5vw, 48px); }
  .sys-label { font-size: 19px; }
  .sys-hub-label { font-size: 17px; }
  .sys-sat__label { font-size: 18px; }
  [dir="rtl"] .sys-label { font-size: 21px; }
  [dir="rtl"] .sys-hub-label { font-size: 19px; }
  [dir="rtl"] .sys-sat__label { font-size: 20px; }
}
@media (max-width: 520px) {
  .sys-label { font-size: 22px; letter-spacing: 0.04em; }
  .sys-hub-label { font-size: 20px; }
  .sys-sat__label { font-size: 21px; letter-spacing: 0.1em; }
  [dir="rtl"] .sys-label { font-size: 24px; }
  [dir="rtl"] .sys-hub-label { font-size: 23px; }
  [dir="rtl"] .sys-sat__label { font-size: 24px; }
  .sys-tick--major { stroke-width: 1.6; }
  .sys-ring { stroke-width: 1.8; }
  .sys-spoke { stroke-width: 1.5; }
  .sys-flow { stroke-width: 2.2; }
  .sys-caption { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sys-ring, .sys-spoke { transition: none; stroke-dashoffset: 0; }
  .sys-node { transition: none; opacity: 1; }
  .sys-hub-pulse { animation: none; opacity: 0; }
  .sys-orbit, .sys-sat__orbit { animation: none; }
  .sys-flow { animation: none; opacity: 0.3 !important; }
  .sys-sat { transition: none; opacity: 1; }
  .sys-hl, .sys-hl-node { animation: none !important; opacity: 0 !important; }
}

/* ============================================================
   KAIZEN — committed to continuous improvement (deep emerald)
   ============================================================ */
.practice-kaizen {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 75% at 50% 28%, rgba(95, 160, 147, 0.30), transparent 66%),
    var(--bp-em-deep);
}
/* Faint 改善 watermark — kept outside any Reveal so clip-path never cuts it */
.kaizen-mark {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", var(--serif), serif;
  color: #b8dcd3;
}
.kaizen-mark span { position: absolute; line-height: 1; user-select: none; }
.kaizen-mark__a {
  top: clamp(-70px, -4vw, -24px);
  inset-inline-start: -2%;
  font-size: clamp(240px, 28vw, 480px);
  opacity: 0.12;
}
.kaizen-wrap { position: relative; z-index: 1; }
.practice-kaizen .kaizen-head {
  max-width: none;
  text-align: center;
  margin-bottom: clamp(16px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.practice-kaizen .kaizen-eyebrow { color: rgba(242, 243, 244, 0.72); }
.practice-kaizen .kaizen-eyebrow .rule { background: rgba(242, 243, 244, 0.38); }
.kaizen-ja {
  margin: clamp(14px, 1.8vw, 22px) 0 clamp(2px, 0.5vw, 6px);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", var(--serif), serif;
  font-size: clamp(46px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  color: rgba(242, 243, 244, 0.9);
  user-select: none;
}
.practice-kaizen .section-title { color: var(--bp-ink); max-width: none; }
.practice-kaizen .section-title .it { color: #ffffff; }
.kaizen-lead {
  margin: clamp(16px, 1.8vw, 22px) auto 0;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.8;
  letter-spacing: 0.004em;
  color: rgba(242, 243, 244, 0.82);
  max-width: 56ch;
}
.practice-kaizen .kaizen-lead .it {
  color: rgba(255, 255, 255, 0.96);
  font-style: italic;
  font-weight: 400;
  font-family: var(--serif);
  font-size: 1.08em;
  letter-spacing: 0;
}
[dir="rtl"] .kaizen-lead { font-family: var(--arabic); letter-spacing: 0; }
[dir="rtl"] .kaizen-lead .it { font-style: normal; font-family: var(--arabic); font-size: 1em; font-weight: 600; }
.kaizen-credo {
  margin: clamp(12px, 1.5vw, 20px) auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.3vw, 26px);
  line-height: 1.5;
  letter-spacing: 0.002em;
  color: rgba(255, 255, 255, 0.96);
  max-width: 30ch;
}
[dir="rtl"] .kaizen-credo { font-family: var(--arabic-display); font-style: normal; font-weight: 600; max-width: 34ch; }
.kaizen-def {
  margin: clamp(10px, 1.2vw, 14px) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.5vw, 16.5px);
  line-height: 1.5;
  color: rgba(242, 243, 244, 0.62);
}
[dir="rtl"] .kaizen-def { font-family: var(--arabic); font-style: normal; }

/* Kaizen closing line floating over the compounding curve */
.kaizen-close {
  margin-top: clamp(16px, 2vw, 30px);
}
.kaizen-close__cap {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: min(620px, 86%);
  margin: 0 auto;
}
.kaizen-close__line {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--bp-ink);
}
.practice-kaizen .kaizen-close__line .it { display: block; font-style: italic; font-weight: inherit; color: #ffffff; }
[dir="rtl"] .kaizen-close__line { font-family: var(--arabic-display); letter-spacing: 0; font-weight: 600; line-height: 1.45; }
[dir="rtl"] .kaizen-close__line .it { font-style: normal; }

/* Compounding curve — one small gain a day, drawn as a drafting chart.
   Pulled up under the centered cap: the chart's upper-middle is empty
   until the curve takes off on the right, so the overlap is safe. */
.kaizen-compound {
  margin: clamp(-84px, -6vw, -36px) auto 0;
  max-width: min(960px, 100%);
  position: relative;
  z-index: 1;
}
.kaizen-compound svg { width: 100%; height: auto; display: block; direction: ltr; }
.kz-area { opacity: 0; }
.kaizen-close.in .kz-area { animation: kzArea 1.6s 0.9s ease forwards; }
@keyframes kzArea { to { opacity: 1; } }
.kz-tick { stroke: rgba(184, 220, 211, 0.18); stroke-width: 1; }
.kz-grid { stroke: rgba(184, 220, 211, 0.10); stroke-width: 1; stroke-dasharray: 1 7; stroke-linecap: round; }
.kz-ylab {
  fill: rgba(242, 243, 244, 0.75);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
}
.kz-flat { stroke: rgba(184, 220, 211, 0.38); stroke-width: 1.2; stroke-dasharray: 2 8; stroke-linecap: round; }
.kz-flat-lab {
  fill: rgba(242, 243, 244, 0.55);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
[dir="rtl"] .kz-flat-lab { font-family: var(--arabic); letter-spacing: 0; font-size: 15px; }
.kz-note {
  fill: rgba(242, 243, 244, 0.92);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  opacity: 0;
}
[dir="rtl"] .kz-note { font-family: var(--arabic); font-style: normal; font-weight: 600; }
.kaizen-close.in .kz-note { animation: kzFadeIn 0.7s ease forwards; }
.kz-dotlab {
  fill: #f2f3f4;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  opacity: 0;
}
.kaizen-close.in .kz-dotlab { animation: kzFadeIn 0.6s ease forwards; }
@keyframes kzFadeIn { to { opacity: 1; } }
.kz-dotlead {
  stroke: rgba(184, 220, 211, 0.5);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0;
}
.kaizen-close.in .kz-dotlead { animation: kzFadeIn 0.5s ease forwards; }
.kz-lab {
  fill: rgba(242, 243, 244, 0.78);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
[dir="rtl"] .kz-lab { font-family: var(--arabic); letter-spacing: 0; font-size: 14.5px; }
.kz-curve {
  stroke: #dff3ec;
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 1;
}
.kaizen-close.in .kz-curve { animation: kzDraw 3.2s 0.15s linear forwards; }
@keyframes kzDraw { to { stroke-dashoffset: 0; } }
/* Comet tracer riding the tip of the curve as it draws */
.kz-comet {
  stroke: #eafff7;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 0.018 1;
  stroke-dashoffset: 0.018;
  opacity: 0;
}
.kaizen-close.in .kz-comet { animation: kzComet 3.2s 0.15s linear forwards; }
@keyframes kzComet {
  0%   { stroke-dashoffset: 0.018; opacity: 0; }
  6%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { stroke-dashoffset: -0.982; opacity: 0; }
}
.kz-comet-glow {
  stroke: rgba(184, 220, 211, 0.32);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 0.045 1;
  stroke-dashoffset: 0.045;
  opacity: 0;
}
.kaizen-close.in .kz-comet-glow { animation: kzCometGlow 3.2s 0.15s linear forwards; }
@keyframes kzCometGlow {
  0%   { stroke-dashoffset: 0.045; opacity: 0; }
  6%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { stroke-dashoffset: -0.955; opacity: 0; }
}
.kz-dot {
  fill: #b8dcd3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.kaizen-close.in .kz-dot { animation: kzDot 0.6s ease forwards; }
@keyframes kzDot {
  0%   { opacity: 0; transform: scale(0.3); }
  60%  { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0.85; transform: scale(1); }
}
/* Monthly "drops" — each month's gain as a riser that lands on the curve.
   Same rule every month, yet every drop is taller than the one before. */
.kz-step-bar {
  stroke: rgba(223, 243, 236, 0.45);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.kaizen-close.in .kz-step-bar { animation: kzStepBar 0.7s ease-out forwards; }
@keyframes kzStepBar {
  0%   { opacity: 0; transform: scaleY(0.15); }
  100% { opacity: 0.9; transform: scaleY(1); }
}
.kz-step-dot {
  fill: #dff3ec;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.kaizen-close.in .kz-step-dot { animation: kzDot 0.6s ease forwards; }
.kz-bloom {
  fill: #b8dcd3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.kaizen-close.in .kz-bloom { animation: kzBloom 0.9s 3.4s ease forwards; }
@keyframes kzBloom {
  0%   { opacity: 0; transform: scale(0.3); }
  55%  { opacity: 1; transform: scale(1.5); }
  100% { opacity: 1; transform: scale(1); }
}
.kz-bloom-halo {
  stroke: rgba(184, 220, 211, 0.7);
  stroke-width: 1.2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.kz-bloom-halo--far {
  stroke: rgba(184, 220, 211, 0.35);
  stroke-width: 0.8;
}
.kaizen-close.in .kz-bloom-halo { animation: kzHalo 2.6s 3.5s ease-out infinite; }
.kaizen-close.in .kz-bloom-halo--far { animation: kzHalo 2.6s 3.95s ease-out infinite; }
@keyframes kzHalo {
  0%   { opacity: 0.8; transform: scale(0.5); }
  70%  { opacity: 0; transform: scale(1.8); }
  100% { opacity: 0; transform: scale(1.8); }
}
.kz-mult {
  fill: #f2fbf7;
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  opacity: 0;
}
.kaizen-close.in .kz-mult { animation: kzMult 0.8s 3.55s ease forwards; }
@keyframes kzMult {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.kz-cycle { opacity: 1; }

/* Coda — signals intake: five sources feeding the kaizen loop */
.kaizen-coda {
  margin-top: clamp(22px, 2.8vw, 40px);
  text-align: center;
}
.kaizen-coda__line {
  margin: 0 auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.6;
  color: rgba(242, 243, 244, 0.8);
  max-width: 56ch;
}
[dir="rtl"] .kaizen-coda__line { font-family: var(--arabic-display); font-style: normal; font-weight: 600; }
.kaizen-coda__scanwrap { display: flex; justify-content: center; margin-bottom: clamp(8px, 1vw, 12px); }
.kzs-scan { width: clamp(62px, 6.8vw, 82px); height: auto; display: block; overflow: visible; }
.kzs-scan__ring { fill: none; stroke: rgba(242, 243, 244, 0.38); stroke-width: 1.1; }
.kzs-scan__ring--mid { stroke: rgba(242, 243, 244, 0.22); }
.kzs-scan__ring--in { stroke: rgba(242, 243, 244, 0.14); }
.kzs-scan__wedge { fill: rgba(95, 160, 147, 0.22); stroke: none; }
.kzs-scan__beam { stroke: rgba(191, 228, 219, 0.95); stroke-width: 1.2; stroke-linecap: round; }
.kzs-scan__sweep { transform-origin: 50% 50%; }
.kaizen-coda__scanwrap.in .kzs-scan__sweep { animation: kzsSpin 6s linear infinite; }
.kzs-scan__dot { fill: rgba(242, 243, 244, 0.85); }
.kzs-scan__blip { fill: #eafff7; opacity: 0.12; }
.kaizen-coda__scanwrap.in .kzs-scan__blip--a { animation: kzsBlip 6s linear 0.68s infinite; }
.kaizen-coda__scanwrap.in .kzs-scan__blip--b { animation: kzsBlip 6s linear 3.93s infinite; }
@keyframes kzsBlip {
  0%   { opacity: 1; }
  8%   { opacity: 1; }
  40%  { opacity: 0.12; }
  100% { opacity: 0.12; }
}
.kaizen-signals {
  max-width: min(880px, 100%);
  margin: clamp(14px, 1.8vw, 24px) auto 0;
}
.kzs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.kaizen-signals svg { width: 100%; height: auto; display: block; direction: ltr; }
.kzs-ring { fill: rgba(242, 243, 244, 0.05); stroke: rgba(242, 243, 244, 0.42); stroke-width: 1.4; }
.kzs-icon {
  stroke: rgba(242, 243, 244, 0.92);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
}
.kzs-icon .kzs-fill { fill: rgba(242, 243, 244, 0.92); stroke: none; }
.kzs-label {
  fill: rgba(242, 243, 244, 0.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
[dir="rtl"] .kzs-label { font-family: var(--arabic); letter-spacing: 0; font-size: 16.5px; }
.kzs-line {
  stroke: url(#kzsFlow);
  stroke-width: 1.3;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.kaizen-signals.in .kzs-line { animation: kzDraw 1.1s ease forwards; }
.kzs-node { opacity: 0; }
.kaizen-signals.in .kzs-node { animation: kzsNode 0.7s ease forwards; }
@keyframes kzsNode {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.kzs-pulse { fill: #eafff7; }
.kzs-pulse-glow { fill: rgba(184, 220, 211, 0.7); }
.kaizen-signals:not(.in) .kzs-pulse,
.kaizen-signals:not(.in) .kzs-pulse-glow { visibility: hidden; }
.kzs-in-head {
  stroke: rgba(184, 220, 211, 0.6);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kzs-hub { opacity: 0; }
.kaizen-signals.in .kzs-hub { animation: kzsNode 0.9s ease forwards; }
.kzs-hub-ring { fill: url(#kzsHubFill); stroke: rgba(242, 243, 244, 0.55); stroke-width: 1.4; }
.kzs-hub-halo { fill: none; stroke: rgba(242, 243, 244, 0.2); stroke-width: 1; opacity: 0.35; }
.kzs-hub-halo--far { stroke: rgba(242, 243, 244, 0.11); }
.kaizen-signals.in .kzs-hub-halo { animation: kzsBreath 4.5s ease-in-out 1s infinite; }
.kaizen-signals.in .kzs-hub-halo--far { animation-delay: 3.25s; }
@keyframes kzsBreath {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}
.kzs-cycle-fit {
  transform-box: fill-box;
  transform-origin: center;
}
.kzs-cycle {
  fill: none;
  stroke: rgba(242, 243, 244, 0.9);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
}
.kaizen-signals.in .kzs-cycle { animation: kzsSpin 16s linear infinite; }
@keyframes kzsSpin { to { transform: rotate(360deg); } }
.kzs-looplead { stroke: rgba(242, 243, 244, 0.3); stroke-width: 1.1; }
.kzs-looplab {
  fill: rgba(242, 243, 244, 0.75);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
[dir="rtl"] .kzs-looplab { font-family: var(--arabic); letter-spacing: 0; font-size: 16px; }
.kzs-out { stroke: url(#kzsOutFlow); stroke-width: 1.6; fill: none; }
.kzs-out-head { stroke: rgba(184, 220, 211, 0.85); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.kzs-next {
  fill: #eafff7;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
[dir="rtl"] .kzs-next { font-family: var(--arabic); letter-spacing: 0; font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  .kz-curve { animation: none !important; stroke-dashoffset: 0 !important; }
  .kz-comet, .kz-comet-glow { animation: none !important; opacity: 0 !important; }
  .kz-dot { animation: none !important; opacity: 0.85 !important; }
  .kz-bloom, .kz-mult { animation: none !important; opacity: 1 !important; }
  .kz-bloom { transform: none !important; }
  .kz-mult { transform: none !important; }
  .kz-bloom-halo { animation: none !important; opacity: 0 !important; }
  .kz-cycle { animation: none !important; opacity: 1 !important; }
  .kz-area { animation: none !important; opacity: 1 !important; }
  .kz-note, .kz-dotlab { animation: none !important; opacity: 1 !important; }
  .kz-step-bar { animation: none !important; opacity: 0.9 !important; transform: none !important; }
  .kz-step-dot { animation: none !important; opacity: 0.85 !important; }
  .kzs-pulse, .kzs-pulse-glow { display: none !important; }
  .kzs-line { animation: none !important; stroke-dashoffset: 0 !important; }
  .kzs-node, .kzs-hub { animation: none !important; opacity: 1 !important; }
  .kzs-hub-halo { animation: none !important; }
  .kzs-cycle { animation: none !important; }
  .kzs-scan__sweep { animation: none !important; }
  .kzs-scan__blip { animation: none !important; opacity: 0.75 !important; }
}
@media (max-width: 880px) {
  .kaizen-compound { margin-top: 14px; }
  .kz-lab { font-size: 24px; }
  [dir="rtl"] .kz-lab { font-size: 27px; }
  .kz-mult { font-size: 44px; }
  .kz-curve { stroke-width: 2.6; }
  .kz-comet { stroke-width: 5; }
  .kz-comet-glow { stroke-width: 15; }
  .kz-tick, .kz-flat { stroke-width: 1.8; }
  .kz-ylab { font-size: 26px; }
  .kz-flat-lab { font-size: 22px; }
  [dir="rtl"] .kz-flat-lab { font-size: 25px; }
  .kz-note { font-size: 34px; }
  .kz-dotlab { font-size: 28px; }
  .kz-grid { stroke-width: 1.6; stroke-dasharray: 1.5 10; }
  .kz-step-bar { stroke-width: 3; }
  .kz-step-dot { r: 3.4px; }
}
@media (max-width: 620px) {
  .kaizen-close { margin-top: 18px; }
  .kaizen-compound { margin-top: 12px; }
  .kaizen-mark__a { font-size: 46vw; top: -4vw; }
  .kz-lab { font-size: 30px; letter-spacing: 0.08em; }
  [dir="rtl"] .kz-lab { font-size: 33px; }
  .kz-mult { font-size: 56px; }
  .kz-curve { stroke-width: 3.4; }
  .kz-comet { stroke-width: 6.5; }
  .kz-comet-glow { stroke-width: 19; }
  .kz-tick, .kz-flat { stroke-width: 2.4; }
  .kz-ylab { font-size: 34px; }
  .kz-flat-lab { font-size: 28px; letter-spacing: 0.08em; }
  [dir="rtl"] .kz-flat-lab { font-size: 31px; }
  .kz-note { font-size: 42px; }
  .kz-dotlab { font-size: 36px; }
  .kz-grid { stroke-width: 2; stroke-dasharray: 2 13; }
  .kz-step-bar { stroke-width: 3.8; }
  .kz-step-dot { r: 4.4px; }
  .kzs-label { font-size: 26px; letter-spacing: 0.06em; }
  [dir="rtl"] .kzs-label { font-size: 30px; }
  .kzs-icon { stroke-width: 3; transform: scale(1.65); }
  .kzs-ring { r: 46px; stroke-width: 2; }
  .kzs-line { stroke-width: 2.2; }
  .kzs-pulse { r: 6px; }
  .kzs-pulse-glow { r: 13px; }
  .kzs-in-head { stroke-width: 2.2; }
  .kzs-hub-ring { r: 50px; stroke-width: 2.2; }
  .kzs-hub-halo { r: 60px; stroke-width: 1.8; }
  .kzs-hub-halo--far { r: 72px; }
  .kzs-cycle-fit { transform: scale(1.35); }
  .kzs-cycle { stroke-width: 2.6; }
  .kzs-out, .kzs-out-head { stroke-width: 2.2; }
  .kzs-looplead { stroke-width: 2; }
  .kzs-looplab { font-size: 30px; letter-spacing: 0.06em; }
  [dir="rtl"] .kzs-looplab { font-size: 34px; }
  .kzs-next { font-size: 25px; letter-spacing: 0.12em; }
  [dir="rtl"] .kzs-next { font-size: 28px; }
  .kaizen-ja { font-size: 52px; }
}

/* ============================================================
   THE WORK YOU NEVER SEE — pale drafting-paper wall section
   ============================================================ */
.practice-buildup {
  position: relative;
  background: var(--bp-paper);
  color: var(--bp-paper-ink);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.45), 0 1px 0 rgba(0, 0, 0, 0.45);
}
.practice-buildup::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,  var(--bp-paper-grid) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--bp-paper-grid) 0 1px, transparent 1px 40px);
}
.practice-buildup > * { position: relative; z-index: 1; }
.practice-buildup .section-title { color: var(--bp-paper-ink); }
.practice-buildup .section-eyebrow,
.practice-buildup .section-title .it { color: var(--bp-em-deep); }
.practice-buildup .section-eyebrow .rule { background: var(--bp-em-deep); }
.practice-buildup p .it { color: var(--bp-em-deep); }

.bp-buildup__head { display: grid; gap: clamp(24px, 2.8vw, 36px); }
.bp-buildup__layout {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(40px, 5vw, 90px); align-items: center;
}
.practice-main .practice-buildup .practice-section__intro { color: rgba(42, 38, 34, 0.82); }
.bp-buildup__caption {
  margin: clamp(32px, 3.5vw, 48px) 0 0;
  padding-inline-start: 22px;
  border-inline-start: 2.5px solid var(--bp-em-deep);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.56;
  color: var(--bp-em-deep); max-width: 38ch;
}
.practice-section__intro {
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.62;
  margin: clamp(18px, 2vw, 26px) 0 0; max-width: 46ch;
}
.practice-main .practice-section__intro { color: rgba(242, 243, 244, 0.74); }

/* keynote legend — swatches tie the list to the drawing (no dividers) */
.bp-keynotes { list-style: none; margin: clamp(36px, 4vw, 52px) 0 0; padding: 0; }
.bp-keynote { display: flex; gap: 24px; align-items: flex-start; padding: 19px 0; }
.bp-keynote__sw { flex: none; width: 52px; height: 34px; margin-top: 4px; }
.bp-swatch-svg { width: 52px; height: 34px; display: block; }
.bp-keynote__text { display: flex; flex-direction: column; gap: 7px; }
.bp-keynote__name {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 18px; font-weight: 400;
  letter-spacing: 0.005em; color: var(--bp-paper-ink);
}
.bp-keynote__tag {
  font: 600 9px var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bp-em-deep);
  background: rgba(78, 131, 124, 0.10);
  border: 1px solid rgba(78, 131, 124, 0.35);
  border-radius: 2px; padding: 2px 7px;
  line-height: 1.5;
}
.bp-keynote__note { font-size: 13.5px; line-height: 1.6; color: rgba(42, 38, 34, 0.52); }

/* keynote swatch ink */
.bp-sw-edge  { stroke: rgba(42, 38, 34, 0.55); stroke-width: 1; fill: none; }
.bp-sw-fine  { stroke: rgba(42, 38, 34, 0.4);  stroke-width: 1; fill: none; }
.bp-sw-em    { stroke: var(--bp-em-deep); stroke-width: 2; }
.bp-sw-dash  { stroke: var(--bp-em-deep); stroke-width: 1.4; stroke-dasharray: 2 3; stroke-linecap: round; }
.bp-sw-solid { fill: rgba(34, 31, 32, 0.82); stroke: none; }
.bp-sw-dot   { fill: rgba(42, 38, 34, 0.55); }

/* the drawing itself */
.bp-buildup__draw { position: sticky; top: 100px; }
.bp-wall-wrap { position: relative; }
.bp-wall { width: 100%; max-width: 540px; height: auto; display: block; margin: 0 auto; overflow: visible; color: var(--bp-paper-ink); }
.bp-wall .wsb {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.practice-main .in .wsb { opacity: 1; transform: none; }
.bp-wall .drw, .bp-wall__frame { stroke: var(--bp-paper-ink); stroke-width: 1.7; fill: none; }
.bp-wall__tick   { stroke: rgba(42, 38, 34, 0.6);  stroke-width: 1; }
.bp-wall__arw    { stroke: var(--bp-paper-ink); stroke-width: 1.4; fill: none; }
.bp-wall__leader       { stroke: rgba(42, 38, 34, 0.32); stroke-width: 1; }
.bp-wall .drw.bp-wall__callout-lead { stroke: rgba(42, 38, 34, 0.26); stroke-width: 1; }
.bp-wall__callout-num  { font-size: 13px; font-family: var(--serif); font-style: italic; font-weight: 500; fill: var(--bp-em-deep); opacity: 0.85; }
.bp-wall__callout-name { font-size: 15px; font-family: var(--sans); fill: rgba(42, 38, 34, 0.88); letter-spacing: 0.09em; text-transform: uppercase; font-weight: 600; transition: fill 0.4s var(--ease); }
.bp-wall__callout-note { font-size: 12.5px; font-family: var(--sans); fill: rgba(42, 38, 34, 0.58); letter-spacing: 0.01em; transition: fill 0.4s var(--ease); }
.bp-wall__callout-ping {
  fill: none; stroke: var(--bp-em-deep); stroke-width: 1;
  transform-box: fill-box; transform-origin: center;
  animation: bp-ping 3.6s ease-out infinite;
}
@keyframes bp-ping {
  0%       { transform: scale(0.9); opacity: 0.5; }
  55%,100% { transform: scale(3.1); opacity: 0; }
}

/* layer focus — hovering a band spotlights that layer, drafting-table style */
.bp-wall .bp-dim { transition: opacity 0.45s var(--ease); }
.bp-wall.has-focus .bp-dim:not(.on) { opacity: 0.30; }
.bp-zoneglow { fill: rgba(78, 131, 124, 0.10); opacity: 0; transition: opacity 0.45s var(--ease); }
.bp-wall .bp-dim.on .bp-zoneglow { opacity: 1; }
.bp-wall .bp-dim.on .bp-wall__callout-name { fill: rgba(42, 38, 34, 0.97); }
.bp-wall .bp-dim.on .bp-wall__callout-note { fill: rgba(42, 38, 34, 0.78); }
.bp-wall .bp-dim.on .bp-wall__callout-num  { opacity: 1; }
.bp-hit { fill: transparent; cursor: crosshair; }
.bp-hatch        { stroke: rgba(42, 38, 34, 0.36); stroke-width: 1; }
.bp-steel        { stroke: var(--bp-rust); stroke-width: 2.4; stroke-linecap: round; }
.bp-fine         { stroke: rgba(42, 38, 34, 0.5); stroke-width: 1; stroke-linecap: round; }
.bp-agg          { fill: rgba(42, 38, 34, 0.5); }
.bp-membrane     { fill: rgba(34, 31, 32, 0.82); }
.bp-membrane-line{ stroke: rgba(233, 231, 224, 0.55); stroke-width: 1; }
.bp-conduit      { stroke: var(--bp-em-deep); stroke-width: 2.2; stroke-dasharray: 2 7; stroke-linecap: round; animation: bp-march 1.6s linear infinite; }
.bp-box          { stroke: var(--bp-em-deep); stroke-width: 1.8; fill: var(--bp-paper); }
.bp-node         { fill: var(--bp-em-deep); }
.bp-face-em      { stroke: var(--bp-em-deep); stroke-width: 3; }

/* living details — restrained perpetual motion inside the section */
@keyframes bp-march { to { stroke-dashoffset: -9; } }
.bp-flow { fill: var(--bp-em); animation: bp-flow-a 3.4s ease-in-out infinite; }
.bp-flow--b { animation-name: bp-flow-b; }
@keyframes bp-flow-a {
  0%       { transform: translateX(0); opacity: 0; }
  10%      { opacity: 0.9; }
  76%      { opacity: 0.9; }
  88%,100% { transform: translateX(142px); opacity: 0; }
}
@keyframes bp-flow-b {
  0%       { transform: translateX(0); opacity: 0; }
  10%      { opacity: 0.9; }
  76%      { opacity: 0.9; }
  88%,100% { transform: translateX(90px); opacity: 0; }
}
.bp-boxpulse { fill: var(--bp-em-deep); animation: bp-boxpulse 3.4s ease-in-out infinite; }
@keyframes bp-boxpulse { 0%,72% { opacity: 0.25; } 88% { opacity: 1; } 100% { opacity: 0.25; } }
.bp-glint { animation: bp-glint 5.6s linear infinite; }
@keyframes bp-glint { 0% { transform: translateX(-70px); } 46%,100% { transform: translateX(250px); } }
.bp-sheen { opacity: 0.8; transform: translateX(-60px); animation: bp-sheen 7s linear infinite 1.4s; }
@keyframes bp-sheen { 0% { transform: translateX(-60px); } 44%,100% { transform: translateX(240px); } }
.bp-wall .bp-agg { animation: bp-twinkle 3.6s ease-in-out infinite; }
@keyframes bp-twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.68; } }

/* ============================================================
   IN OUR OWN HANDS — the crafts, unboxed on the grid
   ============================================================ */
.bp-plates {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 3.6vw, 58px) clamp(28px, 3vw, 48px);
}
.bp-plate { position: relative; display: flex; flex-direction: column; }
.bp-plate__scene {
  position: relative; width: 100%; aspect-ratio: 5 / 4;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.05s var(--ease);
}
.bp-plate.in .bp-plate__scene { clip-path: inset(0 0 0 0); }
.bp-plate__scene .cs { width: 100%; height: 100%; display: block; }
.bp-plate:hover .cs-edge { stroke: rgba(242, 243, 244, 0.95); }
.bp-corner { position: absolute; width: 16px; height: 16px; z-index: 2; pointer-events: none; }
.bp-corner::before, .bp-corner::after { content: ""; position: absolute; background: rgba(95, 160, 147, 0.7); }
.bp-corner::before { width: 16px; height: 1.5px; }
.bp-corner::after  { width: 1.5px; height: 16px; }
.bp-corner--tl { top: 0; inset-inline-start: 0; }
.bp-corner--tl::before, .bp-corner--tl::after { top: 0; inset-inline-start: 0; }
.bp-corner--br { bottom: 0; inset-inline-end: 0; }
.bp-corner--br::before { bottom: 0; inset-inline-end: 0; }
.bp-corner--br::after  { bottom: 0; inset-inline-end: 0; }
.bp-plate__body { padding-top: 18px; }
.bp-plate__rule { display: block; width: 38px; height: 2px; background: var(--bp-em); margin-bottom: 14px; }
.bp-plate__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 1.9vw, 26px); line-height: 1.14;
  color: var(--bp-ink); margin: 0 0 8px;
}
.bp-plate__line {
  font-size: 14.5px; line-height: 1.66;
  color: rgba(242, 243, 244, 0.56); margin: 0; max-width: 40ch;
}

/* ── Craft scenes — animated material studies, drawn in light on dark ── */
.craft-card__scene .cs { width: 100%; height: 100%; display: block; }
.cs path, .cs line, .cs rect, .cs circle, .cs polyline { vector-effect: non-scaling-stroke; }
.cs-edge  { stroke: rgba(242,243,244,0.74); stroke-width: 1.5; opacity: 1; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.5s var(--ease); }
.cs-fine  { stroke: rgba(242,243,244,0.26); stroke-width: 1;   opacity: 1; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cs-steel { stroke: rgba(199,201,202,0.9);  stroke-width: 2.2; opacity: 1; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cs-route { stroke: rgba(199,201,202,0.72); stroke-width: 2.4; opacity: 1; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cs-em    { stroke: #5fa093; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cs-emf   { fill: #5fa093; stroke: none; }
.craft-card:hover .cs-edge { stroke: rgba(242,243,244,0.95); }
/* emerald glow on the live details */
.cs-em, .cs-emf, .cs-pulse, .cs-seam, .cs-dl {
  filter: drop-shadow(0 0 4px rgba(95,160,147,0.55));
}

/* 01 Concrete & structure — pour breathing, light rising up the steel, plumb swaying */
.cs-pour { fill: #5fa093; opacity: 0.16; transform-box: fill-box; transform-origin: 50% 100%; animation: cs-pour 11s cubic-bezier(0.45,0,0.55,1) infinite; }
.cs-riseglint { transform-box: fill-box; animation: cs-rise 6.4s cubic-bezier(0.45,0,0.55,1) infinite; }
.cs-plumb { transform-box: fill-box; transform-origin: top center; animation: cs-swing 7s ease-in-out infinite; }
@keyframes cs-pour { 0%, 100% { transform: scaleY(0.16); } 50% { transform: scaleY(1); } }
@keyframes cs-rise { 0% { transform: translateY(70px); opacity: 0; } 40% { opacity: 0.6; } 100% { transform: translateY(-250px); opacity: 0; } }
@keyframes cs-swing { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }

/* 02 Services & MEP — pulses flowing along the routes to the board */
.cs-pulse { stroke: #5fa093; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-dasharray: 18 900; animation: cs-pulse 3.6s linear infinite; }
@keyframes cs-pulse { 0% { stroke-dashoffset: 340; } 100% { stroke-dashoffset: -360; } }

/* 03 Stone & masonry — a raking light drifting across the coursing */
.cs-rake { animation: cs-rake 12s cubic-bezier(0.5,0,0.5,1) infinite; }
@keyframes cs-rake { 0% { transform: translateX(-210px); } 100% { transform: translateX(370px); } }

/* 04 Joinery & finishes — the two halves breathing into a perfect fit */
.cs-fit-l { transform-box: fill-box; animation: cs-fitl 6.6s cubic-bezier(0.5,0,0.2,1) infinite; }
.cs-fit-r { transform-box: fill-box; animation: cs-fitr 6.6s cubic-bezier(0.5,0,0.2,1) infinite; }
.cs-seam  { stroke: #5fa093; stroke-width: 2; opacity: 0; animation: cs-seam 6.6s ease-in-out infinite; }
@keyframes cs-fitl { 0%, 100% { transform: translateX(-15px); } 48%, 62% { transform: translateX(0); } }
@keyframes cs-fitr { 0%, 100% { transform: translateX(15px); } 48%, 62% { transform: translateX(0); } }
@keyframes cs-seam { 0%, 34% { opacity: 0; } 52%, 60% { opacity: 0.9; } 78%, 100% { opacity: 0; } }

/* 05 Aluminum & glass — reflection sweep + seal trace + joint callouts */
.cs-reflect { animation: cs-reflect 8s cubic-bezier(0.5,0,0.5,1) infinite; }
@keyframes cs-reflect {
  0%   { transform: translateX(-280px) skewX(-14deg); }
  55%  { transform: translateX(560px) skewX(-14deg); }
  100% { transform: translateX(560px) skewX(-14deg); }
}
/* Seal perimeter trace — emerald line walking the frame, verifying every joint */
.cs-seal {
  stroke: #5fa093; stroke-width: 2; stroke-linecap: square; fill: none;
  stroke-dasharray: 1072; stroke-dashoffset: 1072;
  animation: cs-seal-draw 3s cubic-bezier(0.22,1,0.36,1) 0.4s infinite alternate;
}
@keyframes cs-seal-draw { to { stroke-dashoffset: 0; } }
/* Mullion joint callout dots — appear in sequence */
.cs-fit-dot {
  transform-origin: center; transform-box: fill-box;
  opacity: 0;
  animation: cs-fit-pop 3.6s ease-in-out infinite;
}
@keyframes cs-fit-pop {
  0%, 100% { opacity: 0; transform: scale(0); }
  20%      { opacity: 1; transform: scale(1); }
  80%      { opacity: 1; transform: scale(1); }
}

/* 06 False ceiling — the cove light breathing, downlights waking in turn */
.cs-cove { animation: cs-cove 7s ease-in-out infinite; }
.cs-dl   { fill: #5fa093; opacity: 0.2; animation: cs-dl 3.4s ease-in-out infinite; }
@keyframes cs-cove { 0%, 100% { opacity: 0.22; } 50% { opacity: 0.7; } }
@keyframes cs-dl { 0%, 100% { opacity: 0.18; } 50% { opacity: 0.98; } }

/* ============================================================
   BEFORE THE FIRST BRICK — checkpoint stamps
   ============================================================ */
.bp-gates {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(34px, 4.4vw, 68px);
}
.bp-gate { display: flex; flex-direction: column; align-items: flex-start; }
.bp-gate__stamp {
  width: clamp(74px, 7vw, 94px); height: clamp(74px, 7vw, 94px);
  color: rgba(242, 243, 244, 0.82); margin-bottom: clamp(18px, 2vw, 26px);
}
.bp-stamp-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bp-gate__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(21px, 2vw, 27px); line-height: 1.14;
  color: var(--bp-ink); margin: 0 0 10px;
}
.bp-gate__name::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--bp-em);
  margin-bottom: 16px;
}
.bp-gate__line {
  font-size: 14.5px; line-height: 1.66;
  color: rgba(242, 243, 244, 0.6); margin: 0; max-width: 34ch;
}

/* ============================================================
   SINCE 1981 — the drawing's title block
   ============================================================ */
.practice-close { }
.bp-close__layout {
  display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(40px, 5vw, 84px); align-items: end;
}
.bp-close__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.018em;
  color: var(--bp-ink); margin: clamp(16px, 2vw, 24px) 0 0; max-width: 15ch;
}
.bp-close__title .it { font-style: italic; color: var(--bp-em); }
.bp-close__body {
  font-family: var(--serif);
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.62;
  color: rgba(242, 243, 244, 0.72); margin: clamp(18px, 2vw, 26px) 0 0; max-width: 52ch;
}
.bp-close__cta-wrap { margin-top: clamp(26px, 3vw, 38px); }
.bp-close__cta {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 12px var(--sans); letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: var(--bp-ink); text-decoration: none;
  padding-bottom: 8px; border-bottom: 2px solid var(--bp-em);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.bp-close__cta:hover { gap: 18px; color: var(--bp-em); }
.bp-close__cta-arrow { color: var(--bp-em); font-size: 15px; }

.bp-titleblock { align-self: end; border: 1.5px solid rgba(95, 160, 147, 0.38); }
.bp-titleblock__brand {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border-bottom: 1.5px solid rgba(95, 160, 147, 0.38);
}
.bp-titleblock__grid { display: grid; grid-template-columns: 1fr 1fr; }
.bp-titleblock__cell { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px; }
.bp-titleblock__cell:nth-child(2), .bp-titleblock__cell:nth-child(4) { border-inline-start: 1.5px solid rgba(95, 160, 147, 0.38); }
.bp-titleblock__cell:nth-child(1), .bp-titleblock__cell:nth-child(2) { border-bottom: 1.5px solid rgba(95, 160, 147, 0.38); }
.bp-titleblock__k { font: 700 10px var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bp-em); }
.bp-titleblock__v { font-family: var(--serif); font-size: clamp(17px, 1.5vw, 21px); color: var(--bp-ink); }

/* ============================================================
   RTL
   ============================================================ */
[dir="rtl"] .practice-hero__title,
[dir="rtl"] .practice-hero__sub,
[dir="rtl"] .practice-hero__datum-cap,
[dir="rtl"] .bp-note__heading,
[dir="rtl"] .bp-note__line,
[dir="rtl"] .practice-section__intro,
[dir="rtl"] .bp-buildup__caption,
[dir="rtl"] .bp-keynote__name,
[dir="rtl"] .bp-keynote__note,
[dir="rtl"] .bp-plate__name,
[dir="rtl"] .bp-plate__line,
[dir="rtl"] .bp-gate__name,
[dir="rtl"] .bp-gate__line,
[dir="rtl"] .bp-close__body { font-family: var(--arabic); }
[dir="rtl"] .bp-close__title,
[dir="rtl"] .bp-titleblock__v { font-family: var(--arabic-display); }
[dir="rtl"] .bp-buildup__caption { font-style: normal; }
[dir="rtl"] .practice-hero__title .it,
[dir="rtl"] .practice-main .section-title .it,
[dir="rtl"] .bp-close__title .it,
[dir="rtl"] .practice-main p .it { font-style: normal; }
[dir="rtl"] .practice-hero__sheet,
[dir="rtl"] .practice-hero__datum-mark,
[dir="rtl"] .bp-keynote__tag,
[dir="rtl"] .bp-close__cta,
[dir="rtl"] .bp-titleblock__k { letter-spacing: 0; }
[dir="rtl"] .practice-hero__sheet,
[dir="rtl"] .bp-close__cta,
[dir="rtl"] .bp-titleblock__k { text-transform: none; }
[dir="rtl"] .bp-wall__callout-name,
[dir="rtl"] .bp-wall__callout-note {
  font-family: var(--arabic);
  direction: rtl;
  text-anchor: end;
  letter-spacing: 0;
}
[dir="rtl"] .bp-wall__callout-num { direction: ltr; text-anchor: start; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .practice-main .drw { stroke-dashoffset: 0 !important; transition: none !important; }
  .practice-main .wsb { opacity: 1 !important; transform: none !important; transition: none !important; }
  .bp-conduit, .bp-boxpulse, .bp-wall .bp-agg { animation: none !important; }
  .bp-flow, .bp-glint, .bp-sheen, .bp-wall__callout-ping { animation: none !important; display: none !important; }
  .bp-detail-dot { opacity: 1 !important; }
  .bp-plate__scene { clip-path: none !important; transition: none !important; }
  .bp-plate__scene * { animation: none !important; }
  .practice-hero__photo { animation: none !important; }
  .craft-card__scene * { animation: none !important; }
  .craft-card__scene { clip-path: none !important; transition: none !important; }
  .cs-pour { transform: scaleY(1); }
  .cs-riseglint { opacity: 0; }
  .cs-cove { opacity: 0.5; }
  .cs-dl { opacity: 0.7; }
  .cs-seam { opacity: 0.5; }
  .cs-pulse { opacity: 0; }
  .cs-seal { animation: none !important; stroke-dashoffset: 0 !important; }
  .cs-fit-dot { animation: none !important; opacity: 1 !important; transform: scale(1) !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1040px) {
  .bp-buildup__layout { grid-template-columns: 1fr; gap: clamp(32px, 3.5vw, 48px); }
  .bp-buildup__draw { position: static; }
  .bp-close__layout { grid-template-columns: 1fr; align-items: start; gap: clamp(36px, 6vw, 48px); }
}
@media (max-width: 900px) {
  .bp-notes { grid-template-columns: 1fr; gap: clamp(30px, 6vw, 44px); }
  .bp-plates { grid-template-columns: repeat(2, 1fr); }
  .bp-gates { grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 40px); }
}
@media (max-width: 520px) {
  .practice-method { padding: 44px 0 60px; }
  .bp-gates { grid-template-columns: 1fr; gap: 0; }
  .bp-gate {
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 4px;
    padding: 22px 0;
    align-items: start;
  }
  .bp-gate__stamp {
    width: 40px; height: 40px;
    grid-column: 1; grid-row: 1 / 3;
    align-self: start; margin-bottom: 0; margin-top: 2px;
  }
  .bp-gate__name {
    grid-column: 2; grid-row: 1;
    font-size: clamp(17px, 4.2vw, 21px);
  }
  .bp-gate__name::before { margin-bottom: 8px; }
  .bp-gate__line { grid-column: 2; grid-row: 2; }
}
@media (max-width: 680px) {
  .bp-wrap { padding: 0 var(--gutter-mobile); }
  .practice-hero__inner { padding-inline: var(--gutter-mobile); }
  .practice-hero__datum { padding-inline: var(--gutter-mobile); }
  .practice-hero__datum::before { left: var(--gutter-mobile); right: var(--gutter-mobile); }
  .bp-plates { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .bp-titleblock { width: 100%; max-width: 380px; }
  .practice-section { padding: 44px 0 60px; }
}

/* ════════════════════════════════════════════════════════════
   QUIZ — /activities.html (employee training, English only)
   ════════════════════════════════════════════════════════════ */
.qz-shell {
  min-height: 100vh;
  background: var(--surface-page);
  color: var(--ink);
  position: relative;
  isolation: isolate;
  font-family: var(--sans);
}
.qz-shell::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(ellipse 54% 52% at 96% 2%,  rgba(55,133,125,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 42% 46% at 4%  98%,  rgba(55,133,125,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 30% 36% at 50% 50%,  rgba(55,133,125,0.04) 0%, transparent 70%);
}

.qz-section {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--topbar-h) + 56px) 0 72px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.qz-section.is-in { opacity: 1; transform: none; }
.qz-section__inner {
  max-width: 760px; margin: 0 auto; width: 100%;
  padding: 0 var(--gutter);
}

/* ── Shared bits ──────────────────────────────────────────── */
.qz-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: var(--text-brand); margin-bottom: 22px;
}
.qz-eyebrow .rule { display: block; width: 28px; height: 1.5px; background: var(--brand); flex-shrink: 0; }

.qz-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 5vw, 62px); line-height: 1.05;
  letter-spacing: -0.018em; color: var(--ink); margin: 0 0 18px;
}
.qz-subtitle {
  font-size: 17.5px; line-height: 1.7; color: var(--text-muted);
  max-width: 560px; margin: 0;
}
.qz-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px;
}
.qz-input {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1.5px solid var(--border-subtle);
  padding: 12px 0; font-family: var(--serif); font-size: 24px;
  color: var(--ink); outline: none; border-radius: 0;
  transition: border-color 0.2s var(--ease);
}
.qz-input::placeholder { color: var(--border-subtle); }
.qz-input:focus { border-bottom-color: var(--brand); }
.qz-input--xl { font-size: clamp(24px, 3.4vw, 38px); }

.qz-note { font-size: 13.5px; color: var(--text-muted); margin: 18px 0 0; }
.qz-error { color: var(--stone-400); font-size: 14px; margin: 14px 0 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.qz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 28px; padding: 17px 34px;
  background: var(--brand); color: #fff; border: 0; border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; cursor: pointer;
  transition: background 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}
.qz-btn:hover:not(:disabled) { background: var(--brand-hover); }
/* Disabled = clearly inert: quiet outlined pill (visible on both white
   cards and the grey page), no teal tint that could read as "almost
   active". */
.qz-btn:disabled {
  background: transparent; color: var(--text-muted);
  box-shadow: inset 0 0 0 1.5px var(--border-subtle); cursor: not-allowed;
}
.qz-btn:disabled .qz-spinner {
  border-color: rgba(0,0,0,0.12); border-top-color: var(--text-muted);
}
.qz-btn__meta {
  padding-left: 12px; margin-left: 4px; border-left: 1px solid rgba(255,255,255,0.3);
  font-weight: 500; letter-spacing: 0.04em; opacity: 0.85; font-size: 12.5px;
}
.qz-btn--ghost {
  background: transparent; color: var(--brand);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}
.qz-btn--ghost:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand-hover); box-shadow: inset 0 0 0 1.5px var(--brand-hover); }

.qz-spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  animation: qz-spin 0.7s linear infinite;
}
@keyframes qz-spin { to { transform: rotate(360deg); } }

/* ── Gate ─────────────────────────────────────────────────── */
.qz-gate__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.qz-lock {
  position: relative;
  width: 80px; height: 80px; border-radius: 50%;
  display: grid; place-items: center; color: var(--brand);
  background: var(--surface-paper);
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}
.qz-lock__ring {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid rgba(55,133,125,0.22);
  pointer-events: none;
}
.qz-gate__card {
  width: 100%; max-width: 420px; margin-top: 40px;
  background: var(--surface-paper);
  border-radius: var(--radius-lg, 18px);
  box-shadow: var(--shadow-lg);
  padding: 36px 36px 30px;
}
.qz-gate__form { width: 100%; text-align: left; }
.qz-gate__form .qz-label { text-align: left; }
.qz-gate__form .qz-btn { width: 100%; margin-top: 26px; }

/* ── Name ─────────────────────────────────────────────────── */
.qz-name__form { margin-top: 40px; max-width: 520px; }

/* ── Flow ─────────────────────────────────────────────────── */
.qz-flow { justify-content: flex-start; padding-top: calc(var(--topbar-h) + 20px); padding-bottom: 44px; }
.qz-flow__bar {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; height: 3px;
  background: var(--border-subtle); z-index: 40;
}
.qz-flow__fill { display: block; height: 100%; background: var(--brand); transition: width 0.5s var(--ease); }
.qz-flow__inner { max-width: 880px; }
.qz-flow__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 12px;
}
.qz-flow__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qz-flow__count {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-brand);
}
.qz-flow__type {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-muted);
}
.qz-flow__type::before { content: "·"; margin-right: 12px; }
.qz-streak {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--brand); background: var(--brand-soft);
  padding: 4px 10px 4px 8px; border-radius: 999px;
  animation: qz-pop 0.34s var(--ease);
}
.qz-cheer {
  display: inline-flex; align-items: center; margin: 0;
  font-size: 11px; font-weight: 700; color: var(--text-brand);
  letter-spacing: 0.1em; text-transform: uppercase;
  animation: qz-fade 0.4s var(--ease);
}
.qz-card { display: flex; gap: 26px; align-items: stretch; animation: qz-rise 0.45s var(--ease); }
.qz-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
@media (max-width: 720px) { .qz-card { flex-direction: column; gap: 16px; } }

/* ── Photographic scenario stage (side panel) ─────────────── */
.qz-stage {
  position: relative; flex: 0 0 clamp(240px, 32%, 320px);
  align-self: stretch; min-height: 260px;
  border-radius: var(--radius-md); overflow: hidden;
  margin: 0; background: var(--ink);
}
@media (max-width: 720px) {
  .qz-stage { flex: none; align-self: auto; width: 100%; min-height: 0; height: clamp(120px, 36vw, 190px); }
}
.qz-stage__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  animation: qz-kenburns 18s ease-out both;
}
@keyframes qz-kenburns { from { transform: scale(1.07); } to { transform: scale(1); } }

/* ── Cast line (who's in the scene) — quiet one-line credit
   prefixed with a short emerald rule ──────────────────────── */
.qz-cast { display: inline-flex; align-items: center; margin: 0 0 12px; }
.qz-cast::before {
  content: ""; flex-shrink: 0; width: 20px; height: 2px;
  background: var(--brand); margin-right: 11px;
}
.qz-cast__role { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-brand); }
.qz-cast__name { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-muted); }
.qz-cast__name::before { content: "·"; margin: 0 6px 0 2px; color: var(--text-muted); }

/* ── Scenario lead ────────────────────────────────────────── */
.qz-scenario {
  margin: 0 0 8px;
  font-size: 16px; line-height: 1.65; color: var(--neutral-500);
}
.qz-prompt {
  font-family: var(--serif); font-weight: 600;
  font-size: 24px; line-height: 1.4;
  letter-spacing: 0; color: var(--neutral-800); margin: 0 0 18px;
}
@media (max-width: 720px) { .qz-prompt { font-size: 21px; } }
@keyframes qz-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes qz-pop { 0% { transform: scale(0.7); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* ── Choice options ───────────────────────────────────────── */
.qz-options { display: flex; flex-direction: column; gap: 10px; }
.qz-option {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left;
  padding: 15px 18px; background: var(--surface-paper);
  border: 1.5px solid transparent; border-radius: var(--radius-md);
  font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--neutral-700);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), opacity 0.18s var(--ease);
}
.qz-option:hover:not(:disabled) { background: var(--teal-50); }
.qz-option.is-selected { border-color: var(--brand); background: var(--teal-50); }
.qz-option.is-correct { border-color: var(--brand); background: var(--teal-50); }
.qz-option.is-wrong { border-color: var(--stone-400); background: #fbf2f0; }
.qz-option.is-muted { opacity: 0.55; }
.qz-option:disabled { cursor: default; }
.qz-option__mark {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  margin-top: 1px;
}
.qz-option.is-correct .qz-option__mark { background: var(--brand); color: #fff; }
.qz-option.is-wrong .qz-option__mark { background: var(--stone-400); color: #fff; }
.qz-option__text { flex: 1; }

/* letter badge (A/B/C/D) for best-response options */
.qz-option__badge {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; margin-top: -1px;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  background: var(--surface-page); color: var(--text-muted);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.qz-option.is-selected .qz-option__badge,
.qz-option.is-correct .qz-option__badge { background: var(--brand); color: #fff; box-shadow: none; }
.qz-option.is-wrong .qz-option__badge { background: var(--stone-400); color: #fff; box-shadow: none; }

/* ── This or that (pair) ──────────────────────────────────── */
.qz-options--pair { flex-direction: row; gap: 14px; }
.qz-options--pair .qz-option {
  position: relative; flex: 1; flex-direction: column; align-items: flex-start; gap: 10px;
  min-height: 118px; justify-content: flex-start; padding: 18px 20px; font-size: 16px; line-height: 1.55;
}
.qz-options--pair .qz-option__mark {
  position: absolute; top: 14px; right: 16px;
}
.qz-option__glyph {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: var(--brand);
  background: var(--brand-soft);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.qz-options--pair .qz-option.is-correct .qz-option__glyph { color: #fff; background: var(--brand); }
.qz-options--pair .qz-option.is-wrong .qz-option__glyph { color: #fff; background: var(--stone-400); }
.qz-options--pair .qz-option.is-muted .qz-option__glyph { opacity: 0.7; }
@media (max-width: 560px) { .qz-options--pair { flex-direction: column; } }

/* ── True / false ─────────────────────────────────────────── */
.qz-tf { display: flex; gap: 12px; }
.qz-tf__btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 18px 18px; background: var(--surface-paper);
  border: 1.5px solid transparent; border-radius: var(--radius-md);
  cursor: pointer; color: var(--neutral-700);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), opacity 0.18s var(--ease);
}
.qz-tf__btn:hover:not(:disabled) { background: var(--teal-50); }
.qz-tf__btn.is-selected { border-color: var(--brand); background: var(--teal-50); }
.qz-tf__btn.is-correct { border-color: var(--brand); background: var(--teal-50); }
.qz-tf__btn.is-wrong { border-color: var(--stone-400); background: #fbf2f0; }
.qz-tf__btn.is-muted { opacity: 0.5; }
.qz-tf__btn:disabled { cursor: default; }
.qz-tf__icon {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.qz-tf__icon svg { width: 17px; height: 17px; }
.qz-tf__btn.is-wrong .qz-tf__icon { background: #f3ddd8; color: var(--stone-400); }
.qz-tf__label { font-family: var(--sans); font-weight: 600; font-size: 16px; }
@media (max-width: 460px) { .qz-tf__btn { padding: 16px 12px; } }

/* ── Select all that apply (multi) ────────────────────────── */
.qz-multi__hint { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; }
.qz-option--multi { align-items: center; }
.qz-check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center; color: #fff;
  background: var(--surface-page); box-shadow: inset 0 0 0 1.5px var(--border-subtle);
  transition: background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.qz-check.is-on { background: var(--brand); box-shadow: none; }
.qz-option--multi.is-correct .qz-check { background: var(--brand); box-shadow: none; }
.qz-option--multi.is-wrong .qz-check { background: var(--stone-400); box-shadow: none; }
.qz-option--multi.is-correct { border-color: var(--brand); background: var(--teal-50); }
.qz-option--multi.is-wrong { border-color: var(--stone-400); background: #fbf2f0; }
.qz-option--multi.is-missed { border-color: var(--brand); border-style: dashed; }
.qz-option__hint {
  flex-shrink: 0; margin-left: auto; align-self: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand);
}

/* ── Order question ───────────────────────────────────────── */
.qz-order__hint { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; }
.qz-order__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.qz-order__item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; background: var(--surface-paper);
  border: 1.5px solid transparent; border-radius: var(--radius-md);
  cursor: grab; user-select: none;
}
.qz-order__item:active { cursor: grabbing; }
.qz-order__item.is-correct { border-color: var(--brand); background: var(--teal-50); }
.qz-order__item.is-wrong { border-color: var(--stone-400); background: #fbf2f0; }
.qz-order__num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--brand-soft); color: var(--brand);
}
.qz-order__text { flex: 1; font-size: 16px; line-height: 1.5; color: var(--neutral-700); }
.qz-order__mark { font-weight: 700; color: var(--brand); }
.qz-order__item.is-wrong .qz-order__mark { color: var(--stone-400); }
.qz-order__arrows { display: flex; flex-direction: column; gap: 2px; }
.qz-order__arrows button {
  border: 0; background: var(--surface-page); color: var(--text-muted);
  width: 26px; height: 18px; border-radius: 4px; cursor: pointer; font-size: 9px; line-height: 1;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.qz-order__arrows button:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand); }
.qz-order__arrows button:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Feedback ─────────────────────────────────────────────── */
.qz-feedback {
  margin-top: 24px; padding: 20px 22px; border-radius: var(--radius-md);
  border-left: 3px solid var(--brand); background: var(--teal-50);
  animation: qz-fade 0.4s var(--ease);
}
.qz-feedback.is-wrong { border-left-color: var(--stone-400); background: #fbf2f0; }
.qz-feedback__tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px;
}
.qz-feedback.is-wrong .qz-feedback__tag { color: var(--stone-400); }
.qz-feedback__text { margin: 0; font-size: 16px; line-height: 1.65; color: var(--neutral-700); }
@keyframes qz-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Action sits inside the answer column, bottom-right — where the eye
   lands after reading the options. Anchored to the card's baseline so it
   aligns with the bottom edge of the scenario photo. */
.qz-flow__actions {
  margin-top: auto; padding-top: 28px;
  display: flex; justify-content: flex-end;
}
.qz-flow__actions .qz-btn { margin-top: 0; }
@media (max-width: 720px) {
  .qz-flow__actions { justify-content: stretch; }
  .qz-flow__actions .qz-btn { width: 100%; }
}

/* ── Results ──────────────────────────────────────────────── */
.qz-result { justify-content: flex-start; }
.qz-result__inner { max-width: 820px; }
.qz-score { display: flex; align-items: center; gap: 30px; margin: 18px 0 44px; flex-wrap: wrap; }
.qz-score__ring {
  flex-shrink: 0; width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center;
}
.qz-score__inner {
  width: 104px; height: 104px; border-radius: 50%; background: var(--surface-page);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.qz-score__num { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--ink); }
.qz-score__den { font-size: 20px; color: var(--text-muted); }
.qz-score__pct { font-size: 13px; font-weight: 700; color: var(--text-brand); margin-top: 4px; letter-spacing: 0.04em; }
.qz-result__hi { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 44px); margin: 0 0 8px; color: var(--ink); }
.qz-result__verdict { font-size: 17px; line-height: 1.5; color: var(--ink); margin: 0 0 10px; max-width: 460px; }
.qz-save { font-size: 13px; margin: 0; color: var(--text-muted); }
.qz-save--saved { color: var(--brand); }
.qz-save--error { color: var(--stone-400); }

/* ── Leaderboard ──────────────────────────────────────────── */
.qz-lb { margin: 0 0 48px; }
.qz-lb__head { margin-bottom: 22px; }
.qz-lb__title { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; color: var(--ink); }
.qz-lb__msg { color: var(--text-muted); font-size: 15px; }
.qz-lb__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.qz-lb__row {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px;
  background: var(--surface-paper); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.qz-lb__row.is-top .qz-lb__rank { background: var(--brand); color: #fff; }
.qz-lb__row.is-you { box-shadow: inset 0 0 0 1.5px var(--brand), var(--shadow-sm); }
.qz-lb__rank {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
  background: var(--surface-page); color: var(--text-muted);
}
.qz-lb__name { flex: 1; font-size: 16px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.qz-lb__you {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 3px 8px; border-radius: 999px;
}
.qz-lb__score { font-family: var(--serif); font-size: 18px; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.qz-lb__pct { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--text-brand); }

/* ── Review ───────────────────────────────────────────────── */
.qz-review__title { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.8vw, 30px); margin: 0 0 22px; color: var(--ink); }
.qz-review__item {
  padding: 22px 24px; margin-bottom: 14px;
  background: var(--surface-paper); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border-left: 3px solid var(--brand);
}
.qz-review__item.is-wrong { border-left-color: var(--stone-400); }
.qz-review__top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.qz-review__badge {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--brand); color: #fff;
}
.qz-review__item.is-wrong .qz-review__badge { background: var(--stone-400); }
.qz-review__q { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.qz-review__prompt { font-size: 16.5px; line-height: 1.5; color: var(--ink); margin: 0 0 14px; }
.qz-review__line { font-size: 14.5px; line-height: 1.55; color: var(--ink); margin: 0 0 6px; }
.qz-review__line--ok { color: var(--brand-deep); }
.qz-review__lbl { font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.qz-review__guidance { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 10px 0 0; }
.qz-result__actions { margin-top: 36px; }

/* ── Footer ───────────────────────────────────────────────── */
.qz-footer {
  text-align: center; padding: 40px var(--gutter); font-size: 12.5px;
  color: var(--text-muted); letter-spacing: 0.02em;
}

@media (max-width: 680px) {
  .qz-section { padding: calc(var(--topbar-h) + 32px) 0 56px; }
  .qz-section__inner { padding: 0 var(--gutter-mobile); }
  .qz-footer { padding: 32px var(--gutter-mobile); }
  .qz-score { gap: 22px; }
}
/* ── Misc: name meta, button arrow, feedback dot ──────────── */
.qz-meta {
  font-size: 12.5px; font-weight: 600; color: var(--text-brand);
  letter-spacing: 0.02em; margin: 18px 0 0;
}
.qz-feedback__tag { display: inline-flex; align-items: center; gap: 8px; }
.qz-feedback__dot {
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; background: var(--brand); color: #fff;
}
.qz-feedback.is-wrong .qz-feedback__dot { background: var(--stone-400); }

@media (prefers-reduced-motion: reduce) {
  .qz-section { transition: none; opacity: 1; transform: none; }
  .qz-hub__card-num, .qz-hub__card-name, .qz-hub__card-go { transition: none; }
  .qz-feedback, .qz-card, .qz-cheer, .qz-streak { animation: none; }
}

/* ══════════════════════════════════════════════════════════
   MANAGER / TRAINER SUMMARY
   ══════════════════════════════════════════════════════════ */
.mgr-section { justify-content: flex-start; padding-top: calc(var(--topbar-h) + 56px); }
.mgr-inner { max-width: 860px; }
.mgr-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 52px;
}
.mgr-title { font-size: clamp(30px, 4vw, 50px); margin-bottom: 14px; }
.mgr-refresh { margin-top: 0; padding: 12px 24px; flex-shrink: 0; }

.mgr-block { margin: 0 0 64px; }
.mgr-block:last-child { margin-bottom: 8px; }
.mgr-block__head { margin-bottom: 26px; }
.mgr-block__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; color: var(--ink);
}

/* Headline stats */
.mgr-stats { display: flex; gap: 48px; margin: 0 0 28px; flex-wrap: wrap; }
.mgr-stat { display: flex; flex-direction: column; gap: 4px; }
.mgr-stat__num { font-family: var(--serif); font-size: clamp(32px, 4vw, 44px); line-height: 1; color: var(--brand); }
.mgr-stat__lbl {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
}

/* Completion table (borderless, airy) */
.mgr-table { display: flex; flex-direction: column; gap: 6px; }
.mgr-table__head {
  display: grid; grid-template-columns: 1fr auto auto auto;
  gap: 20px; align-items: center; padding: 0 18px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}
.mgr-table__num { text-align: right; }
.mgr-row {
  display: grid; grid-template-columns: 1fr auto auto auto;
  gap: 20px; align-items: center; padding: 15px 18px;
  background: var(--surface-paper); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.mgr-row__name { font-size: 16px; font-weight: 600; color: var(--ink); }
.mgr-row__score { font-family: var(--serif); font-size: 18px; color: var(--ink); display: inline-flex; align-items: baseline; gap: 8px; justify-content: flex-end; }
.mgr-row__pct { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--text-brand); }
.mgr-row__attempts { font-size: 15px; font-weight: 600; color: var(--text-muted); min-width: 60px; }
.mgr-row__date { font-size: 14px; color: var(--text-muted); min-width: 96px; }

/* Most-missed scenarios */
.mgr-miss { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: miss; }
.mgr-miss__item {
  padding: 18px 22px; background: var(--surface-paper);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--brand);
}
.mgr-miss__item.is-mid { border-left-color: #b3a96e; }
.mgr-miss__item.is-high { border-left-color: #c4836e; }
.mgr-miss__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.mgr-miss__theme { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.mgr-miss__rate { font-family: var(--serif); font-size: 22px; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: baseline; gap: 7px; }
.mgr-miss__rlbl { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.mgr-miss__bar { height: 6px; border-radius: 999px; background: var(--surface-page); overflow: hidden; }
.mgr-miss__fill { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.mgr-miss__item.is-mid .mgr-miss__fill { background: #b3a96e; }
.mgr-miss__item.is-high .mgr-miss__fill { background: #c4836e; }
.mgr-miss__meta {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 10px;
  font-size: 13px; color: var(--text-muted);
}

@media (max-width: 680px) {
  .mgr-section { padding-top: calc(var(--topbar-h) + 32px); }
  .mgr-head { margin-bottom: 36px; }
  .mgr-hide-sm { display: none; }
  .mgr-table__head, .mgr-row { grid-template-columns: 1fr auto; }
  .mgr-stats { gap: 32px; }
}


/* ═══════════════════════════════════════════════════════
   WORK STYLE QUIZ
   ═══════════════════════════════════════════════════════ */

/* ── Hub (quiz picker) — calm editorial list, no motion ── */
.qz-hub__inner { max-width: 640px; }
.qz-whoami {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--steel);
  letter-spacing: 0.01em;
}
.qz-whoami strong {
  color: var(--black);
  font-weight: 600;
}
.qz-linkbtn {
  margin-left: 10px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--emerald);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.qz-linkbtn:hover { color: var(--black); }
.qz-hub__cards {
  display: flex;
  flex-direction: column;
  gap: 52px;
  margin-top: 60px;
}
.qz-hub__card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: start;
  column-gap: 24px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  font: inherit;
}
.qz-hub__card-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--steel);
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.qz-hub__card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.qz-hub__card-name {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: color 0.2s var(--ease);
}
.qz-hub__card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 44ch;
  margin-top: 2px;
}
.qz-hub__card-meta {
  margin-top: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-brand);
}
.qz-hub__card-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 9px; /* optically aligns with the name line */
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-brand);
  opacity: 0.6;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}
.qz-hub__card-go-arrow { font-size: 14px; line-height: 1; margin-left: 2px; }
.qz-hub__card:hover .qz-hub__card-name { color: var(--brand); }
.qz-hub__card:hover .qz-hub__card-num { color: var(--brand); opacity: 1; }
.qz-hub__card:hover .qz-hub__card-go { opacity: 1; }
.qz-hub__card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 8px;
  border-radius: 2px;
}
.qz-hub__card:focus-visible .qz-hub__card-name { color: var(--brand); }
.qz-hub__card:focus-visible .qz-hub__card-go { opacity: 1; }

/* No entrance animation — the picker renders settled */
.qz-hub.qz-section { opacity: 1; transform: none; transition: none; }

@media (max-width: 680px) {
  .qz-hub__cards { gap: 44px; margin-top: 48px; }
  .qz-hub__card { grid-template-columns: 40px 1fr; column-gap: 16px; }
  .qz-hub__card-num { font-size: 22px; padding-top: 2px; }
  .qz-hub__card-name { font-size: 23px; }
  .qz-hub__card-go { grid-column: 2; justify-self: start; padding-top: 0; margin-top: 12px; }
}

/* ── Intro screen ────────────────────────────────────── */
.ws-intro__inner { max-width: 560px; }
.ws-intro__title { margin-bottom: 16px; }
.ws-intro__body  { max-width: 52ch; }
.ws-intro__btn   { margin-top: 8px; }
.ws-intro__note {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding: 22px 24px;
  background: var(--brand-soft);
  border-radius: var(--radius-md);
  max-width: 56ch;
}
.ws-intro__note-rule {
  flex-shrink: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--brand);
}
.ws-intro__note-title {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--brand-hover, var(--brand));
  margin: 0 0 6px;
  line-height: 1.3;
}
.ws-intro__note-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}
.ws-intro__how { margin-top: 26px; max-width: 56ch; }
.ws-intro__how-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.ws-intro__how-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 36px;
}

/* ── Progress bar ────────────────────────────────────── */
.ws-progress-bar {
  position: fixed;
  top: var(--topbar-h, 64px);
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0,0,0,0.06);
  z-index: 200;
}
.ws-progress-bar__fill {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 0 2px 2px 0;
  transition: width 0.3s ease;
}

/* ── Question flow ───────────────────────────────────── */
.ws-flow { padding-top: calc(var(--topbar-h, 64px) + 24px); }
.ws-flow__inner { max-width: 620px; }
.ws-flow__counter {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 28px;
}
.ws-flow__num   { font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--brand); }
.ws-flow__sep   { font-size: 14px; color: var(--text-muted); }
.ws-flow__total { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.ws-flow__inner { transition: opacity 0.2s ease, transform 0.2s ease; }
.ws-flow__inner.is-leaving { opacity: 0; transform: translateY(-6px); }
.ws-flow__prompt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.ws-statement {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.32;
  color: var(--ink);
  margin: 0 0 36px;
  max-width: 24ch;
  min-height: 2.4em;
}

/* 5-point Likert scale */
.ws-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.ws-scale__opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 8px 16px;
  background: var(--surface-paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.1s;
}
.ws-scale__opt:hover { border-color: var(--brand); background: var(--brand-soft); }
.ws-scale__opt:active { transform: scale(0.97); }
.ws-scale__dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--steel);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
/* graduated dot sizes to signal intensity */
.ws-scale__opt--1 .ws-scale__dot, .ws-scale__opt--5 .ws-scale__dot { width: 30px; height: 30px; }
.ws-scale__opt--2 .ws-scale__dot, .ws-scale__opt--4 .ws-scale__dot { width: 26px; height: 26px; }
.ws-scale__opt--3 .ws-scale__dot { width: 22px; height: 22px; }
.ws-scale__opt.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: var(--shadow-md);
}
.ws-scale__opt.is-selected .ws-scale__dot {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.05);
}
.ws-scale__label {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-muted);
  font-weight: 500;
}
.ws-scale__opt.is-selected .ws-scale__label { color: var(--brand-hover, var(--brand)); font-weight: 700; }
.ws-scale__ends {
  display: none;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.ws-flow__actions { display: flex; justify-content: flex-start; margin-top: 36px; }
.ws-flow__back { gap: 8px; }

@media (max-width: 560px) {
  .ws-scale { grid-template-columns: 1fr; gap: 8px; }
  .ws-scale__opt {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 18px;
    text-align: left;
  }
  .ws-scale__opt--1 .ws-scale__dot, .ws-scale__opt--5 .ws-scale__dot,
  .ws-scale__opt--2 .ws-scale__dot, .ws-scale__opt--4 .ws-scale__dot,
  .ws-scale__opt--3 .ws-scale__dot { width: 22px; height: 22px; }
  .ws-scale__label { font-size: 14px; }
  .ws-statement { max-width: none; min-height: 0; }
}

/* ── Result card ─────────────────────────────────────── */
.ws-result { position: relative; overflow: hidden; }
.ws-result__accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  opacity: 0.85;
}
.ws-result__inner { max-width: 680px; padding-top: calc(var(--topbar-h, 64px) + 48px); }
.ws-result__name-row {
  margin-bottom: 24px;
}
.ws-result__person {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ws-result__type-block { margin-bottom: 24px; }
.ws-result__lead {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.ws-result__blend {
  display: block;
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.ws-result__blend-name { font-weight: 700; }
.ws-result__type-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.ws-result__tagline {
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}
.ws-result__description {
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-muted);
  max-width: 60ch;
  margin: 0 0 36px;
}
.ws-result__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 560px) { .ws-result__grid { grid-template-columns: 1fr; gap: 24px; } }
.ws-result__section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.ws-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ws-chip--strength {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-hover);
  font-size: 13px;
  font-weight: 600;
}
.ws-watchouts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ws-watchout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.ws-watchout__dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--steel);
  margin-top: 7px;
}
.ws-result__meta {
  border-top: 1px solid var(--border-light, rgba(0,0,0,0.08));
  padding-top: 28px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ws-result__meta-row { display: flex; flex-direction: column; gap: 4px; }
.ws-result__meta-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ws-result__meta-val { font-size: 15px; line-height: 1.5; color: var(--ink); }
.ws-result__meta-val--em { font-style: italic; color: var(--ink-muted); }

/* Full profile */
.ws-result__profile {
  border-top: 1px solid var(--border-light, rgba(0,0,0,0.08));
  padding-top: 28px;
  margin-bottom: 36px;
}
.ws-result__profile-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 20px;
  max-width: 54ch;
}
.ws-result__consistency {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 28px;
  padding-left: 14px;
  border-left: 2px solid var(--brand);
}

/* Where to grow */
.ws-result__growth {
  border-top: 1px solid var(--border-light, rgba(0,0,0,0.08));
  padding-top: 28px;
  margin-bottom: 36px;
}
.ws-growth { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ws-growth__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.ws-growth__arrow {
  flex-shrink: 0;
  color: var(--brand);
  font-weight: 700;
  line-height: 1.6;
}
.ws-growth__item--blend { color: var(--ink-muted); }
.ws-growth__item--blend strong { color: var(--brand-hover); font-weight: 700; }

/* Saved-result note */
.ws-result__saved-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 22px;
}

/* Loading state (fetching a returning teammate's saved result) */
.ws-loading__inner {
  min-height: 50svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}
.ws-loading__text { font-size: 15px; color: var(--text-muted); margin: 0; }
.qz-spinner--lg {
  width: 34px; height: 34px; border-width: 3px;
  border-color: var(--brand-soft); border-top-color: var(--brand);
}
/* Score breakdown bars */
.ws-result__scores {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}
.ws-score-row { display: grid; grid-template-columns: 150px 1fr 34px; align-items: center; gap: 14px; }
.ws-score-row__name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
@media (max-width: 480px) {
  .ws-score-row { grid-template-columns: 120px 1fr 30px; gap: 10px; }
  .ws-score-row__name { font-size: 12.5px; }
}
.ws-score-row__bar { height: 8px; border-radius: 999px; background: var(--surface-page, #eee); overflow: hidden; }
.ws-score-row__fill { display: block; height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.ws-score-row__num { font-size: 13px; font-weight: 600; color: var(--text-muted); text-align: right; }

.ws-result__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Manager: tabs ───────────────────────────────────── */
.mgr-tabs {
  display: flex;
  gap: 4px;
  padding: calc(var(--topbar-h, 64px) + 32px) var(--gutter) 0;
  max-width: calc(860px + var(--gutter) * 2);
  margin: 0 auto;
}
.mgr-tab {
  padding: 10px 22px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.mgr-tab:hover { color: var(--ink); }
.mgr-tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }

/* ── Manager: Work Style distribution ───────────────── */
.ws-dist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.ws-dist__row { display: grid; grid-template-columns: 160px 1fr 32px; align-items: center; gap: 16px; }
.ws-dist__badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ws-dist__bar { height: 10px; border-radius: 999px; background: rgba(0,0,0,0.07); overflow: hidden; }
.ws-dist__fill { display: block; height: 100%; border-radius: 999px; }
.ws-dist__count { font-size: 15px; font-weight: 700; color: var(--ink); text-align: right; }

/* Work Style people table */
.ws-people-table .mgr-table__head,
.ws-table__head { grid-template-columns: 1fr auto auto; }
.ws-people-row  { grid-template-columns: 1fr auto auto; }

@media (max-width: 680px) {
  .mgr-tabs { padding-top: calc(var(--topbar-h, 64px) + 16px); overflow-x: auto; }
  .ws-dist__row { grid-template-columns: 130px 1fr 28px; gap: 10px; }
}


/* ================================================================
   MOBILE POLISH — comprehensive responsive refinements (≤ 860 px)
   All four pages (index, the-practice, client-guide, survey).
   ================================================================ */

/* ── 1 · Global gutter switch ─────────────────────────────────────
   Key section containers were using padding: 0 var(--gutter) (56 px)
   on mobile without a gutter-mobile override. At 390 px that left
   only 278 px of content — too cramped. Switch to 24 px below 860 px
   so every section breathes properly on a phone.              ── */
@media (max-width: 860px) {
  .section-head      { padding-inline: var(--gutter-mobile); margin-bottom: 44px; }
  .work-grid         { padding-inline: var(--gutter-mobile); }
  .approach-grid     { padding-inline: var(--gutter-mobile); }
  .discipline-grid   { padding-inline: var(--gutter-mobile); }
  .statsband__inner  { padding-inline: var(--gutter-mobile); }
  .confidence__inner { padding-inline: var(--gutter-mobile); }
  .contact__inner    { padding-inline: var(--gutter-mobile); }
  /* About / values wrapper on index homepage */
  .practice__head    { padding-inline: var(--gutter-mobile); margin-bottom: 44px; }
}

/* ── 2 · Hero: very small phones (≤ 480 px) ───────────────────── */
@media (max-width: 480px) {
  .hero__content { padding-top: 104px; }
  .hero__sub     { font-size: 15px; max-width: 100%; }
  /* Stack CTA buttons vertically, full-content width */
  .hero__cta     { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__cta .btn{ justify-content: center; }
}

/* ── 3 · Section typography floors on phones ──────────────────── */
@media (max-width: 540px) {
  .section-title { font-size: clamp(26px, 7vw, 40px); }
  .section-sub   { font-size: 15px; line-height: 1.7; }
  .about-opening { font-size: clamp(20px, 5.5vw, 28px); max-width: 100%; }
}

/* ── 4 · Approach steps: compact title on phones ─────────────── */
@media (max-width: 540px) {
  .step__title { font-size: 22px; }
}

/* ── 5 · Confidence disc-strip: 1-col on very small phones ───── */
@media (max-width: 480px) {
  .disc-strip { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
}

/* ── 6 · Stats band: prevent num overflow at ≤ 400 px ────────── */
@media (max-width: 400px) {
  .bandstat__num { font-size: clamp(36px, 10vw, 52px); }
}

/* ── 7 · Contact: tighter title floor on phones ──────────────── */
@media (max-width: 480px) {
  .contact__title { font-size: clamp(28px, 7.5vw, 44px); }
}

/* ── 8 · Work cards: stat row compact on very narrow screens ─── */
@media (max-width: 400px) {
  .pcard__stats { gap: 24px; }
  .pcard__loc   { font-size: 19px; }
}

/* ── 9 · Practice page: deeper gutter on mid tablets ─────────── */
/* bp-wrap already switches at 680 px; add a gentler 860 px step
   so that 680-860 px phones/tablets also use the mobile gutter.   */
@media (max-width: 860px) {
  .bp-wrap { padding-inline: var(--gutter-mobile); }
}

/* ── 10 · Client guide CTA: gutter on small phones ───────────── */
@media (max-width: 480px) {
  .cg-cta__inner { padding-inline: var(--gutter-mobile); }
  .cg-cta { padding-block: 56px; }
}

/* ── 11 · Survey: tight hero spacing on phones ────────────────── */
@media (max-width: 480px) {
  .sv-section { padding-top: calc(var(--topbar-h, 64px) + 48px); }
}

/* ── 12 · Footer: extra-small screens ────────────────────────── */
@media (max-width: 400px) {
  .footer__bar { gap: 12px; padding-block: 20px; }
  .footer__brand img { height: 36px; }
}








