/* =========================================================
   rishsec — site styles
   Brand: ink #0A0B10 · bone #F5F3EE · ember #FF4A1C
   Theme: dark is the default (:root); light via [data-theme="light"]
   ========================================================= */

:root {
  /* brand constants (same in both themes) */
  --ink: #0A0B10;
  --bone: #F5F3EE;
  --ember: #FF4A1C;
  --ember-soft: rgba(255, 74, 28, 0.35);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* ---- DARK THEME (default) ---- */
  --bg: #0A0B10;
  --surface: #131419;
  --surface-2: #1b1d24;
  --text: #F5F3EE;
  --text-2: rgba(245, 243, 238, 0.72);
  --text-3: rgba(245, 243, 238, 0.5);
  --border: rgba(245, 243, 238, 0.12);
  --hover: rgba(245, 243, 238, 0.04);

  /* contrast panel (work / news) */
  --panel-bg: #16171e;
  --panel-text: #F5F3EE;
  --panel-muted: rgba(245, 243, 238, 0.7);
  --panel-faint: rgba(245, 243, 238, 0.5);
  --panel-border: rgba(245, 243, 238, 0.12);
  --panel-card: rgba(245, 243, 238, 0.03);

  --ring-color: rgba(245, 243, 238, 0.05);
  --hero-bg:
    radial-gradient(70% 55% at 50% 118%, rgba(255, 74, 28, 0.28), rgba(255, 74, 28, 0) 60%),
    radial-gradient(95% 75% at 50% 36%, rgba(70, 73, 86, 0.3), rgba(0, 0, 0, 0) 70%),
    linear-gradient(176deg, #171820 0%, #101119 46%, #0A0B10 100%);
  --portrait-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

:root[data-theme="light"] {
  --bg: #F5F3EE;
  --surface: #ffffff;
  --surface-2: #ecebe7;
  --text: #0A0B10;
  --text-2: #2a2b31;
  --text-3: #6b6c72;
  --border: rgba(10, 11, 16, 0.14);
  --hover: #ecebe7;

  --panel-bg: #0A0B10;
  --panel-text: #F5F3EE;
  --panel-muted: rgba(245, 243, 238, 0.65);
  --panel-faint: rgba(245, 243, 238, 0.5);
  --panel-border: rgba(245, 243, 238, 0.14);
  --panel-card: rgba(245, 243, 238, 0.04);

  --ring-color: rgba(10, 11, 16, 0.028);
  --hero-bg:
    radial-gradient(72% 56% at 50% 116%, rgba(255, 74, 28, 0.22), rgba(255, 74, 28, 0) 62%),
    linear-gradient(176deg, #edece8 0%, #e9e7e2 24%, #e3e1dc 48%, #dcdad4 72%, #d4d2cb 100%);
  --portrait-shadow: 0 24px 60px rgba(10, 11, 16, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: clip;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .35s var(--ease), background .35s, color .35s, border-color .35s;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--text); color: var(--bg); border: 1px solid var(--text); }
.btn--dark:hover { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.section--dark .btn--ghost { border-color: var(--panel-border); color: var(--panel-text); }
.section--dark .btn--ghost:hover { border-color: var(--panel-text); }
.btn--ember { background: var(--ember); color: #fff; border: 1px solid var(--ember); }
.btn--ember:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---- scroll progress ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--ember);
  box-shadow: 0 0 12px var(--ember-soft);
  z-index: 100;
  pointer-events: none;
}

/* ---- theme toggle ---- */
.theme-toggle {
  width: 38px; height: 38px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color .3s, color .3s, background .3s, transform .3s var(--ease);
}
.theme-toggle:hover { border-color: var(--text); transform: translateY(-1px); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  padding: 0 var(--gutter);
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--text);
}

/* faint concentric rings behind the orb */
.hero__rings {
  position: absolute;
  left: 50%;
  top: 62%;
  width: min(92vw, 820px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at center,
      transparent 0 58px,
      var(--ring-color) 58px 59px,
      transparent 59px 60px);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0,0,0,0.5) 32%, transparent 58%);
          mask: radial-gradient(circle, #000 0%, rgba(0,0,0,0.5) 32%, transparent 58%);
}

/* ---- nav ---- */
.nav {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  border-bottom: 1px solid var(--border);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav__mark { width: 22px; height: 22px; color: var(--text); }
.nav__links { display: flex; gap: clamp(22px, 3.2vw, 44px); justify-self: center; }
.nav__right { justify-self: end; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 30px); }
.nav__links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 28px 0;
  transition: color .3s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: -6px; right: -6px; bottom: -1px;
  height: 2px;
  background: var(--ember);
  box-shadow: 0 0 14px 2px var(--ember-soft);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .4s var(--ease);
}
.nav__links a.is-active::after, .nav__links a:hover::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav__burger span { width: 20px; height: 1.5px; background: var(--text); transition: transform .3s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  inset: 72px 0 auto 0;
  z-index: 4;
  flex-direction: column;
  padding: 12px var(--gutter) 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mobile-menu.is-open { display: flex; }

/* ---- hero top row ---- */
.hero__top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  align-items: start;
  gap: clamp(24px, 5vw, 80px);
  padding-top: clamp(40px, 7vh, 88px);
}
.hero__title {
  display: flex;
  flex-direction: column;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.12;
}
.hero__title span {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .9s var(--ease) forwards;
}
.hero__title span:nth-child(2) { animation-delay: .1s; }

