/* =====================================================================
   CNAAN - styles.css
   Visual language: wonderful.ai (photographic heroes, pill buttons,
   rounded image cards, scroll-highlight statement, pill-tab industries).
   Tokens below deviate from the original DESIGN.md on purpose (rounded
   corners + photography) per the client's screenshot direction.
   ===================================================================== */

/* ----------------------------- TOKENS ----------------------------- */
:root {
  /* Canvas */
  --bg:            #FFFFFF;
  --bg-soft:       #F6F6F5;   /* light grey band (tab bar, logo strip) */
  --surface:       #FFFFFF;

  /* Ink */
  --ink:           #0C0C0D;   /* near-black headings/text */
  --ink-2:         #16171A;   /* dark section bg */
  --ink-soft:      #1D1D1F;

  /* Grays */
  --gray-700:      #55565A;   /* body */
  --gray-600:      #6E6E73;   /* captions/eyebrows */
  --gray-500:      #8A8B90;
  --gray-300:      #C7C8CC;   /* dimmed statement text */
  --gray-200:      #E4E5E7;
  --hair:          rgba(0,0,0,0.10);
  --hair-light:    rgba(255,255,255,0.16);

  /* On-dark text */
  --on-dark:       #FFFFFF;
  --on-dark-soft:  rgba(255,255,255,0.72);

  /* Accent */
  --blue:          #0099FF;
  --blue-deep:     #3286F5;

  /* Industry tints (used subtly for card fallbacks) */
  --tint-cream:    #FFFCF1;
  --tint-teal:     #D2EEE7;
  --tint-slate:    #E9EDF5;

  /* Radii - wonderful.ai style */
  --r-pill:        999px;
  --r-card:        26px;
  --r-lg:          32px;

  /* Layout */
  --maxw:          1240px;
  --pad:           40px;
  --nav-h:         76px;

  /* Motion */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);

  /* Fonts - Noto Sans Hebrew covers Hebrew glyphs (Inter has none, and Noto
     is the closest grotesque match to Inter); Latin stays Inter */
  --sans: "Inter", "Noto Sans Hebrew", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Fragment Mono", "Ubuntu Mono", ui-monospace, "SFMono-Regular", Menlo, "Noto Sans Hebrew", monospace;
}

/* ----------------------------- RESET ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* author display rules must not override the hidden attribute */
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0; }
button { font-family: inherit; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill);
  font-size: 14px;
}

.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.02em; }
.arr { display: inline-block; transition: transform 0.18s var(--ease); }

/* --------------------- SHARED IMAGE-MEDIA LAYER ------------------- */
/* Cinematic gradient placeholders stand in until real photos are dropped in.
   Real image is layered ABOVE the gradient via --img, so a missing file
   still looks intentional. */
.media-dark {
  position: relative;
  background-color: #17120c;
  background-image:
    radial-gradient(120% 100% at 50% 22%, rgba(255,196,120,0.30), rgba(120,70,30,0.10) 42%, rgba(6,5,4,0.9) 100%),
    var(--img, none);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

/* ----------------------------- BUTTONS ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  padding: 14px 26px; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn--pill { border-radius: var(--r-pill); }
.btn--lg { padding: 18px 34px; font-size: 16px; }

/* solid (white on dark, or dark on light - used mostly on photos) */
.btn--solid { background: #fff; color: var(--ink); border-color: #fff; }
.btn--solid:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--solid:hover .arr { transform: translate(2px,-2px); }

/* ghost on light photo/dark bg */
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn--ghost-light:hover .arr { transform: translate(2px,-2px); }

/* nav cta: white pill over the hero (dark pill once the bar goes solid) */
.nav__cta {
  background: #fff; color: var(--ink);
  border-color: #fff; padding: 11px 22px; font-size: 14px;
}
.nav__cta:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* focus visibility */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--r-pill);
}

/* ------------------------- LANGUAGE TOGGLE ------------------------ */
/* globe pill in the nav; mirrors the nav link color states */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.45); border-radius: var(--r-pill);
  padding: 9px 14px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.lang-toggle svg { width: 14px; height: 14px; display: block; }
