/* ==========================================================================
   Busoft — components
   BEM-ish, kebab-case. Logical properties only. Theme-aware via --accent*.
   ==========================================================================
   INDEX
   01 Header / nav / drawer / language switcher
   02 Buttons + badges + chips
   03 Hero (dark) + gradient visual
   04 Trust strip / stats / domains
   05 Cards (generic, pillar, service, post, profile, startup)
   06 Diagrams (agentic flow, pipeline, learning path, journey)
   07 Testimonials
   08 Article / rich text / code
   09 Share bar
   10 Forms + contact cards
   11 CTA band
   12 Pagination + breadcrumbs
   13 Footer
   14 Media fallbacks + swatch/spec helpers (components.html)
   ========================================================================== */

/* == 01 Header ============================================================ */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-block-end: 1px solid transparent;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}
.site-header__inner {
  min-block-size: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  transition: min-block-size var(--dur-2) var(--ease);
}
.site-header.is-condensed {
  background: rgba(255, 255, 255, .94);
  border-block-end-color: var(--border);
  box-shadow: var(--sh-sm);
}
.site-header.is-condensed .site-header__inner { min-block-size: var(--header-h-condensed); }
.site-header.is-condensed .brand__word { font-size: var(--fs-sm); }

/* Header over a dark hero */
.site-header--on-dark {
  background: transparent;
  color: var(--text-on-dark);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header--on-dark .nav__link { color: rgba(255, 255, 255, .78); }
.site-header--on-dark .nav__link:hover,
.site-header--on-dark .nav__link[aria-current="page"] { color: #fff; }
.site-header--on-dark .brand__word { color: #fff; }
.site-header--on-dark .lang-switch { border-color: rgba(255, 255, 255, .2); }
.site-header--on-dark .lang-switch__btn { color: rgba(255, 255, 255, .7); }
.site-header--on-dark .lang-switch__btn[aria-current="true"] { background: rgba(255, 255, 255, .14); color: #fff; }
.site-header--on-dark .burger__bar { background: #fff; }
.site-header--on-dark.is-condensed {
  background: rgba(25, 33, 43, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-block-end-color: rgba(255, 255, 255, .1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex: none;
  color: inherit;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }
/* Logo mark: teal disc + dark [;} glyph, straight from the Busoft logo */
.brand__mark {
  inline-size: 38px;
  block-size: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal-500);
  color: var(--logo-glyph);
  box-shadow: 0 6px 18px -8px var(--accent-glow);
  transition: transform var(--dur-2) var(--ease-out);
  flex: none;
}
.brand__mark svg { inline-size: 66%; block-size: auto; }
.brand__mark--lg { inline-size: 76px; block-size: 76px; }
.brand--stacked { flex-direction: column; gap: var(--space-3); text-align: center; }
.brand--stacked .brand__word { letter-spacing: .22em; }
.brand__word {
  font-size: var(--fs-base);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: none;
  color: var(--ink-800); /* fallback when background-clip:text is unsupported */
  background: linear-gradient(90deg, var(--ink-800) 0%, var(--ink-800) 34%, var(--teal-600) 72%, var(--teal-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: font-size var(--dur-2) var(--ease);
}
/* On dark surfaces the wordmark starts white and turns the logo's light green */
.is-dark .brand__word,
.site-header--on-dark .brand__word,
.site-footer .brand__word {
  color: #fff;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 34%, var(--teal-300) 72%, var(--teal-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[dir="rtl"] .brand__word { letter-spacing: .08em; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.35rem, 1.2vw, 1rem);
  margin-inline-start: auto;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-500);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  inset-block-end: 2px;
  inset-inline-start: var(--space-3);
  inline-size: calc(100% - var(--space-3) * 2);
  block-size: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav__link:hover { color: var(--ink-900); text-decoration: none; }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink-900); }
.nav__link:active { transform: translateY(1px); }

.header__actions { display: flex; align-items: center; gap: var(--space-3); flex: none; }

.lang-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .5);
}
.lang-switch__btn {
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-400);
  text-decoration: none;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.lang-switch__btn:hover { color: var(--ink-900); text-decoration: none; }
.lang-switch__btn[aria-current="true"] { background: var(--ink-900); color: #fff; }

.burger {
  display: none;
  inline-size: 44px;
  block-size: 44px;
  border-radius: var(--r-sm);
  place-items: center;
  gap: 5px;
  flex-direction: column;
  border: 1px solid var(--border-strong);
}
.burger__bar {
  inline-size: 18px;
  block-size: 2px;
  border-radius: 2px;
  background: var(--ink-800);
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1) var(--ease);
}
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: grid;
  grid-template-rows: 1fr;
  background: rgba(25, 33, 43, .5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-2) var(--ease), visibility var(--dur-2) var(--ease);
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; }
.drawer__panel {
  background: var(--surface);
  padding: var(--space-6) var(--gutter) var(--space-8);
  padding-block-start: calc(var(--space-5) + env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-block-size: 100%;
  overflow-y: auto;
  transform: translate3d(0, -14px, 0);
  transition: transform var(--dur-3) var(--ease-out);
  align-self: start;
  border-end-start-radius: var(--r-xl);
  border-end-end-radius: var(--r-xl);
}
.drawer[data-open="true"] .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-block-end: var(--space-4); }
.drawer__link {
  padding: var(--space-4) var(--space-2);
  border-block-end: 1px solid var(--border);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink-800);
  text-decoration: none;
}
.drawer__link:hover { color: var(--accent-ink); text-decoration: none; }
.drawer__foot { display: flex; align-items: center; gap: var(--space-3); margin-block-start: var(--space-5); flex-wrap: wrap; }
.drawer__close {
  inline-size: 44px; block-size: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  font-size: 20px; line-height: 1; color: var(--ink-700);
}

@media (max-width: 960px) {
  .nav--desktop { display: none; }
  .lang-switch--desktop { display: none; }
  .burger { display: grid; }
  .header__actions { margin-inline-start: auto; }
  .btn--header { display: none; }
}

/* == 02 Buttons, badges, chips ============================================ */

.btn {
  --btn-bg: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-block-size: 46px;
  padding: var(--space-3) var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease),
              background-position var(--dur-3) var(--ease), background-color var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.995); }

.btn--primary {
  background-image: var(--gradient-cta);
  background-size: 190% 100%;
  background-position: 0% 50%;
  color: var(--accent-on);
  box-shadow: var(--sh-glow);
}
.btn--primary:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 22px 44px -20px var(--accent-glow); color: var(--accent-on); }

.btn--solid { background: var(--accent); color: var(--accent-on); }
.btn--solid:hover { background: var(--accent-strong); color: #fff; transform: translateY(-2px); }

.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: var(--ink-800); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink-800);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-tint); }