.hero__intro {
  max-width: 400px;
  padding-top: 8px;
  opacity: 0;
  animation: rise .9s var(--ease) .25s forwards;
}
.hero__intro p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}
.hero__actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

.hero__more {
  display: flex;
  gap: 4px;
  padding: 10px 2px;
  margin-top: 6px;
}
.hero__more span { width: 4px; height: 4px; border-radius: 50%; background: var(--text); }

.hero__counter {
  position: relative;
  z-index: 2;
  margin-top: 26px;
  color: var(--text-3);
}

/* ---- orb ---- */
.hero__orb {
  position: relative;
  z-index: 1;
  min-height: clamp(300px, 46vh, 560px);
  margin: -120px calc(-1 * var(--gutter)) 0;
}
#orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- caption, scroll, share ---- */
.hero__caption {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: clamp(96px, 16vh, 150px);
  max-width: 230px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-2);
}
.hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
}
.hero__scroll-mouse {
  display: block;
  width: 16px; height: 26px;
  border: 1.2px solid var(--text-3);
  border-radius: 9px;
  position: relative;
}
.hero__scroll-mouse i {
  position: absolute;
  left: 50%; top: 5px;
  width: 2px; height: 5px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--text);
  animation: wheel 1.8s ease-in-out infinite;
}
.hero__share {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}
.hero__share:hover { color: var(--text); }