.lang-toggle:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.nav.is-solid .lang-toggle { color: var(--ink); border-color: rgba(0,0,0,0.22); }
.nav.is-solid .lang-toggle:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
/* the mobile menu sits on white - dark version, own row */
.mobile-menu .lang-toggle { align-self: flex-start; margin-top: 16px; color: var(--ink); border-color: rgba(0,0,0,0.25); }
.mobile-menu .lang-toggle:hover { background: var(--ink); color: #fff; }
@media (max-width: 720px) { .nav__inner .lang-toggle { display: none; } }

/* ------------------------------- NAV ------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 24px;
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 25px; font-weight: 500; letter-spacing: -0.04em; color: #fff;
  transition: color .35s var(--ease);
}
/* CNAAN "n" mark + "cnaan.dev" wordmark - carried over from the syllabus template logo */
.nav__logo-icon { height: 1.1em; width: 1.1em; object-fit: contain; }
/* over the dark hero the mark is forced white; the footer icon keeps its real colors */
.nav .nav__logo-icon { filter: brightness(0) invert(1); transition: filter .35s var(--ease); }
.nav__logo-text { letter-spacing: -0.02em; }
.nav__logo-name { font-weight: 500; }   /* "cnaan" */
.nav__logo-tld  { font-weight: 300; }   /* "dev" */
.nav__links {
  display: flex; gap: 34px; margin: 0 auto;
}
.nav__links a {
  font-size: 15px; color: rgba(255,255,255,0.88); letter-spacing: -0.01em;
  position: relative; padding: 4px 0; transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: currentColor; transition: right .25s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { right: 0; }

/* scrolled state → solid white bar, dark text */
.nav.is-solid {
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--hair);
}
.nav.is-solid .nav__logo { color: var(--ink); }
.nav.is-solid .nav__logo-icon { filter: none; }
.nav.is-solid .nav__links a { color: var(--gray-700); }
.nav.is-solid .nav__links a:hover { color: var(--ink); }
.nav.is-solid .nav__cta { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav.is-solid .nav__cta:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.nav.is-solid .nav__burger span { background: var(--ink); }

/* burger */
.nav__burger {
  display: none; margin-left: auto; width: 42px; height: 42px;
  background: transparent; border: 0; cursor: pointer; padding: 0;
  flex-direction: column; gap: 6px; align-items: center; justify-content: center;
}
.nav__burger span { display: block; width: 22px; height: 1.5px; background: #fff; transition: transform .25s var(--ease), opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: rgba(255,255,255,0.97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hair);
  padding: 24px var(--pad) 32px; display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a { font-size: 20px; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--hair); font-weight: 300; letter-spacing: -0.02em; }
.mobile-menu__cta { margin-top: 20px; }
.btn--solid.mobile-menu__cta { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --------------------- HERO (scroll-bloom) ------------------------ */
/* .hero is a tall scroll track; .hero__sticky pins one viewport while the
   scene blooms. JS sets --p (0..1) = bloom progress. */
.hero { position: relative; height: 240vh; color: #fff; }
.hero__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  text-align: left; padding: calc(var(--nav-h) + 40px) var(--pad) 56px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hero__layer {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: translateZ(0); will-change: transform, opacity;
}
/* Each layer = the real photo, with only a light legibility veil on top.
   background-color is the fallback shown if a photo is missing.
   (The veils use alpha so the images stay visible; the hero__scrim adds the rest.) */
/* dark, barren "before" — always beneath */
.hero__layer--dark {
  background-color: #0d0b09;
  background-image:
    linear-gradient(180deg, rgba(6,6,7,0.12), rgba(6,6,7,0.40)),
    var(--img, none);
}
/* mid, "awakening" — first light, life returning (optional 3rd still) */
.hero__layer--mid {
  opacity: 1;
  background-color: #2b3320;
  background-image:
    linear-gradient(180deg, rgba(14,14,8,0.08), rgba(10,12,7,0.30)),
    var(--img, none);
}
/* lush, green "after" — revealed as you scroll (no-JS shows it fully) */
.hero__layer--lush {
  opacity: 1;
  background-color: #16311f;
  background-image:
    linear-gradient(180deg, rgba(8,16,8,0.05), rgba(6,14,8,0.26)),
    var(--img, none);
}
/* warm "sunrise" light returning from the ground up */
.hero__glow {
  position: absolute; inset: 0; opacity: 1; mix-blend-mode: screen;
  background: radial-gradient(72% 56% at 50% 102%, rgba(255,209,140,0.5), rgba(255,180,110,0.14) 46%, transparent 72%);
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.10) 40%, rgba(0,0,0,0.50) 100%);
}
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* bottom-anchored split, full-bleed: big headline left, subhead + CTAs right.
   Both blocks are bottom-aligned (align-items: flex-end) so they read at the
   same height. */
.hero__content {
  position: relative; z-index: 2;
  width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 56px;
}
.hero__title {
  flex: 1 1 auto; min-width: 0;
  font-size: clamp(40px, 5.6vw, 88px);
  letter-spacing: -0.05em; line-height: 0.95; font-weight: 300;
  text-shadow: 0 2px 44px rgba(0,0,0,0.40);
}
/* one emphasized word inside the thin headline (300 + a single 500 phrase) */
.hero__title b { font-weight: 500; }
.hero__meta { flex: 0 0 auto; }
.hero__sub {
  max-width: 40ch;
  font-size: clamp(15px, 1.25vw, 18px); font-weight: 300; line-height: 1.5;
  color: rgba(255,255,255,0.92); letter-spacing: -0.01em;
}
/* two pills side by side */
.hero__actions { margin-top: 26px; display: flex; gap: 14px; justify-content: flex-start; flex-wrap: nowrap; }
.hero__cue {
  display: none; /* hidden: the full-width bottom content leaves no room for a centered cue */
  position: absolute; z-index: 2; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: lowercase;
  color: rgba(255,255,255,0.6);
}
.hero__cue::after {
  content: ""; display: block; width: 1px; height: 26px; margin: 8px auto 0;
  background: linear-gradient(rgba(255,255,255,0.6), transparent);
}

/* JS drives the bloom: --p = overall progress, --o-mid / --o-lush = layer opacities */
.js .hero__layer--dark { transform: scale(calc(1 + 0.10 * (1 - var(--p, 0)))); }
.js .hero__layer--mid  { opacity: var(--o-mid, 0);  transform: scale(calc(1 + 0.08 * (1 - var(--p, 0)))); }
.js .hero__layer--lush { opacity: var(--o-lush, 0); transform: scale(calc(1 + 0.06 * (1 - var(--p, 0)))); }
.js .hero__glow { opacity: calc(var(--p, 0) * 0.92); }
.js .hero__cue { opacity: calc(1 - var(--p, 0) * 1.8); }

/* stack the hero split on narrow screens: headline, then subhead + CTAs */
@media (max-width: 860px) {
  .hero__content { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero__meta { flex: none; max-width: 46ch; padding-bottom: 0; }
  .hero__actions { margin-inline: 0; }
  .hero__cue { display: none; }
}

/* No scrub on reduced motion or when the scene can't be driven: show the lush frame */
@media (prefers-reduced-motion: reduce) {
  .hero { height: 100vh; height: 100svh; }
  .js .hero__layer--lush { opacity: 1 !important; transform: none !important; }
  .js .hero__layer--mid  { opacity: 1 !important; transform: none !important; }
  .js .hero__layer--dark { transform: none !important; }
  .js .hero__glow { opacity: 1 !important; }
  .js .hero__cue { opacity: 1 !important; }
}

/* ---------------------------- TICKER ------------------------------ */
.ticker-wrap { background: var(--bg-soft); border-block: 1px solid var(--hair); overflow: hidden; }
.ticker { display: flex; width: max-content; }
.ticker__track {
  display: flex; align-items: center; flex-shrink: 0;
  animation: marquee 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 14px; color: var(--gray-700);
  padding: 20px 34px; white-space: nowrap; position: relative;
}
.ticker__track li::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: var(--gray-300);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-500); display: inline-block; }
.dot--live { background: var(--blue); box-shadow: 0 0 0 0 rgba(0,153,255,0.5); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(0,153,255,0.45);} 70%{box-shadow:0 0 0 8px rgba(0,153,255,0);} 100%{box-shadow:0 0 0 0 rgba(0,153,255,0);} }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* --------------------------- SECTIONS ----------------------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(88px, 12vw, 150px) var(--pad); }
.section__head { max-width: 780px; margin-bottom: 56px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.045em; }
.section__lead { margin-top: 22px; max-width: 58ch; font-size: 18px; font-weight: 300; color: var(--gray-700); letter-spacing: -0.01em; }
.section__head--center .section__lead { margin-inline: auto; }
.eyebrow { font-size: 13px; color: var(--gray-600); margin-bottom: 20px; letter-spacing: 0.03em; }
.eyebrow--light { color: rgba(255,255,255,0.7); }