.btn--ghost { background: transparent; color: var(--accent-ink); padding-inline: var(--space-3); }
.btn--ghost:hover { background: var(--accent-tint); color: var(--accent-strong); }

.btn--spark { background: var(--spark); color: var(--spark-ink); }
.btn--spark:hover { background: #ffd982; color: var(--spark-ink); transform: translateY(-2px); box-shadow: 0 18px 34px -20px rgba(255, 207, 107, .8); }

.is-dark .btn--outline { border-color: rgba(255, 255, 255, .28); color: #fff; }
.is-dark .btn--outline:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); color: #fff; }
.is-dark .btn--ghost { color: var(--accent-soft); }
.is-dark .btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.btn--sm { min-block-size: 38px; padding: var(--space-2) var(--space-4); font-size: var(--fs-xs); }
.btn--lg { min-block-size: 54px; padding: var(--space-4) var(--space-7); font-size: var(--fs-base); }
.btn--block { inline-size: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }
.btn__icon { flex: none; inline-size: 1.05em; block-size: 1.05em; }
.btn__arrow { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }
[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .btn__arrow { transform: scaleX(-1) translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent-ink);
  text-decoration: none;
}
.link-arrow:hover { text-decoration: none; color: var(--accent-strong); }
.link-arrow > svg { transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover > svg { transform: translateX(4px); }
[dir="rtl"] .link-arrow > svg { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover > svg { transform: scaleX(-1) translateX(4px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: .28rem .7rem;
  border-radius: var(--r-pill);
  background: var(--accent-tint-2);
  color: var(--accent-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .02em;
}
.badge--dark { background: rgba(255, 255, 255, .1); color: #fff; }
.badge--spark { background: rgba(255, 207, 107, .3); color: #6b5316; }
.badge--outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-soft); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: .42rem .85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  transition: border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
a.chip:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-tint); text-decoration: none; }
.chip--accent { background: var(--accent-tint); border-color: var(--accent-tint-2); color: var(--accent-ink); }
.chip--dark { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .82); }
.chip__dot { inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* == 03 Hero ============================================================== */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6.5rem);
}
.hero--dark {
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(41, 184, 200, .30), transparent 60%),
    radial-gradient(90% 70% at 0% 110%, rgba(28, 107, 114, .38), transparent 62%),
    var(--surface-dark);
  color: var(--text-on-dark);
  margin-block-start: calc(var(--header-h) * -1);
  padding-block-start: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem));
}
.hero--dark .hero__title { color: #fff; }
.hero--dark .hero__text { color: var(--text-on-dark-soft); }
.hero--dark .eyebrow { color: var(--accent-soft); }

/* Optional full-bleed background video (CMS field). Scrim keeps every hero
   text token AA-readable; .is-empty falls back to a cinematic gradient
   tunnel — same mood, no binary dependency, no motion when unwanted. */
.hero--video { background: var(--surface-dark); }
.hero--video .hero__grid,
.hero--video .container { position: relative; z-index: 2; }
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--surface-dark);
}
.hero__media video {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  filter: saturate(108%) contrast(104%);
}
.hero__media.is-empty video { display: none; }
.hero__fallback {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-4) var(--ease);
  background:
    radial-gradient(58% 70% at 50% 56%, rgba(41, 184, 200, .40), transparent 64%),
    conic-gradient(from 200deg at 50% 56%, rgba(41, 184, 200, .18), transparent 26%, rgba(28, 107, 114, .30) 58%, transparent 82%),
    var(--surface-dark);
}
.hero__media.is-empty .hero__fallback { opacity: 1; }
.hero__fallback::before,
.hero__fallback::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .10) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(46% 52% at 50% 56%, #000, transparent 76%);
  mask-image: radial-gradient(46% 52% at 50% 56%, #000, transparent 76%);
  animation: tunnel-in 14s linear infinite;
  will-change: transform, opacity;
}
.hero__fallback::after { animation-delay: -7s; }
@keyframes tunnel-in {
  from { transform: scale(.72); opacity: 0; }
  22%  { opacity: .85; }
  to   { transform: scale(2.1); opacity: 0; }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(13, 22, 28, .93) 0%, rgba(13, 22, 28, .76) 40%, rgba(13, 22, 28, .34) 74%, rgba(13, 22, 28, .46) 100%),
    linear-gradient(rgba(25, 33, 43, .22), rgba(25, 33, 43, .72));
}
[dir="rtl"] .hero__scrim {
  background:
    linear-gradient(270deg, rgba(13, 22, 28, .93) 0%, rgba(13, 22, 28, .76) 40%, rgba(13, 22, 28, .34) 74%, rgba(13, 22, 28, .46) 100%),
    linear-gradient(rgba(25, 33, 43, .22), rgba(25, 33, 43, .72));
}
.hero__media-note {
  position: absolute;
  z-index: 2;
  inset-block-end: 12px;
  inset-inline-end: 16px;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .42);
  font-family: var(--font-mono);
}
@media (prefers-reduced-motion: reduce) {
  .hero__fallback::before, .hero__fallback::after { animation: none; opacity: .5; transform: scale(1.1); }
}

/* Project / case-study card: domain chip + title + summary */
.card--project { padding-block-start: clamp(1.1rem, 1.8vw, 1.4rem); }
.card__domain {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  align-self: flex-start;
  padding: .26rem .68rem;
  border-radius: var(--r-pill);
  background: var(--accent-tint-2);
  color: var(--accent-ink);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
[dir="rtl"] .card__domain { letter-spacing: 0; }
.card--project .card__title { font-size: var(--fs-lg); }
.card--project .card__client { font-size: var(--fs-xs); color: var(--text-faint); font-weight: 600; }

.hero--themed {
  background: var(--gradient-soft), var(--surface);
  border-block-end: 1px solid var(--border);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); }
.hero__title { font-size: var(--fs-5xl); font-weight: 900; line-height: var(--lh-tight); letter-spacing: var(--tr-tight); }
[dir="rtl"] .hero__title { letter-spacing: 0; line-height: 1.12; }
.hero__text { font-size: var(--fs-lg); color: var(--text-soft); max-inline-size: 56ch; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-block-start: var(--space-2); }
.hero__aside { position: relative; }

.hero__mark {
  inline-size: 68px;
  block-size: 68px;
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  font-size: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
}

/* == 04 Trust strip / stats / domains ==================================== */

