/* =====================================================================
   AI Vision Solutions — Premium design system
   Minimal black & white, editorial typography, restrained crimson accent.
   Motion is CSS-first (transforms + IntersectionObserver); no JS animation
   libraries. All motion is disabled under prefers-reduced-motion.
   ===================================================================== */

:root {
  /* Color */
  --bg: #ffffff;
  --ink: #050505;
  --muted: #6f6f6f;
  --line: rgba(5, 5, 5, .12);
  --line-strong: rgba(5, 5, 5, .28);
  --soft: #f4f4f1;
  --dark: #060606;
  --dark-soft: #111111;
  --dark-text: #ffffff;
  --dark-muted: #9a9a9a;
  --dark-line: rgba(255, 255, 255, .16);
  --accent: #e2231a;          /* brand crimson — used sparingly */
  --accent-hover: #b8160f;

  /* Metrics */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.22, .7, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 30px 70px rgba(5, 5, 5, .12);
  --header-h: 78px;
}

* { box-sizing: border-box; margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv05", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(var(--maxw), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-220%);
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.25rem;
  font-weight: 700;
}
.skip-link:focus { transform: none; }

/* ====================================================================
   Typography
   ==================================================================== */
/* Heading typography is scoped to .site-themed (marketing pages) so it never
   overrides the embedded AI Tools / activity pages, which ship their own CSS. */
.site-themed h1, .site-themed h2, .site-themed h3, .site-themed h4 {
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
}

.site-themed .display {
  font-size: clamp(2.9rem, 8.5vw, 6.6rem);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: .98;
}

.site-themed .h2, .site-themed h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -.04em;
  line-height: 1.04;
}

.site-themed h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

p { text-wrap: pretty; }

/* Section eyebrow with a leading tick */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--accent);
}
.eyebrow--center { justify-content: center; }

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  max-width: 56ch;
}

.muted { color: var(--muted); }

/* ====================================================================
   Layout primitives
   ==================================================================== */
.site-main { min-height: 60vh; }

.section {
  position: relative;
  padding: clamp(4.5rem, 11vh, 8.5rem) 0;
}
.section--tight { padding: clamp(3rem, 7vh, 5rem) 0; }
.section--soft { background: var(--soft); }
.section--hair { border-top: 1px solid var(--line); }

.site-themed .section-head { max-width: 62ch; }
.site-themed .section-head .h2 { margin-bottom: 1.25rem; }

/* generic split: label left, content right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 22%) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.split__label {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .4rem;
}

/* ====================================================================
   Buttons
   ==================================================================== */
.btn {
  --btn-fg: var(--ink);
  --btn-bg: transparent;
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 54px;
  padding: .9rem 1.6rem;
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.01em;
  cursor: pointer;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .25s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-bd);
  transform: translateY(101%);
  transition: transform .4s var(--ease-out);
}
.btn:hover, .btn:focus-visible { color: var(--bg); outline: none; }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: scale(.98); }