/* --------------------------- CASE CARDS --------------------------- */
.cases { max-width: var(--maxw); margin: 0 auto; padding: clamp(20px, 4vw, 48px) var(--pad) clamp(60px,8vw,90px); }
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 34px; color: #fff;
  transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card__scrim { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.62) 100%); }
.card__title { position: relative; z-index: 1; }
.card__tag { position: absolute; z-index: 2; top: 30px; left: 34px; font-size: 13px; color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.24);
  padding: 6px 12px; border-radius: 8px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card__arrow { position: absolute; z-index: 2; top: 30px; right: 30px; font-size: 24px; color: #fff; }
.card:hover .card__arrow { transform: translate(3px,-3px); }
.card__title { font-size: clamp(24px, 2.4vw, 31px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.08; }

/* dark data card */
.card--dark { background: #0e0f12; color: #fff; }
.card__grid-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(60% 55% at 78% 30%, rgba(0,153,255,0.22), transparent 70%);
  background-size: 34px 34px, 34px 34px, 100% 100%;
}
.card--dark .card__tag { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); }

/* ---------------------- SCROLL-HIGHLIGHT STATEMENT ---------------- */
.statement {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(90px, 16vw, 200px) var(--pad);
}
.statement__text {
  font-size: clamp(30px, 5.4vw, 68px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.14;
  color: var(--ink); /* readable by default (and when JS is absent) */
}
.statement__text b { font-weight: 500; color: inherit; }
/* dim only when JS can progressively re-light the words on scroll */
.js .statement__text .word { color: var(--gray-300); transition: color .3s var(--ease); }
.js .statement__text .word.on { color: var(--ink); }
/* bold words get near-black when lit */
.js .statement__text b .word.on { color: #000; }

/* --------------------------- PLATFORM ----------------------------- */
.platform {
  min-height: 92vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: clamp(90px, 12vw, 160px) var(--pad); color: #fff;
  /* greener, dawn-landscape placeholder mood */
  background-color: #1c2a14;
  background-image:
    radial-gradient(90% 80% at 50% 40%, rgba(150,210,120,0.35), rgba(60,90,40,0.15) 45%, rgba(6,10,4,0.92) 100%),
    var(--img, none);
}
.platform__scrim { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.55)); }
.platform__content { position: relative; z-index: 1; max-width: 820px; }
.platform__title { font-size: clamp(38px, 6vw, 76px); letter-spacing: -0.045em; font-weight: 300; }
.platform__sub { margin: 26px auto 36px; max-width: 46ch; font-size: clamp(16px,1.9vw,20px);
  font-weight: 300; color: rgba(255,255,255,0.88); letter-spacing: -0.01em; }

/* ---------------------------- PILLARS ----------------------------- */
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--hair); }
.pillar { padding: 44px 34px 12px; border-right: 1px solid var(--hair); }
.pillar:last-child { border-right: 0; }
.pillar__idx { font-size: 14px; color: var(--gray-500); }
.pillar__title { margin-top: 22px; font-size: 27px; font-weight: 400; letter-spacing: -0.03em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.pillar__sub-mono { font-size: 12px; color: var(--blue-deep); letter-spacing: 0.01em; }
.pillar__lead { margin-top: 12px; font-size: 16px; color: var(--gray-700); font-weight: 300; letter-spacing: -0.01em; }
.pillar__list { margin-top: 22px; }
.pillar__list li { padding: 14px 0; border-top: 1px solid var(--hair); font-size: 15px; color: var(--ink); letter-spacing: -0.01em; }

/* ---------------------------- CLARIO ------------------------------ */
.clario { border-top: 1px solid var(--hair); }
.clario__diagram { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 22px; align-items: stretch; }
.clario__node { border: 1px solid var(--hair); border-radius: var(--r-card); padding: 30px; background: var(--bg-soft); }
.clario__k { font-size: 13px; color: var(--blue-deep); display: block; margin-bottom: 14px; }
.clario__node p { font-size: 16px; color: var(--gray-700); font-weight: 300; letter-spacing: -0.01em; }
.clario__flow { align-self: center; font-size: 22px; color: var(--gray-500); }

/* --------------------------- INDUSTRIES --------------------------- */
.industries__tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  background: var(--bg-soft); border: 1px solid var(--hair); border-radius: var(--r-pill);
  padding: 6px; margin: 0 auto 40px; width: fit-content; max-width: 100%;
}
.itab {
  border: 0; background: transparent; cursor: pointer;
  font-size: 15px; color: var(--gray-600); letter-spacing: -0.01em;
  padding: 11px 20px; border-radius: var(--r-pill);
  transition: background-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
}
.itab:hover { color: var(--ink); }
.itab.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.industries__stage { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 560px; }
.ind-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 560px; /* active (relative) panel must fill the stage, not just its text */
  padding: 48px; color: #fff; opacity: 0; transition: opacity .5s var(--ease);
}
.ind-panel.is-active { opacity: 1; position: relative; }
.ind-panel[hidden] { display: none; }
.ind-panel__scrim { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.6)); }
.ind-panel > *:not(.ind-panel__scrim) { position: relative; z-index: 1; }
.ind-panel__outcome { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 14px; }
.ind-panel__name { font-size: clamp(44px, 8vw, 108px); font-weight: 300; letter-spacing: -0.05em; line-height: 0.95; }