.trust {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.trust__inner {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 900px) { .trust__inner { grid-template-columns: 1fr; } }

.stat-row {
  display: grid;
  gap: var(--space-5) clamp(1rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
}
.stat { display: flex; flex-direction: column; gap: var(--space-1); }
.stat__num {
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: var(--tr-tight);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.stat__note { font-size: var(--fs-xs); color: var(--text-faint); }
.stat--on-dark .stat__num { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; }

.domains { display: flex; flex-direction: column; gap: var(--space-3); }
.domains__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--text-faint);
}
[dir="rtl"] .domains__label { letter-spacing: .06em; }

/* == 05 Cards ============================================================= */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(var(--accent-tint), var(--accent-tint)),
    var(--surface-glass);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease),
              border-color var(--dur-3) var(--ease);
  overflow: hidden;
  isolation: isolate;
  block-size: 100%;
}
.card__icon {
  inline-size: 46px;
  block-size: 46px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-xs);
  flex: none;
  transition: transform var(--dur-3) var(--ease-out);
}
.card__title { font-size: var(--fs-lg); font-weight: 800; letter-spacing: var(--tr-head); color: var(--ink-900); text-wrap: pretty; }
[dir="rtl"] .card__title { letter-spacing: 0; }
.card__text { font-size: var(--fs-sm); color: var(--text-soft); text-wrap: pretty; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); color: var(--text-faint); }
.card__foot { margin-block-start: auto; padding-block-start: var(--space-3); }
.card__tagline { font-size: var(--fs-sm); font-weight: 600; color: var(--accent-ink); }

.card--link:hover, .card--interactive:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--sh-md), 0 0 0 4px var(--accent-tint);
}
.card--link:hover .card__icon, .card--interactive:hover .card__icon { transform: scale(1.06) rotate(-4deg); }
.card--link:active { transform: translateY(-1px); }

/* Full-card link overlay: keeps semantics, whole card clickable */
.card__link-overlay { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card__link-overlay:focus-visible { outline-offset: -3px; }

.card--featured {
  border-color: var(--accent);
  background:
    linear-gradient(var(--accent-tint-2), var(--accent-tint)),
    var(--surface);
  box-shadow: var(--sh-md);
}
.card--featured::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 3px;
  background: var(--gradient);
}
.card--flat { background: var(--surface); box-shadow: none; }
.card--glass { background: var(--surface-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.card--dark {
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
}
.card--dark .card__title { color: #fff; }
.card--dark .card__text { color: var(--text-on-dark-soft); }
.card--dark .card__icon { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.card--dark.card--link:hover { border-color: var(--accent-soft); box-shadow: var(--sh-dark), 0 0 0 4px rgba(255, 255, 255, .05); }
.card--pad-lg { padding: clamp(1.6rem, 3vw, 2.5rem); }

/* Pillar card: themed by its own data-theme attribute */
.pillar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: center;
}
.pillar-grid > .pillar-card {
  flex: 1 1 300px;
  max-inline-size: 380px;
}
.pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(1.4rem, 2.2vw, 2rem);
  border: 1px solid var(--accent-tint-2);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 80% at 100% 0%, var(--accent-tint-2), transparent 62%),
    var(--surface);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease);
}
.pillar-card::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 3px;
  background: var(--gradient);
  opacity: .9;
}
.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--sh-lg), 0 0 0 5px var(--accent-tint);
}
.pillar-card__icon {
  inline-size: 52px;
  block-size: 52px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 25px;
  background: var(--gradient);
  box-shadow: 0 10px 24px -12px var(--accent-glow);
  transition: transform var(--dur-3) var(--ease-out);
}
.pillar-card:hover .pillar-card__icon { transform: translateY(-2px) scale(1.05); }
.pillar-card__title { font-size: var(--fs-xl); font-weight: 800; letter-spacing: var(--tr-head); color: var(--ink-900); }
[dir="rtl"] .pillar-card__title { letter-spacing: 0; }
.pillar-card__text { font-size: var(--fs-sm); color: var(--text-soft); text-wrap: pretty; }
.pillar-card__foot { margin-block-start: auto; padding-block-start: var(--space-4); }

/* Service strip: horizontal list rows that survive any title length */
.strip { display: flex; flex-direction: column; gap: var(--space-3); }
.strip__item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.strip__item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-tint);
  box-shadow: var(--sh-md);
  text-decoration: none;
}
.strip__icon { font-size: 22px; line-height: 1; flex: none; }
.strip__body { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; }
.strip__title { font-size: var(--fs-base); font-weight: 700; color: var(--ink-900); }
.strip__text { font-size: var(--fs-sm); color: var(--text-soft); }
.strip__end { flex: none; color: var(--accent-ink); display: grid; place-items: center; }
[dir="rtl"] .strip__end > svg { transform: scaleX(-1); }
@media (max-width: 620px) {
  .strip__item { grid-template-columns: auto minmax(0, 1fr); }
  .strip__end { display: none; }
}

/* Post cards */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  block-size: 100%;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease);
}
.post-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--sh-md), 0 0 0 4px var(--accent-tint); }
.post-card__media { aspect-ratio: 16 / 9; }
.post-card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); flex: 1 1 auto; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: var(--fs-xs); color: var(--text-faint); }
.post-card__title { font-size: var(--fs-lg); font-weight: 800; letter-spacing: var(--tr-head); color: var(--ink-900); text-wrap: pretty; }
[dir="rtl"] .post-card__title { letter-spacing: 0; }
.post-card__text { font-size: var(--fs-sm); color: var(--text-soft); text-wrap: pretty; }
.post-card__foot { margin-block-start: auto; padding-block-start: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); }

.post-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
}
.post-card--featured .post-card__media { aspect-ratio: auto; min-block-size: 280px; block-size: 100%; }
.post-card--featured .post-card__body { padding: clamp(1.5rem, 3vw, 2.75rem); gap: var(--space-4); }
.post-card--featured .post-card__title { font-size: var(--fs-2xl); }
@media (max-width: 800px) {
  .post-card--featured { grid-template-columns: 1fr; }
  .post-card--featured .post-card__media { min-block-size: 0; aspect-ratio: 16 / 9; }
}

/* Consultant / person */
.profile {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 780px) { .profile { grid-template-columns: 1fr; } }
.avatar {
  position: relative;
  aspect-ratio: 1;
  inline-size: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--gradient-soft), var(--surface-sunken);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.avatar > img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; z-index: 1; }
.avatar > img[src=""], .avatar > img:not([src]) { display: none; }
.avatar.is-empty > img { display: none; }
.avatar__initials {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--accent-strong);
  opacity: .9;
}
.avatar__glyph {
  position: absolute;
  inset-block-end: 10px;
  inset-inline-end: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-ink);
  opacity: .5;
}
.avatar--sm { inline-size: 52px; border-radius: var(--r-md); box-shadow: none; }
.avatar--sm .avatar__initials { font-size: var(--fs-base); }
.avatar--round { border-radius: 50%; }

.expertise { display: flex; flex-direction: column; gap: var(--space-2); }
.expertise__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: baseline;
  padding-block: var(--space-2);
  border-block-end: 1px dashed var(--border);
  font-size: var(--fs-sm);
}
.expertise__item::before { content: "▸"; color: var(--accent); font-size: .8em; }
[dir="rtl"] .expertise__item::before { content: "◂"; }