.btn--primary {
  --btn-bg: var(--ink);
  --btn-bd: var(--ink);
  color: var(--bg);
}
.btn--primary::before { background: var(--accent); transform: translateY(101%); }
.btn--primary:hover, .btn--primary:focus-visible { color: #fff; }

.btn--accent {
  --btn-bd: var(--accent);
  --btn-bg: var(--accent);
  color: #fff;
}
.btn--accent::before { background: var(--ink); }

.btn--ghost-light { --btn-bd: var(--dark-line); color: #fff; }
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover, .btn--ghost-light:focus-visible { color: var(--ink); }

.btn--lg { min-height: 60px; padding: 1rem 2rem; font-size: 1.05rem; }

.btn .btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Plain text link with animated underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg, .link-arrow:focus-visible svg { transform: translateX(4px); }

/* ====================================================================
   Header
   ==================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  /* Solid background (no backdrop-filter): a non-none filter/backdrop-filter
     would create a containing block and trap the position:fixed mobile menu. */
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
/* Keep the shared chrome left-to-right and identical on every page,
   including the RTL AI Tools directory (logo left, nav in the same order). */
.site-header, .site-footer { direction: ltr; }
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: min-height .35s var(--ease);
}
.site-header.is-scrolled .header-inner { min-height: 64px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; z-index: 320; }
/* Logo sizing scoped to the header so embedded pages (AI Tools) can't shrink it. */
.site-header .brand-logo { width: clamp(140px, 26vw, 180px); height: auto; max-height: none; }

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.6vw, 2.2rem);
}
.site-nav > a {
  position: relative;
  font-weight: 600;
  font-size: .96rem;
  color: var(--muted);
  padding-block: .3rem;
  transition: color .25s var(--ease);
}
.site-nav > a::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.site-nav > a:hover, .site-nav > a:focus-visible,
.site-nav > a[aria-current="page"] { color: var(--ink); outline: none; }
.site-nav > a:hover::after, .site-nav > a:focus-visible::after,
.site-nav > a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { display: inline-flex; }
.header-cta .btn { min-height: 46px; padding: .6rem 1.3rem; font-size: .92rem; }
.nav-mobile-cta { display: none; }
.training-header-lang {
  display: none;
  min-height: 40px;
  padding: .45rem .9rem;
  border-color: var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
body.training-page .training-header-lang,
body.articles-page .training-header-lang { display: inline-flex; }
.training-header-lang::after {
  content: "";
  width: .38rem;
  height: .38rem;
  border-radius: 999px;
  background: var(--accent);
}
.training-header-lang::before { background: var(--ink); }
.training-header-lang:hover,
.training-header-lang:focus-visible { color: #fff; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px; height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  gap: 5px;
  z-index: 320;
  transition: background .3s var(--ease);
}
.menu-bar {
  display: block;
  width: 20px; height: 1.8px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}
body.nav-open .menu-toggle { border-color: var(--dark-line); }
body.nav-open .menu-bar { background: #fff; }
body.nav-open .menu-toggle .menu-bar:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
body.nav-open .menu-toggle .menu-bar:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle .menu-bar:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* ====================================================================
   Hero
   ==================================================================== */
.site-themed .hero {
  position: relative;
  padding-top: clamp(3.5rem, 8vh, 6rem);
  padding-bottom: clamp(4rem, 9vh, 7rem);
  overflow: clip;
}
.site-themed .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.9rem, 8.5vw, 6.4rem);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: .96;
  margin-bottom: 1.6rem;
}
.hero-title .accent { color: var(--accent); }

/* staggered line reveal */
.line-reveal { display: block; overflow: hidden; }
.line-reveal > span {
  display: block;
  transform: translateY(105%);
  transition: transform .9s var(--ease-out);
}
.is-loaded .line-reveal > span { transform: translateY(0); }
.is-loaded .line-reveal:nth-child(2) > span { transition-delay: .08s; }
.is-loaded .line-reveal:nth-child(3) > span { transition-delay: .16s; }
.is-loaded .line-reveal:nth-child(4) > span { transition-delay: .24s; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}
.hero__lead { max-width: 50ch; }

/* fade-up for hero supporting elements after the title */
.hero .fade-seq {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.is-loaded .hero .fade-seq { opacity: 1; transform: none; }
.is-loaded .hero .fade-seq.d1 { transition-delay: .35s; }
.is-loaded .hero .fade-seq.d2 { transition-delay: .45s; }
.is-loaded .hero .fade-seq.d3 { transition-delay: .55s; }

/* Hero visual: lightweight animated line-flow in a premium framed panel */
.hero__art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(125% 90% at 50% 0%, #fafafa 0%, var(--soft) 70%, #ededea 100%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(5, 5, 5, .08);
}
/* hairline accent in one corner of the panel */
.hero__art::after {
  content: "";
  position: absolute;
  left: 18px; bottom: 18px;
  width: 34px; height: 2px;
  background: var(--accent);
  z-index: 1;
}
.dotgrid-svg { width: 100%; height: 100%; display: block; }
.dotgrid circle {
  fill: rgba(5, 5, 5, .5);
  transform-box: fill-box;
  transform-origin: center;
  animation: ripple 3.6s ease-in-out infinite;
}
.dotgrid circle.acc { fill: var(--accent); }
@keyframes ripple {
  0%, 72%, 100% { opacity: .28; transform: scale(.55); }
  20%           { opacity: 1;   transform: scale(1.15); }
}

/* Scroll cue */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 3rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue__rail {
  width: 1.5px; height: 38px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-cue__rail::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--accent);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(300%); } }