/* ----------------------------- PROOF ------------------------------ */
.proof__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--hair); }
.stat { padding: 48px 34px; border-right: 1px solid var(--hair); }
.stat:last-child { border-right: 0; }
.stat__num { font-size: clamp(58px, 8vw, 96px); font-weight: 300; letter-spacing: -0.05em; line-height: 1; display: block; }
.stat__unit { font-size: 0.42em; color: var(--gray-500); letter-spacing: -0.02em; }
.stat__label { margin-top: 20px; font-size: 17px; color: var(--gray-700); font-weight: 300; max-width: 24ch; letter-spacing: -0.01em; }

/* ----------------------- CONTEXT IN ACTION ------------------------- */
/* Dossier card: each context line carries a mono source chip showing which
   system it came from - the multi-source synthesis IS the visual. */
.ctx { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.ctx__dossier {
  background: var(--ink-2); color: #fff; border-radius: var(--r-card);
  padding: 30px 34px 34px;
}
.ctx__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: rgba(255,255,255,0.75); padding-bottom: 18px;
  border-bottom: 1px solid var(--hair-light);
}
.ctx__head span { color: #8FC9FF; font-size: 12px; }
.ctx__lines li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--hair-light);
  font-size: 15px; line-height: 1.45; letter-spacing: -0.01em;
}
.ctx__lines li:last-child { border-bottom: 0; padding-bottom: 0; }
.ctx__src {
  flex: 0 0 86px; font-size: 11px; color: #8FC9FF;
  border: 1px solid rgba(143,201,255,0.35); border-radius: 8px;
  padding: 3px 8px; text-align: center; white-space: nowrap;
}
.ctx__move { max-width: 46ch; }
.ctx__k { font-size: 12px; color: var(--blue-deep); margin-bottom: 16px; }
/* E: the contrast - a generic bot bubble (dim) vs the agent's message */
.ctx__vs-label { font-size: 11px; color: var(--gray-500); margin-bottom: 6px; }
.ctx__vs-label--agent { margin-top: 18px; color: var(--blue-deep); }
.ctx__bubble--bot {
  background: transparent; color: var(--gray-500);
  border-style: dashed; border-bottom-left-radius: 18px; border-bottom-right-radius: 6px;
  font-size: 15px; padding: 12px 16px;
}
/* the actual WhatsApp message Ahmad receives - one concrete artifact */
.ctx__bubble {
  background: var(--bg-soft); border: 1px solid var(--hair);
  border-radius: 18px; border-bottom-left-radius: 6px; /* rtl: tail on the reading side */
  padding: 16px 20px; max-width: 34ch;
  font-size: clamp(17px, 1.8vw, 21px); line-height: 1.5; color: var(--ink);
}
.ctx__bubble-cap { margin: 10px 0 22px; font-size: 12px; color: var(--gray-600); }
.ctx__text { font-size: clamp(20px, 2.2vw, 26px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.25; }
.ctx__note { margin-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--gray-600); }