/* Startup mark */
.startup-mark {
  inline-size: clamp(84px, 12vw, 116px);
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  display: grid;
  place-items: center;
  background: var(--gradient-cta);
  color: #fff;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: 0 18px 40px -20px var(--accent-glow);
  overflow: hidden;
  position: relative;
}
.startup-mark > img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: contain; padding: 14%; background: var(--surface); }
.startup-mark.is-empty > img { display: none; }

/* == 06 Diagrams ========================================================== */

.diagram {
  position: relative;
  inline-size: 100%;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface-glass);
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.diagram--dark {
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border-color: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--sh-dark);
}
.diagram--bare { border: 0; background: none; box-shadow: none; padding: 0; }
.diagram__caption {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-block-end: var(--space-3);
}
.diagram svg { inline-size: 100%; block-size: auto; overflow: visible; }
[dir="rtl"] .diagram__flip { transform: scaleX(-1); }
[dir="rtl"] .diagram__flip text { transform: scaleX(-1); transform-origin: center; transform-box: fill-box; }

/* SVG diagram parts */
.dg-node { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.25; }
.diagram--dark .dg-node { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .18); }
.dg-node--accent { fill: var(--accent-tint-2); stroke: var(--accent); }
.dg-label { font-family: var(--font-sans); font-size: 12px; font-weight: 700; fill: var(--ink-800); }
.diagram--dark .dg-label { fill: #fff; }
.dg-sub { font-family: var(--font-sans); font-size: 10px; font-weight: 500; fill: var(--text-faint); }
.diagram--dark .dg-sub { fill: rgba(255, 255, 255, .6); }
.dg-path { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
.diagram--dark .dg-path { stroke: rgba(255, 255, 255, .2); }
.dg-flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 14;
  animation: dash-flow 2.4s linear infinite;
}
.dg-flow--slow { animation-duration: 4s; }
.dg-draw {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  animation: draw-in var(--dur-5) var(--ease-out) forwards;
  animation-play-state: paused;
}
.is-in .dg-draw, .diagram.is-in .dg-draw { animation-play-state: running; }
.dg-pulse { fill: var(--accent); animation: node-pulse 2.6s var(--ease-in-out) infinite; transform-origin: center; transform-box: fill-box; }
.dg-pulse--2 { animation-delay: .5s; }
.dg-pulse--3 { animation-delay: 1s; }
.dg-pulse--4 { animation-delay: 1.5s; }

/* Scroll-linked progress line. The connector belongs to each step, so any
   step count works and a wrapped row never leaves a dangling stub — the
   segment fades out inside its own cell. */
.pipeline { position: relative; }
.pipeline__steps { position: relative; }
.step__head { display: flex; align-items: center; gap: var(--space-3); inline-size: 100%; }
.step__line {
  flex: 1 1 auto;
  min-inline-size: 0;
  block-size: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--border) 0%, var(--border) 62%, transparent 100%);
  overflow: hidden;
}
[dir="rtl"] .step__line { background: linear-gradient(to left, var(--border) 0%, var(--border) 62%, transparent 100%); }
.step:last-child .step__line { display: none; }
.step__line-fill {
  display: block;
  block-size: 100%;
  inline-size: 100%;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) 58%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-5) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[dir="rtl"] .step__line-fill {
  background: linear-gradient(to left, var(--accent) 0%, var(--accent) 58%, transparent 100%);
  transform-origin: right center;
}
.pipeline.is-in .step__line-fill, .step.is-in .step__line-fill { transform: scaleX(1); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .step__line-fill {
      transition: none;
      transform: scaleX(0);
      animation: pipeline-grow linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 55%;
    }
    @keyframes pipeline-grow { to { transform: scaleX(1); } }
    .blob { animation: blob-drift linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes blob-drift {
      from { transform: translate3d(0, -6%, 0) scale(1); }
      to   { transform: translate3d(0, 12%, 0) scale(1.08); }
    }
  }
}
.pipeline__steps {
  position: relative;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
}
.step { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.step > .step__title { margin-block-start: var(--space-1); }
.step__dot {
  inline-size: 34px;
  block-size: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-xs);
  font-weight: 800;
  box-shadow: 0 0 0 5px var(--surface-page);
  flex: none;
}
.section--white .step__dot, .spec__demo .step__dot { box-shadow: 0 0 0 5px var(--surface); }
.step__title { font-size: var(--fs-base); font-weight: 700; color: var(--ink-900); }
.step__text { font-size: var(--fs-sm); color: var(--text-soft); }

/* Learning path (vertical, Academy) */
.path { display: flex; flex-direction: column; gap: 0; }
.path__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-4);
}
.path__rail { position: relative; display: grid; place-items: start center; }
.path__rail::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inline-size: 2px;
  background: linear-gradient(var(--accent-tint-2), var(--accent-tint-2));
}
.path__item:first-child .path__rail::before { inset-block-start: 18px; }
.path__item:last-child .path__rail::before { inset-block-end: calc(100% - 18px); }
.path__num {
  position: relative;
  inline-size: 36px;
  block-size: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-on);
  font-size: var(--fs-xs);
  font-weight: 800;
  z-index: 1;
}
.path__body { display: flex; flex-direction: column; gap: var(--space-1); padding-block-start: 4px; }

/* == 07 Testimonials ====================================================== */

.quote-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(var(--accent-tint), var(--accent-tint)), var(--surface);
  box-shadow: var(--sh-sm);
  block-size: 100%;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease);
}
.quote:hover { transform: translateY(-3px); border-color: var(--accent-tint-2); box-shadow: var(--sh-md); }
.quote::before {
  content: "”";
  font-size: 72px;
  line-height: .8;
  font-weight: 900;
  color: var(--accent);
  opacity: .22;
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 18px;
}
.quote__text { font-size: var(--fs-md); line-height: 1.6; color: var(--text); text-wrap: pretty; position: relative; }
.quote__text--lg { font-size: var(--fs-xl); font-weight: 600; line-height: 1.42; letter-spacing: var(--tr-head); }
[dir="rtl"] .quote__text--lg { letter-spacing: 0; }
.quote__foot { margin-block-start: auto; display: flex; align-items: center; gap: var(--space-3); padding-block-start: var(--space-2); }
.quote__who { display: flex; flex-direction: column; min-inline-size: 0; }
.quote__name { font-size: var(--fs-sm); font-weight: 800; color: var(--ink-900); }
.quote__role { font-size: var(--fs-xs); color: var(--text-faint); }
.quote__letter {
  flex: none;
  inline-size: 46px;
  block-size: 58px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border-strong);
  background:
    repeating-linear-gradient(var(--ink-200) 0 1px, transparent 1px 6px) center / 74% 62% no-repeat,
    var(--surface);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  position: relative;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease);
  display: block;
}
.quote__letter > img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.quote__letter.is-empty > img { display: none; }
a.quote__letter:hover { transform: rotate(-2deg) scale(1.06); box-shadow: var(--sh-md); }
.quote--dark {
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border-color: rgba(255, 255, 255, .12);
}
.quote--dark .quote__text, .quote--dark .quote__name { color: #fff; }
.quote--dark .quote__role { color: rgba(255, 255, 255, .6); }
.quote--dark::before { color: var(--accent-soft); }
.quote--featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .quote--featured { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(2rem, 4vw, 3.5rem); }
  .quote--featured .quote__foot { margin-block-start: 0; flex-direction: column; align-items: flex-start; }
}