/* ====================================================================
   Scroll reveal
   ==================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .4s; }

/* ====================================================================
   Metrics
   ==================================================================== */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 1rem;
}
.metric { padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.metric__num {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1;
}
.metric__num .sym { color: var(--accent); }
.metric__label {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
  max-width: 22ch;
}

/* ====================================================================
   Services — premium animated list/cards
   ==================================================================== */
.svc-list { margin-top: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.6rem, 3.2vw, 2.6rem) clamp(1rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  transition: color .4s var(--ease);
}
/* dark fill sweep on hover */
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .45s var(--ease-out);
  z-index: 0;
}
.svc > * { position: relative; z-index: 1; }
.svc:hover, .svc:focus-within { color: #fff; }
.svc:hover::before, .svc:focus-within::before { transform: scaleY(1); }
.svc:hover .svc__num, .svc:focus-within .svc__num { color: var(--accent); }
.svc:hover .svc__desc, .svc:focus-within .svc__desc { color: var(--dark-muted); }
.svc:hover .svc__cta, .svc:focus-within .svc__cta { border-color: #fff; }

.svc__num {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .4s var(--ease);
}
.svc__title { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; }
.svc__desc {
  color: var(--muted);
  margin-top: .5rem;
  max-width: 60ch;
  transition: color .4s var(--ease);
}
.svc__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.svc:hover .svc__cta { transform: rotate(-45deg); }
.svc__cta svg { width: 20px; height: 20px; }

/* ====================================================================
   Method / How we work — timeline
   ==================================================================== */
.method {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.method__rail {
  position: absolute;
  top: 26px; left: 0; right: 0;
  height: 1.5px;
  background: var(--line);
}
.method__rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-out);
}
.method.is-visible .method__rail::after { transform: scaleX(1); }
.method__step { position: relative; }
.method__n {
  font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  color: var(--muted); text-transform: uppercase;
}
.method__title { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: .35rem 0 .5rem; }
.method__desc { color: var(--muted); font-size: .95rem; }

/* ====================================================================
   Capabilities / featured work grid
   ==================================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 230px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.work-card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.work-card:hover::after { transform: scaleX(1); }
.work-card__cat {
  font-size: .74rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.work-card__title { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.work-card__desc { color: var(--muted); font-size: .96rem; flex: 1; }
.work-card__more {
  font-size: .85rem; font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .25rem;
}

/* ====================================================================
   Cards (shared / training hub) — kept backward compatible
   ==================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); flex: 1; }
.card .btn { margin-top: .5rem; align-self: flex-start; }

.card__meta {
  display: flex; gap: .65rem; align-items: center;
  font-size: .82rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.badge {
  display: inline-flex; align-items: center;
  background: var(--ink); color: #fff;
  padding: .25rem .6rem; border-radius: 999px;
  font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
}

/* Training hub head */
.topic-section + .topic-section { border-top: 1px solid var(--line); }
.section-copy { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 60ch; }

.training-track { border-top: 1px solid var(--line); }
.training-track__head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: end;
}
.training-track__head h2 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  max-width: 11ch;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.module-card {
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 1rem;
  background: var(--bg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.module-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.module-card__top,
.module-card__foot,
.training-module-hero__meta,
.activity-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.module-card h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.module-card p { color: var(--muted); }
.module-card__outcomes {
  display: grid;
  gap: .55rem;
  padding: 0;
  margin: .2rem 0 0;
  list-style: none;
}
.module-card__outcomes li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--muted);
  font-size: .95rem;
}
.module-card__outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: .42rem;
  height: .42rem;
  background: var(--accent);
}
.module-card__foot {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.training-module-hero { border-bottom: 1px solid var(--line); }
.training-module-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .75fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.training-module-hero__meta {
  margin-top: 1.8rem;
}
.module-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--soft);
}
.module-summary h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: .9rem;
}
.module-summary p,
.module-summary li { color: var(--muted); }
.module-summary ul {
  display: grid;
  gap: .75rem;
  margin: 1.2rem 0 0;
  padding-left: 1.15rem;
}
.module-sequence {
  padding-top: clamp(3.25rem, 7vh, 5rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
  background:
    linear-gradient(180deg, rgba(244, 244, 241, .65), rgba(255, 255, 255, 0) 42%),
    var(--bg);
}
.module-sequence .training-track__head {
  align-items: start;
  padding-bottom: clamp(1.8rem, 4vw, 3rem);
}
.module-sequence .training-track__head h2 {
  max-width: 11ch;
}
.activity-list {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.2rem, 3vw, 2rem);
}
.activity-list::before {
  content: "";
  position: absolute;
  top: 2.2rem;
  bottom: 2.2rem;
  left: 2.25rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
}
.activity-row {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 2.6vw, 2rem);
  align-items: center;
  min-height: 148px;
  padding: clamp(1.15rem, 2.4vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 45px rgba(5, 5, 5, .055);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.activity-row::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .28s var(--ease);
}
.activity-row:hover,
.activity-row:focus-within {
  transform: translateY(-3px);
  border-color: rgba(5, 5, 5, .18);
  background: #fff;
  box-shadow: 0 24px 58px rgba(5, 5, 5, .095);
}
.activity-row:hover::after,
.activity-row:focus-within::after {
  transform: scaleY(1);
}
.activity-row__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}
.activity-row__meta {
  gap: .5rem .65rem;
}
.activity-row h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  margin: .45rem 0 .25rem;
  letter-spacing: -.025em;
}
.activity-row p {
  color: var(--muted);
  max-width: 68ch;
  font-size: clamp(.98rem, 1.25vw, 1.06rem);
  line-height: 1.5;
}
.activity-row .btn {
  min-width: 112px;
  justify-content: center;
  white-space: nowrap;
  align-self: center;
}