/* two mini context cards */
.ctx__more { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ctx-mini { background: var(--bg-soft); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 26px 28px; }
.ctx-mini__tag { font-size: 12px; color: var(--gray-600); margin-bottom: 6px; }
.ctx__lines--mini li { border-bottom-color: var(--hair); font-size: 14px; color: var(--ink); padding: 12px 0; }
.ctx__lines--mini .ctx__src { color: var(--blue-deep); border-color: rgba(50,134,245,0.3); }
.ctx-mini__move { margin-top: 14px; font-size: 14px; color: var(--gray-700); line-height: 1.5; }
.ctx-mini__move b { font-weight: 500; color: var(--ink); }
@media (max-width: 900px) {
  .ctx { grid-template-columns: 1fr; gap: 32px; }
  .ctx__more { grid-template-columns: 1fr; }
}
/* D: the dossier resolves line by line when the card enters (the agent "thinking").
   animation-fill-mode: backwards, so if it never fires the lines stay visible. */
@media (prefers-reduced-motion: no-preference) {
  .ctx.is-in .ctx__dossier .ctx__lines li { animation: ctxLine .5s var(--ease) backwards; }
  .ctx.is-in .ctx__dossier .ctx__lines li:nth-child(1) { animation-delay: .15s; }
  .ctx.is-in .ctx__dossier .ctx__lines li:nth-child(2) { animation-delay: .40s; }
  .ctx.is-in .ctx__dossier .ctx__lines li:nth-child(3) { animation-delay: .65s; }
  .ctx.is-in .ctx__dossier .ctx__lines li:nth-child(4) { animation-delay: .90s; }
  .ctx.is-in .ctx__move .ctx__bubble { animation: ctxLine .5s var(--ease) backwards; animation-delay: 1.2s; }
}
@keyframes ctxLine { from { opacity: 0; transform: translateY(6px); } }

/* ---------------------- WHO IT'S FOR (middle) ---------------------- */
.middle__grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 20px; align-items: stretch; }
.middle__col { border-radius: var(--r-card); padding: 30px 28px; font-size: 15px; line-height: 1.55; letter-spacing: -0.01em; }
/* headcount ladder - the size reads before the words do */
.middle__size {
  display: block; margin-bottom: 22px;
  font-size: clamp(34px, 4vw, 54px); font-weight: 300; letter-spacing: -0.04em; line-height: 1;
}
.middle__size small { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 0.04em; color: var(--gray-500); }
.middle__col--hot .middle__size small { color: rgba(255,255,255,0.55); }
.middle__k { font-size: 12px; margin-bottom: 14px; }
.middle__col--dim { border: 1px solid var(--hair); color: var(--gray-600); }
.middle__col--dim .middle__k { color: var(--gray-500); }
.middle__col--hot { background: var(--ink-2); color: rgba(255,255,255,0.85); }
.middle__col--hot .middle__k { color: #8FC9FF; }
.middle__col--hot b { color: #fff; font-weight: 500; }
@media (max-width: 860px) {
  .middle__grid { grid-template-columns: 1fr; }
  .middle__col--hot { order: -1; }
}

/* A: symptoms row - recognition before definition */
.symptoms { margin-top: 40px; text-align: center; }
.symptoms__k { font-size: 12px; color: var(--gray-500); margin-bottom: 18px; }
.symptoms__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.symptoms__list li {
  font-size: 13px; color: var(--gray-700);
  background: var(--bg-soft); border: 1px solid var(--hair); border-radius: var(--r-pill);
  padding: 9px 16px;
}

/* B: scattered systems -> one context layer */
/* dark "console": tech grid, glowing source nodes, data streaming into the hub */
.connect {
  margin: 72px auto 0; max-width: 720px; text-align: center; position: relative;
  overflow: hidden; isolation: isolate;
  background: #0c0e12; border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-lg);
  padding: 44px 40px 46px;
}
.connect::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.7;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    radial-gradient(70% 60% at 50% 108%, rgba(0,153,255,0.22), transparent 68%);
  background-size: 30px 30px, 30px 30px, 100% 100%;
}
.connect__k { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 24px; }
.connect__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.connect__chips .ctx__src {
  flex: 0 0 auto; color: #cfe4ff; background: rgba(120,180,255,0.06);
  border-color: rgba(120,180,255,0.4);
  box-shadow: 0 0 18px rgba(0,140,255,0.12), inset 0 0 0 1px rgba(0,153,255,0.05);
}
.connect__lines { display: block; width: 100%; height: 70px; margin: 0; }
.connect__lines path {
  fill: none; stroke: rgba(120,180,255,0.45); stroke-width: 1.2;
  stroke-dasharray: 3 7; animation: dataflow 1.1s linear infinite;
}
.connect__lines path:nth-child(2) { animation-duration: 1.4s; }
.connect__lines path:nth-child(3) { animation-duration: 0.9s; }
.connect__lines path:nth-child(4) { animation-duration: 1.3s; }
.connect__lines path:nth-child(5) { animation-duration: 1.0s; }
.connect__lines path:nth-child(6) { animation-duration: 1.5s; }
@keyframes dataflow { to { stroke-dashoffset: -20; } }
.connect__bar {
  display: inline-block; background: #fff; color: var(--ink);
  font-size: 13px; letter-spacing: 0.02em; padding: 13px 26px; border-radius: var(--r-pill);
  box-shadow: 0 0 0 1px rgba(0,153,255,0.5), 0 0 34px rgba(0,153,255,0.45);
  animation: hubpulse 3s var(--ease) infinite;
}
@keyframes hubpulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(0,153,255,0.45), 0 0 26px rgba(0,153,255,0.35); }
  50%     { box-shadow: 0 0 0 1px rgba(0,153,255,0.7),  0 0 44px rgba(0,153,255,0.6); }
}
.connect__cap { margin-top: 20px; font-size: 15px; color: rgba(255,255,255,0.72); letter-spacing: -0.01em; }