/* == 08 Article / rich text =============================================== */

.prose { max-inline-size: var(--measure); font-size: var(--fs-md); color: var(--text); }
.prose > * + * { margin-block-start: var(--space-5); }
.prose h2 {
  font-size: var(--fs-2xl);
  margin-block-start: var(--space-8);
  scroll-margin-block-start: calc(var(--header-h) + 1rem);
}
.prose h3 { font-size: var(--fs-xl); margin-block-start: var(--space-7); }
.prose h2 + p, .prose h3 + p { margin-block-start: var(--space-4); }
.prose p { line-height: var(--lh-body); text-wrap: pretty; }
.prose strong { font-weight: 700; color: var(--ink-900); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.prose a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-inline-start: 1.35em; display: flex; flex-direction: column; gap: var(--space-2); }
.prose ul { list-style: none; padding-inline-start: 0; }
.prose ul > li { padding-inline-start: 1.6em; position: relative; }
.prose ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: .35em;
  inset-block-start: .62em;
  inline-size: 7px;
  block-size: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--accent-ink); font-weight: 700; }
.prose blockquote {
  padding: var(--space-5) var(--space-6);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--accent-tint);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--ink-800);
}
.prose blockquote p + p { margin-block-start: var(--space-3); }
.prose blockquote cite { display: block; margin-block-start: var(--space-3); font-size: var(--fs-sm); font-style: normal; color: var(--text-faint); }
.prose figure { display: flex; flex-direction: column; gap: var(--space-3); }
.prose figcaption { font-size: var(--fs-sm); color: var(--text-faint); }
.prose hr { margin-block: var(--space-8); }
.prose code {
  font-family: var(--font-mono);
  font-size: .88em;
  padding: .15em .4em;
  border-radius: var(--r-xs);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  color: var(--accent-strong);
}
.prose pre {
  direction: ltr;
  text-align: start;
  padding: var(--space-5);
  border-radius: var(--r-md);
  background: var(--surface-dark);
  color: #e7eef0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--sh-md);
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose pre .tok-key { color: #7fd1c8; }
.prose pre .tok-str { color: #ffcf6b; }
.prose pre .tok-com { color: #7d8b96; font-style: italic; }
.prose pre .tok-fn { color: #9fd4ff; }
.prose table { inline-size: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: start; padding: var(--space-3); border-block-end: 1px solid var(--border); }
.prose th { font-weight: 800; color: var(--ink-900); background: var(--surface-sunken); }
.prose--lg { font-size: var(--fs-lg); }

.article { display: flex; flex-direction: column; gap: var(--space-6); }
.article__head { display: flex; flex-direction: column; gap: var(--space-4); }
.article__title { font-size: var(--fs-4xl); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); color: var(--text-faint); }
.article__meta .dot { inline-size: 4px; block-size: 4px; border-radius: 50%; background: var(--ink-200); }
.article__hero {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
}
.toc {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--fs-sm);
}
.toc__title { font-size: var(--fs-xs); font-weight: 800; letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--text-faint); }

/* == 09 Share bar ========================================================= */

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-block: 1px solid var(--border);
}
.share__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--text-faint); }
[dir="rtl"] .share__label { letter-spacing: .06em; }
.share__list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-inline-start: auto; }
.share__btn {
  inline-size: 42px;
  block-size: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-700);
  transition: transform var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.share__btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.share__btn svg { inline-size: 17px; block-size: 17px; fill: currentColor; }
.share__btn--copy { inline-size: auto; padding-inline: var(--space-4); border-radius: var(--r-pill); gap: var(--space-2); font-size: var(--fs-xs); font-weight: 700; }
.share__btn.is-copied { background: var(--ok); border-color: var(--ok); color: #fff; }

/* == 10 Forms + contact =================================================== */

.form { display: flex; flex-direction: column; gap: var(--space-5); }
.form__row { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-800); }
.field__hint { font-size: var(--fs-xs); color: var(--text-faint); }
.field__req { color: var(--err); }
.input, .textarea, .select {
  inline-size: 100%;
  min-block-size: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-base);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-300); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-300); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint-2);
}
.input:focus-visible, .textarea:focus-visible, .select:focus-visible { outline: none; }
.textarea { min-block-size: 148px; resize: vertical; line-height: var(--lh-body); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--err); }
.field__error { font-size: var(--fs-xs); color: var(--err); font-weight: 600; }
.checkbox { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); align-items: start; font-size: var(--fs-sm); color: var(--text-soft); }
.checkbox input { inline-size: 20px; block-size: 20px; accent-color: var(--accent); margin-block-start: 2px; }
.form__note { font-size: var(--fs-xs); color: var(--text-faint); }

.contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
a.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--sh-md); text-decoration: none; }
.contact-card__icon {
  inline-size: 46px;
  block-size: 46px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--accent-tint-2);
  color: var(--accent-ink);
}
.contact-card__icon svg { inline-size: 21px; block-size: 21px; }
.contact-card__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.contact-card__value { font-size: var(--fs-base); font-weight: 700; color: var(--ink-900); overflow-wrap: anywhere; }