/* ---- interactive threat-intel topics over the orb ---- */
.hero__topics { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.topic { position: absolute; transform: translate(-50%, -50%); }
.topic__dot {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0; border: 0; background: none; cursor: pointer;
  opacity: 0; transform: scale(.4);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: var(--d, 0ms);
}
.hero__topics.is-visible .topic__dot { opacity: 1; transform: scale(1); }
/* right-half nodes: dot on the outside, label grows inward so it never clips */
.topic--left .topic__dot { flex-direction: row-reverse; }
.topic__dot::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--ember); box-shadow: 0 0 0 0 var(--ember-soft);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.topic__dot:hover::before, .topic.is-open .topic__dot::before {
  box-shadow: 0 0 14px 3px var(--ember-soft); transform: scale(1.3);
}
.topic__label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); white-space: nowrap;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  padding: 3px 8px; border-radius: 999px;
  transition: color .3s;
}
.topic.is-open .topic__label, .topic__dot:hover .topic__label { color: var(--ember); }
.topic__detail {
  position: absolute; top: calc(100% + 10px); left: 0;
  width: 244px; max-width: 72vw;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; z-index: 4;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: scale(.82); transform-origin: top left;
  pointer-events: none;
  transition: opacity .32s var(--ease), transform .38s var(--ease);
}
.topic.is-open .topic__detail { opacity: 1; transform: none; pointer-events: auto; }
.topic--left .topic__detail { left: auto; right: 0; transform-origin: top right; }
.topic--up .topic__detail { top: auto; bottom: calc(100% + 10px); transform-origin: bottom left; }
.topic--left.topic--up .topic__detail { transform-origin: bottom right; }
.topic__detail h4 { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
.topic__detail p { font-size: 12.5px; line-height: 1.55; color: var(--text-2); margin: 0; }
/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.marquee__viewport { overflow: hidden; will-change: transform; }
.marquee__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  padding: 18px 0;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.marquee__track i { width: 5px; height: 5px; border-radius: 50%; background: var(--ember); flex: none; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(72px, 10vw, 140px) var(--gutter); }
.section--dark {
  background: var(--panel-bg);
  color: var(--panel-text);
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
.section__head {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section__head h2 { font-size: clamp(30px, 4vw, 54px); }
.section__head p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 360px;
}
.section--dark .section__head p { color: var(--panel-faint); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  padding-bottom: 6px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.section--dark .eyebrow { color: var(--panel-faint); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- training: the headline itself tears into the 7 isometric layers ----
   --morph 0: a flat, tightly stacked pile of plates.
   --morph 1: the plates have tilted into isometric view and spread apart, the
   callouts have faded in and the connectors have drawn out to both sides.
   Default is 1 so a skipped scrub still shows the finished, legible diagram. */
@property --lift { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --dim { syntax: "<number>"; inherits: false; initial-value: 1; }
.iso {
  position: relative;
  height: 840px;
  max-width: 1180px;
  margin: 0 auto;
  perspective: 3200px;
  --morph: 1;
  --ox: 0deg; --oy: 0deg;       /* pointer orbit, set by script.js */
  --line: color-mix(in srgb, var(--text) 32%, transparent);
  --grid: color-mix(in srgb, var(--text) 9%, transparent);
}
/* a real 3D scene: the whole stack is one object, tilted into isometric view and
   orbited by the pointer; the 7 plates sit at true depth along its Z axis */
.iso__scene {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  /* the scene's own (invisible) plane sits in front of the lower plates in 3D;
     let only the plates take the pointer */
  pointer-events: none;
  transform:
    rotateX(var(--ox)) rotateY(var(--oy))
    rotateX(calc(var(--morph) * 55deg)) rotateZ(calc(var(--morph) * -45deg));
}
.iso__layer {
  position: absolute;
  top: 50%; left: 50%;
  width: 270px; height: 135px;
  margin: -67.5px 0 0 -135px;
  transform-style: preserve-3d;
  /* stacked 18px apart at morph 0, 122px apart (≈ 100px on screen) at morph 1.
     --lift slides the slab you point at out of the stack toward its label:
     moving (d, d)/√2 in the plate plane reads as straight sideways on screen */
  --dir: 0.7071;
  transform:
    translateZ(calc((3 - var(--i)) * (18px + var(--morph) * 104px)))
    translate(calc(var(--lift) * var(--dir)), calc(var(--lift) * var(--dir)));
  transition: --lift .45s var(--ease);
}
.iso__layer:nth-child(even) { --dir: -0.7071; }   /* labels 02/04/06 are on the left */
.iso__layer.is-active { --lift: 40px; }
/* each plate is a solid slab: an opaque textured top face plus two real side
   faces (front and left edges, the ones facing the viewer in this view) */
.iso__plate {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  pointer-events: auto;
  background:
    repeating-linear-gradient(0deg, transparent 0 15px, var(--grid) 15px 16px),
    repeating-linear-gradient(90deg, transparent 0 15px, var(--grid) 15px 16px),
    var(--base);
}
.iso__plate::before,
.iso__plate::after {
  content: ""; position: absolute;
  transition: background-color .45s var(--ease);
}
.iso__plate::before {        /* front edge, hinged down from the bottom side */
  left: 0; top: 100%; width: 100%; height: var(--thick);
  transform-origin: top center; transform: rotateX(-90deg);
  background-color: var(--edge-a);
}
.iso__plate::after {         /* left edge, hinged back from the left side */
  top: 0; right: 100%; width: var(--thick); height: 100%;
  transform-origin: right center; transform: rotateY(-90deg);
  background-color: var(--edge-b);
}
.iso__layer.is-active .iso__plate { --edge-a: color-mix(in srgb, var(--ember) 70%, var(--bg)); --edge-b: color-mix(in srgb, var(--ember) 45%, var(--bg)); }

/* ---- a different surface on every plate ---- */
.iso {
  --dot: color-mix(in srgb, var(--text) 50%, transparent);
  --dot-soft: color-mix(in srgb, var(--text) 22%, transparent);
  --dot-ember: color-mix(in srgb, var(--ember) 85%, transparent);
  --face-a: color-mix(in srgb, var(--text) 15%, transparent);
  --face-b: color-mix(in srgb, var(--text) 7%, transparent);
  /* opaque, so each slab hides what is behind it instead of mixing textures */
  --base: color-mix(in srgb, var(--text) 6%, var(--bg));
  --edge-a: color-mix(in srgb, var(--text) 17%, var(--bg));
  --edge-b: color-mix(in srgb, var(--text) 10%, var(--bg));
  --thick: 10px;
}
/* 01 — blueprint grid (the default above) */

/* 02 — particle scatter: a few prime-sized tiles, each with one dot, never line up */
.iso__layer:nth-child(2) .iso__plate {
  background:
    radial-gradient(circle at 7px 11px, var(--dot) 1.1px, transparent 1.9px) 0 0 / 37px 41px,
    radial-gradient(circle at 29px 6px, var(--dot-soft) 0.8px, transparent 1.5px) 0 0 / 53px 29px,
    radial-gradient(circle at 3px 30px, var(--dot) 0.9px, transparent 1.6px) 0 0 / 23px 47px,
    radial-gradient(circle at 44px 21px, var(--dot-soft) 1.4px, transparent 2.2px) 0 0 / 61px 67px,
    radial-gradient(circle at 60px 50px, var(--dot-ember) 1.3px, transparent 2.1px) 0 0 / 97px 83px,
    radial-gradient(circle at 14px 70px, var(--dot-ember) 0.9px, transparent 1.6px) 0 0 / 131px 109px,
    var(--base);
}

/* 03 — matrix rain: staggered columns of tiny glyph-pills, a few ember "heads" */
.iso__layer:nth-child(3) .iso__plate {
  background:
    radial-gradient(ellipse 1.3px 3.6px at 50% 50%, var(--dot) 98%, transparent 100%) 0 0 / 11px 14px,
    radial-gradient(ellipse 1.3px 3.6px at 50% 50%, var(--dot-soft) 98%, transparent 100%) 5.5px 7px / 11px 14px,
    radial-gradient(ellipse 1.5px 4px at 50% 50%, var(--dot-ember) 98%, transparent 100%) 3px 9px / 44px 98px,
    radial-gradient(ellipse 1.5px 4px at 50% 50%, var(--dot-ember) 98%, transparent 100%) 25px 61px / 66px 126px,
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent), transparent 45%, transparent 70%, color-mix(in srgb, var(--bg) 40%, transparent)),
    var(--base);
}

/* 04 — isometric cubes tessellation (three face shades) */
.iso__layer:nth-child(4) .iso__plate {
  background:
    linear-gradient(30deg,  var(--face-a) 12%, transparent 12.5%, transparent 87%, var(--face-a) 87.5%, var(--face-a)) 0 0 / 24px 42px,
    linear-gradient(150deg, var(--face-a) 12%, transparent 12.5%, transparent 87%, var(--face-a) 87.5%, var(--face-a)) 0 0 / 24px 42px,
    linear-gradient(30deg,  var(--face-a) 12%, transparent 12.5%, transparent 87%, var(--face-a) 87.5%, var(--face-a)) 12px 21px / 24px 42px,
    linear-gradient(150deg, var(--face-a) 12%, transparent 12.5%, transparent 87%, var(--face-a) 87.5%, var(--face-a)) 12px 21px / 24px 42px,
    linear-gradient(60deg,  var(--face-b) 25%, transparent 25.5%, transparent 75%, var(--face-b) 75%, var(--face-b)) 0 0 / 24px 42px,
    linear-gradient(60deg,  var(--face-b) 25%, transparent 25.5%, transparent 75%, var(--face-b) 75%, var(--face-b)) 12px 21px / 24px 42px,
    var(--base);
}

/* 05 — detection: diagonal hatch under horizontal scanlines, one ember sweep */
.iso__layer:nth-child(5) .iso__plate {
  background:
    linear-gradient(180deg, transparent 46%, color-mix(in srgb, var(--ember) 22%, transparent) 50%, transparent 54%),
    repeating-linear-gradient(0deg, transparent 0 3px, color-mix(in srgb, var(--text) 6%, transparent) 3px 4px),
    repeating-linear-gradient(45deg, transparent 0 9px, var(--grid) 9px 10px),
    var(--base);
}

/* 06 — report: ruled lines with an ember margin rule */
.iso__layer:nth-child(6) .iso__plate {
  background:
    linear-gradient(90deg, transparent 0 26px, color-mix(in srgb, var(--ember) 55%, transparent) 26px 27px, transparent 27px),
    repeating-linear-gradient(0deg, transparent 0 11px, var(--dot-soft) 11px 12px),
    var(--base);
}

/* 07 — dot lattice with a coarse targeting grid */
.iso__layer:nth-child(7) .iso__plate {
  background:
    radial-gradient(circle, var(--dot) 1px, transparent 1.7px) 6px 6px / 12px 12px,
    repeating-linear-gradient(0deg, transparent 0 35px, var(--grid) 35px 36px),
    repeating-linear-gradient(90deg, transparent 0 35px, var(--grid) 35px 36px),
    var(--base);
}
.iso__motif {               /* distinct line-art per layer, drawn on the plane */
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--text); opacity: calc(0.25 + var(--morph) * 0.75);
  transition: color .45s var(--ease);
}
.iso__layer.is-active .iso__motif { color: var(--ember); }

/* callouts live on a flat overlay (not inside the 3D scene) so they stay
   screen-aligned while the stack orbits; each sits level with its plate */
.iso__labels { position: absolute; inset: 0; pointer-events: none; }
.iso__call {
  position: absolute;
  /* script.js sets --cy/--cx from each plate's projected rectangle (so the
     connectors track the plates through perspective and orbit); without it the
     calc() fallbacks give the evenly spaced resting layout */
  top: var(--cy, calc(50% + (var(--i) - 3) * var(--morph) * 100px));
  display: flex; align-items: center; gap: 18px;
  pointer-events: auto; cursor: default;
  transform: translateY(-50%);
  --dim: 1;
  opacity: calc((var(--morph) - 0.5) * 2 * var(--dim));
  transition: --dim .35s var(--ease);
}
/* pointing at a plate or a label pairs them up: that slab lifts and lights
   ember, the other labels step back */
.iso.has-active .iso__call:not(.is-active) { --dim: 0.32; }
.iso__call.is-active .iso__lead { background: var(--ember); }
.iso__call[data-side="right"] { left: var(--cx, calc(50% + 110px)); }
.iso__call[data-side="left"]  { right: var(--cx, calc(50% + 110px)); flex-direction: row-reverse; }
.iso__call[data-side="left"] .iso__txt { text-align: right; }
.iso__lead {
  position: relative; flex: none;
  width: 92px; height: 1px;
  background: var(--line);
  transform-origin: left center;
  transform: scaleX(max(0, calc((var(--morph) - 0.5) * 2)));  /* draws out as layers form */
}
.iso__call[data-side="left"] .iso__lead { transform-origin: right center; }
.iso__lead::before {        /* ring node, at the plate end */
  content: ""; position: absolute; top: 50%; left: -3.5px;
  width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--ember);
}
.iso__call[data-side="left"] .iso__lead::before { left: auto; right: -3.5px; }
.iso__lead::after {         /* arrowhead, at the label end */
  content: ""; position: absolute; top: 50%; right: -1px;
  width: 6px; height: 6px; margin-top: -3.5px;
  border-top: 1px solid var(--ember); border-right: 1px solid var(--ember);
  transform: rotate(45deg);
}
.iso__call[data-side="left"] .iso__lead::after { right: auto; left: -1px; transform: rotate(-135deg); }
.iso__txt { width: 230px; }
.iso__num { display: block; color: var(--ember); letter-spacing: .2em; margin-bottom: 9px; }
.iso__txt h3 { font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -0.01em; margin-bottom: 7px; }
.iso__txt p { font-size: 12.5px; line-height: 1.55; color: var(--text-3); }

@media (max-width: 1023px) {
  .iso { position: static; height: auto; perspective: none; max-width: none; }
  .iso__scene { display: none; }
  .iso__labels { position: static; }
  .iso__call {
    position: static; transform: none; flex-direction: row !important; gap: 0; opacity: 1 !important;
    padding: 20px 0; border-top: 1px solid var(--border);
  }
  .iso__call:last-child { border-bottom: 1px solid var(--border); }
  .iso__call[data-side="left"] .iso__txt { text-align: left; }
  .iso__lead { display: none; }
  .iso__txt { width: auto; }
}

/* ---- work (panel) ---- */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel-card), transparent);
  /* the hover lift uses the separate `translate` property: GSAP animates
     `transform` on entrance, and a CSS transition on `transform` would fight it
     (each GSAP frame restarts the transition, so cards lag into a staircase) */
  transition: border-color .4s, translate .5s var(--ease);
}
.case:hover { border-color: rgba(255,74,28,.6); translate: 0 -4px; }
.case__meta { display: flex; justify-content: space-between; color: var(--panel-faint); margin-bottom: 40px; }
.case h3 { font-size: 22px; margin-bottom: 14px; }
.case p { font-size: 14px; line-height: 1.6; color: var(--panel-muted); flex: 1; }
.case__stats { display: flex; gap: 28px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--panel-border); }
.case__stats strong { display: block; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 4px; }
.case__stats span { color: var(--panel-faint); }