/* --------------------------- THE MODEL ----------------------------- */
/* Layer stack: outcomes (narrow, dark) on top of agents on top of the
   infrastructure (widest) - foundation reads at the bottom. */
.model__stack { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.model__layer {
  width: 78%; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-card);
  padding: 26px 30px; margin-top: 14px;
}
.model__layer--top { width: 58%; margin-top: 0; background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.model__layer--base { width: 100%; background: var(--bg-soft); }
.model__n { font-size: 12px; color: var(--blue-deep); letter-spacing: 0.02em; }
.model__layer--top .model__n { color: #8FC9FF; }
.model__t { margin-top: 10px; font-size: clamp(19px, 2vw, 24px); font-weight: 400; letter-spacing: -0.02em; }
.model__d { margin-top: 8px; font-size: 15px; color: var(--gray-700); line-height: 1.5; letter-spacing: -0.01em; max-width: 52ch; }
.model__layer--top .model__d { color: var(--on-dark-soft); }
.model__line {
  margin: 72px auto 0; text-align: center; max-width: 900px;
  font-size: clamp(28px, 4vw, 48px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.12;
}
.model__line b { font-weight: 500; }
@media (max-width: 720px) {
  .model__layer, .model__layer--top, .model__layer--base { width: 100%; }
}

/* ------------------------- OFFER (DARK) --------------------------- */
.offer { background: var(--ink-2); color: #fff; }
.offer__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(88px, 12vw, 150px) var(--pad); }
.offer__head { max-width: 720px; }
.offer__title { font-size: clamp(34px, 5vw, 62px); letter-spacing: -0.045em; color: #fff; }
.offer__sub { margin-top: 24px; max-width: 56ch; font-size: 18px; font-weight: 300; color: var(--on-dark-soft); letter-spacing: -0.01em; }
.offer__body { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.offer__list { border-top: 1px solid var(--hair-light); }
.offer__list li {
  display: flex; align-items: baseline; gap: 18px;
  padding: 22px 4px; border-bottom: 1px solid var(--hair-light);
  font-size: clamp(19px, 2.4vw, 26px); font-weight: 300; letter-spacing: -0.02em;
}
.offer__list li .mono { font-size: 13px; color: var(--gray-500); }
.offer__cta {
  background: #fff; color: var(--ink); border-radius: var(--r-card); padding: 40px;
}
.offer__cta-kicker { font-size: 12px; color: var(--blue-deep); margin-bottom: 16px; }
.offer__cta-title { font-size: clamp(26px, 3vw, 34px); font-weight: 400; letter-spacing: -0.03em; }
.offer__cta-text { margin: 16px 0 30px; font-size: 16px; color: var(--gray-700); font-weight: 300; letter-spacing: -0.01em; }
.offer__cta .btn--solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.offer__cta .btn--solid:hover { background: var(--blue); border-color: var(--blue); }

/* ----------------------------- FINALE ----------------------------- */
.finale { text-align: center; }
.finale__inner { max-width: 900px; margin: 0 auto; }
.finale .eyebrow { text-align: center; }
.finale__title { font-size: clamp(32px, 5vw, 62px); letter-spacing: -0.045em; margin-bottom: 40px; }

/* ----------------------------- FOOTER ----------------------------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--hair); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 72px var(--pad) 40px;
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px;
}
.footer__logo { color: var(--ink); font-size: 30px; }
.footer__tagline { margin-top: 18px; max-width: 34ch; color: var(--gray-700); font-weight: 300; font-size: 16px; letter-spacing: -0.01em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__k { font-size: 12px; color: var(--gray-500); margin-bottom: 18px; }
.footer__col a { display: block; padding: 8px 0; font-size: 15px; color: var(--gray-700); letter-spacing: -0.01em; transition: color .18s var(--ease); }
.footer__col a:hover { color: var(--ink); }
.footer__trust {
  max-width: var(--maxw); margin: 0 auto; padding: 26px var(--pad);
  border-top: 1px solid var(--hair); display: flex; gap: 16px; align-items: center;
  font-size: 13px; color: var(--gray-600);
}
.footer__sep { color: var(--gray-300); }
.footer__base {
  max-width: var(--maxw); margin: 0 auto; padding: 20px var(--pad) 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--gray-500); border-top: 1px solid var(--hair);
}

/* --------------------------- REVEALS ------------------------------ */
/* Only hide content when JS is present to reveal it (no-JS = fully visible). */
.js .reveal { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 1000px) {
  :root { --pad: 28px; }
  .cases__grid { grid-template-columns: 1fr; }
  .card { min-height: 380px; }
  .clario__diagram { grid-template-columns: 1fr; }
  .clario__flow { transform: rotate(90deg); justify-self: center; }
  .offer__body { grid-template-columns: 1fr; }
  .pillars__grid { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--hair); }
  .proof__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--hair); }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero__actions { flex-direction: column; width: 100%; max-width: 340px; margin-inline: auto; }
  .hero__actions .btn { width: 100%; }
  .industries__tabs { border-radius: var(--r-card); }
  .proof__grid, .footer__cols { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .industries__stage { min-height: 440px; }
  .ind-panel { padding: 30px; min-height: 440px; }
}

@media (max-width: 420px) {
  .footer__cols { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; gap: 6px; }
}

/* ---------------------- MOTION / A11Y FALLBACKS ------------------- */
@media (hover: none) {
  .reveal { filter: none; } /* lighter blur on touch/low-power */
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; filter: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .statement__text .word { color: var(--ink) !important; }
  .js .statement__text b .word { color: #000 !important; }
}

/* ============================ WORKSHOPS PAGE ====================== */
/* Workshops hero: single photo (no bloom), bottom split like the home hero */
.whero {
  position: relative; min-height: 84vh; min-height: 84svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 40px) var(--pad) 56px; color: #fff;
}
.whero__scrim { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.44) 0%, rgba(0,0,0,0.12) 42%, rgba(0,0,0,0.56) 100%); }
.whero__content { position: relative; z-index: 2; width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 56px; }
.whero__title { flex: 1 1 auto; min-width: 0;
  font-size: clamp(36px, 5vw, 74px); letter-spacing: -0.05em; line-height: 0.98; font-weight: 300;
  text-shadow: 0 2px 44px rgba(0,0,0,0.4); }
.whero__meta { flex: 0 0 auto; }
.whero__sub { max-width: 42ch; font-size: clamp(15px, 1.25vw, 18px); font-weight: 300; line-height: 1.5;
  color: rgba(255,255,255,0.92); letter-spacing: -0.01em; }
.whero__actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: nowrap; }
@media (max-width: 860px) {
  .whero__content { flex-direction: column; align-items: flex-start; gap: 22px; }
  .whero__meta { flex: none; max-width: 46ch; }
  .whero__actions { flex-wrap: wrap; }
}