/* == 11 CTA band ========================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-2xl);
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(120% 120% at 100% 0%, var(--accent-glow), transparent 58%),
    radial-gradient(90% 90% at 0% 100%, rgba(28, 107, 114, .42), transparent 60%),
    var(--surface-dark);
  color: #fff;
  box-shadow: var(--sh-lg);
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
@media (max-width: 780px) { .cta-band__inner { grid-template-columns: 1fr; } }
.cta-band__title { font-size: var(--fs-3xl); color: #fff; }
.cta-band__text { color: var(--text-on-dark-soft); max-inline-size: 52ch; margin-block-start: var(--space-3); text-wrap: pretty; }
.cta-band__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.cta-band--light {
  background: var(--gradient-soft), var(--surface);
  color: var(--text);
  border: 1px solid var(--accent-tint-2);
  box-shadow: var(--sh-sm);
}
.cta-band--light .cta-band__title { color: var(--ink-900); }
.cta-band--light .cta-band__text { color: var(--text-soft); }

/* One-stop-shop CTA: stacked band with three path cards */
.cta-band__inner--stack { grid-template-columns: 1fr; justify-items: start; }
.cta-band__head { max-inline-size: 62ch; }
.cta-paths {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  inline-size: 100%;
}
.cta-path {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05);
  color: var(--text-on-dark);
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.cta-path:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: var(--accent-soft);
  background: rgba(255, 255, 255, .09);
}
.cta-path__icon { font-size: 1.5rem; }
.cta-path__title { font-weight: 700; color: #fff; }
.cta-path__text { font-size: var(--fs-sm); color: var(--text-on-dark-soft); line-height: var(--lh-head); }

/* Investor deck: the investment narrative, slide by slide */
.deck { display: grid; gap: var(--space-5); counter-reset: slide; }
.deck-slide {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.25rem);
  padding: clamp(1.4rem, 2.6vw, 2.4rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sh-sm);
}
.deck-slide__num {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--tr-tight);
  color: var(--accent-ink);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  min-inline-size: 2.2ch;
}
.deck-slide__body h2 { margin-block-start: 0; font-size: var(--fs-xl); }
@media (max-width: 640px) { .deck-slide { grid-template-columns: 1fr; } }

/* == Startup presentation — the night stage ==============================
   Same design language (teal ramp, type scale, radii, reveal motion),
   turned up: dark stage, faint grid + glints, gradient headline. */
.night {
  position: relative;
  background: linear-gradient(180deg, #0e1822 0%, var(--surface-dark) 46%, #0d151e 100%);
  color: var(--text-on-dark);
  overflow: hidden;
}
.night::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 8%, var(--accent-glow), transparent 30rem),
    radial-gradient(circle at 12% 55%, rgba(116, 214, 224, .10), transparent 26rem),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 64%, rgba(173, 233, 239, .5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 46% 82%, rgba(255, 255, 255, .35) 0 1px, transparent 1.4px),
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: auto, auto, 240px 240px, 330px 330px, 420px 420px, 46px 46px, 46px 46px;
}
.night > * { position: relative; }
.night-hero { padding-block: clamp(4.5rem, 9vw, 8.5rem) clamp(3rem, 6vw, 5rem); }
.night-hero__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 981px) { .night-hero__grid { grid-template-columns: 1.05fr .95fr; } }
.night-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--accent-soft);
}
[dir="rtl"] .night-kicker { letter-spacing: .06em; }
.night-hero h1 {
  margin-block: var(--space-4) var(--space-5);
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  color: #fff;
}
.night-hero h1 em {
  font-style: normal;
  display: block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.night-lead { max-inline-size: 66ch; color: var(--text-on-dark-soft); font-size: var(--fs-lg); line-height: var(--lh-body); }
.night-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border-block: 1px solid var(--border-on-dark);
  background: rgba(255, 255, 255, .03);
}
.night-stat { padding: var(--space-6); border-inline-end: 1px solid var(--border-on-dark); }
.night-stat:last-child { border-inline-end: 0; }
.night-stat b {
  display: block;
  font-size: var(--fs-3xl);
  letter-spacing: var(--tr-tight);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.night-stat span { color: var(--text-on-dark-soft); font-size: var(--fs-sm); }
.voyage { display: grid; gap: var(--space-4); }
.voyage-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease);
}
.voyage-step:hover { transform: translateY(-3px); border-color: var(--accent-glow); }
.voyage-step__num {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent-soft);
  padding-block-start: .3rem;
}
.voyage-step .prose { color: var(--text-on-dark-soft); }
.voyage-step .prose h2 { margin-block-start: 0; font-size: var(--fs-xl); color: #fff; }
.voyage-step .prose strong { color: #fff; }
.voyage-step .prose em { color: var(--accent-soft); }
.night-quote {
  margin-block: var(--space-9);
  padding: clamp(2rem, 4vw, 3.4rem);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .04);
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-head);
  color: #fff;
  text-wrap: balance;
}
.night-quote small { display: block; margin-block-start: var(--space-4); font-size: var(--fs-sm); color: var(--text-on-dark-soft); }
.ask-card {
  margin-block: var(--space-9);
  padding: clamp(2.4rem, 5vw, 4rem);
  border: 1px solid var(--accent-glow);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(circle at 50% 0%, var(--accent-tint-2), transparent 24rem),
    linear-gradient(150deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  box-shadow: 0 40px 90px -60px var(--accent-glow);
  text-align: center;
}
.ask-card h2 { font-size: var(--fs-3xl); letter-spacing: var(--tr-tight); color: #fff; }
.ask-card p { max-inline-size: 62ch; margin-inline: auto; margin-block: var(--space-4) var(--space-6); color: var(--text-on-dark-soft); }
@media (max-width: 640px) {
  .voyage-step { grid-template-columns: 1fr; }
  .night-stat { border-inline-end: 0; border-block-end: 1px solid var(--border-on-dark); }
  .night-stat:last-child { border-block-end: 0; }
}

/* == Floating share rail (every page) ==================================== */
.share-rail {
  position: fixed;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: var(--z-sticky);
}
.share-rail__btn {
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink-500);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-2) var(--ease-out), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.share-rail__btn svg { inline-size: 17px; block-size: 17px; fill: currentColor; }
.share-rail__btn:hover {
  transform: scale(1.12);
  color: var(--accent-strong);
  border-color: var(--accent-soft);
  text-decoration: none;
}
@media (max-width: 860px) {
  .share-rail {
    inset-inline-end: auto;
    left: 50%;
    top: auto;
    bottom: 10px;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 4px;
    padding: 5px 8px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: var(--surface-glass);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--sh-md);
  }
  .share-rail__btn { inline-size: 34px; block-size: 34px; border: 0; background: transparent; box-shadow: none; }
}
@media print { .share-rail { display: none; } }

/* Floating investor CTA on presentation pages */
.float-cta {
  position: fixed;
  inset-inline-end: 14px;
  inset-block-end: 16px;
  z-index: var(--z-sticky);
  box-shadow: var(--sh-lg), var(--sh-glow);
}
@media (max-width: 860px) { .float-cta { inset-block-end: 64px; inset-inline-end: 10px; } }

/* Brand icons: one monochrome language everywhere */
.pillar-card__icon, .card__icon, .strip__icon { color: var(--accent-ink); }
.cta-path__icon { color: var(--accent-soft); }
.pillar-card__icon svg, .card__icon svg, .strip__icon svg, .cta-path__icon svg {
  inline-size: 1em;
  block-size: 1em;
  display: block;
}

/* Real-people photos on pillars and services */
.topic-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
}
.topic-photo img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.topic-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(165deg, rgba(18, 77, 85, .28), transparent 45%, rgba(25, 33, 43, .22));
}