/* ---- plans ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: background-color .45s var(--ease), border-color .45s var(--ease);
}
.plan--featured { background: var(--text); color: var(--bg); border-color: var(--text); }
.plan__tag {
  position: absolute;
  top: 18px; right: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
}
.plan__name { color: var(--text-3); }
.plan--featured .plan__name { color: var(--bg); opacity: .6; }
.plan__price { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; margin: 18px 0 26px; }
.plan__price span { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--text-3); margin-left: 8px; }
.plan--featured .plan__price span { color: var(--bg); opacity: .6; }
.plan ul { list-style: none; margin: 0 0 32px; padding: 0; flex: 1; }
.plan li { font-size: 14px; padding: 10px 0; border-top: 1px solid var(--border); color: var(--text-2); }
.plan--featured li { color: var(--bg); border-top-color: color-mix(in srgb, var(--bg) 16%, transparent); }
.plan .btn { width: 100%; }
.plan--featured .btn--dark { background: var(--ember); border-color: var(--ember); color: #fff; }
.plan--featured .btn--dark:hover { background: var(--bg); color: var(--text); border-color: var(--bg); }

/* ---- founder (cinematic, always dark in both themes) ---- */
.founder {
  position: relative;
  background: #08090d;
  color: var(--bone);
  overflow: hidden;
}
.founder__stage {
  position: relative;
  height: clamp(540px, 88vh, 920px);
  overflow: hidden;
}
.founder__eyebrow {
  position: absolute;
  top: clamp(26px, 5vw, 50px);
  left: var(--gutter);
  z-index: 5;
  color: rgba(245, 243, 238, 0.6);
}
.founder__display {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(10px, 2.2vw, 54px);
  font-weight: 800;
  font-size: clamp(74px, 19vw, 300px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #f3f1ec;
  white-space: nowrap;
  pointer-events: none;
}
.founder__word { display: block; text-shadow: 0 0 80px rgba(0, 0, 0, 0.55); }

.founder__glow {
  position: absolute;
  z-index: 2;
  left: 50%; top: 33%;
  transform: translate(-50%, -50%);
  width: clamp(360px, 48vw, 740px);
  aspect-ratio: 1;
  background: radial-gradient(circle,
    rgba(255, 110, 60, 0.20),
    rgba(150, 160, 180, 0.12) 36%,
    rgba(0, 0, 0, 0) 68%);
  pointer-events: none;
}
.founder__cutout {
  position: absolute;
  z-index: 3;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  max-width: none;
  filter: grayscale(1) contrast(1.35) brightness(0.74);
  -webkit-mask-image: radial-gradient(60% 72% at 50% 40%, #000 46%, rgba(0,0,0,0) 80%);
          mask-image: radial-gradient(60% 72% at 50% 40%, #000 46%, rgba(0,0,0,0) 80%);
}
.founder__side {
  position: absolute;
  z-index: 4;
  top: 72%;
  max-width: 190px;
  line-height: 1.5;
  color: rgba(245, 243, 238, 0.72);
}
.founder__side--l { left: var(--gutter); }
.founder__side--r { right: var(--gutter); text-align: right; }
.founder__social {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  bottom: clamp(26px, 5vw, 46px);
  display: flex;
  gap: 12px;
}
.founder__social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(245, 243, 238, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  transition: border-color .3s, color .3s, transform .3s var(--ease);
}
.founder__social a:hover { border-color: var(--ember); color: var(--ember); transform: translateY(-2px); }
.founder__social svg { width: 15px; height: 15px; }
.founder__contact {
  position: absolute;
  z-index: 5;
  right: var(--gutter);
  bottom: clamp(28px, 5vw, 48px);
  color: rgba(245, 243, 238, 0.8);
  transition: color .3s;
}
.founder__contact:hover { color: var(--ember); }

.founder__strip {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(30px, 4vw, 46px) var(--gutter) clamp(44px, 6vw, 68px);
  border-top: 1px solid rgba(245, 243, 238, 0.12);
}
.founder__strip div { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.founder__strip strong { font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -0.02em; }
.founder__strip span { color: rgba(245, 243, 238, 0.5); }

/* ---- news (panel) ---- */
.news { display: flex; flex-direction: column; border-top: 1px solid var(--panel-border); overflow-x: clip; }
html { overflow-x: clip; }
.post {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--panel-border);
  transition: padding-left .4s var(--ease);
}
.post:hover { padding-left: 14px; }
.post .mono { color: var(--panel-faint); }
.post h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 400; }
.post__arrow { font-size: 22px; color: var(--ember); }

/* ---- contact ---- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
}
.contact__body h2 { font-size: clamp(30px, 3.6vw, 48px); margin: 14px 0 20px; }
.contact__body p { font-size: 15px; line-height: 1.65; color: var(--text-2); max-width: 440px; margin-bottom: 36px; }
.contact__email {
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--text);
  padding-bottom: 4px;
  transition: color .3s, border-color .3s;
}
.contact__email:hover { color: var(--ember); border-color: var(--ember); }
.form { display: flex; flex-direction: column; gap: 22px; }
.form label { display: flex; flex-direction: column; gap: 10px; }
.form label .mono { color: var(--text-3); }
.form input, .form textarea, .form select {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 8px 0 12px;
  outline: none;
  resize: vertical;
  transition: border-color .3s;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--text); }
.form select { appearance: none; background: transparent; cursor: pointer; }
.form select option { background: var(--surface); color: var(--text); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.success-banner { display: none; color: var(--ember); }
.success-banner.show { display: block; }
.success-banner.is-error { color: var(--text); padding-left: 12px; border-left: 2px solid var(--ember); }
.contact__phone { display: block; margin-top: 16px; color: var(--text-3); }
.contact__phone:hover { color: var(--text); }
.plan__extra { margin: 14px 0 0; text-align: center; color: var(--text-3); line-height: 1.8; }
.plan__extra a { color: var(--text-2); border-bottom: 1px solid var(--border); }
.plan__extra a:hover { color: var(--ember); border-color: var(--ember); }
.form .btn { align-self: flex-start; margin-top: 6px; }
.form__note { color: var(--ember); min-height: 1em; }

/* ---- footer ---- */
.footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--border);
}
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.footer__links a { color: var(--text-3); transition: color .3s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { justify-self: end; color: var(--text-3); white-space: nowrap; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes wheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(9px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title span, .hero__intro { animation: none; opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .hero__scroll-mouse i { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero__top { grid-template-columns: 1fr 1fr; }
  .hero__more { display: none; }
  .work, .plans { grid-template-columns: repeat(2, 1fr); }
  .section__head { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero__top { grid-template-columns: 1fr; gap: 24px; padding-top: 36px; }
  .hero__title { font-size: clamp(28px, 8vw, 36px); }
  .hero__intro { max-width: none; }
  .hero__counter { margin-top: 18px; }
  .hero__orb { min-height: 320px; margin-top: -30px; }
  .hero__caption { position: static; max-width: none; margin: 8px 0 72px; }
  .hero__rings { top: 68%; width: 140vw; }
  .topic__label { font-size: 9px; padding: 2px 6px; }
  .topic__detail { width: 200px; }

  .work, .plans { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .founder__stage { height: clamp(440px, 72vh, 620px); }
  .founder__display { font-size: clamp(58px, 21vw, 128px); padding: 0 10px; }
  .founder__side { display: none; }
  .founder__strip { gap: 22px 32px; }
  .post { grid-template-columns: 1fr; gap: 10px; }
  .post__arrow { display: none; }
  .footer { grid-template-columns: 1fr; }
  .footer__links { flex-wrap: wrap; gap: 16px 22px; }
  .footer__copy { justify-self: start; }
}


/* =========================================================
   ENROLMENT MODAL · MENTORSHIP INTAKE · THANK-YOU (enroll.js)
   Class names and IDs come from the live site's markup so the ported
   logic works unchanged; the look is the RishSec system.
   ========================================================= */
.modal-overlay, .intake-ov, .tyov {
  /* old-site variable names used by markup that enroll.js generates */
  --text2: var(--text-2); --text3: var(--text-3); --accent3: var(--ember);
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: flex-start; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px 16px;
  overflow-y: auto; overscroll-behavior: contain;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-overlay.active, .intake-ov.on, .tyov.on { display: flex; }
.modal, .intake-box, .tybox {
  width: 100%; margin: clamp(16px, 6vh, 64px) auto;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 18px;
}
.modal { max-width: 900px; }
.intake-box { max-width: 760px; }
.tybox { max-width: 520px; padding: 36px 32px; text-align: center; }
:where(.modal-overlay, .intake-ov, .tyov) :focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
:root[data-theme="light"] :where(.modal-overlay, .intake-ov, .tyov) :focus-visible { outline-color: var(--ink); }

/* shared header */
.modal-header, .ihead {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 24px 28px; border-bottom: 1px solid var(--border);
}
.modal-kicker { color: var(--text-3); margin-bottom: 8px; }
.modal-title, .ititle { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.isub { margin-top: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.modal-close, .iclose {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--text);
  transition: border-color .3s, color .3s;
}
.modal-close:hover, .iclose:hover { border-color: var(--ember); color: var(--ember); }

/* enrolment modal */
.modal-body { display: grid; grid-template-columns: 1.4fr 1fr; }
.modal-form { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-group label, .ilb {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
}
.req, .ireq { color: var(--ember); }
.form-group input, .form-group select, .form-group textarea, .iin, .isel, .ita {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; outline: none; transition: border-color .25s;
}
.form-group select, .isel { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form-group select option, .isel option { background: var(--surface); color: var(--text); }
.form-group textarea, .ita { resize: vertical; min-height: 70px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .iin:focus, .isel:focus, .ita:focus { border-color: var(--text); }
.form-group .error, .iin.error { border-color: var(--ember); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.checkbox-row input { margin-top: 3px; accent-color: var(--ember); }
.checkbox-row a { color: var(--text); border-bottom: 1px solid var(--border); }
.pay-btn, .ibs {
  height: 46px; border-radius: 999px; padding: 0 22px;
  background: var(--ember); color: #fff; border: 1px solid var(--ember);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.pay-btn:hover, .ibs:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.pay-btn:disabled, .ibs:disabled { opacity: .6; cursor: progress; }
.spinner { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.course-action-link { display: block; padding: 11px; border-radius: 999px; text-align: center; border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.course-action-link:hover { border-color: var(--text); }
.modal-summary { padding: 24px 28px 28px; background: var(--surface-2); border-left: 1px solid var(--border); border-radius: 0 0 18px 0; min-width: 0; }
.summary-title { color: var(--text-3); margin-bottom: 14px; }
.summary-course-name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 18px; }
.price-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.price-row.total { color: var(--text); font-size: 18px; font-weight: 500; }
.summary-includes { margin-top: 18px; }
.summary-includes h4 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.include-item { position: relative; padding: 6px 0 6px 16px; font-size: 13.5px; color: var(--text-2); }
.include-item::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }

/* mentorship intake */
.ibody { padding: 22px 28px 28px; }
.ipbg { height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.ipfill { height: 100%; background: var(--ember); transition: width .5s var(--ease); }
.ipmeta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.ipage { display: none; }
.ipage.on { display: block; }
.isl { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin: 6px 0 20px; }
.i2c { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ifd { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; min-width: 0; }
.iht { font-size: 12px; color: var(--text-3); }
.irg { display: flex; flex-direction: column; gap: 8px; }
.iop { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 12px; transition: border-color .25s, background .25s; }
.iop:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.iop.on { border-color: var(--ember); background: color-mix(in srgb, var(--ember) 7%, transparent); }
.iop input { margin-top: 3px; accent-color: var(--ember); flex: none; }
.iol { font-size: 14px; color: var(--text); line-height: 1.4; }
.iod { margin-top: 3px; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.itw, #certWrap, #learnWrap { display: flex; flex-wrap: wrap; gap: 8px; }
.itg { padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text-2); transition: all .2s; }
.itg:hover { border-color: var(--text); color: var(--text); }
.itg.on { background: var(--ember); border-color: var(--ember); color: #fff; }
.spills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.spill { padding: 4px 9px; border: 1px solid var(--border); border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--text-3); }
.imt { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 18px; display: block; overflow-x: auto; }
.imt th { font-family: var(--font-mono); font-weight: 400; font-size: 10.5px; color: var(--text-3); padding: 6px 8px; text-align: center; }
.imt th:first-child, .imt td:first-child { text-align: left; padding-left: 0; min-width: 190px; }
.imt td { padding: 9px 8px; border-top: 1px solid var(--border); text-align: center; color: var(--text-2); }
.imt input { accent-color: var(--ember); }
.inav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.ipc { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--text-3); margin-right: auto; }
.inav .ibb + .ipc { margin: 0 auto; }
.ibn { height: 42px; padding: 0 22px; border-radius: 999px; background: var(--text); color: var(--bg); border: 1px solid var(--text);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; transition: background .3s, border-color .3s, color .3s; }
.ibn:hover { background: var(--ember); border-color: var(--ember); color: #fff; }
.ibb { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.ibb:hover { border-color: var(--text); }

/* thank-you */
.tyic { width: 56px; height: 56px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ember); color: #fff; font-size: 24px; }
.tyti { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
.tysu { font-size: 14px; line-height: 1.6; color: var(--text-2); margin-bottom: 22px; }
.tyst { display: flex; flex-direction: column; gap: 12px; text-align: left; margin-bottom: 20px; }
.tysp { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.tysn { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--ember); color: var(--ember); font-family: var(--font-mono); font-size: 11px; }
.typid { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--text-3); margin-bottom: 20px; }
.tybox > div:last-child { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tybtn { height: 42px; padding: 0 20px; border-radius: 999px; background: var(--text); color: var(--bg); border: 1px solid var(--text);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.tybtn.ghost { background: transparent; color: var(--text); border-color: var(--border); }

@media (max-width: 760px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-summary { border-left: 0; border-top: 1px solid var(--border); border-radius: 0 0 18px 18px; }
  .form-row, .i2c, .form__row { grid-template-columns: 1fr; }
  .modal-header, .ihead, .modal-form, .modal-summary, .ibody { padding-left: 20px; padding-right: 20px; }
  .tybox { padding: 28px 20px; }
}

/* Kickstarter: "Request brochure" link under the Enrol button */
.plan__brochure { display: block; margin: 14px 0 0; text-align: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.plan__brochure:hover, .plan__brochure:focus-visible { color: var(--ember); }
.plan--featured .plan__brochure { color: inherit; opacity: .8; }

/* enrol modal: optional mock interview add-on */
.mock-addon { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font-size: 13.5px; color: var(--text-2); cursor: pointer; line-height: 1.5; }
.mock-addon input { margin-top: 3px; accent-color: var(--ember); flex: none; }
.mock-addon strong { color: var(--text); font-weight: 500; }
.mock-addon small { color: var(--text-3); font-size: 12px; }
.mock-addon:has(input:checked) { border-color: var(--ember); }