/* format-facts row */
.facts { display: flex; flex-wrap: wrap; border-top: 1px solid var(--hair); }
.fact { flex: 1 1 150px; padding: 26px 22px; border-right: 1px solid var(--hair); }
.fact:last-child { border-right: 0; }
.fact__v { display: block; font-size: clamp(24px, 2.8vw, 36px); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.fact__k { display: block; margin-top: 10px; font-size: 12px; color: var(--gray-500); }
@media (max-width: 720px) { .fact { flex-basis: 45%; } }

/* sessions accordion (native <details>) */
.sessions { border-top: 1px solid var(--hair); }
.session { border-bottom: 1px solid var(--hair); }
.session__head {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 20px; padding: 24px 4px;
}
.session__head::-webkit-details-marker { display: none; }
.session__n { font-family: var(--mono); font-size: 13px; color: var(--gray-500); flex: 0 0 auto; }
/* circular "session lens" thumb - one sharp object, streaked background (site motion signature).
   Gradient placeholder shows until the real image lands in assets/ (same trick as .media-dark). */
.session__thumb {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
  background-color: #17120c;
  background-image:
    radial-gradient(closest-side, rgba(255,196,120,0.16), rgba(6,5,4,0.5) 100%),
    var(--img, none);
  background-size: cover; background-position: center;
  border: 1px solid var(--hair);
  transition: transform .3s var(--ease);
}
.session[open] .session__thumb { transform: scale(1.07); }
@media (max-width: 720px) { .session__thumb { width: 46px; height: 46px; } }
.session__t { flex: 1 1 auto; font-size: clamp(19px, 2.1vw, 25px); font-weight: 400; letter-spacing: -0.025em; }
.session__t small { display: block; margin-top: 6px; font-size: 15px; font-weight: 300; color: var(--gray-700); letter-spacing: -0.01em; }
.session__plus { flex: 0 0 auto; font-size: 24px; color: var(--gray-500); line-height: 1; transition: transform .25s var(--ease), color .2s; }
.session[open] .session__plus { transform: rotate(45deg); color: var(--ink); }
.session__body { padding: 0 4px 30px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.session__col-k { font-family: var(--mono); font-size: 12px; color: var(--blue-deep); margin-bottom: 14px; }
.session__list li { padding: 9px 0; font-size: 15px; color: var(--ink); border-top: 1px solid var(--hair); letter-spacing: -0.01em; }
.session__list li:first-child { border-top: 0; }
@media (max-width: 720px) { .session__body { grid-template-columns: 1fr; gap: 22px; padding-left: 4px; } }

/* how-we-teach principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.principle { padding: 30px 24px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.principle__k { font-family: var(--mono); font-size: 12px; color: var(--gray-500); }
.principle__t { margin-top: 12px; font-size: 19px; font-weight: 400; letter-spacing: -0.02em; }
.principle p { margin-top: 10px; font-size: 14px; color: var(--gray-700); line-height: 1.5; }

/* chapter divider - full-bleed photo band that opens each program */
.chapter {
  position: relative; min-height: 56vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 64px var(--pad) 48px; color: #fff;
  scroll-margin-top: var(--nav-h);
}
.chapter__scrim { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.62)); }
.chapter__kicker { position: relative; z-index: 1; font-size: 13px; color: rgba(255,255,255,0.85); margin-bottom: 14px; }
.chapter__title { position: relative; z-index: 1;
  font-size: clamp(44px, 7.4vw, 100px); font-weight: 300; letter-spacing: -0.05em; line-height: 0.95; }
@media (max-width: 720px) { .chapter { min-height: 42vh; padding: 40px var(--pad) 30px; } }