/* Small elegant admin entry in the header */
.admin-link {
  display: grid;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--ink-400);
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), transform var(--dur-2) var(--ease-out);
  flex: none;
}
.admin-link svg { inline-size: 15px; block-size: 15px; }
.admin-link:hover { color: var(--accent-strong); border-color: var(--accent-soft); transform: scale(1.08); text-decoration: none; }
.site-header--on-dark .admin-link { border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .65); }
.site-header--on-dark .admin-link:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.site-header__inner { min-inline-size: 0; }
.header__actions { flex-wrap: nowrap; min-inline-size: 0; }

.site-footer__version { font-family: var(--font-mono); font-size: var(--fs-xs); opacity: .75; }

/* == Team circle grid ==================================================== */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  inline-size: min(100%, 200px);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-2) var(--ease-out);
}
.team-member:hover { transform: translateY(-4px); text-decoration: none; }
.team-member__photo {
  position: relative;
  inline-size: 132px;
  block-size: 132px;
  border-radius: 50%;
  padding: 4px;
  background: var(--gradient);
  box-shadow: var(--sh-md);
}
.team-member__photo img,
.team-member__initials {
  inline-size: 100%;
  block-size: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--surface);
}
.team-member__initials {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--accent-ink);
  background: linear-gradient(150deg, var(--accent-tint-2), var(--surface));
}
.team-member__name { font-weight: 700; color: var(--ink-900); }
.team-member__role { font-size: var(--fs-sm); color: var(--text-soft); }

/* == The Grid stage: the hero movie ======================================
   A living picture of the Grid - three rings, orbiting work, a ticket in
   and a verified result out. Pure CSS/SVG, loops forever, honors
   prefers-reduced-motion. */
.grid-stage {
  position: relative;
  min-block-size: clamp(360px, 46vw, 520px);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--r-2xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%,
      var(--accent-tint-2) 0 12%, rgba(10, 18, 26, .0) 12.5% 26%,
      rgba(116, 214, 224, .12) 26.5% 42%, rgba(10, 18, 26, .0) 42.5% 58%,
      rgba(41, 184, 200, .08) 58.5% 76%, transparent 76.5%),
    linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
  box-shadow: inset 0 0 80px rgba(18, 77, 85, .25);
}
.grid-stage__orbit {
  position: absolute;
  left: 50%;
  top: 52%;
  translate: -50% -50%;
  border: 1px dashed rgba(173, 233, 239, .28);
  border-radius: 50%;
  animation: stage-orbit 70s linear infinite;
}
.grid-stage__orbit--1 { inline-size: 74%; aspect-ratio: 1; }
.grid-stage__orbit--2 { inline-size: 48%; aspect-ratio: 1; animation-duration: 50s; animation-direction: reverse; border-color: rgba(116, 214, 224, .22); }
.grid-stage__orbit--3 { inline-size: 26%; aspect-ratio: 1; animation-duration: 34s; border-color: var(--accent-glow); }
.grid-stage__orbit i {
  position: absolute;
  top: -4px;
  left: 50%;
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 14px var(--accent-glow);
}
.grid-stage__orbit--2 i { background: #fff; }
@keyframes stage-orbit { to { rotate: 360deg; } }
.grid-stage__center {
  position: absolute;
  left: 50%;
  top: 52%;
  translate: -50% -50%;
  z-index: 3;
  inline-size: min(46%, 190px);
  padding: var(--space-4);
  text-align: center;
  border: 1px solid var(--accent-glow);
  border-radius: var(--r-lg);
  background: rgba(14, 24, 34, .92);
  box-shadow: 0 0 40px var(--accent-glow);
  animation: stage-pulse 4s var(--ease-in-out) infinite;
}
.grid-stage__center b { display: block; color: #fff; letter-spacing: var(--tr-head); }
.grid-stage__center small { color: var(--text-on-dark-soft); font-size: var(--fs-xs); line-height: var(--lh-head); display: block; margin-block-start: var(--space-1); }
@keyframes stage-pulse { 0%, 100% { box-shadow: 0 0 26px var(--accent-glow); } 50% { box-shadow: 0 0 54px var(--accent-glow); } }
.grid-stage__label {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--r-xs);
  background: rgba(10, 17, 24, .92);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent-soft);
  white-space: nowrap;
}
.grid-stage__label--a { inset-inline-start: 7%; inset-block-start: 14%; }
.grid-stage__label--b { inset-inline-end: 6%; inset-block-start: 22%; color: #fff; }
.grid-stage__label--c { inset-inline-start: 12%; inset-block-end: 16%; }
.grid-stage__label--d { inset-inline-end: 9%; inset-block-end: 11%; color: var(--teal-300); }
.grid-stage__ticket,
.grid-stage__result {
  position: absolute;
  z-index: 4;
  inline-size: min(44%, 200px);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-md);
  background: rgba(16, 27, 38, .95);
  box-shadow: var(--sh-dark);
  font-size: var(--fs-xs);
}
.grid-stage__ticket { inset-inline-start: 4%; inset-block-start: 8%; border: 1px solid rgba(173, 233, 239, .45); animation: stage-ticket 9s var(--ease-in-out) infinite; }
.grid-stage__result { inset-inline-end: 4%; inset-block-end: 8%; border: 1px solid rgba(98, 220, 190, .5); animation: stage-result 9s var(--ease-in-out) infinite; }
.grid-stage__ticket .tag, .grid-stage__result .tag {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block-end: 6px;
  border-block-end: 1px dashed var(--border-on-dark);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--accent-soft);
}
.grid-stage__result .tag { color: var(--teal-300); }
.grid-stage__ticket b, .grid-stage__result b { display: block; margin-block: 7px 3px; color: #fff; font-size: var(--fs-sm); }
.grid-stage__ticket span, .grid-stage__result span { color: var(--text-on-dark-soft); line-height: var(--lh-head); display: block; }
@keyframes stage-ticket {
  0%, 12% { translate: 0 0; opacity: 1; }
  38%, 52% { translate: 26% 30%; opacity: 0; }
  78% { translate: 0 0; opacity: 0; }
  92%, 100% { translate: 0 0; opacity: 1; }
}
@keyframes stage-result {
  0%, 40% { translate: 0 0; opacity: 0; }
  46% { translate: -22% -26%; opacity: 0; }
  62%, 88% { translate: 0 0; opacity: 1; }
  100% { translate: 0 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .grid-stage__orbit, .grid-stage__center, .grid-stage__ticket, .grid-stage__result { animation: none !important; }
  .grid-stage__ticket, .grid-stage__result { opacity: 1 !important; translate: 0 0 !important; }
}

/* Evidence band: the real dashboards */
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--space-5); }
.evidence-shot {
  margin: 0;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(10, 17, 24, .9);
  box-shadow: 0 30px 80px -50px var(--accent-glow);
}
.evidence-shot img { display: block; inline-size: 100%; block-size: auto; }
.evidence-shot figcaption { padding: var(--space-4); font-size: var(--fs-sm); color: var(--text-on-dark-soft); }
.evidence-shot figcaption b { display: block; color: #fff; margin-block-end: 2px; }

/* Venture strip: an idea becomes an operating company */
.venture-strip { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.venture-strip__step {
  flex: 1 1 150px;
  position: relative;
  padding: var(--space-4);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .04);
}
.venture-strip__step b { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; color: var(--accent-soft); }
.venture-strip__step span { display: block; margin-block-start: 6px; color: #fff; font-weight: 600; font-size: var(--fs-sm); }
.venture-strip__step small { display: block; margin-block-start: 3px; color: var(--text-on-dark-soft); font-size: var(--fs-xs); line-height: var(--lh-head); }

/* == Post media: never empty, always alive =============================== */
/* Real images get a half-opaque brand wash; missing images get a generated
   panel in the design language. */
.media__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(18, 77, 85, .42), rgba(41, 184, 200, .10) 52%, rgba(25, 33, 43, .38));
}
.media-gen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--gradient);
}
.media-gen::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .5) 0 1px, transparent 1.6px),
    radial-gradient(circle at 25% 70%, rgba(255, 255, 255, .4) 0 1px, transparent 1.6px),
    linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .35) 1px, transparent 1px);
  background-size: 200px 200px, 260px 260px, 40px 40px, 40px 40px;
}
.media-gen--b { background: var(--gradient-cta); }
.media-gen--c { background: linear-gradient(150deg, var(--teal-800) 0%, var(--surface-dark) 70%); }
.media-gen__word {
  position: absolute;
  inset-inline-start: -1%;
  inset-block-end: -8%;
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 5.5rem);
  letter-spacing: var(--tr-tight);
  line-height: 1;
  color: #fff;
  opacity: .13;
  white-space: nowrap;
}
.media-gen__glyph {
  position: relative;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  opacity: .55;
  text-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}