/* ====================================================================
   Articles / memorable AI incidents
   ==================================================================== */
.article-index-hero {
  padding-top: clamp(3.2rem, 7vh, 5.8rem);
  border-bottom: 1px solid var(--line);
}
.article-index-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.article-index-hero .hero-title {
  max-width: 10ch;
  margin-bottom: 1.35rem;
}
.article-featured-image {
  position: relative;
  min-height: clamp(360px, 48vw, 620px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--dark);
  box-shadow: 0 30px 70px rgba(5, 5, 5, .10);
}
.article-featured-image img,
.article-card__image img,
.article-detail-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-featured-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .72));
}
.article-featured-image span {
  position: absolute;
  left: clamp(1.2rem, 3vw, 2rem);
  right: clamp(1.2rem, 3vw, 2rem);
  bottom: clamp(1.2rem, 3vw, 2rem);
  z-index: 1;
  color: #fff;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.article-list-section { padding-top: clamp(3.5rem, 8vh, 6rem); }
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.article-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow);
}
.article-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--dark);
  overflow: hidden;
}
.article-card__image img {
  transition: transform .55s var(--ease);
}
.article-card:hover .article-card__image img { transform: scale(1.045); }
.article-card__body {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.25rem, 2.6vw, 1.75rem);
  flex: 1;
}
.article-card h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -.028em;
}
.article-card p {
  color: var(--muted);
  flex: 1;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .8rem;
  align-items: center;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-meta span + span::before {
  content: "";
  display: inline-block;
  width: .38rem;
  height: .38rem;
  margin-right: .8rem;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: .1em;
}
.article-detail-hero {
  position: relative;
  min-height: clamp(560px, 78vh, 780px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}
.article-detail-hero__image {
  position: absolute;
  inset: 0;
}
.article-detail-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, .82)),
    linear-gradient(90deg, rgba(0, 0, 0, .70), rgba(0, 0, 0, .10));
}
.article-detail-hero__copy {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.article-detail-hero .eyebrow,
.article-detail-hero .lead,
.article-detail-hero .article-meta { color: rgba(255, 255, 255, .78); }
.article-detail-hero .hero-title {
  max-width: 11ch;
  margin-bottom: 1.3rem;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(210px, .36fr) minmax(0, .9fr);
  gap: clamp(1.8rem, 5vw, 4.5rem);
  padding-top: clamp(3.5rem, 8vh, 6rem);
  padding-bottom: clamp(4.5rem, 9vh, 7rem);
}
.article-side {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  align-self: start;
  display: grid;
  gap: 1.25rem;
}
.article-side__box {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.25rem;
}
.article-side__box h2 {
  font-size: 1.15rem;
  margin-bottom: .65rem;
  letter-spacing: -.02em;
}
.article-side__box p {
  color: var(--muted);
  font-size: .95rem;
}
.article-body {
  max-width: 780px;
}
.article-intro {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
  letter-spacing: -.015em;
  color: var(--ink);
}
.article-section {
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 5vw, 3.2rem);
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
}
.article-section h2,
.article-lessons h2,
.article-sources h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin-bottom: .9rem;
}
.article-section p,
.article-sources li {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.12rem);
  line-height: 1.75;
}
.article-video {
  border-top: 1px solid var(--line);
  margin-top: clamp(2.4rem, 5vw, 3.5rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
}
.article-video .eyebrow { margin-bottom: 1rem; }
.article-video__card {
  display: grid;
  grid-template-columns: minmax(220px, .82fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.article-video__card:hover,
.article-video__card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  outline: none;
}
.article-video__thumb {
  position: relative;
  min-height: 210px;
  background: var(--dark);
  overflow: hidden;
}
.article-video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.article-video__card:hover .article-video__thumb img { transform: scale(1.04); opacity: .86; }
.article-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
.article-video__play svg {
  width: 30px;
  height: 30px;
  margin-left: 3px;
}
.article-video__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .7rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.article-video__source {
  color: rgba(255, 255, 255, .62);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.article-video__title {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.article-video__cta {
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}
.article-lessons {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2.3rem);
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid var(--line);
}
.article-lessons .eyebrow { margin-bottom: .75rem; }
.article-lessons ul,
.article-sources ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: .95rem;
}
.article-lessons li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.4vw, 1.13rem);
  line-height: 1.55;
}
.article-lesson__num {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  line-height: 1;
}
.article-sources {
  border-top: 1px solid var(--line);
  margin-top: clamp(2.4rem, 5vw, 3.5rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
}
.article-sources a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: .22em;
}
.article-sources a:hover { color: var(--accent); }
.article-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .35rem 1rem;
  align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.article-next:hover { transform: translateY(-3px); background: var(--accent); }