/* per-program CTA row - closes each program with a specific ask */
.program-cta {
  margin-top: 56px; padding: 34px 38px;
  background: var(--bg-soft); border: 1px solid var(--hair); border-radius: var(--r-card);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.program-cta__k { font-family: var(--mono); font-size: 12px; color: var(--blue-deep); letter-spacing: 0.02em; margin-bottom: 10px; }
.program-cta__t { font-size: clamp(20px, 2.4vw, 27px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.15; }
.program-cta .btn--solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.program-cta .btn--solid:hover { background: var(--blue); border-color: var(--blue); }
@media (max-width: 720px) { .program-cta { padding: 26px 24px; } .program-cta .btn { width: 100%; } }

/* custom process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair); }
.step { padding: 32px 22px; border-right: 1px solid var(--hair); }
.step:last-child { border-right: 0; }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--blue-deep); }
.step__t { margin-top: 14px; font-size: 20px; font-weight: 400; letter-spacing: -0.02em; }
.step p { margin-top: 10px; font-size: 14px; color: var(--gray-700); line-height: 1.5; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(2) { border-right: 0; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step { border-right: 0; border-bottom: 1px solid var(--hair); } }

/* ============================ RTL (HEBREW) ========================= */
/* Applied when i18n.js sets <html dir="rtl">. Flex/grid flip on their
   own; these rules fix physical (left/right) properties and Hebrew
   typography (negative tracking mangles Hebrew letterforms). */

/* Hebrew type: kill the negative tracking site-wide, keep the Latin logo's */
[dir="rtl"] * { letter-spacing: 0; }
[dir="rtl"] .nav__logo, [dir="rtl"] .footer__logo { letter-spacing: -0.04em; }

/* hero: bottom split text-aligns to the right */
[dir="rtl"] .hero__sticky { text-align: right; }

/* nav underline grows from the right */
[dir="rtl"] .nav__links a::after { left: 100%; right: 0; transition: left .25s var(--ease); }
[dir="rtl"] .nav__links a:hover::after { left: 0; }

/* burger hugs the far (left) edge */
[dir="rtl"] .nav__burger { margin-left: 0; margin-right: auto; }

/* photo cards: tag and arrow swap corners; hover arrow moves out-left */
[dir="rtl"] .card__tag { left: auto; right: 34px; }
[dir="rtl"] .card__arrow { right: auto; left: 30px; }
[dir="rtl"] .card:hover .card__arrow { transform: translate(-3px,-3px); }
[dir="rtl"] .btn--solid:hover .arr,
[dir="rtl"] .btn--ghost-light:hover .arr { transform: translate(-2px,-2px); }

/* ticker separator dot flips sides */
[dir="rtl"] .ticker__track li::after { right: auto; left: 0; }

/* clario flow arrows point with the reading direction */
[dir="rtl"] .clario__flow { transform: scaleX(-1); }

/* sessions accordion: the body indent follows the number column */
[dir="rtl"] .session__body { padding: 0 40px 30px 4px; }
@media (max-width: 720px) { [dir="rtl"] .session__body { padding-right: 4px; } }

/* hairline separators that were built left-to-right */
[dir="rtl"] .pillar, [dir="rtl"] .stat, [dir="rtl"] .fact, [dir="rtl"] .step {
  border-right: 0; border-left: 1px solid var(--hair);
}
[dir="rtl"] .pillar:last-child, [dir="rtl"] .stat:last-child,
[dir="rtl"] .fact:last-child, [dir="rtl"] .step:last-child { border-left: 0; }
[dir="rtl"] .principles { border-left: 0; border-right: 1px solid var(--hair); }
[dir="rtl"] .principle { border-right: 0; border-left: 1px solid var(--hair); }
@media (max-width: 1000px) {
  [dir="rtl"] .pillar, [dir="rtl"] .stat { border-left: 0; }
}
@media (max-width: 860px) {
  [dir="rtl"] .step:nth-child(2) { border-left: 0; }
}
@media (max-width: 520px) {
  [dir="rtl"] .step { border-left: 0; }
}

/* Hebrew display type - "Recipe A": Noto Sans Hebrew (variable) cut narrow
   and tracked tight so the Hebrew headlines carry the same dense, technical
   rhythm as the Inter headlines in English.
   - body copy: slightly condensed (92%)
   - display type: condensed 88% + negative tracking (Hebrew-safe amount)
   - line-heights opened just enough for lamed/qof (Latin's 0.95 clips them) */
[dir="rtl"] body { font-stretch: 92%; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] .hero__title, [dir="rtl"] .whero__title,
[dir="rtl"] .statement__text, [dir="rtl"] .card__title,
[dir="rtl"] .ind-panel__name, [dir="rtl"] .chapter__title,
[dir="rtl"] .model__line, [dir="rtl"] .ctx__text {
  font-stretch: 88%; letter-spacing: -0.022em;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.12; }
[dir="rtl"] .hero__title, [dir="rtl"] .whero__title { line-height: 1.06; }
[dir="rtl"] .ind-panel__name, [dir="rtl"] .chapter__title { line-height: 1.06; }
[dir="rtl"] .statement__text { line-height: 1.26; }
[dir="rtl"] .card__title { line-height: 1.16; }
[dir="rtl"] .model__line { line-height: 1.2; }
/* children of display elements (bold words, .word spans from the statement
   highlighter) must inherit the display tracking, not the blanket 0 */
[dir="rtl"] :is(h1, h2, h3, .hero__title, .whero__title, .statement__text,
  .card__title, .ind-panel__name, .chapter__title, .model__line, .ctx__text) * {
  letter-spacing: inherit;
}