/* == 12 Pagination / breadcrumbs ========================================= */

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2); }
.pager__item {
  min-inline-size: 42px;
  min-block-size: 42px;
  padding-inline: var(--space-3);
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-700);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease-out);
}
.pager__item:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-tint); text-decoration: none; transform: translateY(-1px); }
.pager__item[aria-current="page"] { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.pager__item[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.pager__gap { color: var(--text-faint); padding-inline: var(--space-1); }
[dir="rtl"] .pager__item svg { transform: scaleX(-1); }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); color: var(--text-faint); }
.breadcrumbs a { color: var(--text-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.breadcrumbs__sep { opacity: .55; }
[dir="rtl"] .breadcrumbs__sep { transform: scaleX(-1); display: inline-block; }
.is-dark .breadcrumbs, .hero--dark .breadcrumbs { color: rgba(255, 255, 255, .55); }
.is-dark .breadcrumbs a, .hero--dark .breadcrumbs a { color: rgba(255, 255, 255, .78); }

/* == 13 Footer ============================================================ */

.site-footer {
  background: var(--surface-dark);
  color: var(--text-on-dark-soft);
  padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--space-6);
}
.site-footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  padding-block-end: var(--space-7);
  border-block-end: 1px solid rgba(255, 255, 255, .1);
}
.site-footer__brand { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.site-footer .brand__word { color: #fff; }
.site-footer__tagline { font-size: var(--fs-sm); color: var(--text-on-dark-soft); max-inline-size: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col__title {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: #fff;
}
[dir="rtl"] .footer-col__title { letter-spacing: .06em; }
.footer-col a { font-size: var(--fs-sm); color: rgba(255, 255, 255, .7); text-decoration: none; transition: color var(--dur-1) var(--ease), transform var(--dur-2) var(--ease-out); display: inline-block; }
.footer-col a:hover { color: #fff; text-decoration: none; transform: translateX(2px); }
[dir="rtl"] .footer-col a:hover { transform: translateX(-2px); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block-start: var(--space-5);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .5);
}
.social { display: flex; gap: var(--space-2); }
.social__btn {
  inline-size: 38px;
  block-size: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .8);
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease);
}
.social__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-on); transform: translateY(-2px); text-decoration: none; }
.social__btn svg { inline-size: 16px; block-size: 16px; fill: currentColor; }

/* == 14 Media fallbacks + spec helpers =================================== */

/* Any CMS image: gradient mesh + code glyph shows through when src is
   missing or fails to load (JS adds .is-empty; CSS covers the rest). */
.media {
  position: relative;
  overflow: hidden;
  background: var(--gradient-soft), var(--surface-sunken);
  isolation: isolate;
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 80% at 20% 15%, var(--accent-tint-2), transparent 60%),
    radial-gradient(60% 70% at 88% 90%, var(--accent-glow), transparent 62%);
  opacity: .75;
}
.media::after {
  content: "[;}";
  position: absolute;
  inset-block-end: 8px;
  inset-inline-end: 12px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-strong);
  opacity: .38;
}
.media > img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform var(--dur-4) var(--ease-out);
}
.media.is-empty > img { display: none; }
.media__label {
  position: absolute;
  inset-block-end: 10px;
  inset-inline-start: 14px;
  z-index: 2;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent-strong);
  opacity: .8;
}
.media.is-empty .media__label { opacity: .9; }
.media:not(.is-empty) .media__label { display: none; }
.post-card:hover .media > img, .card--link:hover .media > img { transform: scale(1.035); }

/* Component-library page helpers */
.spec { display: flex; flex-direction: column; gap: var(--space-5); padding-block: var(--space-7); border-block-start: 1px solid var(--border); }
.spec__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); }
.spec__title { font-size: var(--fs-xl); }
.spec__code { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent-strong); background: var(--accent-tint); padding: .2em .5em; border-radius: var(--r-xs); }
.spec__note { font-size: var(--fs-sm); color: var(--text-soft); max-inline-size: 68ch; }
.spec__demo { padding: clamp(1.25rem, 3vw, 2rem); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface); }
.spec__demo--dark { background: var(--surface-dark); border-color: rgba(255, 255, 255, .16); }
.spec__demo--page { background: var(--surface-page); }
.swatches { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr)); }
.swatch { display: flex; flex-direction: column; gap: var(--space-2); }
.swatch__chip { block-size: 74px; border-radius: var(--r-md); border: 1px solid var(--border); box-shadow: var(--sh-xs); }
.swatch__name { font-size: var(--fs-xs); font-weight: 700; }
.swatch__val { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.theme-demo { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

/* Local dev banner (design kit only — remove when porting) */
.kit-note {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-5);
  background: var(--ink-050);
  border-block-end: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-soft);
}
.kit-note a { font-weight: 700; }