.article-next__label {
  color: rgba(255, 255, 255, .68);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.article-next__title {
  grid-column: 1;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 850;
  line-height: 1.12;
}
body.lang-ar .article-featured-image span,
body.lang-ar .article-detail-hero__copy,
body.lang-ar .article-card__body,
body.lang-ar .article-body,
body.lang-ar .article-side,
body.lang-ar .article-video__body {
  text-align: right;
}
body.lang-ar .article-meta span + span::before {
  margin-right: 0;
  margin-left: .8rem;
}

/* ====================================================================
   Dark inversion section
   ==================================================================== */
.section--dark {
  background: var(--dark);
  color: var(--dark-text);
  position: relative;
  overflow: clip;
}
.section--dark .eyebrow { color: var(--dark-muted); }
.section--dark .lead, .section--dark .muted { color: var(--dark-muted); }
.section--dark .h2, .section--dark h2 { color: #fff; }

.cta-dark { text-align: center; max-width: 22ch; margin-inline: auto; }
.cta-dark .h2 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
.cta-dark__lead { max-width: 52ch; margin: 1.5rem auto 2.4rem; }
.cta-dark__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* faint line motif behind dark section */
.dark-motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
}
.dark-motif line, .dark-motif path, .dark-motif circle {
  stroke: var(--dark-line);
  fill: none;
}

/* ====================================================================
   Contact
   ==================================================================== */
.contact-item { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.contact-item__label {
  font-size: .76rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .5rem;
}
.contact-item__value { font-size: clamp(1.15rem, 2.5vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; }
.contact-item__value a { transition: color .25s var(--ease); }
.contact-item__value a:hover { color: var(--accent); }

/* ====================================================================
   Footer
   ==================================================================== */
.site-footer {
  background: var(--dark);
  color: var(--dark-muted);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--dark-line);
}
.footer-logo { width: clamp(150px, 30vw, 185px); margin-bottom: 1.25rem; }
.footer-tagline { max-width: 34ch; font-size: .97rem; line-height: 1.6; }
.footer-col__title {
  font-size: .76rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; margin-bottom: 1.1rem;
}
.footer-nav { display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a { font-weight: 600; transition: color .25s var(--ease); width: fit-content; }
.footer-nav a:hover { color: #fff; }
.footer-contact p { margin-bottom: 1.1rem; }
.footer-contact a { color: #fff; font-weight: 700; }
.footer-bar {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.5rem; font-size: .85rem; color: #777;
}

/* WhatsApp contact (kept) */
.whatsapp-line { display: inline-flex; align-items: center; gap: 1rem; margin-top: .35rem; }
.btn--whatsapp-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  border: 1.5px solid var(--dark-line);
  background: transparent; color: #fff; border-radius: 50%;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.btn--whatsapp-icon svg { width: 26px; height: 26px; }
.btn--whatsapp-icon:hover, .btn--whatsapp-icon:focus-visible {
  background: #25d366; border-color: #25d366; color: #fff; outline: none;
}
.phone-number { color: #fff; font-weight: 700; font-size: 1.1rem; }

/* ====================================================================
   Custom cursor label (desktop pointer only — does NOT hide real cursor)
   ==================================================================== */
.cursor-label {
  position: fixed;
  top: 0; left: 0;
  z-index: 999;
  pointer-events: none;
  padding: .4rem .85rem;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  transform: translate(-50%, -160%) scale(.4);
  opacity: 0;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.cursor-label.is-active { opacity: 1; transform: translate(-50%, -160%) scale(1); }

/* ====================================================================
   AI Tools page utility toolbar (kept)
   ==================================================================== */
.ai-tools-toolbar { padding: .85rem 0 .25rem; background: transparent; }
.ai-tools-toolbar__inner { display: flex; justify-content: flex-end; align-items: center; gap: .55rem; }
.ai-tools-toolbar .nav__actions {
  display: flex !important; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; align-items: center;
}
.ai-tools-toolbar .btn { min-height: 42px; padding: .5rem 1rem; font-size: .9rem; }

/* Bilingual span helpers (kept) */
body.lang-en .ar { display: none; }
body.lang-en .en { display: inline; }
body.lang-ar .ar { display: inline; }
body.lang-ar .en { display: none; }
body.lang-ar { direction: rtl; }
body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3 { letter-spacing: 0; }
.training-lang-toggle { margin-top: 0; }
.training-module-hero__actions { margin-top: 1.4rem; }

/* ====================================================================
   Responsive
   ==================================================================== */
@media (max-width: 980px) {
  .site-themed .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 540px; margin-inline: auto; aspect-ratio: 16 / 10; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.5rem; }
  .method { grid-template-columns: 1fr; gap: 0; }
  .method__rail { display: none; }
  .method__step { padding-left: 2.4rem; padding-block: 1.1rem; border-left: 1.5px solid var(--line); margin-left: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .training-track__head,
  .training-module-hero__grid,
  .article-index-hero__grid,
  .article-layout { grid-template-columns: 1fr; }
  .article-side {
    position: static;
    order: 2;
  }
  .article-body { max-width: none; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .header-nav { gap: .7rem; }
  .training-header-lang {
    min-height: 42px;
    padding: .45rem .78rem;
    font-size: .78rem;
  }

  /* Full-screen mobile menu */
  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: .35rem;
    padding: 6rem var(--gutter) 3rem;
    transform: translateX(100%);
    transition: transform .5s var(--ease-out);
    z-index: 300;
  }
  body.nav-open .site-nav { transform: translateX(0); }
  .site-nav > a {
    color: #fff;
    font-size: clamp(2rem, 9vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    padding-block: .5rem;
    opacity: 0;
    transform: translateY(20px);
  }
  /* keep links white in every state inside the dark overlay */
  .site-nav > a:hover,
  .site-nav > a:focus-visible,
  .site-nav > a[aria-current="page"] { color: #fff; }
  .site-nav > a[aria-current="page"] { opacity: .6; }
  .site-nav > a::after { display: none; }
  body.nav-open .site-nav > a { animation: navIn .5s var(--ease-out) forwards; }
  body.nav-open .site-nav > a:nth-child(1) { animation-delay: .12s; }
  body.nav-open .site-nav > a:nth-child(2) { animation-delay: .18s; }
  body.nav-open .site-nav > a:nth-child(3) { animation-delay: .24s; }
  body.nav-open .site-nav > a:nth-child(4) { animation-delay: .3s; }
  body.nav-open .site-nav > a:nth-child(5) { animation-delay: .36s; }
  body.nav-open .site-nav > a:nth-child(6) { animation-delay: .42s; }
  @keyframes navIn { to { opacity: 1; transform: none; } }
  body.nav-open { overflow: hidden; }
  /* Lift the header's stacking context above any page-level fixed elements
     (e.g. the AI Tools "quick share" button) so the open overlay covers them. */
  body.nav-open .site-header { z-index: 1000; }
  .site-nav .nav-mobile-cta { display: block; margin-top: 1.5rem; }
  .site-nav .nav-mobile-cta .btn { font-size: 1rem; color: #fff; border-color: var(--dark-line); }

  .split { grid-template-columns: 1fr; gap: 1rem; }
  .svc { grid-template-columns: 2.5rem 1fr; }
  .svc__cta { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .work-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .article-index-hero .hero-title,
  .article-detail-hero .hero-title { max-width: 100%; }
  .article-featured-image { min-height: 320px; }
  .article-detail-hero { min-height: 620px; }
  .article-detail-hero__image::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .84));
  }
  .article-video__card {
    grid-template-columns: 1fr;
  }
  .article-video__thumb {
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }
  .article-lessons { padding: 1.15rem; }
  .article-lessons li {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: .85rem;
  }
  .article-lesson__num {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 9px;
    font-size: .9rem;
  }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: auto; }
  .module-sequence { padding-top: 2.4rem; }
  .module-sequence .training-track__head { gap: .85rem; }
  .activity-list::before {
    left: 1.7rem;
    top: 1.6rem;
    bottom: 1.6rem;
  }
  .activity-row {
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: .85rem;
    align-items: start;
    min-height: 0;
    padding: 1rem .95rem;
  }
  .activity-row__num {
    width: 3.2rem;
    height: 3.2rem;
    font-size: .95rem;
    border-radius: 10px;
  }
  .activity-row .btn {
    grid-column: 2;
    width: fit-content;
    min-height: 46px;
    margin-top: .25rem;
  }
}

@media (max-width: 420px) {
  .metrics { grid-template-columns: 1fr; }
}

/* ====================================================================
   Reduced motion — disable all transitions/animation, reveal everything
   ==================================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .reveal, .hero .fade-seq { opacity: 1 !important; transform: none !important; }
  .line-reveal > span { transform: none !important; }
  .method__rail::after { transform: scaleX(1) !important; }
  .cursor-label { display: none !important; }
  .scroll-cue__rail::after { display: none; }
}
